'.$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) { if ($child->key()==$url->slug()) { echo '
  • '; } else { echo '
  • '; } echo ''.$child->title().''; echo '
  • '; } echo '
'; } } ?>