From: Steve Sutton Date: Mon, 9 Nov 2015 17:04:55 +0000 (-0500) Subject: Update mobile navigation X-Git-Tag: V1.0.0^2~30 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b2048f31627dab197dc5475a24409b36532c7deb;p=WP-Themes%2FGovernmentEmmet.git Update mobile navigation Use same nav as side for the mobile --- 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 +