PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
header
/
top-area
/
dashboard
/
meta
<?php if ( ! function_exists( 'webon_core_add_top_area_meta_options' ) ) { /** * Function that add additional header layout meta box options * * @param object $page */ function webon_core_add_top_area_meta_options( $page ) { $top_area_section = $page->add_section_element( array( 'name' => 'qodef_top_area_section', 'title' => esc_html__( 'Top Area', 'webon-core' ), 'dependency' => array( 'hide' => array( 'qodef_header_layout' => array( 'values' => webon_core_dependency_for_top_area_options(), 'default_value' => '' ) ) ) ) ); $top_area_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_top_area_header', 'title' => esc_html__( 'Top Area', 'webon-core' ), 'description' => esc_html__( 'Enable top area', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'yes_no' ) ) ); $top_area_options_section = $top_area_section->add_section_element( array( 'name' => 'qodef_top_area_options_section', 'title' => esc_html__( 'Top Area Options', 'webon-core' ), 'description' => esc_html__( 'Set desired values for top area', 'webon-core' ), 'dependency' => array( 'show' => array( 'qodef_top_area_header' => array( 'values' => 'yes', 'default_value' => 'no' ) ) ) ) ); $top_area_options_section -> add_field_element ( array ( 'field_type' => 'yesno', 'name' => 'qodef_top_area_header_in_grid', 'title' => esc_html__ ( 'Content in Grid', 'webon-core' ), 'description' => esc_html__ ( 'Set content to be in grid', 'webon-core' ), 'default_value' => 'no', ) ); $top_area_options_section->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_top_area_header_background_color', 'title' => esc_html__( 'Top Area Background Color', 'webon-core' ), 'description' => esc_html__( 'Choose top area background color', 'webon-core' ) ) ); $top_area_options_section->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_area_header_height', 'title' => esc_html__( 'Top Area Height', 'webon-core' ), 'description' => esc_html__( 'Enter top area height (default is 30px)', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px', 'webon-core' ) ) ) ); $top_area_options_section->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_top_area_header_side_padding', 'title' => esc_html__( 'Top Area Side Padding', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px or %', 'webon-core' ) ) ) ); } add_action( 'webon_core_action_after_page_header_meta_map', 'webon_core_add_top_area_meta_options', 20 ); }
[+]
..
[-] top-header-meta.php
[edit]