From: Mischa POSLAWSKY Date: Tue, 31 Jul 2018 22:41:05 +0000 (+0200) Subject: nieuws: article lists in left layout with images X-Git-Tag: v3.6~21 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/212c5051484f6ee08b95f284c133337896c42f41 nieuws: article lists in left layout with images --- diff --git a/nieuws.inc.php b/nieuws.inc.php index 454c91c..57c53fc 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -53,15 +53,22 @@ function shownewsarticle($url, $link = TRUE, $title = NULL) function shownews($input, $limit = 1000) { if (!is_array($input)) $input = glob("$input/*.html"); - foreach (array_reverse($input) as $url) { - print "
"; + print '
\n\n"; if (--$limit <= 0) break; } + print "\n\n"; } function printtoc($input) diff --git a/nieuws/index.php b/nieuws/index.php index d6a85e7..cf57dbc 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -26,9 +26,7 @@ if ($year) { } print "

$title

\n\n"; - print '
'."\n\n"; shownews(glob($match.'*.html')); - print "
\n\n"; return 1; }