Kann mir hier jemand weiterhelfen? Vielen Dank vorab.
Codeauszug:
Code: Select all
$html = '<ul>';
$onlyPublished = true;
$parents = buildParentPages($onlyPublished);
foreach ($parents as $parent) {
$html .= '<li>';
$html .= '<a class="nav-link" href="' . $parent->slug() . '">' . $parent->title() . '</a>';
$html .= '</li>';
}
$html .= '<ul>';