From 212c5051484f6ee08b95f284c133337896c42f41 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 1 Aug 2018 00:41:05 +0200 Subject: [PATCH] nieuws: article lists in left layout with images --- nieuws.inc.php | 17 ++++++++++++----- nieuws/index.php | 2 -- 2 files changed, 12 insertions(+), 7 deletions(-) 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; } -- 2.30.0