add_panel([ 'id' => 'xs_theme_option_panel', 'priority' => 0, 'theme_supports' => '', 'title' => esc_html__('Theme Settings', 'cafesio'), 'description' => esc_html__('Theme Options Panel', 'cafesio'), ]); /** * ================================================ * General settings here * =============================================== */ $this->add_section([ 'id' => 'general_settings_section', 'title' => esc_html__('General Settings', 'cafesio'), 'panel' => 'xs_theme_option_panel', 'priority' => 20, ]); $this->add_control([ 'id' => 'custom_logo', 'type' => 'media', 'section' => 'general_settings_section', 'label' => esc_html__('Main Logo', 'cafesio'), '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', 'cafesio'), ]); /** * Header Search show/hide control * * */ $this->add_control([ 'id' => 'cafesio_search_show', 'type' => 'switcher', 'default' => 'yes', 'section' => 'general_settings_section', 'label' => esc_html__('Show Header Search', 'cafesio'), 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); /** * ================================================ * Style settings here * =============================================== */ $this->add_section([ 'id' => 'style_settings_section', 'title' => esc_html__('Style Settings', 'cafesio'), 'panel' => 'xs_theme_option_panel', 'priority' => 20, ]); $this->add_control([ 'id' => 'cafesio_blog_style_body_bg_color_section', 'label' => esc_html__('Body Background', 'cafesio'), 'type' => 'color-picker', 'section' => 'style_settings_section', 'default' => '#FFFFFF', ]); $this->add_control([ 'id' => 'cafesio_blog_style_body_primary_color_section', 'label' => esc_html__('Primary Color', 'cafesio'), 'type' => 'color-picker', 'section' => 'style_settings_section', 'default' => '#E7272D', ]); $this->add_control([ 'id' => 'cafesio_blog_style_title_color_section', 'label' => esc_html__('Title Color', 'cafesio'), 'type' => 'color-picker', 'section' => 'style_settings_section', 'default' => '#333333', ]); /** * Control for body Typography Input */ $this->add_control([ 'id' => 'cafesio_blog_body_typhography', 'section' => 'style_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Open Sans', 'weight' => 400, 'size' => 16, 'line_height' => 28, 'color' => '#666', 'letter_spacing' => 0 ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Body Typhography', 'cafesio'), ]); /** * Control for body Typography Input */ $this->add_control([ 'id' => 'cafesio_blog_h1_2_typhography', 'section' => 'style_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Roboto', 'weight' => '', 'size' => '', 'line_height' => '', 'color' => '', 'letter_spacing' => 0 ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading One ', 'cafesio'), ]); /** * Control for body Typography Input */ $this->add_control([ 'id' => 'cafesio_blog_h2_typhography', 'section' => 'style_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Roboto', 'weight' => '', 'size' => '', 'line_height' => '', 'color' => '', 'letter_spacing' => 0 ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading Two ', 'cafesio'), ]); /** * Control for body Typography Input */ $this->add_control([ 'id' => 'cafesio_blog_h3_4_typhography', 'section' => 'style_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Roboto', 'weight' => '', 'size' => '', 'line_height' => '', 'color' => '', 'letter_spacing' => 0 ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading Three ', 'cafesio'), ]); /** * Control for body Typography Input */ $this->add_control([ 'id' => 'cafesio_blog_h4_typhography', 'section' => 'style_settings_section', 'type' => 'typography', 'value' => [ 'family' => 'Roboto', 'weight' => '', 'size' => '', 'line_height' => '', 'color' => '', 'letter_spacing' => 0 ], 'components' => [ 'family' => true, 'size' => true, 'line-height' => true, 'letter-spacing' => true, 'weight' => true, 'color' => true, ], 'label' => esc_html__('Heading Four ', 'cafesio'), ]); /** * ==================================================== * Banner Settings here * ==================================================== */ $this->add_panel([ 'id' => 'xs_theme_banner_panel', 'priority' => 20, 'panel' => 'xs_theme_option_panel', 'theme_supports' => '', 'title' => esc_html__('Banner Settings', 'cafesio'), 'description' => esc_html__('Theme Banner Panel', 'cafesio'), ]); // blog banner settings $this->add_section([ 'id' => 'blog_banner_settings_section', 'title' => esc_html__('Blog Banner Settings', 'cafesio'), 'panel' => 'xs_theme_banner_panel', 'priority' => 30, ]); $this->add_control([ 'id' => 'cafesio_blog_banner_enable', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Banner?', 'cafesio'), 'desc' => esc_html__('Show or hide the banner', 'cafesio'), 'section' => 'blog_banner_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_banner_breadcrumb_enable', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Breadcrumb?', 'cafesio'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'cafesio'), 'section' => 'blog_banner_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_banner_title', 'type' => 'text', 'label' => esc_html__('Banner Title', 'cafesio'), 'section' => 'blog_banner_settings_section', ]); $this->add_control([ 'id' => 'cafesio_blog_banner_img', 'type' => 'media', 'section' => 'blog_banner_settings_section', 'label' => esc_html__('Blog Banner Image', 'cafesio'), ]); /** * Page banner settings */ $this->add_section([ 'id' => 'page_banner_settings_section', 'title' => esc_html__('Page Banner Settings', 'cafesio'), 'panel' => 'xs_theme_banner_panel', 'priority' => 0, ]); $this->add_control([ 'id' => 'cafesio_page_banner_enable', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Banner?', 'cafesio'), 'desc' => esc_html__('Show or hide the banner', 'cafesio'), 'section' => 'page_banner_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_page_banner_breadcrumb_enable', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Breadcrumb?', 'cafesio'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'cafesio'), 'section' => 'page_banner_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_page_banner_title', 'type' => 'text', 'label' => esc_html__('Banner Title', 'cafesio'), 'section' => 'page_banner_settings_section', ]); $this->add_control([ 'id' => 'cafesio_page_banner_img', 'type' => 'media', 'section' => 'page_banner_settings_section', 'label' => esc_html__('Banner Image', 'cafesio'), ]); /** * Shop Banner settings */ $this->add_section([ 'id' => 'shop_banner_settings_section', 'title' => esc_html__('Shop Banner Settings', 'cafesio'), 'panel' => 'xs_theme_banner_panel', 'priority' => 0, ]); $this->add_control([ 'id' => 'cafesio_shop_banner_enable', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Banner?', 'cafesio'), 'desc' => esc_html__('Show or hide the banner', 'cafesio'), 'section' => 'shop_banner_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_shop_banner_breadcrumb_enable', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Show Breadcrumb?', 'cafesio'), 'desc' => esc_html__('Show or hide the Breadcrumb', 'cafesio'), 'section' => 'shop_banner_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_shop_banner_title', 'type' => 'text', 'label' => esc_html__('Banner Title', 'cafesio'), 'section' => 'shop_banner_settings_section', ]); $this->add_control([ 'id' => 'cafesio_shop_banner_img', 'type' => 'media', 'section' => 'shop_banner_settings_section', 'label' => esc_html__('Banner Image', 'cafesio'), ]); /** * ==================================================== * Blog Settings here * ==================================================== */ $this->add_panel([ 'id' => 'xs_theme_blog_panel', 'priority' => 20, 'panel' => 'xs_theme_option_panel', 'theme_supports' => '', 'title' => esc_html__('Blog Settings', 'cafesio'), 'description' => esc_html__('Theme blog Panel', 'cafesio'), ]); /** * * Blog Listing Settings here * */ $this->add_section([ 'id' => 'blog_settings_section', 'title' => esc_html__('Blog List Settings', 'cafesio'), 'panel' => 'xs_theme_blog_panel', 'priority' => 0, ]); $this->add_control([ 'id' => 'cafesio_blog_layout', 'type' => 'select', 'default' => 'right', 'label' => esc_html__('Blog Layout', 'cafesio'), 'section' => 'blog_settings_section', 'choices' => [ 'left' => esc_html__('Left Sidebar', 'cafesio'), 'full' => esc_html__('Full Width', 'cafesio'), 'right' => esc_html__('Right Sidebar', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_author', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Author?', 'cafesio'), 'desc' => esc_html__('Show or hide the author', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_comment', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Show Comments?', 'cafesio'), 'desc' => esc_html__('Show or hide the Comment', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_date', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Date?', 'cafesio'), 'desc' => esc_html__('Show or hide the Comment', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_category', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Category?', 'cafesio'), 'desc' => esc_html__('Show or hide the category', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_listing_title_length', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Show Blog Title Length?', 'cafesio'), 'desc' => esc_html__('Show or hide the title length', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_post_title_char_limit_length', 'type' => 'number', 'default' => 20, 'label' => esc_html__('Blog Title Length', 'cafesio'), 'section' => 'blog_settings_section', ]); $this->add_control([ 'id' => 'cafesio_blog_post_char_limit_length', 'type' => 'number', 'default' => 20, 'label' => esc_html__('Blog Desc Length', 'cafesio'), 'section' => 'blog_settings_section', ]); $this->add_control([ 'id' => 'cafesio_blog_readmore', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Blog Read more?', 'cafesio'), 'desc' => esc_html__('Show or hide the blog readmore', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_readmore_text', 'type' => 'text', 'default' => esc_html__('Read More', 'cafesio'), 'label' => esc_html__('Blog Title Length', 'cafesio'), 'section' => 'blog_settings_section', ]); $this->add_control([ 'id' => 'cafesio_categry_title_lenght', 'type' => 'number', 'default' => 20, 'label' => esc_html__('Title Length (Archive Page)', 'cafesio'), 'desc' => esc_html__('You can limit post title in category and tag page', 'cafesio'), 'section' => 'blog_settings_section', ]); $this->add_control([ 'id' => 'cafesio_blog_post_desc_show', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Description?', 'cafesio'), 'desc' => esc_html__('Show or hide the description', 'cafesio'), 'section' => 'blog_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_categry_post_desc_lenght', 'type' => 'number', 'default' => 20, 'label' => esc_html__('Description Length (Archive page)', 'cafesio'), 'desc' => esc_html__('You can limit post desc in category and tag page', 'cafesio'), 'section' => 'blog_settings_section', 'conditions' => [ [ 'control_name' => 'cafesio_blog_post_desc_show', 'operator' => '==', 'value' => 'yes', ], ], ]); /** * blog details settings */ $this->add_section([ 'id' => 'blog_details_settings_section', 'title' => esc_html__('Blog Details Settings', 'cafesio'), 'panel' => 'xs_theme_blog_panel', 'priority' => 0, ]); $this->add_control([ 'id' => 'cafesio_blog_single_layout', 'type' => 'select', 'default' => 'full', 'label' => esc_html__('Blog Details Layout', 'cafesio'), 'section' => 'blog_details_settings_section', 'choices' => [ 'left' => esc_html__('Left Sidebar', 'cafesio'), 'full' => esc_html__('Full Width', 'cafesio'), 'right' => esc_html__('Right Sidebar', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_post_comment_open', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Comments?', 'cafesio'), 'desc' => esc_html__('Show or hide the blog details comments', 'cafesio'), 'section' => 'blog_details_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_related_post', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Show Related Post?', 'cafesio'), 'desc' => esc_html__('Show or hide the blog Related Post', 'cafesio'), 'section' => 'blog_details_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_post_author', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Show Author Section?', 'cafesio'), 'desc' => esc_html__('Show or hide the blog author section', 'cafesio'), 'section' => 'blog_details_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_blog_post_tag', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Tags Section?', 'cafesio'), 'desc' => esc_html__('Show or hide the blog Tags section', 'cafesio'), 'section' => 'blog_details_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); $this->add_control([ 'id' => 'cafesio_single_blog_post_nav', 'type' => 'switcher', 'default' => 'yes', 'label' => esc_html__('Show Post Navigation?', 'cafesio'), 'desc' => esc_html__('Show or hide the blog details navigation section', 'cafesio'), 'section' => 'blog_details_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); /** * ==================================================== * Footer Settings here * ==================================================== */ $this->add_section([ 'id' => 'footer_settings_section', 'title' => esc_html__('Footer Settings', 'cafesio'), 'panel' => 'xs_theme_option_panel', 'priority' => 60, ]); /** * show footer widget control * */ $this->add_control([ 'id' => 'show_footer_widgets', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Show Footer Widget', 'cafesio'), 'section' => 'footer_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); /** * Footer number of widget control * */ $this->add_control([ 'id' => 'cafesio_number_of_widgets', 'label' => esc_html__('Number Of Widget', 'cafesio'), 'type' => 'slider', 'section' => 'footer_settings_section', 'default' => 3, 'properties' => array( 'min' => 1, 'max' => 6, 'step' => 1, ), ]); /** * color control * */ $this->add_control([ 'id' => 'cafesio_footer_copyright_color', 'label' => esc_html__('Copyright color', 'cafesio'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#ffffff', ]); /** * color control * */ $this->add_control([ 'id' => 'cafesio_footer_copyright_bg_color', 'label' => esc_html__('Copyright BG color', 'cafesio'), 'type' => 'color-picker', 'section' => 'footer_settings_section', 'default' => '#E7272D', ]); /** * Footer copyright text control * */ $this->add_control([ 'id' => 'cafesio_copyright', 'type' => 'wp-editor', 'section' => 'footer_settings_section', 'value' => '© ' . date('Y') . ', cafesio. All rights reserved', 'label' => esc_html__('Copyright Text', 'cafesio'), 'description' => esc_html__('This text will be shown at the footer of all pages.', 'cafesio'), ]); /** * diemention control * */ $this->add_control([ 'id' => 'cafesio_footer_copyright_padding', 'label' => esc_html__('Copyright Padding top', 'cafesio'), 'type' => 'text', 'value' => '20px', 'section' => 'footer_settings_section', ]); /** * diemention control * */ $this->add_control([ 'id' => 'cafesio_footer_copyright_padding_bottom', 'label' => esc_html__('Copyright Padding bottom', 'cafesio'), 'type' => 'text', 'default' => '20px', 'section' => 'footer_settings_section', ]); /** * Footer back to top control * */ $this->add_control([ 'id' => 'cafesio_back_to_top', 'type' => 'switcher', 'default' => 'no', 'label' => esc_html__('Back to top', 'cafesio'), 'section' => 'footer_settings_section', 'left-choice' => [ 'no' => esc_html__('No', 'cafesio'), ], 'right-choice' => [ 'yes' => esc_html__('Yes', 'cafesio'), ], ]); } }