$html .= sprintf(' <small class="date">%s</small>', showdate($dateparts));
if ($class == 'gallery' and $article->img) {
$html = "<div>$html</div>";
- $html = sprintf('<img src="%s" />', $article->thumb(200)) . $html;
+ $html = sprintf('<img src="/%s" />', $article->thumb(200)) . $html;
}
$html = sprintf('<a href="/%s">%s</a>', $article->link, $html);
print "<li><article>$html</article></li>\n";
}
}
-$articles = (ltrim($Page->path, '/') ?: 'nieuws');
+$articles = $Page->place[0] ?? 'nieuws';
if (strpos($articles, '/') === FALSE) {
if (@$Page->place['view'] === 'toc') {
print "<div>\n";