/home/a/aquarion/sites/www.aquarionics.com/epistula/chapters/frontpage.inc.php
All my code (That is, anything not in the "Others" list on the right) is BSD licenced.
You can also view this page as text/plain or colour-coded source
<?PHP
/*******************************************************************************
Chapter - Frontpage
********************************************************************************
Display a list of X recent items on the site
$Id: frontpage.inc.php,v 1.4 2004/08/17 19:59:35 aquarion Exp $
$log$
*******************************************************************************/
$page->title = $_EP['tagline'];
$page->chapter = 'frontpage';
if (isset($wanted[1])){ // Any arguments are bad arguments
$page->status = 404;
} else {
/***********************************
* New blinks system, powered by del.icio.us */
define(MAGPIE_CACHE_DIR, $_EP['cachedir']."/magpie");
include("otherfolks/magpierss/rss_fetch.inc");
$count = 0;
$links = array();
$url ="http://del.icio.us/rss/".$_EP['del.icio.us']['account'];#."/".$_EP['del.icio.us']['tags'];
$rss = fetch_rss($url);
foreach ($rss->items as $item) {
if (++$count > $_EP['del.icio.us']['count'] && $_EP['del.icio.us']['count']) { break; }
$links[] = "<a href=\"".htmlspecialchars($item['link'])."\" title=\"".strtr($item['description'],'"',"'")."\">"
.$item['title']
."</a>";
}
$linksbox = "<h2>Linklog...</h2>";
$linksbox .= $page->buildlist($links,false,"plainlist blinks");
$linksbox .= <<<EOW
<a href="http://del.icio.us/rss/tags/Aquarion" class="more"><img src="/assets/aq13/images/feed-icon-14x14.png" width="14" height="14" border="0" alt="Feed Icon"> Subscribe</a>
<a href="http://del.icio.us/Aquarion" class="more">More links...</a>
EOW;
$page->boxes['linklog'] = $linksbox;
/*********************
* New events system */
$upcoming = '
<div class="upcoming_badge" id="upcoming_clean_medium">
<div class="upb_header"><span class="upb_text"><a href="http://upcoming.yahoo.com">Upcoming</a> Events</span></div>
<div class="upb_events"><script type="text/javascript" src="http://badge.upcoming.yahoo.com/v1/?badge_type=user&badge_size=sm&badge_layout=v&badge_styling=2&badge_no_background=&badge_venue=1&date_format_type=us_sm&id=115885"></script></div>
<div class="upb_more"><span class="upb_text"><a href="http://upcoming.yahoo.com/user/115885/">More of <u>Aquarion\'s events</u></a></span></div>
</div>
<!-- End of Upcoming Badge - get your own at http://upcoming.yahoo.com/badge/ -->
';
$page->boxes['upcoming'] = $upcoming;
/* RSS header */
$page->links[] = array (
'rel' => "alternate",
'type' => "application/rss+xml",
'title' => "RSS",
'href' => "http://www.aquarionics.com/meta/all.rss2"
);
$page->links[] = array (
'rel' => "up",
'title' => "Month's archive",
'href' => $_EP['url']."/archive/".date("Y/m")
);
$page->links[] = array (
'rel' => "prev",
'title' => "Last Month's archive",
'href' => $_EP['url']."/archive/".date("Y/m", strtotime("-1 month"))
);
$page->links[] = array (
'rel' => "first",
'title' => "First Month",
'href' => $_EP['url']."/archive/".date("Y/m",$_EP['began'])
);
$types = array("journal","article","writing");
$display = "full";
$limit = 14;
/*$page->content = '
<div id="twitter" class="twitter">
<span class="twitterInfo"><a href="http://www.twitter.com/aquarion">Current Status:</a> </span>
<q id="twitterQuote"><img src="/assets/images/ajax-loader.gif" width="15" height="15" border="0" alt=""></q>
<span id="twitterTime" class="time"></span>
</div>
';*/
#$page->content .= "<div class=\"columnheader\">".$page->image("/assets/aq10/images/twi.png", "That which is")."</div>\n";
$page->content .= buildIndex($types,$display,$limit);
//$page->content .= '<a href="/journal" class="more">More Journal Entries</a>';
//$page->template = "aq15-frontpage.phtml";
}
?>
Using a heavily customised version of Tom's PHPCode2ValidXHTML Thing