0) { foreach ($pages_list as $page) { if (trim($page['parent']) !== '') $parent = $page['parent'].'/'; else $parent = ''; if (trim($page['parent']) !== '') { echo '
      '; } echo '
    • '.$page['title'].'
    • '; if (trim($page['parent']) !== '') { echo '
    '; } } if (count($components) == 0) { echo '
      '; } } // Display components if (count($components) > 0) { if (count($pages_list) == 0) { echo '
        '; } foreach ($components as $component) { echo '
      • '.__(ucfirst($component), $component).'
      • '; } echo '
      '; } ?>