From 2d4b4a52550a475b7eff9c35a84a5cb7481b4650 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 3 Nov 2016 16:50:00 -0400 Subject: [PATCH] moving off canvas regions of france menu between experiences and custom planning in the mobile menu --- js/app.js | 4 ++++ js/custom/pageSetup.js | 4 ++++ lib/navigation.php | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) 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 '
'; } -- 2.17.1