X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/7213175b8391e8f47f54096fada4fdc33d82b8a1..d3ed59c2753c2babd5aa9a1c5e0109c644904ba8:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index 0dc8d7d..c1b651a 100644 --- a/widget/nieuws.php +++ b/widget/nieuws.php @@ -3,6 +3,7 @@ if (!function_exists('shownews')) { function shownews($input, $limit = 1000) { if (!is_array($input)) $input = glob("$input/*.html"); + print "
\n"; foreach (array_reverse($input) as $filename) { $article = new ArchiveArticle($filename); print '
'; @@ -24,6 +25,7 @@ function shownews($input, $limit = 1000) if (--$limit <= 0) break; } + print "
\n"; } function printtoc($input, $class = FALSE) @@ -54,11 +56,13 @@ function printtoc($input, $class = FALSE) $articles = (ltrim($Args, '/') ?: 'nieuws'); if (strpos($articles, '/') === FALSE) { if (@$Place['view'] === 'toc') { + print "
\n"; foreach (array_reverse(glob("$articles/2???")) as $page) { $year = basename($page, '.html'); printf('

%s

'."\n", $page, $year); printtoc($page, 'gallery'); } + print "
\n"; return; } $articles .= '/????';