From: Laury GvR Date: Fri, 28 Aug 2015 14:14:35 +0000 (-0400) Subject: Home link atop left off-canvas X-Git-Tag: v1.0.3^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0fc0391a5ce0a7dcd62f5a59f38ac224fb971609;p=WP-Themes%2Fnorthernlakes.git Home link atop left off-canvas --- diff --git a/functions.php b/functions.php index 63d8f8b..7628099 100644 --- a/functions.php +++ b/functions.php @@ -125,16 +125,6 @@ function glm_offcanvas_menu($parent = 0, $class = '') { $frontPageId = get_option('page_on_front'); $parents = array(); -// $args = array( -// 'post_type' => 'page', -// 'parent' => $parent, -// 'number' => '', -// 'exclude' => $frontPageId, -// 'post_status' => 'publish', -// 'sort_order' => 'asc', -// 'sort_column' => 'menu_order' -// ); -// $pages = get_pages($args); $pages = get_pages(array( 'post_type' => 'page', 'parent' => $parent, @@ -145,6 +135,7 @@ function glm_offcanvas_menu($parent = 0, $class = '') 'sort_column' => 'menu_order' )); echo ''."\n"; + echo '
  • Home
  • '."\n"; foreach ($pages as $page) { $childs = get_pages('child_of=' . $page->ID); if (count($childs) > 0) {