X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/177953fe451a3e393cf9d63bc977de11544bd395..3080864c4cd697bd083f9fd0315f0ffababd593d:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 506cd05..8a613c2 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -6,7 +6,13 @@ $replyform = $Page == 'melding' && !empty($User); if ($page and !is_numeric($page)) { $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL; - print shownewsarticle($Page.$Args, FALSE, $edit); + $article = new ArchiveArticle("$Page$Args.html"); + $Place[1] = ' '.$article->date.''; + print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); + if ($article->image) { + $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x'); + printf('

'."\n", $article->thumb('640x')); + } if ($replyform) { print '

Reacties

'."\n"; @@ -30,7 +36,7 @@ if ($page and !is_numeric($page)) { print '