X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/50f9b29cc21f5adef555d3cf21940124ceadb0eb..51287a6c12a8df8fc850ce438be668b027fd2c00:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index 9cf427c..dd019a3 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 '
'; @@ -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";