X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/7213175b8391e8f47f54096fada4fdc33d82b8a1..ea491f36c7f81ed231444ed5e4a76c52b03434ac:/widget/nieuws.php?ds=sidebyside
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('
'."\n", $page, $year);
printtoc($page, 'gallery');
}
+ print "
\n";
return;
}
$articles .= '/????';