PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
header
/
layouts
/
minimal
/
dashboard
/
admin
<?php if ( ! function_exists( 'webon_core_add_minimal_header_options' ) ) { /** * Function that add additional header layout options * * @param object $page * @param array $general_header_tab */ function webon_core_add_minimal_header_options( $page, $general_header_tab ) { $section = $general_header_tab->add_section_element( array( 'name' => 'qodef_minimal_header_section', 'title' => esc_html__( 'Minimal Header', 'webon-core' ), 'dependency' => array( 'show' => array( 'qodef_header_layout' => array( 'values' => 'minimal', 'default_value' => '' ) ) ) ) ); $section->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_minimal_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', ) ); $section->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_minimal_header_height', 'title' => esc_html__( 'Header Height', 'webon-core' ), 'description' => esc_html__( 'Enter header height', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px', 'webon-core' ) ) ) ); $section->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_minimal_header_side_padding', 'title' => esc_html__( 'Header Side Padding', 'webon-core' ), 'description' => esc_html__( 'Enter side padding for header area', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px or %', 'webon-core' ) ) ) ); $section->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_minimal_header_background_color', 'title' => esc_html__( 'Header Background Color', 'webon-core' ), 'description' => esc_html__( 'Enter header background color', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px', 'webon-core' ) ) ) ); } add_action( 'webon_core_action_after_header_options_map', 'webon_core_add_minimal_header_options', 10, 2 ); }
[-] minimal-header-options.php
[edit]
[+]
..