X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b04f76050d54c67844d5d4026993f6fab0edeae5..d634e557c4fbdb23d054be46377da7cafb68d7f4:/widget/nieuws.php?ds=inline
diff --git a/widget/nieuws.php b/widget/nieuws.php
index 7185036..dd019a3 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 '
';
@@ -44,7 +44,7 @@ function printtoc($input, $class = FALSE)
$html .= sprintf(' %s', showdate($dateparts));
if ($class == 'gallery' and $article->img) {
$html = "$html
";
- $html = sprintf('', $article->thumb(200)) . $html;
+ $html = sprintf('', $article->thumb(200)) . $html;
}
$html = sprintf('%s', $article->link, $html);
print "$html\n";
@@ -53,7 +53,7 @@ function printtoc($input, $class = FALSE)
}
}
-$articles = (ltrim($Page->path, '/') ?: 'nieuws');
+$articles = $Page->place[0] ?? 'nieuws';
if (strpos($articles, '/') === FALSE) {
if (@$Page->place['view'] === 'toc') {
print "\n";
@@ -74,4 +74,5 @@ if (@$Page->place['view'] === 'toc') {
}
ob_start();
shownews($articles, @$Page->place['n'] ?: 5);
+$Page->raw = ob_get_clean();
print $Page->render();