X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ae841e9139f7eb89f8f5fc2242d4b0d7c121418a..2e10347a695b92658507b8422eb9694412737361:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 374b9b0..678c3db 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -6,7 +6,12 @@ $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'); + } if ($replyform) { print '

Reacties

'."\n"; @@ -80,6 +85,10 @@ if ($year) { return 1; } +$html = ob_get_clean(); +printf(''."\n", "/$Page/feed"); +print $html; + print '
'."\n\n"; foreach (array_reverse(glob("$Page/2???")) as $page) {