From: Mischa POSLAWSKY Date: Fri, 8 Nov 2019 00:02:50 +0000 (+0100) Subject: issue: feed subpage for atom xml formatting X-Git-Tag: v4.2~13 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/2e1116b155ec54beb89153f37a5f0de90212815c issue: feed subpage for atom xml formatting Feature of news articles lost during database transition. Include adapted from nieuws/feed/index.php for different object structure (to be merged again later if possible). --- diff --git a/issue/feed.inc.php b/issue/feed.inc.php new file mode 100644 index 0000000..1c4202e --- /dev/null +++ b/issue/feed.inc.php @@ -0,0 +1,29 @@ +'; +$siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST']; +?> + + + Lijtweg.nl + Meldingen + / + + + Lijtweg +fetch()) { +?> + + id}/{$row->link}" ?> + id}/{$row->link}" ?>" /> + <?= $row->subject ?> + created ?> + updated ?> + + + +title = "Issue #$id"; $Issue = $Db->query( @@ -60,6 +60,10 @@ if (isset($_GET['open'])) { $sql .= ' ORDER BY closed IS NOT NULL, updated DESC'; $query = $Db->query($sql, [$Page]); +if ($id == 'feed') { + require 'issue/feed.inc.php'; +} + ob_start(); print '