Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
header
/
top-area
/
File Content:
helper.php
<?php if ( ! function_exists( 'hiroshi_core_dependency_for_top_area_options' ) ) { /** * Function which return dependency values for global module options * * @return array */ function hiroshi_core_dependency_for_top_area_options() { return apply_filters( 'hiroshi_core_filter_top_area_hide_option', $hide_dep_options = array() ); } } if ( ! function_exists( 'hiroshi_core_register_top_area_header_areas' ) ) { /** * Function which register widget areas for current module */ function hiroshi_core_register_top_area_header_areas() { register_sidebar( array( 'id' => 'qodef-top-area-left', 'name' => esc_html__( 'Header Top Area - Left', 'hiroshi-core' ), 'description' => esc_html__( 'Widgets added here will appear on the left side in top header area', 'hiroshi-core' ), 'before_widget' => '<div id="%1$s" class="widget %2$s qodef-top-bar-widget">', 'after_widget' => '</div>', ) ); register_sidebar( array( 'id' => 'qodef-top-area-right', 'name' => esc_html__( 'Header Top Area - Right', 'hiroshi-core' ), 'description' => esc_html__( 'Widgets added here will appear on the right side in top header area', 'hiroshi-core' ), 'before_widget' => '<div id="%1$s" class="widget %2$s qodef-top-bar-widget">', 'after_widget' => '</div>', ) ); } add_action( 'hiroshi_core_action_additional_header_widgets_area', 'hiroshi_core_register_top_area_header_areas' ); } if ( ! function_exists( 'hiroshi_core_set_top_area_header_inner_classes' ) ) { /** * Function that return classes for top header area * @param array $classes * * @return array */ function hiroshi_core_set_top_area_header_inner_classes( $classes ) { $alignment = hiroshi_core_get_post_value_through_levels( 'qodef_set_top_area_header_content_alignment' ); if ( ! empty( $alignment ) ) { $classes[] = 'qodef-alignment--' . esc_attr( $alignment ); } return $classes; } add_filter( 'hiroshi_core_filter_top_area_inner_class', 'hiroshi_core_set_top_area_header_inner_classes' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
dashboard
---
0755
templates
---
0755
class-hiroshicore-top-area.php
5611 bytes
0644
helper.php
2093 bytes
0644
include.php
289 bytes
0644
N4ST4R_ID | Naxtarrr