?AlkantarClanX12
| Current Path : /home/r/a/n/rankinh/villavanille/wp-content/plugins/drew-core/inc/header/layouts/divided/ |
| Current File : /home/r/a/n/rankinh/villavanille/wp-content/plugins/drew-core/inc/header/layouts/divided/helper.php |
<?php
if ( ! function_exists( 'drew_core_add_divided_header_global_option' ) ) {
/**
* This function set header type value for global header option map
*/
function drew_core_add_divided_header_global_option( $header_layout_options ) {
$header_layout_options['divided'] = array(
'image' => DREW_CORE_HEADER_LAYOUTS_URL_PATH . '/divided/assets/img/divided-header.png',
'label' => esc_html__( 'Divided', 'drew-core' ),
);
return $header_layout_options;
}
add_filter( 'drew_core_filter_header_layout_option', 'drew_core_add_divided_header_global_option' );
}
if ( ! function_exists( 'drew_core_register_divided_header_layout' ) ) {
/**
* Function which add header layout into global list
*
* @param array $header_layouts
*
* @return array
*/
function drew_core_register_divided_header_layout( $header_layouts ) {
$header_layout = array(
'divided' => 'DrewCore_Divided_Header',
);
$header_layouts = array_merge( $header_layouts, $header_layout );
return $header_layouts;
}
add_filter( 'drew_core_filter_register_header_layouts', 'drew_core_register_divided_header_layout' );
}
if ( ! function_exists( 'drew_core_register_divided_menu' ) ) {
/**
* Function which add additional main menu navigation into global list
*
* @param array $menus
*
* @return array
*/
function drew_core_register_divided_menu( $menus ) {
$menus['divided-menu-left-navigation'] = esc_html__( 'Divided Left Navigation', 'drew-core' );
$menus['divided-menu-right-navigation'] = esc_html__( 'Divided Right Navigation', 'drew-core' );
return $menus;
}
add_filter( 'drew_filter_register_navigation_menus', 'drew_core_register_divided_menu' );
}