'.$parent->title().''; // Check if the parent page has children if ($parent->hasChildren()) { // Get the list of children $children = $parent->children(); echo '
    '; foreach ($children as $child) { echo '
  • '; echo ''.$child->title().''; echo '
  • '; } echo '
'; } } ?>