?AlkantarClanX12
| Current Path : /home/rankinh/villavanille/wp-content/themes/villa-vanille/inc/mobile-header/ |
| Current File : /home/rankinh/villavanille/wp-content/themes/villa-vanille/inc/mobile-header/helper.php |
<?php
if ( ! function_exists( 'drew_load_page_mobile_header' ) ) {
/**
* Function which loads page template module
*/
function drew_load_page_mobile_header() {
// Include mobile header template
echo apply_filters( 'drew_filter_mobile_header_template', drew_get_template_part( 'mobile-header', 'templates/mobile-header' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
add_action( 'drew_action_page_header_template', 'drew_load_page_mobile_header' );
}
if ( ! function_exists( 'drew_register_mobile_navigation_menus' ) ) {
/**
* Function which registers navigation menus
*/
function drew_register_mobile_navigation_menus() {
$navigation_menus = apply_filters( 'drew_filter_register_mobile_navigation_menus', array( 'mobile-navigation' => esc_html__( 'Mobile Navigation', 'drew' ) ) );
if ( ! empty( $navigation_menus ) ) {
register_nav_menus( $navigation_menus );
}
}
add_action( 'drew_action_after_include_modules', 'drew_register_mobile_navigation_menus' );
}