PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
general
/
dashboard
/
meta-box
<?php if ( ! function_exists( 'webon_core_add_general_page_meta_box' ) ) { /** * Function that add general meta box options for this module * * @param object $page */ function webon_core_add_general_page_meta_box( $page ) { $general_tab = $page->add_tab_element( array( 'name' => 'tab-page', 'icon' => 'fa fa-cog', 'title' => esc_html__( 'Page Settings', 'webon-core' ), 'description' => esc_html__( 'General page layout settings', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_page_background_color', 'title' => esc_html__( 'Page Background Color', 'webon-core' ), 'description' => esc_html__( 'Set background color', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_page_background_image', 'title' => esc_html__( 'Page Background Image', 'webon-core' ), 'description' => esc_html__( 'Set background image', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_background_repeat', 'title' => esc_html__( 'Page Background Image Repeat', 'webon-core' ), 'description' => esc_html__( 'Set background image repeat', 'webon-core' ), 'options' => array( '' => esc_html__( 'Default', 'webon-core' ), 'no-repeat' => esc_html__( 'No Repeat', 'webon-core' ), 'repeat' => esc_html__( 'Repeat', 'webon-core' ), 'repeat-x' => esc_html__( 'Repeat-x', 'webon-core' ), 'repeat-y' => esc_html__( 'Repeat-y', 'webon-core' ) ) ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_background_size', 'title' => esc_html__( 'Page Background Image Size', 'webon-core' ), 'description' => esc_html__( 'Set background image size', 'webon-core' ), 'options' => array( '' => esc_html__( 'Default', 'webon-core' ), 'contain' => esc_html__( 'Contain', 'webon-core' ), 'cover' => esc_html__( 'Cover', 'webon-core' ) ) ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_background_attachment', 'title' => esc_html__( 'Page Background Image Attachment', 'webon-core' ), 'description' => esc_html__( 'Set background image attachment', 'webon-core' ), 'options' => array( '' => esc_html__( 'Default', 'webon-core' ), 'fixed' => esc_html__( 'Fixed', 'webon-core' ), 'scroll' => esc_html__( 'Scroll', 'webon-core' ) ) ) ); $general_tab->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_page_content_padding', 'title' => esc_html__( 'Page Content Padding', 'webon-core' ), 'description' => esc_html__( 'Set padding that will be applied for page content in format: top right bottom left (e.g. 10px 5px 10px 5px)', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_page_content_padding_mobile', 'title' => esc_html__( 'Page Content Padding Mobile', 'webon-core' ), 'description' => esc_html__( 'Set padding that will be applied for page content on mobile screens (1024px and below) in format: top right bottom left (e.g. 10px 5px 10px 5px)', 'webon-core' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_page_content_lines', 'title' => esc_html__('Grid Lines in Page Background', 'webon-core'), 'description' => esc_html__('If you would like to enable a set of lines in the page background, choose how many lines to display. The lines will be placed on the page grid.', 'webon-core'), 'options' => array( '' => esc_html__( 'Default', 'webon-core' ), "none" => esc_html__( "None", 'webon-core' ), "4" => esc_html__( '3 lines', 'webon-core' ), "5" => esc_html__( '4 lines', 'webon-core' ), "6" => esc_html__( '5 lines', 'webon-core' ), ), ) ); $general_tab->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_page_content_lines_color', 'title' => esc_html__('Grid Lines Color', 'webon-core'), ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_boxed', 'title' => esc_html__( 'Boxed Layout', 'webon-core' ), 'description' => esc_html__( 'Set boxed layout', 'webon-core' ), 'default_value' => '', 'options' => webon_core_get_select_type_options_pool( 'yes_no' ) ) ); $boxed_section = $general_tab->add_section_element( array( 'name' => 'qodef_boxed_section', 'title' => esc_html__( 'Boxed Layout Section', 'webon-core' ), 'dependency' => array( 'hide' => array( 'qodef_boxed' => array( 'values' => 'no', 'default_value' => '' ) ) ) ) ); $boxed_section->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_boxed_background_color', 'title' => esc_html__( 'Boxed Background Color', 'webon-core' ), 'description' => esc_html__( 'Set boxed background color', 'webon-core' ) ) ); $boxed_section->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_boxed_background_pattern', 'title' => esc_html__( 'Boxed Background Pattern', 'webon-core' ), 'description' => esc_html__( 'Set boxed background pattern', 'webon-core' ) ) ); $boxed_section->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_boxed_background_pattern_behavior', 'title' => esc_html__( 'Boxed Background Pattern Behavior', 'webon-core' ), 'description' => esc_html__( 'Set boxed background pattern behavior', 'webon-core' ), 'options' => array( '' => esc_html__( 'Default', 'webon-core' ), 'fixed' => esc_html__( 'Fixed', 'webon-core' ), 'scroll' => esc_html__( 'Scroll', 'webon-core' ) ), ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_passepartout', 'title' => esc_html__( 'Passepartout', 'webon-core' ), 'description' => esc_html__( 'Enabling this option will display a passepartout around website content', 'webon-core' ), 'default_value' => '', 'options' => webon_core_get_select_type_options_pool( 'yes_no' ) ) ); $passepartout_section = $general_tab->add_section_element( array( 'name' => 'qodef_passepartout_section', 'dependency' => array( 'hide' => array( 'qodef_passepartout' => array( 'values' => 'no', 'default_value' => '' ) ) ) ) ); $passepartout_section->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_passepartout_color', 'title' => esc_html__( 'Passepartout Color', 'webon-core' ), 'description' => esc_html__( 'Choose background color for passepartout', 'webon-core' ) ) ); $passepartout_section->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_passepartout_image', 'title' => esc_html__( 'Passepartout Background Image', 'webon-core' ), 'description' => esc_html__( 'Set background image for passepartout', 'webon-core' ) ) ); $passepartout_section->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_passepartout_size', 'title' => esc_html__( 'Passepartout Size', 'webon-core' ), 'description' => esc_html__( 'Enter size amount for passepartout', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px or %', 'webon-core' ) ) ) ); $passepartout_section->add_field_element( array( 'field_type' => 'text', 'name' => 'qodef_passepartout_size_responsive', 'title' => esc_html__( 'Passepartout Responsive Size', 'webon-core' ), 'description' => esc_html__( 'Enter size amount for passepartout for smaller screens (1024px and below)', 'webon-core' ), 'args' => array( 'suffix' => esc_html__( 'px or %', 'webon-core' ) ) ) ); $general_tab->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_content_width', 'title' => esc_html__( 'Initial Width of Content', 'webon-core' ), 'description' => esc_html__( 'Choose the initial width of content which is in grid (applies to pages set to "Default Template" and rows set to "In Grid")', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'content_width' ) ) ); $general_tab->add_field_element( array( 'field_type' => 'yesno', 'default_value' => 'no', 'name' => 'qodef_content_behind_header', 'title' => esc_html__( 'Always put content behind header', 'webon-core' ), 'description' => esc_html__( 'Enabling this option will put page content behind page header', 'webon-core' ), ) ); // Hook to include additional options after module options do_action( 'webon_core_action_after_general_page_meta_box_map', $general_tab ); } add_action( 'webon_core_action_after_general_meta_box_map', 'webon_core_add_general_page_meta_box', 9 ); add_action( 'webon_core_action_after_product_single_meta_box_map', 'webon_core_add_general_page_meta_box' ); } if ( ! function_exists( 'webon_core_add_general_page_meta_box_callback' ) ) { /** * Function that set current meta box callback as general callback functions * * @param array $callbacks * * @return array */ function webon_core_add_general_page_meta_box_callback( $callbacks ) { $callbacks['page'] = 'webon_core_add_general_page_meta_box'; return $callbacks; } add_filter( 'webon_core_filter_general_meta_box_callbacks', 'webon_core_add_general_page_meta_box_callback' ); }
[+]
..
[-] general-meta-box.php
[edit]
[-] page-meta-box.php
[edit]