Location: PHPKode > projects > WB News > examples/example_archive.php
<?php

/*

	Archived News Display

*/

define('wbnews',true);
include "../global.php";
include $config['installdir']."/news.php";
include $config['installdir']."/archive.php";

$archive = new newsArchive($newsConfig);
$archive->archiveList(5);

if (isset($_GET['year']))
{
	$archive->displayNewsArticles();
	$archive->pagination();
}
?>
Return current item: WB News