Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
hiroshi-core
/
inc
/
header
/
dashboard
/
meta-box
/
File Content:
header-meta-box.php
<?php if ( ! function_exists( 'hiroshi_core_add_page_header_meta_box' ) ) { /** * Function that add general meta box options for this module * * @param object $page */ function hiroshi_core_add_page_header_meta_box( $page ) { if ( $page ) { $header_tab = $page->add_tab_element( array( 'name' => 'tab-header', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Header Settings', 'hiroshi-core' ), 'description' => esc_html__( 'Header layout settings', 'hiroshi-core' ), ) ); $header_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_layout', 'title' => esc_html__( 'Header Layout', 'hiroshi-core' ), 'description' => esc_html__( 'Choose a header layout to set for your website', 'hiroshi-core' ), 'args' => array( 'images' => true ), 'options' => hiroshi_core_header_radio_to_select_options( apply_filters( 'hiroshi_core_filter_header_layout_option', array() ) ), ) ); $header_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_skin', 'title' => esc_html__( 'Header Skin', 'hiroshi-core' ), 'description' => esc_html__( 'Choose a predefined header style for header elements', 'hiroshi-core' ), 'options' => hiroshi_core_get_select_type_options_pool( 'header_skin' ), ) ); $header_tab->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_show_header_widget_areas', 'title' => esc_html__( 'Show Header Widget Areas', 'hiroshi-core' ), 'description' => esc_html__( 'Choose if you want to show or hide header widget areas', 'hiroshi-core' ), 'default_value' => 'yes', ) ); $custom_sidebars = hiroshi_core_get_custom_sidebars(); if ( ! empty( $custom_sidebars ) && count( $custom_sidebars ) > 1 ) { $section = $header_tab->add_section_element( array( 'name' => 'qodef_header_custom_widget_area_section', 'dependency' => array( 'show' => array( 'qodef_show_header_widget_areas' => array( 'values' => 'yes', 'default_value' => 'yes', ), ), ), ) ); $section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_custom_widget_area_one', 'title' => esc_html__( 'Choose Custom Header Widget Area One', 'hiroshi-core' ), 'description' => esc_html__( 'Choose custom widget area to display in header widget area one', 'hiroshi-core' ), 'options' => $custom_sidebars, ) ); $section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_custom_widget_area_two', 'title' => esc_html__( 'Choose Custom Header Widget Area Two', 'hiroshi-core' ), 'description' => esc_html__( 'Choose custom widget area to display in header widget area two', 'hiroshi-core' ), 'options' => $custom_sidebars, ) ); // Hook to include additional options after module options do_action( 'hiroshi_core_action_after_custom_widget_area_header_meta_map', $section, $custom_sidebars ); } // Hook to include additional options after module options do_action( 'hiroshi_core_action_after_page_header_meta_map', $header_tab, $custom_sidebars ); } } add_action( 'hiroshi_core_action_after_general_meta_box_map', 'hiroshi_core_add_page_header_meta_box' ); } if ( ! function_exists( 'hiroshi_core_add_general_header_meta_box_callback' ) ) { /** * Function that set current meta box callback as general callback functions * * @param array $callbacks * * @return array */ function hiroshi_core_add_general_header_meta_box_callback( $callbacks ) { $callbacks['header'] = 'hiroshi_core_add_page_header_meta_box'; return $callbacks; } add_filter( 'hiroshi_core_filter_general_meta_box_callbacks', 'hiroshi_core_add_general_header_meta_box_callback' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
header-meta-box.php
4061 bytes
0644
logo-meta-box.php
11314 bytes
0644
N4ST4R_ID | Naxtarrr