Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
header
/
layouts
/
tabbed-split
/
File Content:
helper.php
<?php if ( ! function_exists( 'halstein_core_add_tabbed_split_header_global_option' ) ) { /** * This function set header type value for global header option map */ function halstein_core_add_tabbed_split_header_global_option( $header_layout_options ) { $header_layout_options['tabbed-split'] = array( 'image' => HALSTEIN_CORE_HEADER_LAYOUTS_URL_PATH . '/tabbed-split/assets/img/tabbed-split-header.png', 'label' => esc_html__( 'Tabbed Split', 'halstein-core' ), ); return $header_layout_options; } add_filter( 'halstein_core_filter_header_layout_option', 'halstein_core_add_tabbed_split_header_global_option' ); } if ( ! function_exists( 'halstein_core_register_tabbed_split_header_layout' ) ) { /** * Function which add header layout into global list * * @param array $header_layouts * * @return array */ function halstein_core_register_tabbed_split_header_layout( $header_layouts ) { $header_layouts['tabbed-split'] = 'HalsteinCore_Tabbed_Split_Header'; return $header_layouts; } add_filter( 'halstein_core_filter_register_header_layouts', 'halstein_core_register_tabbed_split_header_layout' ); } if ( ! function_exists( 'halstein_core_set_tabbed_split_header_area_responsive_styles' ) ) { /** * Function that generates module inline styles * * @param string $style * * @return string */ function halstein_core_set_tabbed_split_header_area_responsive_styles( $style ) { $styles = array(); $logo_holder_width = halstein_core_get_post_value_through_levels( 'qodef_tabbed_split_header_responsive_logo_holder_width' ); if ( ! empty( $logo_holder_width ) ) { $styles['width'] = intval( $logo_holder_width ) . 'vw'; } if ( ! empty( $styles ) ) { $style .= qode_framework_dynamic_style( '.qodef-header--tabbed-split #qodef-page-header .qodef-tabbed-header-center-wrapper', $styles ); } return $style; } add_filter( 'halstein_core_filter_add_responsive_1440_inline_style_in_footer', 'halstein_core_set_tabbed_split_header_area_responsive_styles' ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
assets
---
0755
dashboard
---
0755
templates
---
0755
class-halsteincore-tabbed-split-header.php
447 bytes
0644
helper.php
2044 bytes
0644
include.php
441 bytes
0644
N4ST4R_ID | Naxtarrr