This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
{!-- Segment_2 isn't blank, so show a blog post's detail page --} | |
{if segment_2 != ""} | |
<h1>Single Post</h1> | |
{exp:channel:entries channel="blog" url_title="{segment_2}"} | |
{!-- If segment_2 isn't a URL title for any existing blog post, redirect to the landing page --} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries channel="blog" limit="10"} | |
<div class="post"> | |
<h2 class="postTitle"><a href="{url_title_path='blog/detail'}">{title}</a></h2> | |
<p>Posted {entry_date format='%m/%d'} by {screen_name} </p> | |
{summary} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!-- Segment_2 isn't blank, so show a blog post's details --} | |
{if segment_2 != ""} | |
{exp:channel:entries channel="blog" url_title="{segment_2}"} | |
{!-- If no results, | |
then segment_2 isn't a URL title for any existing blog post (typo? broken link?), | |
so redirect to the landing page --} | |
{if no_results} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === ENABLE mod_rewrite ========================================= | |
RewriteEngine on | |
# === SECURITY TWEAKS ============================================ | |
# --- Stop malicious visitors from viewing ------- | |
# --- your .htaccess rules in the browser. ------- | |
<Files .htaccess> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The Powderhouse Camera Project :: Somerville MA</title> | |
<meta name="description" content="Annie Smidt's project to create a camera obscura out of the historic powderhouse in Nathan Tufts Park, Somerville MA. Funded in part by the Somerville Arts Council."> | |
<meta name="keywords" content="camera obscura, pinhole, alt-pro, alternative photography, somerville, somerville arts council, SAC, somerville arts council grant, SAC grant"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* This looks like a mess, but it works. Allow PHP for the template, set parsing to Output. | |
* Results in the following: | |
* Jan 16 - 18, 2010 | |
* Jan 16 - Feb 18, 2010 | |
* Jan 16, 2010 - Jan 18, 2020 | |
*/ | |
?> | |
{if event_start_datetime && event_end_datetime}{event_start_datetime format="%F %j"}<?php if ("{event_start_datetime format="%Y"}" != "{event_end_datetime format="%Y"}") { ?>, {event_end_datetime format="%Y"} <?php } ?>-<?php if (("{event_start_datetime format="%F"}" != "{event_end_datetime format="%F"}") || ("{event_start_datetime format="%Y"}" != "{event_end_datetime format="%Y"}")) { ?> {event_end_datetime format="%F"}<?php } ?>{event_end_datetime format="%j"}<?php if ("{event_start_datetime format="%Y"}" == "{event_end_datetime format="%Y"}") { ?>, {event_end_datetime format="%Y"}<?php } ?>{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
exp_channel_data.entry_id, | |
exp_channel_data.field_id_5 'largest' | |
FROM | |
exp_channel_data | |
JOIN | |
exp_channel_titles | |
ON exp_channel_data.entry_id = exp_channel_titles.entry_id | |
ORDER BY | |
exp_channel_data.field_id_5 DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DONE] Get drinks at Drink | |
[DONE] Evaluate whether Papagayo in Fort Point has decent Mexican food | |
Sample the gold sauce at Blue Ribbon BBQ in Arlington | |
Crash the Assassins Guild at MIT on a Saturday night | |
Taste-test cannolis from Modern Pastry vs. Mike's Pastry in the North End | |
Ride a party bus | |
Tour the Harpoon brewery | |
Have cocktails and appetizers at Top of the Hub in Back Bay | |
Order the mac&cheese at Lord Hobo in Cambridge | |
Eat a cupcake from Sweet on Newbury St. |
OlderNewer