From: Anthony Talarico Date: Thu, 3 Nov 2016 20:50:00 +0000 (-0400) Subject: moving off canvas regions of france menu between experiences and custom planning... X-Git-Tag: v1.0.17^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=2d4b4a52550a475b7eff9c35a84a5cb7481b4650;p=WP-Themes%2Ffrancejourneys.git moving off canvas regions of france menu between experiences and custom planning in the mobile menu --- diff --git a/js/app.js b/js/app.js index 071b096..f8002c9 100644 --- a/js/app.js +++ b/js/app.js @@ -150,4 +150,8 @@ $(document).ready(function () { if ($.trim($("#tab-itinerary_tab").text()).length === 0){ $(".itinerary_tab_tab").remove(); } + + var region_menu = $(".regions-menu").children('li'); + var off_canvas = $(".left-off-canvas-list").children('ul'); + region_menu.insertAfter(off_canvas.children('li:nth-child(2)')); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index d99eb9a..639f686 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -141,4 +141,8 @@ $(document).ready(function () { if ($.trim($("#tab-itinerary_tab").text()).length === 0){ $(".itinerary_tab_tab").remove(); } + + var region_menu = $(".regions-menu").children('li'); + var off_canvas = $(".left-off-canvas-list").children('ul'); + region_menu.insertAfter(off_canvas.children('li:nth-child(2)')); }); diff --git a/lib/navigation.php b/lib/navigation.php index 8eb789a..5390177 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -43,7 +43,7 @@ if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) { */ if ( ! function_exists( 'glm_regions_mobile_off_canvas' ) ) { function glm_regions_mobile_off_canvas() { - echo '
'; + echo '
'; echo glm_get_mobile_nav_menu( 'regions' ); echo '
'; }