Here's a demo.
Here is a simple example of how to use Teh Life-feed:
<html>
<head><title>Example Implementation of teh-life-feed</title></head>
<body>
<?////////////////////////////////////>
require 'teh-life-feed.php';
$feeds[] = new Delicious( 'mxcl' );
$feeds[] = new LastFm( 'mxcl' );
$feeds[] = new LastFmJournal( 'mxcl' );
$feeds[] = new LastFmLovedTracks( 'mxcl' );
$feeds[] = new Flickr( 73643601 );
$feeds[] = new Twitter( 'mxcl' );
$entries_by_day = teh_life_feeds( $feeds );
/////////////////////////////////////?>
<ul>
<? foreach ($entries_by_day as $date_string => $entries_for_day): ?>
<li>
<?= $date_string ?>
<ul>
<? foreach ($entries_for_day as $entry): extract( $entry ) ?>
<li>
<code><?= date( 'H:i', $time ) ?></code>
<img src='<?= $favicon ?>'> <?= $content ?>
</li>
<? endforeach ?>
</ul>
</li>
<? endforeach ?>
</ul>
</body>
</html>
You can peruse the code before you download.
This page was last updated on 20th April, 2007. © , all content can be freely modified and republished under the terms of the Creative Commons. |