Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
header
/
dashboard
/
meta-box
/
File Content:
header-meta-box.php
<?php if ( ! function_exists( 'halstein_core_add_page_header_meta_box' ) ) { /** * Function that add general meta box options for this module * * @param object $page */ function halstein_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', 'halstein-core' ), 'description' => esc_html__( 'Header layout settings', 'halstein-core' ), ) ); $header_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_layout', 'title' => esc_html__( 'Header Layout', 'halstein-core' ), 'description' => esc_html__( 'Choose a header layout to set for your website', 'halstein-core' ), 'args' => array( 'images' => true ), 'options' => halstein_core_header_radio_to_select_options( apply_filters( 'halstein_core_filter_header_layout_option', array() ) ), ) ); $header_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_skin', 'title' => esc_html__( 'Header Skin', 'halstein-core' ), 'description' => esc_html__( 'Choose a predefined header style for header elements', 'halstein-core' ), 'options' => array( '' => esc_html__( 'Default', 'halstein-core' ), 'none' => esc_html__( 'None', 'halstein-core' ), 'light' => esc_html__( 'Light', 'halstein-core' ), 'dark' => esc_html__( 'Dark', 'halstein-core' ), ), ) ); $header_tab->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_show_header_widget_areas', 'title' => esc_html__( 'Show Header Widget Areas', 'halstein-core' ), 'description' => esc_html__( 'Choose if you want to show or hide header widget areas', 'halstein-core' ), 'default_value' => 'yes', ) ); $custom_sidebars = halstein_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', 'halstein-core' ), 'description' => esc_html__( 'Choose custom widget area to display in header widget area one', 'halstein-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', 'halstein-core' ), 'description' => esc_html__( 'Choose custom widget area to display in header widget area two', 'halstein-core' ), 'options' => $custom_sidebars, ) ); $section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_header_custom_widget_area_three', 'title' => esc_html__( 'Choose Custom Header Widget Area Three', 'halstein-core' ), 'description' => esc_html__( 'Choose custom widget area to display in header widget area three', 'halstein-core' ), 'options' => $custom_sidebars, ) ); // Hook to include additional options after module options do_action( 'halstein_core_action_after_custom_widget_area_header_meta_map', $section, $custom_sidebars ); } // Hook to include additional options after module options do_action( 'halstein_core_action_after_page_header_meta_map', $header_tab, $custom_sidebars ); } } add_action( 'halstein_core_action_after_general_meta_box_map', 'halstein_core_add_page_header_meta_box' ); } if ( ! function_exists( 'halstein_core_add_general_header_meta_box_callback' ) ) { /** * Function that set current meta box callback as general callback functions * * @param array $callbacks * * @return array */ function halstein_core_add_general_header_meta_box_callback( $callbacks ) { $callbacks['header'] = 'halstein_core_add_page_header_meta_box'; return $callbacks; } add_filter( 'halstein_core_filter_general_meta_box_callbacks', 'halstein_core_add_general_header_meta_box_callback' ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
header-meta-box.php
4686 bytes
0644
logo-meta-box.php
13460 bytes
0644
N4ST4R_ID | Naxtarrr