adding a function to display the topbar rfp appearance menu into the off canvas so that
it only has to be updated in one place
echo '<div class="left-off-canvas-list">';
echo '<ul><li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
echo glm_get_mobile_nav_menu( $location );
+ echo glm_get_mobile_nav_menu( 'top-bar' );
echo '</ul></div>';
}
}
-
+if ( ! function_exists( 'glm_theme_additional_off_canvas' ) ) {
+ function glm_theme_additional_off_canvas($location) {
+ echo glm_get_mobile_nav_menu( $location );
+ }
+}
function glm_get_mobile_nav_menu( $theme_location )
{
$menu = wp_nav_menu(array(
<aside class="left-off-canvas-menu hide-for-large-up opensearchserver.ignore">
<?php glm_theme_mobile_off_canvas('mobile-menu'); ?>
+
<?php //get_template_part('parts/search-form');?>
<?php if (function_exists('glm_get_clientinfo_option')) :?>
<ul>