edit/page: indicate edit replacements in data-dyn attributes
[minimedit.git] / widget / nieuws.php
index 0dc8d7dcc56c52062f70ba40bb7de67748c3f8da..c1b651a44853bd5ddb49c5383b7d0fb3bb4e4ab9 100644 (file)
@@ -3,6 +3,7 @@ if (!function_exists('shownews')) {
 function shownews($input, $limit = 1000)
 {
        if (!is_array($input)) $input = glob("$input/*.html");
+       print "<div>\n";
        foreach (array_reverse($input) as $filename) {
                $article = new ArchiveArticle($filename);
                print '<article class="left">';
@@ -24,6 +25,7 @@ function shownews($input, $limit = 1000)
 
                if (--$limit <= 0) break;
        }
+       print "</div>\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 "<div>\n";
                foreach (array_reverse(glob("$articles/2???")) as $page) {
                        $year = basename($page, '.html');
                        printf('<h3><a href="/%s">%s</a></h3>'."\n", $page, $year);
                        printtoc($page, 'gallery');
                }
+               print "</div>\n";
                return;
        }
        $articles .= '/????';