%PDF- %PDF-
Direktori : /var/www/html/higroup/wp-content/themes/evenex/devmonsta/options/ |
Current File : /var/www/html/higroup/wp-content/themes/evenex/devmonsta/options/customizer.php |
<?php class Customizer extends \Devmonsta\Libs\Customizer { public function register_controls() { /** * Add parent panels */ include_once(get_template_directory( ) . '/core/helpers/functions/global.php'); $this->add_panel([ 'id' => 'xs_theme_option_panel', 'priority' => 0, 'theme_supports' => '', 'title' => esc_html__('Theme settings', 'evenex'), 'description' => esc_html__('Theme options panel', 'evenex'), ]); /** * General settings here */ $this->add_section([ 'id' => 'general_settings_section', 'title' => esc_html__('Optional Settings', 'evenex'), 'panel' => 'xs_theme_option_panel', 'priority' => 20, ]); $this->add_control([ 'id' => 'general_main_logo', 'type' => 'media', 'section' => 'general_settings_section', 'label' => esc_html__('Main Logo', 'evenex'), 'description' => esc_html__( 'This is default logo. Our most of the menu built with elemnetsKit header builder. Go to header settings->Header builder enable-> and click "edit header content" to change the logo', 'evenex' ), ]); $this->add_control([ 'id' => 'general_footer_logo', 'type' => 'media', 'section' => 'general_settings_section', 'label' => esc_html__('Footer Logo', 'evenex'), 'description' => esc_html__( 'This is default footer logo. Our most of the menu built with elemnetsKit footer builder. Go to footer settings->Footer builder enable-> and click "edit footer content" to change the logo', 'evenex' ), ]); /** * Enable grid line animation */ $this->add_control([ 'id' => 'xs_grid_line_parallax_animation', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Enable Grid Line Animation?', 'evenex'), 'desc' => esc_html__('Do you want to enable grid line animation ?', 'evenex'), 'section' => 'general_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); /** * Enable cursor follower */ $this->add_control([ 'id' => 'xs_cursor_follower', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Enable Cursor Follower?', 'evenex'), 'desc' => esc_html__('Do you want to enable cursor follower?', 'evenex'), 'section' => 'general_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); /** * Enbale dark and light mode */ $this->add_control([ 'id' => 'enable_dark_and_light_mode', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Dark and light', 'evenex'), 'section' => 'general_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); /** * Header settings here */ $this->add_section([ 'id' => 'xs_header_settings_section', 'title' => esc_html__('Header Settings', 'evenex'), 'panel' => 'xs_theme_option_panel', 'priority' => 10, ]); /** * Header builder switch here */ $this->add_control([ 'id' => 'header_builder_enable', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Header builder Enable ?', 'evenex'), 'desc' => esc_html__('Do you want to enable n in header ?', 'evenex'), 'section' => 'xs_header_settings_section', 'attr' => ['class' => 'xs_header_builder_switch'], 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'header_builder_select', 'type' => 'select', // 'value' => '1', 'label' => esc_html__('Header', 'evenex'), 'section' => 'xs_header_settings_section', 'choices' => evenex_ekit_headers(), 'attr' => ['class' => 'xs_header_builder_select'], 'conditions' => [ [ 'control_name' => 'header_builder_enable', 'operator' => '==', 'value' => "yes", ] ], ]); $this->add_control([ 'id' => 'header_builder_select_html', 'section' => 'xs_header_settings_section', 'type' => 'html', 'value' => '<h2 class="header_builder_edit"><a class="xs_builder_edit_link" style="text-transform: uppercase; color:green" target="_blank" href="#">'. esc_html('Edit content here.'). '</a><h2><h3><a style="text-transform: uppercase; color:#17a2b8" target="_blank" href="https://support.xpeedstudio.com/knowledgebase/customize-carrental-header-and-footer-builder/">'. esc_html__('How to edit header', 'evenex'). '</a><h3>', 'attr' => ['class' => 'xs_header_builder_html'], 'conditions' => [ [ 'control_name' => 'header_builder_enable', 'operator' => '==', 'value' => "yes", ] ], ]); $this->add_control([ 'id' => 'header_nav_sticky', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Sticky header', 'evenex'), 'desc' => esc_html__('Do you want to enable sticky nav?', 'evenex'), 'section' => 'xs_header_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'header_nav_search_section', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Search button show', 'evenex'), 'desc' => esc_html__('Do you want to show search button in header?', 'evenex'), 'section' => 'xs_header_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'header_quota_button', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Show Quote button', 'evenex'), 'section' => 'xs_header_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'header_quota_text', 'type' => 'text', 'label' => esc_html__('Quote text', 'evenex'), 'description' => esc_html__('Navigation quote text.', 'evenex'), 'default' => esc_html__('Get a quote', 'evenex'), 'section' => 'xs_header_settings_section', 'conditions' => [ [ 'control_name' => 'header_quota_button', 'operator' => '==', 'value' => "yes", ] ], ]); $this->add_control([ 'id' => 'header_quota_url', 'type' => 'url', 'label' => esc_html__('Quote link', 'evenex'), 'description' => esc_html__('Navigation quote link.', 'evenex'), 'default' => esc_url('#'), 'section' => 'xs_header_settings_section', 'conditions' => [ [ 'control_name' => 'header_quota_button', 'operator' => '==', 'value' => "yes", ] ], ]); /** * Banner settings here */ $this->add_panel([ 'id' => 'banner_settings_section', 'title' => esc_html__( 'Banner settings', "evenex" ), 'panel' => 'xs_theme_option_panel', ]); /** * page banner panel */ $this->add_section([ 'id' => 'banner_page_settings', 'title' => esc_html__( 'Page banner', "evenex" ), 'panel' => 'banner_settings_section', ]); /** * page banner control start here */ $this->add_control([ 'id' => 'page_show_banner', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show banner?', 'evenex'), 'desc' => esc_html__('Show or hide the banner', 'evenex'), 'section' => 'banner_page_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'page_show_breadcrumb', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Show Breadcrumb?', 'evenex'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'evenex'), 'section' => 'banner_page_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'page_banner_title', 'type' => 'text', 'label' => esc_html__('Banner Title', 'evenex'), 'section' => 'banner_page_settings', ]); $this->add_control([ 'id' => 'page_banner_sub_title', 'type' => 'text', 'label' => esc_html__('Banner Sub Title', 'evenex'), 'section' => 'banner_page_settings', ]); $this->add_control([ 'id' => 'page_banner_title_color', 'section' => 'banner_page_settings', 'type' => 'color-picker', 'default' => '#FFFFFF', 'label' => esc_html__('Title Color', 'evenex'), ]); $this->add_control([ 'id' => 'banner_page_image', 'type' => 'media', 'section' => 'banner_page_settings', 'label' => esc_html__('Banner Background', 'evenex'), ]); /** * blog banner panel */ $this->add_section([ 'id' => 'banner_blog_settings', 'title' => esc_html__( 'Blog banner', "evenex" ), 'panel' => 'banner_settings_section', ]); /** * blog banner control start here */ $this->add_control([ 'id' => 'blog_show_banner', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show banner?', 'evenex'), 'desc' => esc_html__('Show or hide the banner', 'evenex'), 'section' => 'banner_blog_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_show_breadcrumb', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Show Breadcrumb?', 'evenex'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'evenex'), 'section' => 'banner_blog_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_banner_title', 'type' => 'text', 'default' => esc_html__( 'Blog', 'evenex' ), 'label' => esc_html__('Banner Title', 'evenex'), 'section' => 'banner_blog_settings', ]); $this->add_control([ 'id' => 'blog_banner_sub_title', 'type' => 'text', 'label' => esc_html__('Banner Sub Title', 'evenex'), 'section' => 'banner_blog_settings', ]); $this->add_control([ 'id' => 'blog_banner_title_color', 'section' => 'banner_blog_settings', 'type' => 'color-picker', 'default' => '#FFFFFF', 'label' => esc_html__('Title Color', 'evenex'), ]); $this->add_control([ 'id' => 'banner_blog_image', 'type' => 'media', 'section' => 'banner_blog_settings', 'label' => esc_html__('Banner Background', 'evenex'), ]); /** * blog single banner panel */ $this->add_section([ 'id' => 'banner_blog_single_settings', 'title' => esc_html__( 'Blog single banner', "evenex" ), 'panel' => 'banner_settings_section', ]); /** * blog banner single control start here */ $this->add_control([ 'id' => 'blog_single_show_banner', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show banner?', 'evenex'), 'desc' => esc_html__('Show or hide the banner', 'evenex'), 'section' => 'banner_blog_single_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_single_show_breadcrumb', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Show Breadcrumb?', 'evenex'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'evenex'), 'section' => 'banner_blog_single_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_single_banner_title_color', 'section' => 'banner_blog_single_settings', 'type' => 'color-picker', 'default' => '#FFFFFF', 'label' => esc_html__('Title Color', 'evenex'), ]); $this->add_control([ 'id' => 'banner_blog_single_image', 'type' => 'media', 'section' => 'banner_blog_single_settings', 'label' => esc_html__('Banner Background', 'evenex'), ]); /** * speaker banner panel */ $this->add_section([ 'id' => 'banner_speaker_single_settings', 'title' => esc_html__( 'Speaker banner', "evenex" ), 'panel' => 'banner_settings_section', ]); /** * speaker banner control start here */ $this->add_control([ 'id' => 'speaker_single_show_banner', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show banner?', 'evenex'), 'desc' => esc_html__('Show or hide the banner', 'evenex'), 'section' => 'banner_speaker_single_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'speaker_single_show_breadcrumb', 'type' => 'switcher', 'default' => 'right-choice', 'label' => esc_html__('Show Breadcrumb?', 'evenex'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'evenex'), 'section' => 'banner_speaker_single_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'speaker_single_banner_title', 'type' => 'text', 'default' => esc_html__( 'Speaker', 'evenex' ), 'label' => esc_html__('Speaker Single Banner Title', 'evenex'), 'section' => 'banner_speaker_single_settings', ]); $this->add_control([ 'id' => 'speaker_single_banner_title_color', 'section' => 'banner_speaker_single_settings', 'type' => 'color-picker', 'default' => '#FFFFFF', 'label' => esc_html__('Title Color', 'evenex'), ]); $this->add_control([ 'id' => 'speaker_blog_single_image', 'type' => 'media', 'section' => 'banner_speaker_single_settings', 'label' => esc_html__('Banner Background', 'evenex'), ]); /** * Eventin settings here */ $this->add_panel([ 'id' => 'eventin_settings_section', 'title' => esc_html__( 'Eventin settings', "evenex" ), 'panel' => 'xs_theme_option_panel', ]); /** * Eventin search page banner panel */ $this->add_section([ 'id' => 'eventin_search_banner_page_settings', 'title' => esc_html__( 'Search page banner', "evenex" ), 'panel' => 'eventin_settings_section', ]); /** * eventin search page banner control start here */ $this->add_control([ 'id' => 'eventin_search_page_show_banner', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show banner?', 'evenex'), 'desc' => esc_html__('Show or hide the banner', 'evenex'), 'section' => 'eventin_search_banner_page_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'eventin_search_page_show_search_form', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Searchform', 'evenex'), 'desc' => esc_html__('Show or hide the searchform', 'evenex'), 'section' => 'eventin_search_banner_page_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'eventin_search_page_show_breadcrumb', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Breadcrumb?', 'evenex'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'evenex'), 'section' => 'eventin_search_banner_page_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); // $this->add_control([ // 'id' => 'eventin_search_page_banner_title', // 'type' => 'text', // 'label' => esc_html__('Banner Title', 'evenex'), // 'section' => 'eventin_search_banner_page_settings', // ]); // $this->add_control([ // 'id' => 'eventin_search_page_banner_sub_title', // 'type' => 'text', // 'label' => esc_html__('Banner Sub Title', 'evenex'), // 'section' => 'eventin_search_banner_page_settings', // ]); $this->add_control([ 'id' => 'eventin_search_page_banner_title_color', 'section' => 'eventin_search_banner_page_settings', 'type' => 'color-picker', 'default' => '#FFFFFF', 'label' => esc_html__('Title Color', 'evenex'), ]); $this->add_control([ 'id' => 'eventin_search_banner_page_image', 'type' => 'media', 'section' => 'eventin_search_banner_page_settings', 'label' => esc_html__('Banner Background', 'evenex'), ]); /** * Eventin search page settings */ $this->add_section([ 'id' => 'eventin_search_page_settings', 'title' => esc_html__( 'Search page settings', "evenex" ), 'panel' => 'eventin_settings_section', ]); $this->add_control([ 'id' => 'eventin_search__sidebar', 'type' => 'select', 'value' => '3', 'label' => esc_html__('Sidebar', 'evenex'), 'section' => 'eventin_search_page_settings', 'choices' => [ '1' => esc_html__('No sidebar', 'evenex'), '2' => esc_html__('Left Sidebar', 'evenex'), '3' => esc_html__('Right Sidebar', 'evenex'), ], ]); $this->add_control([ 'id' => 'eventin_search__column', 'type' => 'select', 'value' => '4', 'label' => esc_html__('Column', 'evenex'), 'section' => 'eventin_search_page_settings', 'choices' => [ '3' => esc_html__( '4 Column ', 'evenex' ), '4' => esc_html__( '3 Column', 'evenex' ), '6' => esc_html__( '2 Column', 'evenex' ), ], ]); $this->add_control([ 'id' => 'eventin_search_page_with_ajax', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Ajax Search Enable?', 'evenex'), 'section' => 'eventin_search_page_settings', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); /** * Typography settings here */ $this->add_section([ 'id' => 'typography_settings_section', 'title' => esc_html__('Style settings', 'evenex'), 'panel' => 'xs_theme_option_panel', 'priority' => 10, ]); /** * body background control */ $this->add_control([ 'id' => 'style_body_bg', 'label' => esc_html__('Body background', 'evenex'), 'type' => 'color-picker', 'section' => 'typography_settings_section', 'default' => '#FFFFFF', ]); /** * primary color control */ $this->add_control([ 'id' => 'style_primary', 'label' => esc_html__('Primary color', 'evenex'), 'type' => 'color-picker', 'section' => 'typography_settings_section', 'default' => '#E54220', ]); /** * secondary color control */ $this->add_control([ 'id' => 'secondary_color', 'label' => esc_html__('Secondary color', 'evenex'), 'type' => 'color-picker', 'section' => 'typography_settings_section', 'default' => '#041A57', ]); /** * Control for body Typography Input */ $this->add_control([ 'id' => 'body_font', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Archivo', 'weight' => 400, 'size' => 16, 'line_height' => 26, 'color' => '#404040', 'letter_spacing' => 0 ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Body Typhography', 'evenex'), ]); /** * Control for H1 Typography Input */ $this->add_control([ 'id' => 'heading_font_one', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Poppins', 'weight' => 700, 'size' => 36, ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading H1 Typhography', 'evenex'), ]); /** * Control for H2 Typography Input */ $this->add_control([ 'id' => 'heading_font_two', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Poppins', 'weight' => 700, 'size' => 30, ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading H2 Typhography', 'evenex'), ]); /** * Control for H3 Typography Input */ $this->add_control([ 'id' => 'heading_font_three', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Poppins', 'weight' => 700, 'size' => 24, ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading H3 Typhography', 'evenex'), ]); /** * Control for H4 Typography Input */ $this->add_control([ 'id' => 'heading_font_four', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Poppins', 'weight' => 700, 'size' => 18, ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading H4 Typhography', 'evenex'), ]); /** * Control for H5 Typography Input */ $this->add_control([ 'id' => 'heading_font_five', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Poppins', 'weight' => 700, 'size' => 16, ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading H5 Typhography', 'evenex'), ]); /** * Control for H6 Typography Input */ $this->add_control([ 'id' => 'heading_font_six', 'section' => 'typography_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Poppins', 'weight' => 700, 'size' => 14, ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading H6 Typhography', 'evenex'), ]); /** * Blog settings here */ $this->add_section([ 'id' => 'blog_settings_section', 'title' => esc_html__('Blog settings', 'evenex'), 'panel' => 'xs_theme_option_panel', 'priority' => 10, ]); /** * Blog settings body controls here */ $this->add_control([ 'id' => 'blog_sidebar', 'type' => 'select', 'value' => '3', 'label' => esc_html__('Sidebar', 'evenex'), 'section' => 'blog_settings_section', 'choices' => [ '1' => esc_html__('No sidebar', 'evenex'), '2' => esc_html__('Left Sidebar', 'evenex'), '3' => esc_html__('Right Sidebar', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_author', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Blog author', 'evenex'), 'desc' => esc_html__('Do you want to show blog author?', 'evenex'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_related_post', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Blog related post', 'evenex'), 'desc' => esc_html__('Do you want to show single blog related post?', 'evenex'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'blog_related_post_number', 'type' => 'text', 'label' => esc_html__('Related post count', 'evenex'), 'default' => '3', 'section' => 'blog_settings_section', ]); /** * Footer Settings here */ $this->add_section([ 'id' => 'footer_settings_section', 'title' => esc_html__('Footer settings', 'evenex'), 'panel' => 'xs_theme_option_panel', 'priority' => 10, ]); /** * Header builder switch here */ $this->add_control([ 'id' => 'footer_builder_control_enable', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Footer builder Enable ?', 'evenex'), 'desc' => esc_html__('Do you want to enable footer builder ?', 'evenex'), 'section' => 'footer_settings_section', 'attr' => ['class' => 'xs_footer_builder_switch'], 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); $this->add_control([ 'id' => 'footer_builder_select', 'type' => 'select', 'value' => '1', 'label' => esc_html__('Footer', 'evenex'), 'section' => 'footer_settings_section', 'choices' => evenex_ekit_footers(), 'conditions' => [ [ 'control_name' => 'footer_builder_control_enable', 'operator' => '==', 'value' => "yes", ] ], ]); $this->add_control([ 'id' => 'footer_builder_select_html', 'section' => 'footer_settings_section', 'type' => 'html', 'value' => '<h2 class="header_builder_edit"><a class="xs_builder_edit_link" style="text-transform: uppercase; color:green" target="_blank" href="#">'. esc_html('Edit content here.'). '</a><h2><h3><a style="text-transform: uppercase; color:#17a2b8" target="_blank" href="https://support.xpeedstudio.com/knowledgebase/customize-carrental-header-and-footer-builder/">'. esc_html__('How to edit header', 'evenex'). '</a><h3>', 'attr' => ['class' => 'xs_footer_builder_html'], 'conditions' => [ [ 'control_name' => 'footer_builder_control_enable', 'operator' => '==', 'value' => "yes", ] ], ]); /** * Footer bg control * */ $this->add_control([ 'id' => 'xs_footer_bg_color', 'label' => esc_html__('Background color', 'evenex'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#042ff8', 'desc' => esc_html__('Footer background color of rgba-color-picker goes here', 'evenex'), ]); /** * Footer text control * */ $this->add_control([ 'id' => 'xs_footer_text_color', 'label' => esc_html__('Text color', 'evenex'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#666', 'desc' => esc_html__('You can change the text color with rgba color or solid color', 'evenex'), ]); /** * Footer link control * */ $this->add_control([ 'id' => 'xs_footer_link_color', 'label' => esc_html__('Link Color', 'evenex'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#666', 'desc' => esc_html__('You can change the link color with rgba color or solid color', 'evenex'), ]); /** * Footer widget title control * */ $this->add_control([ 'id' => 'xs_footer_widget_title_color', 'label' => esc_html__('Widget Title Color', 'evenex'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#142355', 'desc' => esc_html__('You can change the widget title color with rgba color or solid color', 'evenex'), ]); /** * Footer copyright bg control * */ $this->add_control([ 'id' => 'copyright_bg_color', 'label' => esc_html__('Copyright Background Color', 'evenex'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#eff1f4', 'desc' => esc_html__('You can change the copyright background color with rgba color or solid color', 'evenex'), ]); /** * Footer copyright color control * */ $this->add_control([ 'id' => 'footer_copyright_color', 'label' => esc_html__('Copyright Text Color', 'evenex'), 'type' => 'color-picker', 'default' => '#FFFFFF', 'section' => 'footer_settings_section', 'desc' => esc_html__('You can change the copyright tet color with rgba color or solid color', 'evenex'), ]); /** * Footer copyright text control * */ $this->add_control([ 'id' => 'footer_copyright', 'type' => 'textarea', 'section' => 'footer_settings_section', 'value' => esc_html__('© 2020, Evenex. All rights reserved', 'evenex'), 'label' => esc_html__('Copyright text', 'evenex'), 'description' => esc_html__('This text will be shown at the footer of all pages.', 'evenex'), ]); /** * Footer spacing top control * */ $this->add_control([ 'id' => 'footer_padding_top', 'label' => esc_html__('Footer Padding Top', 'evenex'), 'description' => esc_html__('Use Footer Padding Top', 'evenex'), 'type' => 'text', 'section' => 'footer_settings_section', 'default' => '100px', ]); /** * Footer spaceing bottom control * */ $this->add_control([ 'id' => 'footer_padding_bottom', 'label' => esc_html__( 'Footer Padding Bottom', 'evenex' ), 'description' => esc_html__( 'Use Footer Padding Bottom', 'evenex' ), 'type' => 'text', 'section' => 'footer_settings_section', 'default' => '100px', ]); /** * Footer back to top control * */ $this->add_control([ 'id' => 'back_to_top', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Back to top', 'evenex'), 'section' => 'footer_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'evenex'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'evenex'), ], ]); } }