From: Steve Sutton Date: Tue, 18 Oct 2016 19:00:35 +0000 (-0400) Subject: Update menu again X-Git-Tag: v1.0.0^2~37 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9a53ed060a79746c13d88daf4e14d23c602ebeb5;p=WP-Themes%2Fharborcountry.git Update menu again Offcanvas update for when to output the home item. --- diff --git a/lib/navigation.php b/lib/navigation.php index 13caab2..7c319b7 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -123,7 +123,9 @@ function glm_page_menu($parent = 0, $class = '',$page_ids = []) } $pages = get_pages($args); echo ''."\n"; - echo '
  • Home
  • '; + if ( $parent === 0 ) { + echo '
  • Home
  • '; + } foreach ($pages as $page) { $childs = get_pages('child_of=' . $page->ID); if (count($childs) > 0) {