X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/212c5051484f6ee08b95f284c133337896c42f41..1f8560a20d5d1aa8886688bd7553b8a8fd704fff:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index cf57dbc..4da5a8b 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -1,11 +1,20 @@ '.$article->date.''; + print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); + if ($article->image) { + $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x'); + } + if ($replyform) { + print placeholder_include('nieuws/replies'); + } return 1; } @@ -30,6 +39,13 @@ if ($year) { return 1; } +$html = ob_get_clean(); +printf(''."\n", + "/$Page/feed", + ' rel="alternate" title="Atom feed van nieuwsberichten" type="application/atom+xml"' +); +print $html; + print '
'."\n\n"; foreach (array_reverse(glob("$Page/2???")) as $page) { @@ -45,6 +61,20 @@ if ($pages = glob("$Page/19??/*.html")) { print "
\n\n"; +if ($replyform) { + print "

Melding rapporteren

\n"; + $_REQUEST['subject'] = 'melding'; + require 'contact.php'; +?> +
+

+ + +

+
+'."\n"; }