X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..b3e01444d0f6253ae14d6223daa325686718fb63:/widget/nieuws.php?ds=inline
diff --git a/widget/nieuws.php b/widget/nieuws.php
index 977357e..c12efc8 100644
--- a/widget/nieuws.php
+++ b/widget/nieuws.php
@@ -17,7 +17,7 @@ function shownews($input, $limit = 1000)
print '
';
printf(
'
',
- $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);
-print getoutput();
+shownews($articles, @$Page->place['n'] ?: 5);
+$Page->raw = ob_get_clean();
+print $Page->render();