function shownews($input, $limit = 1000)
{
if (!is_array($input)) $input = glob("$input/*.html");
+ print "<div>\n";
foreach (array_reverse($input) as $filename) {
$article = new ArchiveArticle($filename);
print '<article class="left">';
if (--$limit <= 0) break;
}
+ print "</div>\n";
}
function printtoc($input, $class = FALSE)
$articles = (ltrim($Args, '/') ?: 'nieuws');
if (strpos($articles, '/') === FALSE) {
if (@$Place['view'] === 'toc') {
+ print "<div>\n";
foreach (array_reverse(glob("$articles/2???")) as $page) {
$year = basename($page, '.html');
printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
printtoc($page, 'gallery');
}
+ print "</div>\n";
return;
}
$articles .= '/????';