';
if(PARENT_PAGES_LINK) {
echo '
';
} else {
echo '
'.$Parent->title().'
';
}
// Check if the parent has children
if( isset( $pagesParents[ $Parent->key() ] ) ) {
// Get the children of the parent
$children = $pagesParents[ $Parent->key() ];
echo '
';
// Foreach child
foreach( $children as $Child ) {
if( $Child->published() ) {
echo '';
}
}
echo '
';
}
echo '