', $ulclass, 1 );
}
endif; //automobile_add_page_menu_class
add_filter( 'wp_page_menu', 'automobile_add_page_menu_class' );
if ( ! function_exists( 'automobile_mobile_menus' ) ) :
/**
* This function loads Mobile Menus
*
* @get the data value from theme options
* @uses automobile_after action to add the code in the footer
*/
function automobile_mobile_menus() {
//Getting Ready to load options data
$options = automobile_get_theme_options();
// Header Left Mobile Menu(Always Primary in free version)
echo '';
if ( has_nav_menu( 'header-right' ) ) :
echo '';
endif;
// Check Header Top Menu
if ( has_nav_menu( 'header-top' ) ) :
echo '';
endif;
}
endif; //automobile_mobile_menus
add_action( 'automobile_after', 'automobile_mobile_menus', 20 );
if ( ! function_exists( 'automobile_mobile_header_nav_anchor' ) ) :
/**
* This function loads Mobile Menus Left Anchor
*
* @get the data value from theme options
* @uses automobile_header action to add in the Header
*/
function automobile_mobile_header_nav_anchor() {
//Getting Ready to load options data
$options = automobile_get_theme_options();
// Header Left Mobile Menu Anchor
if ( has_nav_menu( 'primary' ) ) {
$classes = "mobile-menu-anchor primary-menu";
}
else {
$classes = "mobile-menu-anchor page-menu";
}
?>