nieuws/feed: atom content type and link attributes
[minimedit.git] / nieuws.php
index 157986cfea7eac64baa31bffc350df81d53c557c..fda142e62c50985599785298f8d1bb1be22077ae 100644 (file)
@@ -1,19 +1,6 @@
 <?php
-include 'nieuws.inc.php';
-
-if ($Args) {
-       $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
-       print shownewsarticle($Args, FALSE, $edit);
-       return;
-}
-
-ob_clean();
-print "<h2>Nieuwsarchief</h2>\n\n";
-
-print '<div id="news">'."\n\n";
-shownews($Page, 20);
-print "</div>\n\n";
-
-if (!empty($User['admin'])) {
-       print '<script src="/nieuws/edit.js"></script>'."\n";
-}
+include_once 'nieuws.inc.php';
+$articles = (ltrim($Args, '/') ?: 'nieuws') . '/????';
+ob_start();
+shownews($articles, @$Place['n'] ?: 5);
+print getoutput();