File: /home/lesanew/www/wp-content/plugins/neobeat-core/inc/header/layouts/vertical/helper.php
<?php
if ( ! function_exists( 'neobeat_core_add_vertical_header_global_option' ) ) {
/**
* This function set header type value for global header option map
*/
function neobeat_core_add_vertical_header_global_option( $header_layout_options ) {
$header_layout_options['vertical'] = array(
'image' => NEOBEAT_CORE_HEADER_LAYOUTS_URL_PATH . '/vertical/assets/img/vertical-header.png',
'label' => esc_html__( 'Vertical', 'neobeat-core' )
);
return $header_layout_options;
}
add_filter( 'neobeat_core_filter_header_layout_option', 'neobeat_core_add_vertical_header_global_option' );
}
if ( ! function_exists( 'neobeat_core_register_vertical_header_layout' ) ) {
function neobeat_core_register_vertical_header_layout( $header_layouts ) {
$header_layout = array(
'vertical' => 'VerticalHeader'
);
$header_layouts = array_merge( $header_layouts, $header_layout );
return $header_layouts;
}
add_filter( 'neobeat_core_filter_register_header_layouts', 'neobeat_core_register_vertical_header_layout' );
}
if ( ! function_exists( 'neobeat_core_vertical_header_hide_top_area' ) ) {
function neobeat_core_vertical_header_hide_top_area( $array ) {
$array[] = 'vertical';
return $array;
}
add_filter( 'neobeat_core_filter_top_area_hide_option', 'neobeat_core_vertical_header_hide_top_area' );
}
if ( ! function_exists( 'neobeat_core_vertical_header_nav_menu_grid' ) ) {
function neobeat_core_vertical_header_nav_menu_grid( $grid_class ) {
$header = neobeat_core_get_post_value_through_levels('qodef_header_layout');
if( $header == 'vertical' ) {
return false;
}
return $grid_class;
}
add_filter( 'neobeat_core_filter_drop_down_grid', 'neobeat_core_vertical_header_nav_menu_grid' );
}
if ( ! function_exists( 'neobeat_core_register_vertical_menu' ) ) {
function neobeat_core_register_vertical_menu( $menus ) {
$menus['vertical-menu-navigation'] = esc_html__( 'Vertical Navigation', 'neobeat-core' );
return $menus;
}
add_filter( 'neobeat_filter_register_navigation_menus', 'neobeat_core_register_vertical_menu' );
}