PATH:
home
/
lab2454c
/
adenbic.com
/
wp-content
/
themes
/
bumbleb
/
inc
/
admin
<?php /** * Bumbleb Settings Options */ if (!class_exists('Redux_Framework_bumbleb_settings')) { class Redux_Framework_bumbleb_settings { public $args = array(); public $sections = array(); public $theme; public $ReduxFramework; public function __construct() { if (!class_exists('ReduxFramework')) { return; } // This is needed. Bah WordPress bugs. ;) if ( true == Redux_Helpers::isTheme(__FILE__) ) { $this->initSettings(); } else { add_action('plugins_loaded', array($this, 'initSettings'), 10); } } public function initSettings() { $this->theme = wp_get_theme(); // Set the default arguments $this->setArguments(); // Set a few help tabs so you can see how it's done $this->setHelpTabs(); // Create the sections and fields $this->setSections(); if (!isset($this->args['opt_name'])) { // No errors please return; } $this->ReduxFramework = new ReduxFramework($this->sections, $this->args); $custom_font = bumbleb_get_config('custom_font',false); if($custom_font != 1){ remove_action( 'wp_head', array( $this->ReduxFramework, '_output_css' ),150 ); } } function compiler_action($options, $css, $changed_values) { } function dynamic_section($sections) { return $sections; } function change_arguments($args) { return $args; } function change_defaults($defaults) { return $defaults; } function remove_demo() { } public function setSections() { $shop_hover = bumbleb_options_hover_style(); $page_layouts = bumbleb_options_layouts(); $bumbleb_header_type = bumbleb_options_header_types(); $bumbleb_banners_effect = bumbleb_options_banners_effect(); // General Settings ------------ $this->sections[] = array( 'icon' => 'feather-layers', 'title' => esc_html__('General', 'bumbleb'), 'fields' => array( ) ); // Layout Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Layout', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id' => 'background_img', 'type' => 'media', 'title' => esc_html__('Background Image', 'bumbleb'), 'sub_desc' => '', 'default' => '' ), array( 'id'=>'show-newsletter', 'type' => 'switch', 'title' => esc_html__('Show Newsletter Form', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'background_newsletter_img', 'type' => 'media', 'title' => esc_html__('Popup Newsletter Image', 'bumbleb'), 'url'=> true, 'readonly' => false, 'sub_desc' => '', 'default' => array( 'url' => get_template_directory_uri() . '/images/newsletter-image.jpg' ) ), array( 'id' => 'back_active', 'type' => 'switch', 'title' => esc_html__('Back to top', 'bumbleb'), 'sub_desc' => '', 'desc' => '', 'default' => '1'// 1 = on | 0 = off ), array( 'id' => 'come_back_alert', 'type' => 'button_set', 'title' => esc_html__('Come Back Alert', 'bumbleb'), 'class' => 'button_swith', 'options' => array( 'show' => esc_html__('on', 'bumbleb'), 'hide' => esc_html__('off', 'bumbleb'), ), 'default' => 'hide', ), array( 'id' => 'come_back_text1', 'type' => 'text', 'title' => esc_html__('Come Back Content 1', 'bumbleb'), 'sub_desc' => '', 'desc' => '', 'required' => array('come_back_alert','equals','show'), 'default' => "Don't forget this..." ), array( 'id' => 'come_back_text2', 'type' => 'text', 'title' => esc_html__('Come Back Content 2', 'bumbleb'), 'sub_desc' => '', 'desc' => '', 'required' => array('come_back_alert','equals','show'), 'default' => 'Come back!' ), array( 'id'=>'direction', 'type' => 'button_set', 'title' => esc_html__('Direction', 'bumbleb'), 'options' => array('ltr' => esc_html__('Left to Right', 'bumbleb'), 'rtl' => esc_html__('Right to Left', 'bumbleb')), 'default' => 'ltr', ), array( 'id'=>'time-nofication', 'type' => 'switch', 'title' => esc_html__('Show Time Nofication', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'time-nofication-start', 'type' => 'text', 'required' => array('time-nofication','equals',true), 'title' => esc_html__('Time Nofication Start', 'bumbleb'), 'default' => '5' ), array( 'id'=>'time-nofication-stay', 'type' => 'text', 'required' => array('time-nofication','equals',true), 'title' => esc_html__('Time Nofication Stay', 'bumbleb'), 'default' => '5' ), array( 'id'=>'time-nofication-products', 'type' => 'textarea', 'required' => array('time-nofication','equals',true), 'title' => esc_html__('Time Nofication List Products Ids', 'bumbleb'), 'default' => '17691,16588,16546', 'desc' => esc_html__('Example : 17691,16588,16546', 'bumbleb'), ), array( 'id'=>'time-nofication-user', 'type' => 'textarea', 'required' => array('time-nofication','equals',true), 'title' => esc_html__('Time Nofication List User Purchased', 'bumbleb'), 'default' => 'Jond(Tokyo),Maria(New York),Jack(Monaco)', 'desc' => esc_html__('Example : Jond(Tokyo),Maria(New York),Jack(Monaco)', 'bumbleb'), ), array( 'id'=>'time-nofication-range', 'type' => 'textarea', 'required' => array('time-nofication','equals',true), 'title' => esc_html__('Time Nofication List Times Purchased', 'bumbleb'), 'default' => '5 minutes ago,10 minutes ago,15 minutes ago', 'desc' => esc_html__('Example : 5 minutes ago,10 minutes ago,15 minutes ago', 'bumbleb'), ) ) ); // Logo & Icons Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Logo & Icons', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'sitelogo', 'type' => 'media', 'compiler' => 'true', 'mode' => false, 'title' => esc_html__('Logo', 'bumbleb'), 'desc' => esc_html__('Upload Logo image default here.', 'bumbleb'), 'default' => array( 'url' => get_template_directory_uri() . '/images/logo/logo.png' ) ), ) ); // Header Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Header', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'header_style', 'type' => 'image_select', 'full_width' => true, 'title' => esc_html__('Header Type', 'bumbleb'), 'options' => $bumbleb_header_type, 'default' => '4' ), array( 'id'=>'show-searchform', 'type' => 'switch', 'title' => esc_html__('Show Search Form', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'show-ajax-search', 'type' => 'switch', 'title' => esc_html__('Show Ajax Search', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'limit-ajax-search', 'type' => 'text', 'title' => esc_html__('Limit Of Result Search', 'bumbleb'), 'default' => 6, 'required' => array('show-ajax-search','equals',true) ), array( 'id'=>'search-cats', 'type' => 'switch', 'title' => esc_html__('Show Categories', 'bumbleb'), 'required' => array('search-type','equals',array('post', 'product')), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'show-wishlist', 'type' => 'switch', 'title' => esc_html__('Show Wishlist', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'show-campbar', 'type' => 'switch', 'title' => esc_html__('Show Campbar', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'content-campbar', 'type' => 'text', 'title' => esc_html__('Content Campbar', 'bumbleb'), 'default' => 'Free standard delivery on orders over $100', 'required' => array('show-campbar','equals',true), ), array( 'id'=>'link-campbar', 'type' => 'text', 'title' => esc_html__('Url Campbar', 'bumbleb'), 'default' => '#', 'required' => array('show-campbar','equals',true), ), array( 'id' => 'img-campbar', 'type' => 'media', 'title' => esc_html__('Image Campbar', 'bumbleb'), 'url'=> true, 'readonly' => false, 'required' => array('show-campbar','equals',true), 'sub_desc' => '', 'default' => array( 'url' => "" ) ), array( 'id' => 'color-campbar', 'type' => 'color', 'title' => esc_html__('Color Campbar', 'bumbleb'), 'subtitle' => esc_html__('Select a color for Campbar.', 'bumbleb'), 'default' => '#424cc7', 'transparent' => false, 'required' => array('show-campbar','equals',true), ), array( 'id'=>'show-minicart', 'type' => 'switch', 'title' => esc_html__('Show Mini Cart', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'cart-layout', 'type' => 'button_set', 'title' => esc_html__('Cart Layout', 'bumbleb'), 'options' => array('dropdown' => esc_html__('Dropdown', 'bumbleb'), 'popup' => esc_html__('Popup', 'bumbleb')), 'default' => 'dropdown', 'required' => array('show-minicart','equals',true), ), array( 'id'=>'cart-style', 'type' => 'button_set', 'title' => esc_html__('Cart Style', 'bumbleb'), 'options' => array('dark' => esc_html__('Dark', 'bumbleb'), 'light' => esc_html__('Light', 'bumbleb')), 'default' => 'light', 'required' => array('show-minicart','equals',true), ), array( 'id'=>'enable-sticky-header', 'type' => 'switch', 'title' => esc_html__('Enable Sticky Header', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'phone', 'type' => 'text', 'title' => esc_html__('Header Phone', 'bumbleb'), 'default' => ' 1900 568 659' ), ) ); // Footer Settings $footers = bumbleb_get_footers(); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Footer', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id' => 'footer_style', 'type' => 'image_select', 'title' => esc_html__('Footer Style', 'bumbleb'), 'sub_desc' => esc_html__( 'Select Footer Style', 'bumbleb' ), 'desc' => '', 'options' => $footers, 'default' => '2' ), ) ); // Copyright Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Copyright', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id' => "footer-copyright", 'type' => 'textarea', 'title' => esc_html__('Copyright', 'bumbleb'), 'default' => sprintf( wp_kses('© Copyright %s. All Rights Reserved.', 'bumbleb'), date('Y') ) ), array( 'id'=>'footer-payments', 'type' => 'switch', 'title' => esc_html__('Show Payments Logos', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'footer-payments-image', 'type' => 'media', 'url'=> true, 'readonly' => false, 'title' => esc_html__('Payments Image', 'bumbleb'), 'required' => array('footer-payments','equals','1'), 'default' => array( 'url' => get_template_directory_uri() . '/images/payments.png' ) ), array( 'id'=>'footer-payments-image-alt', 'type' => 'text', 'title' => esc_html__('Payments Image Alt', 'bumbleb'), 'required' => array('footer-payments','equals','1'), 'default' => '' ), array( 'id'=>'footer-payments-link', 'type' => 'text', 'title' => esc_html__('Payments Link URL', 'bumbleb'), 'required' => array('footer-payments','equals','1'), 'default' => '' ) ) ); // Page Title Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Page Title', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'page_title', 'type' => 'switch', 'title' => esc_html__('Show Page Title', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'show_page_title_bg', 'type' => 'switch', 'title' => esc_html__('Show Background Breadcrumb', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), 'required' => array('page_title','equals', true), ), array( 'id'=>'page_title_bg', 'type' => 'media', 'url'=> true, 'readonly' => false, 'title' => esc_html__('Background', 'bumbleb'), 'required' => array('show_page_title_bg','equals', true), 'default' => array( 'url' => get_template_directory_uri() . '/images/bg-breadcrumb.jpg' ) ), array( 'id' => 'breadcrumb', 'type' => 'switch', 'title' => esc_html__('Show Breadcrumb', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), 'required' => array('page_title','equals', true), ), ) ); // 404 Page Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('404 Error', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'title-error', 'type' => 'text', 'title' => esc_html__('Title Page 404', 'bumbleb'), 'desc' => esc_html__('Input a block slug name', 'bumbleb'), 'default' => '404' ), array( 'id'=>'sub-title', 'type' => 'textarea', 'title' => esc_html__('Subtitle Page 404', 'bumbleb'), 'desc' => esc_html__('Input a block slug name', 'bumbleb'), 'default' => "Oops! That page can't be found." ), array( 'id'=>'sub-error', 'type' => 'textarea', 'title' => esc_html__('Content Page 404', 'bumbleb'), 'desc' => esc_html__('Input a block slug name', 'bumbleb'), 'default' => "We're really sorry but we can't seem to find the page you were looking for." ), array( 'id'=>'btn-error', 'type' => 'text', 'title' => esc_html__('Button Page 404', 'bumbleb'), 'desc' => esc_html__('Input a block slug name', 'bumbleb'), 'default' => 'Back to Home' ) ) ); // Social Share Settings $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Social Share', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'social-share', 'type' => 'switch', 'title' => esc_html__('Show Social Links', 'bumbleb'), 'desc' => esc_html__('Show social links in post and product, page, portfolio, etc.', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'share-fb', 'type' => 'switch', 'title' => esc_html__('Enable Facebook Share', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'share-tw', 'type' => 'switch', 'title' => esc_html__('Enable Twitter Share', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'share-linkedin', 'type' => 'switch', 'title' => esc_html__('Enable LinkedIn Share', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'share-pinterest', 'type' => 'switch', 'title' => esc_html__('Enable Pinterest Share', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), ) ); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Socials Link', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'socials_link', 'type' => 'switch', 'title' => esc_html__('Enable Socials link', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'link-fb', 'type' => 'text', 'title' => esc_html__('Enter Facebook link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-tw', 'type' => 'text', 'title' => esc_html__('Enter Twitter link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-linkedin', 'type' => 'text', 'title' => esc_html__('Enter LinkedIn link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-dribbble', 'type' => 'text', 'title' => esc_html__('Enter Dribbble link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-behance', 'type' => 'text', 'title' => esc_html__('Enter Behance link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-youtube', 'type' => 'text', 'title' => esc_html__('Enter Youtube link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-pinterest', 'type' => 'text', 'title' => esc_html__('Enter Pinterest link', 'bumbleb'), 'default' => '#' ), array( 'id'=>'link-instagram', 'type' => 'text', 'title' => esc_html__('Enter Instagram link', 'bumbleb'), 'default' => '#' ), ) ); // The end ----------- // Styling Settings ------------- $this->sections[] = array( 'icon' => 'feather-feather', 'title' => esc_html__('Styling', 'bumbleb'), 'fields' => array( ) ); // Color & Effect Settings $this->sections[] = array( 'class' => 'sub-content', 'subsection' => true, 'title' => esc_html__('Color & Effect', 'bumbleb'), 'fields' => array( array( 'id'=>'compile-css', 'type' => 'switch', 'title' => esc_html__('Compile Css', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'main_theme_color', 'type' => 'color', 'title' => esc_html__('Main Theme Color', 'bumbleb'), 'subtitle' => esc_html__('Select a main color for your site.', 'bumbleb'), 'default' => '#222222', 'transparent' => false, 'required' => array('compile-css','equals',array(true)), ), array( 'id'=>'show-loading-overlay', 'type' => 'switch', 'title' => esc_html__('Loading Overlay', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'gif_loading', 'type' => 'media', 'title' => esc_html__('Gif Loading', 'bumbleb'), 'required' => array('show-loading-overlay','equals',array(true)), ), array( 'id' => 'gif_loading_width', 'type' => 'text', 'title' => esc_html__('Width', 'bumbleb'), 'required' => array('show-loading-overlay','equals',array(true)), 'desc' => esc_html__('Width image gif Loading', 'bumbleb'), ), array( 'id'=>'banners_effect', 'type' => 'image_select', 'full_width' => true, 'title' => esc_html__('Banner Effect', 'bumbleb'), 'options' => $bumbleb_banners_effect, 'default' => 'banners-effect-1' ) ) ); // Typography Settings $this->sections[] = array( 'subsection' => true, 'class' => 'sub-content', 'title' => esc_html__('Typography', 'bumbleb'), 'fields' => array( array( 'id'=>'custom_font', 'type' => 'switch', 'title' => esc_html__('Custom Font', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'select-google-charset', 'type' => 'switch', 'title' => esc_html__('Select Google Font Character Sets', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), 'required' => array('custom_font','equals',true), ), array( 'id'=>'google-charsets', 'type' => 'button_set', 'title' => esc_html__('Google Font Character Sets', 'bumbleb'), 'multi' => true, 'required' => array('select-google-charset','equals',true), 'options'=> array( 'cyrillic' => 'Cyrrilic', 'cyrillic-ext' => 'Cyrrilic Extended', 'greek' => 'Greek', 'greek-ext' => 'Greek Extended', 'khmer' => 'Khmer', 'latin' => 'Latin', 'latin-ext' => 'Latin Extneded', 'vietnamese' => 'Vietnamese' ), 'default' => array('latin','greek-ext','cyrillic','latin-ext','greek','cyrillic-ext','vietnamese','khmer') ), array( 'id'=>'family_font_body', 'type' => 'typography', 'title' => esc_html__('Body Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'output' => array('body'), 'color' => false, 'default'=> array( 'color'=>"#777777", 'google'=>true, 'font-weight'=>'400', 'font-family'=>'Open Sans', 'font-size'=>'14px', 'line-height' => '22px' ), 'required' => array('custom_font','equals',true) ), array( 'id'=>'h1-font', 'type' => 'typography', 'title' => esc_html__('H1 Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'color' => false, 'output' => array('body h1'), 'default'=> array( 'color'=>"#1d2127", 'google'=>true, 'font-weight'=>'400', 'font-family'=>'Open Sans', 'font-size'=>'36px', 'line-height' => '44px' ), 'required' => array('custom_font','equals',true) ), array( 'id'=>'h2-font', 'type' => 'typography', 'title' => esc_html__('H2 Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'color' => false, 'output' => array('body h2'), 'default'=> array( 'color'=>"#1d2127", 'google'=>true, 'font-weight'=>'300', 'font-family'=>'Open Sans', 'font-size'=>'30px', 'line-height' => '40px' ), 'required' => array('custom_font','equals',true) ), array( 'id'=>'h3-font', 'type' => 'typography', 'title' => esc_html__('H3 Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'color' => false, 'output' => array('body h3'), 'default'=> array( 'color'=>"#1d2127", 'google'=>true, 'font-weight'=>'400', 'font-family'=>'Open Sans', 'font-size'=>'25px', 'line-height' => '32px' ), 'required' => array('custom_font','equals',true) ), array( 'id'=>'h4-font', 'type' => 'typography', 'title' => esc_html__('H4 Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'color' => false, 'output' => array('body h4'), 'default'=> array( 'color'=>"#1d2127", 'google'=>true, 'font-weight'=>'400', 'font-family'=>'Open Sans', 'font-size'=>'20px', 'line-height' => '27px' ), 'required' => array('custom_font','equals',true) ), array( 'id'=>'h5-font', 'type' => 'typography', 'title' => esc_html__('H5 Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'color' => false, 'output' => array('body h5'), 'default'=> array( 'color'=>"#1d2127", 'google'=>true, 'font-weight'=>'600', 'font-family'=>'Open Sans', 'font-size'=>'14px', 'line-height' => '18px' ), 'required' => array('custom_font','equals',true) ), array( 'id'=>'h6-font', 'type' => 'typography', 'title' => esc_html__('H6 Font', 'bumbleb'), 'google' => true, 'subsets' => false, 'font-style' => false, 'text-align' => false, 'color' => false, 'output' => array('body h6'), 'default'=> array( 'color'=>"#1d2127", 'google'=>true, 'font-weight'=>'400', 'font-family'=>'Open Sans', 'font-size'=>'14px', 'line-height' => '18px' ), 'required' => array('custom_font','equals',true) ) ) ); // The end ----------- if ( class_exists( 'Woocommerce' ) ) : $this->sections[] = array( 'icon' => 'feather-shopping-bag', 'title' => esc_html__('Ecommerce', 'bumbleb'), 'fields' => array( ) ); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Product Archives', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'category_style', 'type' => 'button_set', 'class' => 'button_layout_shop', 'title' => esc_html__('Layout Shop Page', 'bumbleb'), 'options' => array( 'sidebar' => esc_html__('Sidebar', 'bumbleb'), 'filter_ontop' => esc_html__('Filter On Top', 'bumbleb'), 'filter_sideout' => esc_html__('Filter Side Out', 'bumbleb'), 'filter_drawer' => esc_html__('Filter Drawer', 'bumbleb'), 'only_categories' => esc_html__('Shop Only Categories', 'bumbleb'), ), 'default' => 'sidebar', ), array( 'id'=>'shop-layout', 'type' => 'button_set', 'title' => esc_html__('Shop Layout', 'bumbleb'), 'options' => array( 'full' => esc_html__('Full', 'bumbleb'), 'boxed' => esc_html__('Boxed', 'bumbleb'), ), 'default' => 'boxed', ), array( 'id'=>'show-subcategories', 'type' => 'button_set', 'title' => esc_html__('Show Sub Categories', 'bumbleb'), 'class' => 'button_swith', 'options' => array( 'show' => esc_html__('on', 'bumbleb'), 'hide' => esc_html__('off', 'bumbleb'), ), 'default' => 'show', ), array( 'id'=>'style-subcategories', 'title' => esc_html__('Style Sub Categories', 'bumbleb'), 'type' => 'button_set', 'options' => array( 'shop_mini_categories' => esc_html__('Mini Categories', 'bumbleb'), 'icon_categories' => esc_html__('Icon Categories', 'bumbleb'), 'image_categories' => esc_html__('Image Categories', 'bumbleb'), ), 'default' => 'mini', 'required' => array('show-subcategories','equals','show'), ), array( 'id' => 'sub_col_large', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Sub Categories column Desktop', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6' ), 'default' => '4', 'required' => array('show-subcategories','equals','show'), 'sub_desc' => esc_html__( 'Select number of column on Desktop Screen', 'bumbleb' ), ), array( 'id' => 'sub_col_medium', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Sub Categories column Medium Desktop', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6' ), 'default' => '3', 'required' => array('show-subcategories','equals','show'), 'sub_desc' => esc_html__( 'Select number of column on Medium Desktop Screen', 'bumbleb' ), ), array( 'id' => 'sub_col_sm', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Sub Categories column Ipad Screen', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6' ), 'default' => '3', 'required' => array('show-subcategories','equals','show'), 'sub_desc' => esc_html__( 'Select number of column on Ipad Screen', 'bumbleb' ), ), array( 'id' => 'sub_col_xs', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Sub Categories column Mobile Screen', 'bumbleb'), 'options' => array( '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5' ), 'default' => '1', 'required' => array('show-subcategories','equals','show'), 'sub_desc' => esc_html__( 'Select number of column on Mobile Screen', 'bumbleb' ), ), array( 'id'=>'layout_shop', 'title' => esc_html__('Shop Hover Style', 'bumbleb'), 'type' => 'image_select', 'class' => 'img_option', 'options' => $shop_hover, 'default' => '1', ), array( 'id'=>'category-view-mode', 'type' => 'button_set', 'class' => 'style_listgrid', 'title' => esc_html__('View Mode', 'bumbleb'), 'options' => bumbleb_ct_category_view_mode(), 'default' => 'grid', ), array( 'id' => 'product_col_large', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Product Listing column Desktop', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4' ), 'default' => '4', 'required' => array('category-view-mode','equals','grid'), 'sub_desc' => esc_html__( 'Select number of column on Desktop Screen', 'bumbleb' ), ), array( 'id' => 'product_col_medium', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Product Listing column Medium Desktop', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4' ), 'default' => '3', 'required' => array('category-view-mode','equals','grid'), 'sub_desc' => esc_html__( 'Select number of column on Medium Desktop Screen', 'bumbleb' ), ), array( 'id' => 'product_col_sm', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Product Listing column Ipad Screen', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4' ), 'default' => '3', 'required' => array('category-view-mode','equals','grid'), 'sub_desc' => esc_html__( 'Select number of column on Ipad Screen', 'bumbleb' ), ), array( 'id' => 'product_col_xs', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Product Listing column Mobile Screen', 'bumbleb'), 'options' => array( '1' => '1', '2' => '2', '3' => '3' ), 'default' => '2', 'required' => array('category-view-mode','equals','grid'), 'sub_desc' => esc_html__( 'Select number of column on Mobile Screen', 'bumbleb' ), ), array( 'id'=>'woo-show-rating', 'type' => 'switch', 'title' => esc_html__('Show Rating in Woocommerce Products Widget', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'show-category', 'type' => 'switch', 'title' => esc_html__('Show Category', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'product_count', 'type' => 'text', 'title' => esc_html__('Shop pages show at product', 'bumbleb'), 'default' => '12', 'sub_desc' => esc_html__( 'Type Count Product Per Shop Page', 'bumbleb' ), ), array( 'id'=>'category-image-hover', 'type' => 'switch', 'title' => esc_html__('Enable Image Hover Effect', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'category-hover', 'type' => 'switch', 'title' => esc_html__('Enable Hover Effect', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-wishlist', 'type' => 'switch', 'title' => esc_html__('Show Wishlist', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-compare', 'type' => 'switch', 'title' => esc_html__('Show Compare', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product_quickview', 'type' => 'switch', 'title' => esc_html__('Show Quick View', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-quickview-label', 'type' => 'text', 'required' => array('product-quickview','equals',true), 'title' => esc_html__('"Quick View" Text', 'bumbleb'), 'default' => '' ), array( 'id'=>'product-countdown', 'type' => 'switch', 'title' => esc_html__('Show Product Countdown', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-attribute', 'type' => 'switch', 'title' => esc_html__('Show Product Attribute', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'checkout_page_style', 'title' => esc_html__('Checkout Page Style', 'bumbleb'), 'type' => 'image_select', 'class' => 'img_option', 'options' => array( "checkout-page-style-1" => array('alt' => esc_html__("Style 1", 'bumbleb'), 'img' => get_template_directory_uri().'/inc/admin/theme_options/layouts/checkout_1.jpg'), "checkout-page-style-2" => array('alt' => esc_html__("Style 2", 'bumbleb'), 'img' => get_template_directory_uri().'/inc/admin/theme_options/layouts/checkout_2.jpg'), ), 'default' => 'checkout-page-style-1', ), ) ); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Single Product', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'product-stock', 'type' => 'switch', 'title' => esc_html__('Show "Out of stock" Status', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-count-view', 'type' => 'switch', 'title' => esc_html__('Show Count View Product', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'min-count-view', 'type' => 'text', 'title' => esc_html__('Min Count View', 'bumbleb'), 'required' => array('product-count-view','equals',true), 'default' =>'30', ), array( 'id' => 'max-count-view', 'type' => 'text', 'title' => esc_html__('Max Count View', 'bumbleb'), 'required' => array('product-count-view','equals',true), 'default' =>'40', ), array( 'id' => 'timeout-count-view', 'type' => 'text', 'title' => esc_html__('Time Out Count View', 'bumbleb'), 'required' => array('product-count-view','equals',true), 'default' =>'10000', ), array( 'id'=>'show-sticky-cart', 'type' => 'switch', 'title' => esc_html__('Show Sticky Cart Product', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'show-countdown', 'type' => 'switch', 'title' => esc_html__('Show CountDown', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'show-quick-buy', 'type' => 'switch', 'title' => esc_html__('Show Button Buy Now', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-short-desc', 'type' => 'switch', 'title' => esc_html__('Show Short Description', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'single-product-wishlist', 'type' => 'switch', 'title' => esc_html__('Product Wishlist', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'length-product-short-desc', 'type' => 'text', 'title' => esc_html__('Length Short Description Quickview', 'bumbleb'), 'required' => array('product-short-desc','equals',true), 'default' =>'25', ), array( 'id'=>'product-related', 'type' => 'switch', 'title' => esc_html__('Show Related Product', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-related-count', 'type' => 'text', 'required' => array('product-related','equals',true), 'title' => esc_html__('Related Product Count', 'bumbleb'), 'default' => '10' ), array( 'id'=>'recent-view', 'type' => 'switch', 'title' => esc_html__('Show Recently Viewed Products', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'recent-view-count', 'type' => 'text', 'required' => array('recent-view','equals',true), 'title' => esc_html__('Recently Viewed Products Count', 'bumbleb'), 'default' => '5' ), array( 'id'=>'product-related-cols', 'type' => 'button_set', 'class' => 'select_col', 'required' => array('product-related','equals',true), 'title' => esc_html__('Related Product Columns', 'bumbleb'), 'options' => bumbleb_ct_related_product_columns(), 'default' => '4', ), array( 'id'=>'product-upsell', 'type' => 'switch', 'title' => esc_html__('Show Upsell Products', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-upsell-count', 'type' => 'text', 'required' => array('product-upsell','equals',true), 'title' => esc_html__('Upsell Products Count', 'bumbleb'), 'default' => '10' ), array( 'id'=>'product-upsell-cols', 'type' => 'button_set', 'required' => array('product-upsell','equals',true), 'class' => 'select_col', 'title' => esc_html__('Upsell Product Columns', 'bumbleb'), 'options' => bumbleb_ct_related_product_columns(), 'default' => '3', ), array( 'id'=>'product-crosssells', 'type' => 'switch', 'title' => esc_html__('Show Crooss Sells Products', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-crosssells-count', 'type' => 'text', 'required' => array('product-crosssells','equals',true), 'title' => esc_html__('Crooss Sells Products Count', 'bumbleb'), 'default' => '10' ), array( 'id'=>'product-crosssells-cols', 'type' => 'button_set', 'required' => array('product-crosssells','equals',true), 'class' => 'select_col', 'title' => esc_html__('Crooss Sells Product Columns', 'bumbleb'), 'options' => bumbleb_ct_related_product_columns(), 'default' => '3', ), array( 'id'=>'product-hot', 'type' => 'switch', 'title' => esc_html__('Show "Hot" Label', 'bumbleb'), 'desc' => esc_html__('Will be show in the featured product.', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-hot-label', 'type' => 'text', 'required' => array('product-hot','equals',true), 'title' => esc_html__('"Hot" Text', 'bumbleb'), 'default' => '' ), array( 'id'=>'product-sale', 'type' => 'switch', 'title' => esc_html__('Show "Sale" Label', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-sale-percent', 'type' => 'switch', 'required' => array('product-sale','equals',true), 'title' => esc_html__('Show Sale Price Percentage', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'product-share', 'type' => 'switch', 'title' => esc_html__('Show Social Share Links', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'prevnext-single', 'type' => 'switch', 'title' => esc_html__('Show Prev-Next', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'size-guide', 'type' => 'switch', 'title' => esc_html__('Show Size Guide', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'img-size-guide', 'type' => 'media', 'title' => esc_html__('Image Size Guide', 'bumbleb'), 'url'=> true, 'readonly' => false, 'required' => array('size-guide','equals',true), 'sub_desc' => '', 'default' => array( 'url' => "" ) ), array( 'id'=>'shipping-delivers', 'type' => 'switch', 'title' => esc_html__('Shipping & Delivers', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'content-shipping', 'type' => 'text', 'required' => array('shipping-delivers','equals',true), 'title' => esc_html__('Content Shipping', 'bumbleb'), 'default' => esc_html__('Free worldwide shipping on all orders over $100', 'bumbleb'), ), array( 'id'=>'content-delivers', 'type' => 'text', 'required' => array('shipping-delivers','equals',true), 'title' => esc_html__('Content Delivers', 'bumbleb'), 'default' => esc_html__('Delivers in: 3-7 Working Days', 'bumbleb'), ), array( 'id'=>'link-delivers', 'type' => 'text', 'title' => esc_html__('Url Delivers', 'bumbleb'), 'required' => array('shipping-delivers','equals',true), 'default' => '#', ), array( 'id'=>'safe-checkout', 'type' => 'switch', 'title' => esc_html__('Show Safe Checkout', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'img-safe-checkout', 'type' => 'media', 'title' => esc_html__('Image Safe Checkout', 'bumbleb'), 'url'=> true, 'readonly' => false, 'required' => array('safe-checkout','equals',true), 'sub_desc' => '', 'default' => array( 'url' => "" ) ), array( 'id'=>'description-style', 'type' => 'button_set', 'title' => esc_html__('Description Style', 'bumbleb'), 'options' => array( 'accordion' => esc_html__('Accordion', 'bumbleb'), 'full-content' => esc_html__('Full Content', 'bumbleb'), 'tab' => esc_html__('Tab', 'bumbleb'), 'vertical' => esc_html__('Vertical', 'bumbleb'), ), 'default' => 'tab', ), ) ); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Image Product', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'product-thumbs', 'type' => 'button_set', 'title' => esc_html__('Show Thumbnails', 'bumbleb'), 'class' => 'button_swith', 'options' => array( 'show' => esc_html__('on', 'bumbleb'), 'hide' => esc_html__('off', 'bumbleb'), ), 'default' => 'show', ), array( 'id'=>'layout-thumbs', 'type' => 'button_set', 'title' => esc_html__('Layouts Product', 'bumbleb'), 'options' => array('scroll' => esc_html__('Scroll', 'bumbleb'), 'one_column' => esc_html__('One Column', 'bumbleb'), 'two_column' => esc_html__('Two Column', 'bumbleb'), 'slider' => esc_html__('Slider', 'bumbleb'), 'grid' => esc_html__('Grid', 'bumbleb'), 'grid_sticky' => esc_html__('Grid Sticky', 'bumbleb'), 'lagre_gallery' => esc_html__('Lagre Gallery', 'bumbleb'), 'clean' => esc_html__('Clean', 'bumbleb'), 'moderm' => esc_html__('Moderm', 'bumbleb'), 'full_width' => esc_html__('Full Width', 'bumbleb'), 'light' => esc_html__('Light', 'bumbleb'), ), 'default' => 'scroll', ), array( 'id'=>'position-thumbs', 'type' => 'button_set', 'title' => esc_html__('Position Thumbnails', 'bumbleb'), 'options' => array('left' => esc_html__('Left', 'bumbleb'), 'right' => esc_html__('Right', 'bumbleb'), 'bottom' => esc_html__('Bottom', 'bumbleb'), 'outsite' => esc_html__('Outsite', 'bumbleb')), 'default' => 'bottom', 'required' => array('product-thumbs','equals','show'), ), array( 'id' => 'product-thumbs-count', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Thumbnails Count', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6' ), 'default' => '4', 'required' => array('product-thumbs','equals','show'), ), array( 'id' => 'video-style', 'type' => 'button_set', 'title' => esc_html__('Video Style', 'bumbleb'), 'options' => array( 'popup' => 'Popup', 'inner' => 'Inner', ), 'default' => 'inner', ), array( 'id'=>'zoom-image', 'type' => 'switch', 'title' => esc_html__('Zoom Image', 'bumbleb'), 'default' => false, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'zoom-type', 'type' => 'button_set', 'title' => esc_html__('Zoom Type', 'bumbleb'), 'options' => array( 'inner' => esc_html__('Inner', 'bumbleb'), 'window' => esc_html__('Window', 'bumbleb'), 'lens' => esc_html__('Lens', 'bumbleb') ), 'default' => 'inner', 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-scroll', 'type' => 'switch', 'title' => esc_html__('Scroll Zoom', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-border', 'type' => 'text', 'title' => esc_html__('Border Size', 'bumbleb'), 'default' => '2', 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-border-color', 'type' => 'color', 'title' => esc_html__('Border Color', 'bumbleb'), 'default' => '#f9b61e', 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-lens-size', 'type' => 'text', 'required' => array('zoom-type','equals',array('lens')), 'title' => esc_html__('Lens Size', 'bumbleb'), 'default' => '200', 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-lens-shape', 'type' => 'button_set', 'required' => array('zoom-type','equals',array('lens')), 'title' => esc_html__('Lens Shape', 'bumbleb'), 'options' => array('round' => esc_html__('Round', 'bumbleb'), 'square' => esc_html__('Square', 'bumbleb')), 'default' => 'square', 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-contain-lens', 'type' => 'switch', 'required' => array('zoom-type','equals',array('lens')), 'title' => esc_html__('Contain Lens Zoom', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), 'required' => array('zoom-image','equals',true), ), array( 'id'=>'zoom-lens-border', 'type' => 'text', 'required' => array('zoom-type','equals',array('lens')), 'title' => esc_html__('Lens Border', 'bumbleb'), 'default' => true, 'required' => array('zoom-image','equals',true), ), ) ); endif; // Blog Settings ------------- $this->sections[] = array( 'icon' => 'feather-file-text', 'title' => esc_html__('Blog', 'bumbleb'), 'fields' => array( ) ); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Blog & Post Archives', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'post-format', 'type' => 'switch', 'title' => esc_html__('Show Post Format', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'hot-label', 'type' => 'text', 'title' => esc_html__('"HOT" Text', 'bumbleb'), 'desc' => esc_html__('Hot post label', 'bumbleb'), 'default' => '' ), array( 'id'=>'sidebar_blog', 'type' => 'image_select', 'class' => 'img_option', 'title' => esc_html__('Page Layout', 'bumbleb'), 'options' => $page_layouts, 'default' => 'left' ), array( 'id' => 'layout_blog', 'type' => 'button_set', 'title' => esc_html__('Layout Blog', 'bumbleb'), 'options' => array( 'list' => esc_html__( 'List', 'bumbleb' ), 'grid' => esc_html__( 'Grid', 'bumbleb' ), 'modern' => esc_html__( 'Modern', 'bumbleb' ), 'standar' => esc_html__( 'Standar', 'bumbleb' ) ), 'default' => 'standar', 'sub_desc' => esc_html__( 'Select style layout blog', 'bumbleb' ), ), array( 'id' => 'blog_col_large', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Blog Listing column Desktop', 'bumbleb'), 'required' => array('layout_blog','equals','grid'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '6' => '6' ), 'default' => '4', 'sub_desc' => esc_html__( 'Select number of column on Desktop Screen', 'bumbleb' ), ), array( 'id' => 'blog_col_medium', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Blog Listing column Medium Desktop', 'bumbleb'), 'required' => array('layout_blog','equals','grid'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '6' => '6' ), 'default' => '3', 'sub_desc' => esc_html__( 'Select number of column on Medium Desktop Screen', 'bumbleb' ), ), array( 'id' => 'blog_col_sm', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Blog Listing column Ipad Screen', 'bumbleb'), 'required' => array('layout_blog','equals','grid'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '6' => '6' ), 'default' => '3', 'sub_desc' => esc_html__( 'Select number of column on Ipad Screen', 'bumbleb' ), ), array( 'id'=>'archives-author', 'type' => 'switch', 'title' => esc_html__('Show Author', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'archives-comments', 'type' => 'switch', 'title' => esc_html__('Show Count Comments', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'blog-excerpt', 'type' => 'switch', 'title' => esc_html__('Show Excerpt', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'list-blog-excerpt-length', 'type' => 'text', 'required' => array('blog-excerpt','equals',true), 'title' => esc_html__('List Excerpt Length', 'bumbleb'), 'desc' => esc_html__('The number of words', 'bumbleb'), 'default' => '50', ), array( 'id'=>'grid-blog-excerpt-length', 'type' => 'text', 'required' => array('blog-excerpt','equals',true), 'title' => esc_html__('Grid Excerpt Length', 'bumbleb'), 'desc' => esc_html__('The number of words', 'bumbleb'), 'default' => '12', ), ) ); $this->sections[] = array( 'subsection' => true, 'title' => esc_html__('Single Post', 'bumbleb'), 'class' => 'sub-content', 'fields' => array( array( 'id'=>'post-single-layout', 'type' => 'button_set', 'title' => esc_html__('Page Layout', 'bumbleb'), 'options' => array( 'sidebar' => esc_html__( 'Sidebar', 'bumbleb' ), 'one_column' => esc_html__( 'One Column', 'bumbleb' ), 'prallax_image' => esc_html__( 'Prallax Image', 'bumbleb' ), 'simple_title' => esc_html__( 'Simple Title', 'bumbleb' ), 'sticky_title' => esc_html__( 'Sticky Title', 'bumbleb' ) ), 'default' => 'sidebar' ), array( 'id'=>'post-title', 'type' => 'switch', 'title' => esc_html__('Show Title', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'post-author', 'type' => 'switch', 'title' => esc_html__('Show Author Info', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id'=>'post-comments', 'type' => 'switch', 'title' => esc_html__('Show Comments', 'bumbleb'), 'default' => true, 'on' => esc_html__('on', 'bumbleb'), 'off' => esc_html__('off', 'bumbleb'), ), array( 'id' => 'related_col_large', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Related column Desktop', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '6' => '6' ), 'default' => '3', 'sub_desc' => esc_html__( 'Select number of column on Desktop Screen', 'bumbleb' ), ), array( 'id' => 'related_col_medium', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Related column Medium Desktop', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '6' => '6' ), 'default' => '3', 'sub_desc' => esc_html__( 'Select number of column on Medium Desktop Screen', 'bumbleb' ), ), array( 'id' => 'related_col_sm', 'type' => 'button_set', 'class' => 'select_col', 'title' => esc_html__('Related column Ipad Screen', 'bumbleb'), 'options' => array( '2' => '2', '3' => '3', '4' => '4', '6' => '6' ), 'default' => '3', 'sub_desc' => esc_html__( 'Select number of column on Ipad Screen', 'bumbleb' ), ), array( 'id'=>'related-limit', 'type' => 'text', 'title' => esc_html__('Related Limit', 'bumbleb'), 'desc' => esc_html__('The Related Limit number', 'bumbleb'), 'default' => '2', ) ) ); $this->sections[] = array( 'id' => 'wbc_importer_section', 'class' => 'info_import', 'title' => esc_html__( 'Demo Importer', 'bumbleb' ), 'icon' => 'feather-upload', 'fields' => array( array( 'desc' => wp_kses( 'Increase your max execution time, try 40000 I know its high but trust me.<br> Increase your PHP memory limit, try 512MB.<br> 1. The import process will work best on a clean install. You can use a plugin such as WordPress Reset to clear your data for you.<br> 2. Ensure all plugins are installed beforehand, e.g. WooCommerce - any plugins that you add content to.<br> 3. Be patient and wait for the import process to complete. It can take up to 3-5 minutes.<br> 4. Enjoy','social' ), 'id' => 'wbc_demo_importer', 'type' => 'wbc_importer' ) ) ); } public function setHelpTabs() { } public function setArguments() { $theme = wp_get_theme(); // For use with some settings. Not necessary. $this->args = array( 'opt_name' => 'bumbleb_settings', 'display_name' => $theme->get('Name') . ' ' . wp_kses('<br>Theme Options', 'social'), 'display_version' => esc_html__('Theme Version: ', 'bumbleb') . bumbleb_version, 'menu_type' => 'submenu', 'allow_sub_menu' => true, 'menu_title' => esc_html__('Theme Options', 'bumbleb'), 'page_title' => esc_html__('Theme Options', 'bumbleb'), 'footer_credit' => esc_html__('Theme Options', 'bumbleb'), 'google_api_key' => 'AIzaSyAX_2L_UzCDPEnAHTG7zhESRVpMPS4ssII', 'disable_google_fonts_link' => true, 'async_typography' => false, 'admin_bar' => false, 'admin_bar_icon' => 'dashicons-admin-generic', 'admin_bar_priority' => 50, 'global_variable' => '', 'dev_mode' => false, 'customizer' => false, 'compiler' => false, 'page_priority' => null, 'page_parent' => 'themes.php', 'page_permissions' => 'manage_options', 'menu_icon' => '', 'last_tab' => '', 'page_icon' => 'icon-themes', 'page_slug' => 'bumbleb_settings', 'save_defaults' => true, 'default_show' => false, 'default_mark' => '', 'show_import_export' => true, 'show_options_object' => false, 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => true, 'output_tag' => true, 'database' => '', 'system_info' => false, 'hints' => array( 'icon' => 'icon-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', 'shadow' => true, 'rounded' => false, 'style' => '', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'click mouseleave', ), ), ), 'ajax_save' => true, 'use_cdn' => true, ); // Panel Intro text -> before the form if (!isset($this->args['global_variable']) || $this->args['global_variable'] !== false) { if (!empty($this->args['global_variable'])) { $v = $this->args['global_variable']; } else { $v = str_replace('-', '_', $this->args['opt_name']); } } $this->args['intro_text'] = sprintf('<p>'.wp_kses('Please regenerate again default css files in <strong>Skin > Compile Default CSS</strong> after <strong>update theme</strong>.', 'bumbleb').'</p>', $v); } } if ( !function_exists( 'wbc_extended_example' ) ) { function wbc_extended_example( $demo_active_import , $demo_directory_path ) { reset( $demo_active_import ); $current_key = key( $demo_active_import ); if ( isset( $demo_active_import[$current_key]['directory'] ) && !empty( $demo_active_import[$current_key]['directory'] )) { //Import Sliders if ( class_exists( 'RevSlider' ) ) { $wbc_sliders_array = array( 'bumbleb' => array('slider-1.zip','slider-2.zip','slider-3.zip','slider-4.zip','slider-5.zip') ); $wbc_slider_import = $wbc_sliders_array[$demo_active_import[$current_key]['directory']]; if( is_array( $wbc_slider_import ) ){ foreach ($wbc_slider_import as $slider_zip) { if ( !empty($slider_zip) && file_exists( $demo_directory_path.'rev_slider/'.$slider_zip ) ) { $slider = new RevSlider(); $slider->importSliderFromPost( true, true, $demo_directory_path.'rev_slider/'.$slider_zip ); } } }else{ if ( file_exists( $demo_directory_path.'rev_slider/'.$wbc_slider_import ) ) { $slider = new RevSlider(); $slider->importSliderFromPost( true, true, $demo_directory_path.'rev_slider/'.$wbc_slider_import ); } } } // Setting Menus $primary = get_term_by( 'name', 'Main menu', 'nav_menu' ); $primary_currency = get_term_by( 'name', 'Currency Menu', 'nav_menu' ); $primary_language = get_term_by( 'name', 'Language Menu', 'nav_menu' ); $primary_topbar = get_term_by( 'name', 'Menu Topbar', 'nav_menu' ); if ( isset( $primary->term_id ) && isset( $primary_topbar->term_id ) && isset( $primary_currency->term_id ) && isset( $primary_language->term_id ) ) { set_theme_mod( 'nav_menu_locations', array( 'main_navigation' => $primary->term_id, 'topbar_menu' => $primary_topbar->term_id, 'currency_menu' => $primary_currency->term_id, 'language_menu' => $primary_language->term_id ) ); } // Set HomePage $home_page = 'Home 1'; $page = get_page_by_title( $home_page ); if ( isset( $page->ID ) ) { update_option( 'page_on_front', $page->ID ); update_option( 'show_on_front', 'page' ); } } } // Uncomment the below add_action( 'wbc_importer_after_content_import', 'wbc_extended_example', 10, 2 ); } global $reduxBumblebSettings; $reduxBumblebSettings = new Redux_Framework_bumbleb_settings(); }
[+]
..
[+]
theme_options
[+]
css
[+]
fonts
[-] functions.php
[edit]
[-] theme-options.php
[edit]