PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
general
/
dashboard
/
admin
<?php if ( ! function_exists( 'webon_core_add_general_options' ) ) { /** * Function that add general options for this module */ function webon_core_add_general_options( $page ) { if ( $page ) { $page->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_main_color', 'title' => esc_html__( 'Main Color', 'webon-core' ), 'description' => esc_html__( 'Choose the most dominant theme color', 'webon-core' ) ) ); $page->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' ) ) ); $page->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' ) ) ); $page->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' ) ) ) ); $page->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' ) ) ) ); $page->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' ) ) ) ); $page->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' ) ) ); $page->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( "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' ), ), ) ); $page->add_field_element( array( 'field_type' => 'color', 'name' => 'qodef_page_content_lines_color', 'title' => esc_html__('Grid Lines Color', 'webon-core'), ) ); $page->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' ) ) ); $page->add_field_element( array( 'field_type' => 'yesno', 'name' => 'qodef_boxed', 'title' => esc_html__( 'Boxed Layout', 'webon-core' ), 'description' => esc_html__( 'Set boxed layout', 'webon-core' ), 'default_value' => 'no' ) ); $boxed_section = $page->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( 'fixed' => esc_html__( 'Fixed', 'webon-core' ), 'scroll' => esc_html__( 'Scroll', 'webon-core' ) ), ) ); $page->add_field_element( array( 'field_type' => 'yesno', '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' => 'no' ) ); $passepartout_section = $page->add_section_element( array( 'name' => 'qodef_passepartout_section', 'title' => esc_html__( 'Passepartout Section', 'webon-core' ), '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' ) ) ) ); $page->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', false ), 'default_value' => '1100' ) ); // Hook to include additional options after module options do_action( 'webon_core_action_after_general_options_map', $page ); $page->add_field_element( array( 'field_type' => 'textarea', 'name' => 'qodef_custom_js', 'title' => esc_html__( 'Custom JS', 'webon-core' ), 'description' => esc_html__( 'Enter your custom JavaScript here', 'webon-core' ) ) ); } } add_action( 'webon_core_action_default_options_init', 'webon_core_add_general_options', webon_core_get_admin_options_map_position( 'general' ) ); }
[+]
..
[-] general-options.php
[edit]