X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f065f4739ae477d8877805463017f2e7b15e2db5..b3e01444d0f6253ae14d6223daa325686718fb63:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index 4f4fd45..c12efc8 100644 --- a/widget/nieuws.php +++ b/widget/nieuws.php @@ -17,7 +17,7 @@ function shownews($input, $limit = 1000) print '
'; printf( '

%s %s

', - $article->link, $article->title, $article->date + $article->link, $article->title, showdate($article->dateparts) ); print $article->story; print '
'; @@ -55,7 +55,7 @@ function printtoc($input, $class = FALSE) $articles = (ltrim($Page->path, '/') ?: 'nieuws'); if (strpos($articles, '/') === FALSE) { - if (@$Place['view'] === 'toc') { + if (@$Page->place['view'] === 'toc') { print "
\n"; foreach (array_reverse(glob("$articles/2???")) as $page) { $year = basename($page, '.html'); @@ -68,10 +68,11 @@ if (strpos($articles, '/') === FALSE) { $articles .= '/????'; } -if (@$Place['view'] === 'toc') { +if (@$Page->place['view'] === 'toc') { printtoc($articles); return; } ob_start(); -shownews($articles, @$Place['n'] ?: 5); +shownews($articles, @$Page->place['n'] ?: 5); +$Page->raw = ob_get_clean(); print $Page->render();