Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
header
/
layouts
/
vertical
/
File Content:
helper.php
<?php if ( ! function_exists( 'hiroshi_core_add_vertical_header_global_option' ) ) { /** * This function set header type value for global header option map */ function hiroshi_core_add_vertical_header_global_option( $header_layout_options ) { $header_layout_options['vertical'] = array( 'image' => HIROSHI_CORE_HEADER_LAYOUTS_URL_PATH . '/vertical/assets/img/vertical-header.png', 'label' => esc_html__( 'Vertical', 'hiroshi-core' ), ); return $header_layout_options; } add_filter( 'hiroshi_core_filter_header_layout_option', 'hiroshi_core_add_vertical_header_global_option' ); } if ( ! function_exists( 'hiroshi_core_register_vertical_header_layout' ) ) { /** * Function which add header layout into global list * * @param array $header_layouts * * @return array */ function hiroshi_core_register_vertical_header_layout( $header_layouts ) { $header_layouts['vertical'] = 'HiroshiCore_Vertical_Header'; return $header_layouts; } add_filter( 'hiroshi_core_filter_register_header_layouts', 'hiroshi_core_register_vertical_header_layout' ); } if ( ! function_exists( 'hiroshi_core_vertical_header_nav_menu_grid' ) ) { /** * Function which set grid class name for current header layout * * @param string $grid_class * * @return string */ function hiroshi_core_vertical_header_nav_menu_grid( $grid_class ) { $header = hiroshi_core_get_post_value_through_levels( 'qodef_header_layout' ); if ( 'vertical' === $header ) { return false; } return $grid_class; } add_filter( 'hiroshi_core_filter_drop_down_grid', 'hiroshi_core_vertical_header_nav_menu_grid' ); } if ( ! function_exists( 'hiroshi_core_register_vertical_menu' ) ) { /** * Function which add additional main menu navigation into global list * * @param array $menus * * @return array */ function hiroshi_core_register_vertical_menu( $menus ) { $menus['vertical-menu-navigation'] = esc_html__( 'Vertical Navigation', 'hiroshi-core' ); return $menus; } add_filter( 'hiroshi_filter_register_navigation_menus', 'hiroshi_core_register_vertical_menu' ); } if ( ! function_exists( 'hiroshi_core_vertical_header_hide_top_area' ) ) { /** * Function that set dependency option value for specific module layout * * @param array $options * * @return array */ function hiroshi_core_vertical_header_hide_top_area( $options ) { $options[] = 'vertical'; return $options; } add_filter( 'hiroshi_core_filter_top_area_hide_option', 'hiroshi_core_vertical_header_hide_top_area' ); } if ( ! function_exists( 'hiroshi_core_vertical_header_hide_scroll_appearance' ) ) { /** * Function that set dependency option value for specific module layout * * @param array $options * * @return array */ function hiroshi_core_vertical_header_hide_scroll_appearance( $options ) { $options[] = 'vertical'; return $options; } add_filter( 'hiroshi_core_filter_header_scroll_appearance_hide_option', 'hiroshi_core_vertical_header_hide_scroll_appearance' ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
dashboard
---
0755
templates
---
0755
class-hiroshicore-vertical-header.php
2668 bytes
0644
helper.php
3017 bytes
0644
include.php
408 bytes
0644
N4ST4R_ID | Naxtarrr