X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/c00b91e7b8738a6f6a6c61dddc44b532c0d131d2..e23ce7dc52392f928bf5879605da57e4bf7a7823:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 468de28..11e305e 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -34,48 +34,16 @@ if ($year) { $match .= "/19??"; $title .= " vóór 2000"; } + elseif (file_exists("$Page/.tags/$year")) { + $match .= "/.tags/$year"; + $title .= " met $year"; + } print "

$title

\n\n"; print placeholder_include('nieuws', [$match]); return 1; } -$html = ob_get_clean(); -printf(''."\n", - "/$Page/feed", - ' rel="alternate" title="Atom feed van nieuwsberichten" type="application/atom+xml"' -); -print $html; - -print '
'."\n\n"; - -foreach (array_reverse(glob("$Page/2???")) as $page) { - $year = basename($page, '.html'); - printf('

%s

'."\n", $page, $year); - printtoc($page); -} - -if ($pages = glob("$Page/19??/*.html")) { - printf('

%s

'."\n", "$Page/19", 'Eerder'); - printtoc($pages); -} - -print "
\n\n"; - -if ($replyform) { - print "

Melding rapporteren

\n"; - $_REQUEST['subject'] = 'melding'; - require 'contact.php'; -?> -
-

- - -

-
-'."\n"; }