Location: PHPKode > projects > Zort > zort-1.1.0/examples/config-medium.php
<?
/*
 * This example sets up two pages, one with two categories and one
 * without any categories.
 */


// First we start the "Geek Feeds" page
$zort->page('Geek Feeds');

// Now we add a category called "Geek" and add some feeds to it
$zort->cat('Geek');
$zort->feed(
	'http://www.theregister.co.uk/excerpts.rss',
	'http://www.osnews.com/files/recent.rdf',
	'http://linuxtoday.com/biglt.rss',
	'http://www.linuxjournal.com/node/feed',
	'http://slashdot.org/index.rss'
);

// Now we add an "Other" category
$zort->cat('Other');
$zort->feed(
	'http://slumbering.lungfish.com/index.php?p=rss',
	'http://www.livejournal.com/users/scottbateman/data/rss'
);

// Now we start a new page called "New Feeds."  A user visiting
// the Zort webpage will have to click on "News Feeds" to view these
// feeds, they won't be available on the main page.  Note that we
// don't have to define a category if we don't want to.
$zort->page('News Feeds');
$zort->feed(
	'http://news.bbc.co.uk/rss/newsonline_world_edition/front_page/rss091.xml',
    'http://rss.cnn.com/rss/cnn_topstories.rss',
	'http://www.nasa.gov/rss/breaking_news.rss'
);

?>
Return current item: Zort