From b2048f31627dab197dc5475a24409b36532c7deb Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 9 Nov 2015 12:04:55 -0500 Subject: [PATCH] Update mobile navigation Use same nav as side for the mobile --- functions.php | 25 +++++++++++++++++++------ parts/off-canvas-menu.php | 7 ++++--- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/functions.php b/functions.php index 57ef991..f64c285 100644 --- a/functions.php +++ b/functions.php @@ -212,7 +212,7 @@ function glm_get_header() { * @access public * @return void */ -function glm_side_menu() { +function glm_side_menu($mobile = false) { global $post; $sideMenu = $allMenu = $pageMenuId = array(); if (($locations = get_nav_menu_locations()) && isset($locations['top-bar'])) { @@ -257,12 +257,22 @@ function glm_side_menu() { $subs = $sideMenu[0]; } } - echo '

target) { - echo ' target="'.$pageHead->target.'"'; + if ($mobile) { + echo '

'; - echo ''; + } echo ''; } diff --git a/parts/off-canvas-menu.php b/parts/off-canvas-menu.php index 28d6ce8..86da63d 100644 --- a/parts/off-canvas-menu.php +++ b/parts/off-canvas-menu.php @@ -1,5 +1,6 @@ \ No newline at end of file + -- 2.17.1