Exemplo n.º 1
0
function venedor_page_get_postdata()
{
    global $page_meta_boxes, $wp_registered_sidebars;
    // Page Meta Options
    $theme_layouts = venedor_ct_layouts();
    $theme_layouts = array_merge(array("widewidth" => "Wide Width"), $theme_layouts);
    $sidebar_options = venedor_ct_sidebars();
    $banner_type = venedor_ct_banner_type();
    $banner_width = venedor_ct_banner_width();
    $layer_sliders = venedor_ct_layer_sliders();
    $rev_sliders = venedor_ct_rev_sliders();
    $portfolio_columns = array("2" => "2 Columns", "3" => "3 Columns", "4" => "4 Columns");
    $portfolio_cats = array();
    $portfolio_cats[0] = 'All Categories';
    $pcats = get_categories(array('taxonomy' => 'portfolio_cat'));
    foreach ($pcats as $pcat) {
        $portfolio_cats[$pcat->term_id] = $pcat->name;
    }
    $faq_cats = array();
    $faq_cats[0] = 'All Categories';
    $fcats = get_categories(array('taxonomy' => 'faq_cat'));
    foreach ($fcats as $fcat) {
        $faq_cats[$fcat->term_id] = $fcat->name;
    }
    // Page Meta Boxes
    $page_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "title" => venedor_labels_meta("title", "Page Title", "Hide page title", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select the layout.", "radio", "fullwidth", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "blog-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "infinite_scroll" => venedor_labels_meta("infinite_scroll", "Infinite Scroll", "Enable infinite scroll. Use in <strong>Portfolio</strong> templates.", "checkbox"), "portfolio_columns" => venedor_labels_meta("portfolio_columns", "Portfolio Columns", "The number of the columns in the portfolio page. Use in <strong>Portfolio</strong> template.", "radio", "4", "radio", $portfolio_columns), "portfolio_cat" => venedor_labels_meta("portfolio_cat", "Portfolio Category", "Select the portfolio categories. Use in <strong>Portfolio</strong> template.", "multi_checkbox", "", "", $portfolio_cats), "portfolio_filters" => venedor_labels_meta("portfolio_filters", "Portfolio Filters", "Show the portfolio filters. Use in <strong>Portfolio</strong> template.", "checkbox"), "faq_cat" => venedor_labels_meta("faq_cat", "FAQ Category", "Select the faq categories. Use in <strong>FAQs</strong> template.", "multi_checkbox", "", "", $faq_cats), "faq_filters" => venedor_labels_meta("faq_filters", "FAQ Filters", "Show the faq filters. Use in <strong>FAQs</strong> template.", "checkbox"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
}
Exemplo n.º 2
0
function venedor_portfolio_get_postdata()
{
    global $portfolio_meta_boxes, $portfolio_cat_meta_boxes;
    // Portfolio Meta Options
    $theme_layouts = venedor_ct_layouts();
    $sidebar_options = venedor_ct_sidebars();
    $banner_type = venedor_ct_banner_type();
    $banner_width = venedor_ct_banner_width();
    $layer_sliders = venedor_ct_layer_sliders();
    $rev_sliders = venedor_ct_rev_sliders();
    // Portfolio Meta Boxes
    $portfolio_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "fullwidth", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "blog-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "slideshow_type" => venedor_labels_meta("slideshow_type", "Portfolio Type", "Select the portfolio type mode you want to use either image or video.", "radio", "images", "radio", array("images" => "Images", "video" => "Video & Audio", "none" => "None")), "video_code" => venedor_labels_meta("video_code", "Video & Audio Embed Code", "Paste the iframe code of the Flash (YouTube or Vimeo etc). Only necessary when the portfolio type is video.", "textarea"), "portfolio_link" => venedor_labels_meta("portfolio_link", "Portfolio link", "External Link for the Portfolio which adds a visit site button with the link. Leave blank for post URL.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
    // Category Meta Boxes
    $portfolio_cat_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "right-sidebar", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "blog-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
}
Exemplo n.º 3
0
function venedor_product_get_postdata()
{
    global $product_meta_boxes, $product_cat_meta_boxes;
    // Product Meta Options
    $theme_layouts = venedor_ct_layouts();
    $sidebar_options = venedor_ct_sidebars();
    $banner_type = venedor_ct_banner_type();
    $banner_width = venedor_ct_banner_width();
    $layer_sliders = venedor_ct_layer_sliders();
    $rev_sliders = venedor_ct_rev_sliders();
    $product_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "fullwidth", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "woocommerce-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"), "custom_tab_title1" => venedor_labels_meta("custom_tab_title1", "Custom Tab Title 1", "Input the custom tab title.", "text"), "custom_tab_content1" => venedor_labels_meta("custom_tab_content1", "Custom Tab Content 1", "Input the custom tab content.", "textarea"), "custom_tab_title2" => venedor_labels_meta("custom_tab_title2", "Custom Tab Title 2", "Input the custom tab title.", "text"), "custom_tab_content2" => venedor_labels_meta("custom_tab_content2", "Custom Tab Content 2", "Input the custom tab content.", "textarea"));
    $banner_type['featured_products'] = "Featured Products";
    $banner_type['hide_banner'] = "Hide Banner";
    // Category Meta Boxes
    $product_cat_meta_boxes = array("breadcrumbs" => venedor_labels_meta("breadcrumbs", "Breadcrumbs", "Disable breadcrumbs", "checkbox"), "default" => venedor_labels_meta("default", "Layout & Sidebar", "Use selected layout and sidebar", "checkbox"), "layout" => venedor_labels_meta("layout", "Layout", "Select layout.", "radio", "right-sidebar", "radio", $theme_layouts), "sidebar" => venedor_labels_meta("sidebar", "Sidebar", "Select the sidebar you would like to display. <strong>Note</strong>: You must first create the sidebar under <strong>Appearance > Sidebars</strong>.", "customselect", "woocommerce-sidebar", "", $sidebar_options), "header_on_banner" => venedor_labels_meta("header_on_banner", "Header on Banner", "Show header on banner. When select <strong>\"Banner Type\"</strong> to <strong>\"Layerslider\"</strong>, <strong>\"Revolution Slider\"</strong> or <strong>\"Banner\"</strong>, this option will be work.", "checkbox"), "bg_rev_slider" => venedor_labels_meta("bg_rev_slider", "Background Slider", "Select the Background Revolution Slider. If you should select <strong>\"Banner Type\"</strong> to <strong>\"Revolution Slider\"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.", "customselect", "", "", $rev_sliders), "banner_type" => venedor_labels_meta("banner_type", "Banner Type", "Select the banner type which display above the page content.", "customselect", "", "", $banner_type), "banner_width" => venedor_labels_meta("banner_width", "Banner Width", "Select the banner width", "radio", "wide", "radio", $banner_width), "layer_slider" => venedor_labels_meta("layer_slider", "LayerSlider", "Select the LayerSlider.", "customselect", "", "", $layer_sliders), "rev_slider" => venedor_labels_meta("rev_slider", "Revolution Slider", "Select the Revolution Slider.", "customselect", "", "", $rev_sliders), "banner" => venedor_labels_meta("banner", "Banner", "", "textarea"), "product_slider" => venedor_labels_meta("product_slider", "Product Slider", "Comma separated list of product id.", "text"), "content_top" => venedor_labels_meta("content_top", "Content Top", "Input the content top block.", "text"), "content_bottom" => venedor_labels_meta("content_bottom", "Content Bottom", "Input the content bottom block.", "text"));
}
Exemplo n.º 4
0
        public function setSections()
        {
            //Background Patterns Reader
            $venedor_patterns_path = get_template_directory() . '/images/_textures/';
            $venedor_patterns_url = get_template_directory_uri() . '/images/_textures/';
            $venedor_patterns = array();
            $venedor_banner_type = venedor_ct_banner_type();
            $venedor_banner_width = venedor_ct_banner_width();
            $venedor_rev_sliders = venedor_ct_rev_sliders();
            $venedor_layer_sliders = venedor_ct_layer_sliders();
            if (is_dir($venedor_patterns_path)) {
                if ($venedor_patterns_dir = opendir($venedor_patterns_path)) {
                    $venedor_patterns = array();
                    while (($venedor_patterns_file = readdir($venedor_patterns_dir)) !== false) {
                        if (stristr($venedor_patterns_file, '.png') !== false || stristr($venedor_patterns_file, '.jpg') !== false) {
                            $name = explode(".", $venedor_patterns_file);
                            $name = str_replace('.' . end($name), '', $venedor_patterns_file);
                            $venedor_patterns[] = array('alt' => $name, 'img' => $venedor_patterns_url . $venedor_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $theme_data = $ct;
            $item_name = $theme_data->get('Name');
            $tags = $ct->Tags;
            $screenshot = $ct->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf('Customize &#8220;%s&#8221;', $ct->display('Name'));
            ?>
        <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
            <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                    <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    echo 'Current theme preview';
                    ?>
" />
                </a>
                <?php 
                }
                ?>
            <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                echo 'Current theme preview';
                ?>
" />
            <?php 
            }
            ?>

            <h4>
                <?php 
            echo $ct->display('Name');
            ?>
            </h4>

            <div>
                <ul class="theme-info">
                    <li><?php 
            printf('By %s', $ct->display('Author'));
            ?>
</li>
                    <li><?php 
            printf('Version %s', $ct->display('Version'));
            ?>
</li>
                    <li><?php 
            echo '<strong>' . 'Tags' . ':</strong> ';
            printf($ct->display('Tags'));
            ?>
</li>
                </ul>
                <p class="theme-description"><?php 
            echo $ct->display('Description');
            ?>
</p>
                <?php 
            if ($ct->parent()) {
                printf(' <p class="howto">' . 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' . '</p>', 'http://codex.wordpress.org/Child_Themes', $ct->parent()->display('Name'));
            }
            ?>
            </div>
        </div>

        <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            // You can append a new section at any time.
            // General Styles
            $this->sections[] = array('icon' => 'el-icon-cogs', 'icon_class' => 'icon', 'title' => 'General', 'fields' => array(array('id' => 'use-animate-css', 'type' => 'switch', 'title' => 'Use Animate Styles', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'disable-mobile-animate', 'type' => 'switch', 'title' => 'Disable Animate Styles on Mobile', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#6dbcdb', 'hover' => '#838383')), array('id' => '1', 'type' => 'info', 'desc' => 'General Buttons'), array('id' => 'btn-font', 'type' => 'typography', 'title' => 'Button Font', 'google' => true, 'color' => false, 'font-size' => false, 'default' => array('font-weight' => '400', 'font-family' => 'Arial, Helvetica, sans-serif')), array('id' => 'btn-text-transform', 'type' => 'select', 'title' => 'Text Transform', 'options' => array('none' => 'None', 'uppercase' => 'Uppercase', 'lowercase' => 'Lowercase', 'capitalize' => 'Capitalize'), 'default' => 'uppercase'), array('id' => 'btn-border-radius', 'type' => 'spacing', 'mode' => 'absolute', 'all' => true, 'title' => 'Border Radius', 'default' => array('top' => 3, 'bottom' => 3, 'left' => 3, 'right' => 3)), array('id' => 'btn-shadow', 'type' => 'switch', 'title' => 'Shadow Effect', 'default' => '1', 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'btn-text-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#e8e8e8', 'validate' => 'color'), array('id' => 'btn-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#575a59', 'validate' => 'color'), array('id' => 'btn-border', 'type' => 'border', 'all' => true, 'title' => 'Border', 'default' => array('color' => '#575a59', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'btn-hcolor', 'type' => 'color', 'title' => 'Hover Text Color #1', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'btn-hbg-color', 'type' => 'color', 'title' => 'Hover Background Color #1', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => 'btn-hborder', 'type' => 'border', 'all' => true, 'title' => 'Hover Border #1', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'btn-shcolor', 'type' => 'color', 'title' => 'Hover Text Color #2', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'btn-sbg-color', 'type' => 'color', 'title' => 'Hover Background Color #2', 'default' => '#fd5c48', 'validate' => 'color'), array('id' => 'btn-sborder', 'type' => 'border', 'all' => true, 'title' => 'Hover Border #2', 'default' => array('color' => '#fd5c48', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => '2', 'type' => 'info', 'desc' => 'Toolbar, Slider, Pagination Buttons'), array('id' => 'arrow-border-radius', 'type' => 'spacing', 'mode' => 'absolute', 'all' => true, 'title' => 'Border Radius', 'default' => array('top' => 3, 'bottom' => 3, 'left' => 3, 'right' => 3)), array('id' => 'arrow-text-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#9f9f9f', 'validate' => 'color'), array('id' => 'arrow-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#fafafa', 'validate' => 'color'), array('id' => 'arrow-border', 'type' => 'border', 'all' => true, 'title' => 'Border', 'default' => array('color' => '#e0e0e0', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'arrow-hcolor', 'type' => 'color', 'title' => 'Hover Text Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'arrow-hbg-color', 'type' => 'color', 'title' => 'Hover Background Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => 'arrow-hborder', 'type' => 'border', 'all' => true, 'title' => 'Hover Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'toolbar-btn-bg-color', 'type' => 'color', 'title' => 'Toolbar Button Background Color', 'default' => '#f2f2f2', 'validate' => 'color'), array('id' => '3', 'type' => 'info', 'desc' => 'Input Box, Text Area, Select Box, etc'), array('id' => 'input-text-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#a4a4a4', 'validate' => 'color'), array('id' => 'input-border-radius', 'type' => 'spacing', 'mode' => 'absolute', 'all' => true, 'title' => 'Border Radius', 'default' => array('top' => 3, 'bottom' => 3, 'left' => 3, 'right' => 3)), array('id' => 'input-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'input-border', 'type' => 'border', 'all' => true, 'title' => 'Border', 'default' => array('color' => '#e0e0e0', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1))));
            // Body
            $this->sections[] = array('icon' => 'el-icon-picture', 'icon_class' => 'icon', 'title' => 'Body', 'fields' => array(array('id' => 'body-font', 'type' => 'typography', 'title' => 'Body Font', 'google' => true, 'default' => array('color' => "#646464", 'font-weight' => '400', 'font-family' => 'Arial, Helvetica, sans-serif', 'font-size' => '15px')), array('id' => 'body-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'body-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture', 'image' => 'Image'), 'default' => ''), array('id' => 'body-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('body-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'body-bg-image', 'type' => 'media', 'url' => true, 'title' => 'Background Image', 'required' => array('body-bg-mode', 'equals', 'image')), array('id' => 'body-bg-repeat', 'type' => 'select', 'title' => 'Background Repeat', 'options' => array('repeat' => 'Repeat', 'no-repeat' => 'No Repeat', 'repeat-x' => 'Repeat X', 'repeat-y' => 'Repeat Y'), 'default' => 'repeat', 'required' => array('body-bg-mode', 'equals', 'image')), array('id' => 'body-bg-attachment', 'type' => 'select', 'title' => 'Background Attachment', 'options' => array('scroll' => 'Scroll', 'fixed' => 'Fixed'), 'default' => 'scroll', 'required' => array('body-bg-mode', 'equals', 'image')), array('id' => 'body-bg-pos-x', 'type' => 'select', 'title' => 'Background Position X', 'options' => array('left' => 'Left', 'center' => 'Center', 'right' => 'Right'), 'default' => 'center', 'required' => array('body-bg-mode', 'equals', 'image')), array('id' => 'body-bg-pos-y', 'type' => 'select', 'title' => 'Background Position Y', 'options' => array('top' => 'Top', 'center' => 'Center', 'bottom' => 'Bottom'), 'default' => 'top', 'required' => array('body-bg-mode', 'equals', 'image')), array('id' => '2', 'type' => 'info', 'desc' => 'Theme Wrapper'), array('id' => 'wrapper-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'wrapper-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture', 'image' => 'Image'), 'default' => ''), array('id' => 'wrapper-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('wrapper-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'wrapper-bg-image', 'type' => 'media', 'url' => true, 'title' => 'Background Image', 'required' => array('wrapper-bg-mode', 'equals', 'image')), array('id' => 'wrapper-bg-repeat', 'type' => 'select', 'title' => 'Background Repeat', 'options' => array('repeat' => 'Repeat', 'no-repeat' => 'No Repeat', 'repeat-x' => 'Repeat X', 'repeat-y' => 'Repeat Y'), 'default' => 'repeat', 'required' => array('wrapper-bg-mode', 'equals', 'image')), array('id' => 'wrapper-bg-attachment', 'type' => 'select', 'title' => 'Background Attachment', 'options' => array('scroll' => 'Scroll', 'fixed' => 'Fixed'), 'default' => 'scroll', 'required' => array('wrapper-bg-mode', 'equals', 'image')), array('id' => 'wrapper-bg-pos-x', 'type' => 'select', 'title' => 'Background Position X', 'options' => array('left' => 'Left', 'center' => 'Center', 'right' => 'Right'), 'default' => 'center', 'required' => array('wrapper-bg-mode', 'equals', 'image')), array('id' => 'wrapper-bg-pos-y', 'type' => 'select', 'title' => 'Background Position Y', 'options' => array('top' => 'Top', 'center' => 'Center', 'bottom' => 'Bottom'), 'default' => 'top', 'required' => array('wrapper-bg-mode', 'equals', 'image')), array('id' => 'heading-font', 'type' => 'typography', 'title' => 'Heading Font', 'google' => true, 'font-size' => false, 'default' => array('color' => "#444645", 'font-weight' => '400', 'font-family' => 'Oswald')), array('id' => 'heading-desc-font', 'type' => 'typography', 'title' => 'Heading Description Font', 'google' => true, 'font-size' => false, 'default' => array('color' => "#737373", 'font-weight' => '400', 'font-family' => 'PT Sans'))));
            // Header Styles
            $this->sections[] = array('icon' => 'el-icon-website', 'icon_class' => 'icon', 'title' => 'Header', 'fields' => array(array('id' => 'header-font', 'type' => 'typography', 'title' => 'Header Font', 'google' => true, 'default' => array('color' => "#7f7d74", 'font-weight' => '400', 'font-size' => '14px', 'font-family' => 'Arial, Helvetica, sans-serif')), array('id' => '4', 'type' => 'info', 'desc' => 'Header on Banner'), array('id' => 'header-on-banner-color', 'type' => 'color', 'title' => 'Default Color', 'desc' => 'Will be show all texts, mini cart and search form as this color.', 'default' => '#ffffff', 'validate' => 'color'), array('id' => '4', 'type' => 'info', 'desc' => 'Header Top Styles'), array('id' => 'header-top-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#f5f5f5', 'validate' => 'color'), array('id' => 'header-top-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'header-top-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('header-top-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'header-top-border', 'type' => 'border', 'all' => false, 'title' => 'Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 4, 'bottom' => 0)), array('id' => 'header-top-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#7f7d74', 'hover' => '#6dbcdb')), array('id' => 'header-top-icon-color', 'type' => 'link_color', 'active' => false, 'title' => 'Icon Color', 'default' => array('regular' => '#6dbcdb', 'hover' => '#6dbcdb')), array('id' => '5', 'type' => 'info', 'desc' => 'Header Styles'), array('id' => 'header-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'header-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'header-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('header-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'header-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Text Color', 'default' => array('regular' => '#7f7d74', 'hover' => '#6dbcdb')), array('id' => 'header-padding', 'type' => 'spacing', 'mode' => 'padding', 'title' => 'Padding', 'default' => array('top' => 44, 'bottom' => 0, 'left' => 0, 'right' => 0)), array('id' => 'header-logo-margin', 'type' => 'spacing', 'mode' => 'margin', 'title' => 'Logo Margin', 'default' => array('top' => 0, 'bottom' => 0, 'left' => 0, 'right' => 0)), array('id' => 'header-shadow', 'type' => 'switch', 'title' => 'Header Shadow', 'default' => '0', 'on' => 'Enable', 'off' => 'Disable'), array('id' => '6', 'type' => 'info', 'desc' => 'View Switcher'), array('id' => 'view-switcher-width', 'type' => 'text', 'title' => 'Switcher Width', 'default' => '92px'), array('id' => 'view-switcher-customize', 'type' => 'switch', 'title' => 'Customize Switcher', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'view-switcher-link-color', 'type' => 'link_color', 'active' => false, 'required' => array('view-switcher-customize', '=', '1'), 'title' => 'Links Color', 'default' => array('regular' => '#ffffff', 'hover' => '#ffffff')), array('id' => 'view-switcher-bg-color', 'type' => 'color', 'required' => array('view-switcher-customize', '=', '1'), 'title' => 'Background Color', 'default' => '#6dbcdb'), array('id' => 'view-switcher-hbg-color', 'type' => 'color', 'required' => array('view-switcher-customize', '=', '1'), 'title' => 'Hover Background Color', 'default' => '#fd5c48'), array('id' => 'view-switcher-plink-color', 'type' => 'link_color', 'active' => false, 'required' => array('view-switcher-customize', '=', '1'), 'title' => 'Dropdown Links Color', 'default' => array('regular' => '#575a59', 'hover' => '#ffffff')), array('id' => 'view-switcher-pbg-color', 'type' => 'color', 'title' => 'Dropdown Background Color', 'default' => '#e2e2e2', 'validate' => 'color'), array('id' => 'view-switcher-phbg-color', 'type' => 'color', 'title' => 'Dropdown Hover Background Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => '6', 'type' => 'info', 'desc' => 'Mini Cart'), array('id' => 'mini-cart-customize', 'type' => 'switch', 'title' => 'Customize Mini Cart', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'mini-cart-separate', 'type' => 'switch', 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Separate icon and items', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'mini-cart-text-color', 'type' => 'color', 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Text Color', 'default' => '#ffffff'), array('id' => 'mini-cart-icon-color', 'type' => 'color', 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Cart Icon Color', 'default' => '#ffffff'), array('id' => 'mini-cart-bg-color', 'type' => 'color', 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Background Color', 'default' => '#fd5c48'), array('id' => 'mini-cart-border', 'type' => 'border', 'all' => true, 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Border', 'default' => array('color' => '#fd5c48', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'mini-cart-hcolor', 'type' => 'color', 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Hover Text Color', 'default' => '#ffffff'), array('id' => 'mini-cart-hbg-color', 'type' => 'color', 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Hover Background Color', 'default' => '#6dbcdb'), array('id' => 'mini-cart-hborder', 'type' => 'border', 'all' => true, 'required' => array('mini-cart-customize', '=', '1'), 'title' => 'Hover Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'mini-cart-popup-border', 'type' => 'border', 'all' => false, 'title' => 'Popup Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 3, 'bottom' => 0)), array('id' => '6', 'type' => 'info', 'desc' => 'Search Form'), array('id' => 'search-form-customize', 'type' => 'switch', 'title' => 'Customize Search Form', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'search-form-textbox-color', 'type' => 'color', 'required' => array('search-form-customize', '=', '1'), 'title' => 'Textbox Color', 'default' => '#888888'), array('id' => 'search-form-textbox-bg-color', 'type' => 'color', 'required' => array('search-form-customize', '=', '1'), 'title' => 'Textbox Background Color', 'default' => '#ffffff'), array('id' => 'search-form-textbox-border', 'type' => 'border', 'all' => true, 'required' => array('search-form-customize', '=', '1'), 'title' => 'Textbox Border', 'default' => array('color' => '#e0e0e0', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'search-form-btn-color', 'type' => 'color', 'required' => array('search-form-customize', '=', '1'), 'title' => 'Button Color', 'default' => '#ffffff'), array('id' => 'search-form-btn-bg-color', 'type' => 'color', 'required' => array('search-form-customize', '=', '1'), 'title' => 'Button Background Color', 'default' => '#6dbcdb'), array('id' => 'search-form-btn-border', 'type' => 'border', 'all' => true, 'required' => array('search-form-customize', '=', '1'), 'title' => 'Button Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'search-form-btn-hcolor', 'type' => 'color', 'required' => array('search-form-customize', '=', '1'), 'title' => 'Button Hover Color', 'default' => '#ffffff'), array('id' => 'search-form-btn-hbg-color', 'type' => 'color', 'required' => array('search-form-customize', '=', '1'), 'title' => 'Button Hover Background Color', 'default' => '#fd5c48'), array('id' => 'search-form-btn-hborder', 'type' => 'border', 'all' => true, 'required' => array('search-form-customize', '=', '1'), 'title' => 'Button Hover Border', 'default' => array('color' => '#fd5c48', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1))));
            // Menu Styles
            $this->sections[] = array('icon' => 'el-icon-th-large', 'icon_class' => 'icon', 'title' => 'Menu', 'fields' => array(array('id' => 'menu-font', 'type' => 'typography', 'title' => 'Menu Font', 'google' => true, 'color' => false, 'default' => array('font-weight' => '700', 'font-size' => '17px', 'font-family' => 'PT Sans')), array('id' => 'menu-text-transform', 'type' => 'select', 'title' => 'Menu Text Transform', 'options' => array('none' => 'None', 'uppercase' => 'Uppercase', 'lowercase' => 'Lowercase', 'capitalize' => 'Capitalize'), 'default' => 'uppercase'), array('id' => 'menu-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'menu-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'menu-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('menu-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'menu-margin', 'type' => 'spacing', 'mode' => 'margin', 'title' => 'Menu Margin', 'default' => array('top' => 6, 'bottom' => 0, 'left' => 0, 'right' => 0)), array('id' => 'menu-padding', 'type' => 'spacing', 'mode' => 'padding', 'title' => 'Menu Padding', 'default' => array('top' => 0, 'bottom' => 0, 'left' => 0, 'right' => 0)), array('id' => 'menu-in-container', 'type' => 'switch', 'title' => 'Show Menu in Container', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'menu-border', 'type' => 'border', 'all' => false, 'title' => 'Menu Border', 'default' => array('color' => '#d1d5d6', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 1, 'bottom' => 1)), array('id' => 'menu-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#676a70', 'hover' => '#fd5c48')), array('id' => 'menu-link-bg-color', 'type' => 'color', 'title' => 'Link Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'menu-link-hover-bg-color', 'type' => 'color', 'title' => 'Link Hover Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'menu-main-arrow', 'type' => 'switch', 'title' => 'Menu Item Arrow in Level 1', 'desc' => 'If menu item have sub menus, can show/hide menu arrow.', 'default' => '0', 'on' => 'Show', 'off' => 'Hide'), array('id' => 'menu-link-border', 'type' => 'switch', 'title' => 'Top Link Left/Right Border', 'default' => '1', 'on' => 'Show', 'off' => 'Hide'), array('id' => 'menu-link-left-border-color', 'type' => 'text', 'required' => array('menu-link-border', 'equals', '1'), 'title' => 'Left Border Color', 'default' => 'rgba(200, 200, 200, 0.2)'), array('id' => 'menu-link-right-border-color', 'type' => 'text', 'required' => array('menu-link-border', 'equals', '1'), 'title' => 'Right Border Color', 'default' => 'rgba(0, 0, 0, 0.13)'), array('id' => '7', 'type' => 'info', 'desc' => 'Sub Menu & Popup'), array('id' => 'submenu-font', 'type' => 'typography', 'title' => 'Sub Menu Font', 'google' => true, 'color' => false, 'default' => array('font-weight' => '700', 'font-size' => '16px', 'font-family' => 'Gudea')), array('id' => 'submenu-text-transform', 'type' => 'select', 'title' => 'Sub Menu Text Transform', 'options' => array('none' => 'None', 'uppercase' => 'Uppercase', 'lowercase' => 'Lowercase', 'capitalize' => 'Capitalize'), 'default' => 'uppercase'), array('id' => 'submenu-border', 'type' => 'border', 'all' => false, 'title' => 'Border', 'default' => array('color' => '#66afcc', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 1, 'bottom' => 0)), array('id' => 'submenu-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'submenu-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#565957', 'hover' => '#6dbcdb')), array('id' => 'submenu2-bg-color', 'type' => 'color', 'title' => 'Mobile Popup Level-2 BG Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'submenu3-bg-color', 'type' => 'color', 'title' => 'Mobile Popup Level-3 BG Color', 'default' => '#ffffff', 'validate' => 'color')));
            // Breadcrumbs Styles
            $this->sections[] = array('icon' => 'el-icon-minus', 'icon_class' => 'icon', 'title' => 'Breadcrumbs', 'fields' => array(array('id' => 'breadcrumbs-font', 'type' => 'typography', 'title' => 'Breadcrumbs Font', 'google' => true, 'color' => false, 'default' => array('font-weight' => '400', 'font-size' => '13px', 'font-family' => 'Oswald')), array('id' => 'breadcrumbs-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#ffffff', 'hover' => '#e8e8e8')), array('id' => 'breadcrumbs-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => 'breadcrumbs-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'breadcrumbs-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('breadcrumbs-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'breadcrumbs-border', 'type' => 'border', 'all' => false, 'title' => 'Border', 'default' => array('color' => '#d6d6d6', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 0, 'bottom' => 0))));
            // Footer Styles
            $this->sections[] = array('icon' => 'el-icon-website', 'icon_class' => 'icon', 'title' => 'Footer', 'fields' => array(array('id' => '8', 'type' => 'info', 'desc' => 'Content Bottom Widget Area'), array('id' => 'content-bottom-padding-top', 'type' => 'text', 'title' => 'Padding Top', 'default' => '60px'), array('id' => 'content-bottom-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#f2f2f2', 'validate' => 'color'), array('id' => 'content-bottom-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'content-bottom-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('content-bottom-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => '8', 'type' => 'info', 'desc' => 'Footer Top'), array('id' => 'footer-top-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#d6d6d6', 'validate' => 'color'), array('id' => 'footer-top-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'footer-top-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('footer-top-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'footer-top-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#575a59'), array('id' => 'footer-top-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#6dbcdb', 'hover' => '#686a69')), array('id' => 'footer-top-textbox-color', 'type' => 'color', 'title' => 'Textbox Color', 'default' => '#727b7c'), array('id' => 'footer-top-textbox-bg-color', 'type' => 'color', 'title' => 'Textbox Background Color', 'default' => '#d6d6d6'), array('id' => 'footer-top-textbox-border', 'type' => 'border', 'all' => true, 'title' => 'Textbox Border', 'default' => array('color' => '#ffe019', 'style' => 'solid', 'left' => 3, 'right' => 3, 'top' => 3, 'bottom' => 3)), array('id' => 'footer-top-btn-color', 'type' => 'color', 'title' => 'Button Color', 'default' => '#ffffff'), array('id' => 'footer-top-btn-bg-color', 'type' => 'color', 'title' => 'Button Background Color', 'default' => '#575a59'), array('id' => 'footer-top-btn-border', 'type' => 'border', 'all' => true, 'title' => 'Button Border', 'default' => array('color' => '#575a59', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'footer-top-btn-hcolor', 'type' => 'color', 'title' => 'Button Hover Color', 'default' => '#ffffff'), array('id' => 'footer-top-btn-hbg-color', 'type' => 'color', 'title' => 'Button Hover Background Color', 'default' => '#6dbcdb'), array('id' => 'footer-top-btn-hborder', 'type' => 'border', 'all' => true, 'title' => 'Button Hover Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => '8', 'type' => 'info', 'desc' => 'Footer'), array('id' => 'footer-heading-font', 'type' => 'typography', 'title' => 'Footer Heading Font', 'google' => true, 'default' => array('color' => "#e3e3e3", 'font-weight' => '400', 'font-size' => '19px', 'font-family' => 'Oswald')), array('id' => 'footer-font', 'type' => 'typography', 'title' => 'Footer Font', 'google' => true, 'font-size' => false, 'default' => array('color' => "#dedede", 'font-weight' => '400', 'font-size' => '15px', 'font-family' => 'Gudea')), array('id' => 'footer-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#444645', 'validate' => 'color'), array('id' => 'footer-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'footer-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('footer-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'footer-widget-border', 'type' => 'border', 'all' => false, 'title' => 'Footer Border', 'default' => array('color' => '#383938', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 0, 'bottom' => 1)), array('id' => 'footer-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#dedede', 'hover' => '#6dbcdb')), array('id' => '8', 'type' => 'info', 'desc' => 'Social Links & Copyright'), array('id' => 'footer-bottom-border', 'type' => 'border', 'all' => false, 'title' => 'Border', 'default' => array('color' => '#535554', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 1, 'bottom' => 0)), array('id' => 'footer-bottom-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#444645', 'validate' => 'color'), array('id' => 'footer-bottom-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture'), 'default' => ''), array('id' => 'footer-bottom-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('footer-bottom-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'footer-bottom-text-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#b3b3b3', 'validate' => 'color'), array('id' => 'footer-bottom-link-color', 'type' => 'link_color', 'active' => false, 'title' => 'Links Color', 'default' => array('regular' => '#b3b3b3', 'hover' => '#6dbcdb')), array('id' => 'footer-social-color', 'type' => 'color', 'title' => 'Social Link Color', 'default' => '#fafafa', 'validate' => 'color'), array('id' => 'footer-social-bg-color', 'type' => 'color', 'title' => 'Social Link BG Color', 'default' => '#626664', 'validate' => 'color'), array('id' => 'footer-social-border', 'type' => 'border', 'all' => true, 'title' => 'Social Link Border', 'default' => array('color' => '#626664', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1))));
            // Block, Sidebar, Table, Form Styles
            $this->sections[] = array('icon' => 'el-icon-check-empty', 'icon_class' => 'icon', 'title' => 'Block, Sidebar, Table, Form', 'fields' => array(array('id' => 'table-heading-font', 'type' => 'typography', 'title' => 'Table Heading Font', 'google' => true, 'font-size' => false, 'font-weight' => false, 'default' => array('color' => "#565656", 'font-family' => 'Gudea')), array('id' => 'sidebar-font', 'type' => 'typography', 'title' => 'Sidebar Font', 'google' => true, 'default' => array('color' => "#737373", 'font-weight' => '400', 'font-size' => '15px', 'font-family' => 'Gudea')), array('id' => 'block-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#f7f7f7', 'validate' => 'color'), array('id' => 'block-border', 'type' => 'border', 'all' => true, 'title' => 'Border', 'default' => array('color' => '#dcdcdc', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'block-border-radius', 'type' => 'spacing', 'mode' => 'absolute', 'all' => true, 'title' => 'Border Radius', 'default' => array('top' => 3, 'bottom' => 3, 'left' => 3, 'right' => 3)), array('id' => 'sidebar-style', 'type' => 'button_set', 'title' => 'Sidebar Style', 'options' => array('background' => 'Customize', '' => 'Default'), 'default' => 'background'), array('id' => 'sidebar-heading1-bg-color', 'type' => 'color', 'required' => array('sidebar-style', 'equals', 'background'), 'title' => 'Sidebar Heading #1 BG Color', 'default' => '#e1e4e5'), array('id' => 'sidebar-heading1-text-color', 'type' => 'color', 'required' => array('sidebar-style', 'equals', 'background'), 'title' => 'Sidebar Heading #1 Text Color', 'default' => '#676a70'), array('id' => 'sidebar-heading2-bg-color', 'type' => 'color', 'required' => array('sidebar-style', 'equals', 'background'), 'title' => 'Sidebar Heading #2 BG Color', 'default' => '#e1e4e5'), array('id' => 'sidebar-heading2-text-color', 'type' => 'color', 'required' => array('sidebar-style', 'equals', 'background'), 'title' => 'Sidebar Heading #2 Text Color', 'default' => '#676a70'), array('id' => 'sidebar-content-bg-color', 'type' => 'color', 'required' => array('sidebar-style', 'equals', 'background'), 'title' => 'Sidebar Content BG Color', 'default' => '#ffffff'), array('id' => 'sidebar-scroll', 'type' => 'switch', 'title' => 'Sidebar Scroll Effect', 'default' => '0', 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'block-title-color', 'type' => 'color', 'title' => 'Block, Table Heading Color', 'default' => '#565656', 'validate' => 'color'), array('id' => 'block-title-bg-color', 'type' => 'color', 'title' => 'Block, Table Heading BG Color', 'default' => '#f4f4f4', 'validate' => 'color'), array('id' => 'filter-title-color', 'type' => 'color', 'title' => 'Product Filter Heading Color', 'default' => '#777777', 'validate' => 'color'), array('id' => 'filter-text-color', 'type' => 'color', 'title' => 'Product Filter Text Color', 'default' => '#888888', 'validate' => 'color')));
            // Testimonial Styles
            $this->sections[] = array('icon' => 'el-icon-quotes', 'icon_class' => 'icon', 'title' => 'Testimonial', 'fields' => array(array('id' => 'testimonial-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#f6f6f6', 'validate' => 'color'), array('id' => 'testimonial-border-color', 'type' => 'color', 'title' => 'Border Color', 'default' => '#dcdcdc', 'validate' => 'color'), array('id' => 'testimonial-arrow', 'type' => 'media', 'url' => true, 'title' => 'Arrow Image', 'compiler' => 'true', 'default' => array('url' => get_template_directory_uri() . '/images/testimonial-arrow.png')), array('id' => 'testimonial-title-color', 'type' => 'color', 'title' => 'Title Color', 'default' => '#757978', 'validate' => 'color'), array('id' => 'testimonial-text-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#8f9290', 'validate' => 'color'), array('id' => 'testimonial-quote-color', 'type' => 'color', 'title' => 'Quote Mark Color', 'default' => '#d8d7d7', 'validate' => 'color'), array('id' => 'testimonial-name-color', 'type' => 'color', 'title' => 'Name Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => 'testimonial-link-color', 'type' => 'color', 'title' => 'Link Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => 'testimonial-date-color', 'type' => 'color', 'title' => 'Date Color', 'default' => '#bdbdbd', 'validate' => 'color')));
            // Banner
            $this->sections[] = array('icon' => 'el-icon-picture', 'icon_class' => 'icon', 'title' => 'Banner', 'fields' => array(array('id' => 'banner-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#f2f2f2', 'validate' => 'color'), array('id' => 'banner-bg-mode', 'type' => 'select', 'title' => 'Background Mode', 'options' => array('texture' => 'Texture', 'image' => 'Image'), 'default' => ''), array('id' => 'banner-bg-texture', 'type' => 'image_select', 'tiles' => true, 'required' => array('banner-bg-mode', 'equals', 'texture'), 'title' => 'Background Texture', 'default' => 0, 'options' => $venedor_patterns), array('id' => 'banner-bg-image', 'type' => 'media', 'url' => true, 'title' => 'Background Image', 'required' => array('banner-bg-mode', 'equals', 'image')), array('id' => 'banner-bg-repeat', 'type' => 'select', 'title' => 'Background Repeat', 'options' => array('repeat' => 'Repeat', 'no-repeat' => 'No Repeat', 'repeat-x' => 'Repeat X', 'repeat-y' => 'Repeat Y'), 'default' => 'repeat', 'required' => array('banner-bg-mode', 'equals', 'image')), array('id' => 'banner-bg-attachment', 'type' => 'select', 'title' => 'Background Attachment', 'options' => array('scroll' => 'Scroll', 'fixed' => 'Fixed'), 'default' => 'scroll', 'required' => array('banner-bg-mode', 'equals', 'image')), array('id' => 'banner-bg-pos-x', 'type' => 'select', 'title' => 'Background Position X', 'options' => array('left' => 'Left', 'center' => 'Center', 'right' => 'Right'), 'default' => 'center', 'required' => array('banner-bg-mode', 'equals', 'image')), array('id' => 'banner-bg-pos-y', 'type' => 'select', 'title' => 'Background Position Y', 'options' => array('top' => 'Top', 'center' => 'Center', 'bottom' => 'Bottom'), 'default' => 'top', 'required' => array('banner-bg-mode', 'equals', 'image')), array('id' => 'banner-text-color', 'type' => 'color', 'title' => 'Text Color', 'default' => '#585858', 'validate' => 'color'), array('id' => 'banner-border-top', 'type' => 'border', 'all' => true, 'title' => 'Border Top', 'default' => array('color' => '#d5d5d5', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 0, 'bottom' => 0)), array('id' => 'banner-border-bottom', 'type' => 'border', 'all' => true, 'title' => 'Border Bottom', 'default' => array('color' => '#d5d5d5', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 0, 'bottom' => 0)), array('id' => '6', 'type' => 'info', 'desc' => 'Banner Arrow Button'), array('id' => 'banner-nav-customize', 'type' => 'switch', 'title' => 'Customize Banner Arrow Button', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'banner-nav-color', 'type' => 'color', 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Text Color', 'default' => '#a3a3a3'), array('id' => 'banner-nav-bg-color', 'type' => 'color', 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Background Color', 'default' => '#fafafa'), array('id' => 'banner-nav-border', 'type' => 'border', 'all' => true, 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Border', 'default' => array('color' => '#e0e0e0', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'banner-nav-border-radius', 'type' => 'spacing', 'mode' => 'absolute', 'all' => true, 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Arrow Border Radius', 'default' => array('top' => 3, 'bottom' => 3, 'left' => 3, 'right' => 3)), array('id' => 'banner-nav-hcolor', 'type' => 'color', 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Hover Text Color', 'default' => '#ffffff'), array('id' => 'banner-nav-hbg-color', 'type' => 'color', 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Hover Background Color', 'default' => '#fd5c48'), array('id' => 'banner-nav-hborder', 'type' => 'border', 'all' => true, 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Hover Border', 'default' => array('color' => '#fd5c48', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'banner-bullet-bg-color', 'type' => 'color', 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Pagination Background Color', 'default' => '#575a59'), array('id' => 'banner-bullet-border', 'type' => 'border', 'all' => true, 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Pagination Border', 'default' => array('color' => 'transparent', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 0, 'bottom' => 0)), array('id' => 'banner-bullet-hbg-color', 'type' => 'color', 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Pagination Hover Background Color', 'default' => '#6dbcdb'), array('id' => 'banner-bullet-hborder', 'type' => 'border', 'all' => true, 'required' => array('banner-nav-customize', '=', '1'), 'title' => 'Pagination Hover Border', 'default' => array('color' => 'transparent', 'style' => 'solid', 'left' => 0, 'right' => 0, 'top' => 0, 'bottom' => 0))));
            // Category Styles
            $this->sections[] = array('icon' => 'el-icon-briefcase', 'icon_class' => 'icon', 'title' => 'Shop & Category (Woocommerce)', 'fields' => array(array('id' => '9', 'type' => 'info', 'desc' => 'Category Item'), array('id' => 'category-item-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'category-item-border', 'type' => 'border', 'all' => true, 'title' => 'Border', 'default' => array('color' => 'transparent', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'category-hitem-bg-color', 'type' => 'color', 'title' => 'Hover Background Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'category-hitem-border', 'type' => 'border', 'all' => true, 'title' => 'Hover Border', 'default' => array('color' => '#e8e8e8', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1))));
            // Product Styles
            $this->sections[] = array('icon' => 'el-icon-gift', 'icon_class' => 'icon', 'title' => 'Product (Woocommerce)', 'fields' => array(array('id' => 'product-name-font', 'type' => 'typography', 'title' => 'Product Name Font', 'google' => true, 'font-size' => false, 'font-weight' => false, 'default' => array('color' => "#737373", 'font-family' => 'PT Sans')), array('id' => 'product-rating-star-color', 'type' => 'color', 'title' => 'Rating Star Color', 'default' => '#ffd624', 'validate' => 'color'), array('id' => 'product-rating-color', 'type' => 'color', 'title' => 'Rating Text Color', 'default' => '#bdbdbd', 'validate' => 'color'), array('id' => '10', 'type' => 'info', 'desc' => 'Price'), array('id' => 'product-price-font', 'type' => 'typography', 'title' => 'Product Price Font', 'google' => true, 'color' => false, 'font-size' => false, 'default' => array('font-weight' => '700', 'font-family' => 'Gudea')), array('id' => 'product-price-color', 'type' => 'color', 'title' => 'Price Color', 'default' => '#c72929', 'validate' => 'color'), array('id' => 'product-oprice-color', 'type' => 'color', 'title' => 'Old Price Color', 'default' => '#626564', 'validate' => 'color'), array('id' => 'product-sprice-color', 'type' => 'color', 'title' => 'Special Price Color', 'desc' => 'will be use in the price box on the product image', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'product-price-bg-color', 'type' => 'color', 'title' => 'Background Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => '10', 'type' => 'info', 'desc' => '"Hot", "Sale" Labels'), array('id' => 'product-sales-font', 'type' => 'typography', 'title' => '"Hot", "Sale" Label Font', 'google' => true, 'font-size' => false, 'default' => array('color' => "#fff", 'font-weight' => '700', 'font-family' => 'PT Sans')), array('id' => 'product-hot-color', 'type' => 'color', 'title' => '"Hot" Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'product-hot-bg-color', 'type' => 'color', 'title' => '"Hot" Background Color', 'default' => '#6dbcdb', 'validate' => 'color'), array('id' => 'product-sale-color', 'type' => 'color', 'title' => '"Sale" Color', 'default' => '#ffffff', 'validate' => 'color'), array('id' => 'product-sale-bg-color', 'type' => 'color', 'title' => '"Sale" Background Color', 'default' => '#d51a03', 'validate' => 'color'), array('id' => '6', 'type' => 'info', 'desc' => 'Add to Cart Button'), array('id' => 'addcart-customize', 'type' => 'switch', 'title' => 'Customize Add to Cart Button', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'addcart-color', 'type' => 'color', 'required' => array('addcart-customize', '=', '1'), 'title' => 'Text Color', 'default' => '#e8e8e8'), array('id' => 'addcart-bg-color', 'type' => 'color', 'required' => array('addcart-customize', '=', '1'), 'title' => 'Background Color', 'default' => '#575a59'), array('id' => 'addcart-border', 'type' => 'border', 'all' => true, 'required' => array('addcart-customize', '=', '1'), 'title' => 'Border', 'default' => array('color' => '#575a59', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'addcart-hcolor', 'type' => 'color', 'required' => array('addcart-customize', '=', '1'), 'title' => 'Hover Text Color', 'default' => '#ffffff'), array('id' => 'addcart-hbg-color', 'type' => 'color', 'required' => array('addcart-customize', '=', '1'), 'title' => 'Hover Background Color', 'default' => '#6dbcdb'), array('id' => 'addcart-hborder', 'type' => 'border', 'all' => true, 'required' => array('addcart-customize', '=', '1'), 'title' => 'Hover Border', 'default' => array('color' => '#6dbcdb', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => '6', 'type' => 'info', 'desc' => 'Add to Wishlist, Compare Button'), array('id' => 'addto-customize', 'type' => 'switch', 'title' => 'Customize Add to Wishlist, Compare Button', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'addto-color', 'type' => 'color', 'required' => array('addto-customize', '=', '1'), 'title' => 'Text Color', 'default' => '#bcbcbc'), array('id' => 'addto-bg-color', 'type' => 'color', 'required' => array('addto-customize', '=', '1'), 'title' => 'Background Color', 'default' => '#ededed'), array('id' => 'addto-border', 'type' => 'border', 'all' => true, 'required' => array('addto-customize', '=', '1'), 'title' => 'Border', 'default' => array('color' => '#dfdfdf', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1)), array('id' => 'addto-hcolor', 'type' => 'color', 'required' => array('addto-customize', '=', '1'), 'title' => 'Hover Text Color', 'default' => '#ffffff'), array('id' => 'addto-hbg-color', 'type' => 'color', 'required' => array('addto-customize', '=', '1'), 'title' => 'Hover Background Color', 'default' => '#fd5c48'), array('id' => 'addto-hborder', 'type' => 'border', 'all' => true, 'required' => array('addto-customize', '=', '1'), 'title' => 'Hover Border', 'default' => array('color' => '#fd5c48', 'style' => 'solid', 'left' => 1, 'right' => 1, 'top' => 1, 'bottom' => 1))));
            // Custom CSS Code Settings
            $this->sections[] = array('icon' => 'el-icon-eye-open', 'icon_class' => 'icon', 'title' => 'Custom CSS', 'fields' => array(array('id' => 'css-code', 'type' => 'ace_editor', 'title' => 'CSS Code', 'subtitle' => 'Paste your CSS code here.', 'mode' => 'css', 'theme' => 'monokai', 'desc' => 'Possible modes can be found at <a href="http://ace.c9.io" target="_blank">http://ace.c9.io/</a>.', 'default' => "")));
        }
Exemplo n.º 5
0
        public function setSections()
        {
            //Background Patterns Reader
            $venedor_patterns_path = get_template_directory() . '/images/_textures/';
            $venedor_patterns_url = get_template_directory_uri() . '/images/_textures/';
            $venedor_patterns = array();
            $venedor_banner_type = venedor_ct_banner_type();
            $venedor_banner_width = venedor_ct_banner_width();
            $venedor_rev_sliders = venedor_ct_rev_sliders();
            $venedor_layer_sliders = venedor_ct_layer_sliders();
            if (is_dir($venedor_patterns_path)) {
                if ($venedor_patterns_dir = opendir($venedor_patterns_path)) {
                    $venedor_patterns = array();
                    while (($venedor_patterns_file = readdir($venedor_patterns_dir)) !== false) {
                        if (stristr($venedor_patterns_file, '.png') !== false || stristr($venedor_patterns_file, '.jpg') !== false) {
                            $name = explode(".", $venedor_patterns_file);
                            $name = str_replace('.' . end($name), '', $venedor_patterns_file);
                            $venedor_patterns[] = array('alt' => $name, 'img' => $venedor_patterns_url . $venedor_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $theme_data = $ct;
            $item_name = $theme_data->get('Name');
            $tags = $ct->Tags;
            $screenshot = $ct->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf('Customize &#8220;%s&#8221;', $ct->display('Name'));
            ?>
        <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
            <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                    <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    echo 'Current theme preview';
                    ?>
" />
                </a>
                <?php 
                }
                ?>
            <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                echo 'Current theme preview';
                ?>
" />
            <?php 
            }
            ?>

            <h4>
                <?php 
            echo $ct->display('Name');
            ?>
            </h4>

            <div>
                <ul class="theme-info">
                    <li><?php 
            printf('By %s', $ct->display('Author'));
            ?>
</li>
                    <li><?php 
            printf('Version %s', $ct->display('Version'));
            ?>
</li>
                    <li><?php 
            echo '<strong>' . 'Tags' . ':</strong> ';
            printf($ct->display('Tags'));
            ?>
</li>
                </ul>
                <p class="theme-description"><?php 
            echo $ct->display('Description');
            ?>
</p>
                <?php 
            if ($ct->parent()) {
                printf(' <p class="howto">' . 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' . '</p>', 'http://codex.wordpress.org/Child_Themes', $ct->parent()->display('Name'));
            }
            ?>
            </div>
        </div>

        <?php 
            $item_info = ob_get_contents();
            ob_end_clean();
            // You can append a new section at any time.
            // General Settings
            $this->sections[] = array('icon' => 'el-icon-cogs', 'icon_class' => 'icon', 'title' => 'General', 'fields' => array(array('id' => 'wrapper-layout', 'type' => 'switch', 'title' => 'Theme Wrapper', 'default' => '1', 'on' => 'Full Width', 'off' => 'Boxed'), array('id' => 'layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'right-sidebar'), array('id' => 'page-comment', 'type' => 'switch', 'title' => 'Show Comment Form on Page', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => '2', 'type' => 'info', 'desc' => 'Logo, Icons'), array('id' => 'logo', 'type' => 'media', 'url' => true, 'title' => 'Logo', 'compiler' => 'true', 'default' => array('url' => get_template_directory_uri() . '/images/logo/logo' . VENEDOR_SETTINGS . '.png')), array('id' => 'logo-on-banner', 'type' => 'media', 'url' => true, 'title' => 'Logo (Header on Banner)', 'compiler' => 'true', 'desc' => "This logo will be show when header appears on banner. If not set, will be show default logo.", 'default' => array('url' => get_template_directory_uri() . '/images/logo/logo_banner.png')), array('id' => 'sticky-logo', 'type' => 'media', 'url' => true, 'title' => 'Sticky Header Logo', 'compiler' => 'true', 'default' => array('url' => get_template_directory_uri() . '/images/logo/logo' . VENEDOR_SETTINGS . '.png')), array('id' => 'favicon', 'type' => 'media', 'url' => true, 'title' => 'Favicon', 'compiler' => 'true', 'default' => array('url' => get_template_directory_uri() . '/images/logo/favicon.ico')), array('id' => 'icon-iphone', 'type' => 'media', 'url' => true, 'title' => 'Apple iPhone Icon', 'compiler' => 'true', 'desc' => 'Icon for Apple iPhone (57px X 57px)', 'default' => array('url' => get_template_directory_uri() . '/images/logo/apple-touch-icon.png')), array('id' => 'icon-iphone-retina', 'type' => 'media', 'url' => true, 'title' => 'Apple iPhone Retina Icon', 'compiler' => 'true', 'desc' => 'Icon for Apple iPhone Retina (114px X 114px)', 'default' => array('url' => get_template_directory_uri() . '/images/logo/apple-touch-icon-114x114.png')), array('id' => 'icon-ipad', 'type' => 'media', 'url' => true, 'title' => 'Apple iPad Icon', 'compiler' => 'true', 'desc' => 'Icon for Apple iPad (72px X 72px)', 'default' => array('url' => get_template_directory_uri() . '/images/logo/apple-touch-icon-72x72.png')), array('id' => 'icon-ipad-retina', 'type' => 'media', 'url' => true, 'title' => 'Apple iPad Retina Icon', 'compiler' => 'true', 'desc' => 'Icon for Apple iPad Retina (144px X 144px)', 'default' => array('url' => get_template_directory_uri() . '/images/logo/apple-touch-icon-144x144.png')), array('id' => '4', 'type' => 'info', 'desc' => 'Tracking Code'), array('id' => 'tracking-code', 'type' => 'textarea', 'title' => 'Tracking Code', 'subtitle' => 'Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.'), array('id' => '4', 'type' => 'info', 'desc' => 'Javascript Code'), array('id' => 'js-code', 'type' => 'ace_editor', 'title' => 'JS Code', 'subtitle' => 'Paste your JS code here.', 'mode' => 'javascript', 'theme' => 'chrome', 'desc' => 'Possible modes can be found at <a href="http://ace.c9.io" target="_blank">http://ace.c9.io/</a>.', 'default' => "jQuery(document).ready(function(){\n\n});")));
            // Plugin Settings
            $this->sections[] = array('icon' => 'el-icon-wrench', 'icon_class' => 'icon', 'title' => 'Plugin Settings', 'fields' => array(array('id' => '2', 'type' => 'info', 'desc' => 'Enable / Disable Plugins Integrated Within The Theme'), array('id' => 'posts-type-order', 'type' => 'switch', 'title' => 'Enable Posts Type Order Plugin', 'desc' => 'Note: It can break the order of next post/previous post links.', 'default' => '1', 'on' => 'Yes', 'off' => 'No')));
            // Header Settings
            $this->sections[] = array('icon' => 'el-icon-website', 'icon_class' => 'icon', 'title' => 'Header', 'fields' => array(array('id' => '2', 'type' => 'info', 'desc' => 'Header Top'), array('id' => 'show-header-top', 'type' => 'switch', 'title' => 'Show Header Top', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'topnav-pos', 'type' => 'button_set', 'title' => 'Top Navigation Position', 'options' => array('none' => 'None', 'left' => 'Left', 'right' => 'Right'), 'default' => 'left'), array('id' => '2', 'type' => 'info', 'desc' => 'Header'), array('id' => 'logo-pos', 'type' => 'button_set', 'title' => 'Logo Position', 'options' => array('left' => 'Left', 'center' => 'Center'), 'default' => 'center'), array('id' => 'wpml-switcher', 'type' => 'switch', 'title' => 'Show WPML Switcher', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'switcher-pos', 'type' => 'button_set', 'title' => 'View Switcher Position', 'options' => array('none' => 'None', 'top' => 'Top', 'middle' => 'Middle', 'bottom' => 'Bottom'), 'default' => 'top'), array('id' => 'minicart-pos', 'type' => 'button_set', 'title' => 'Mini Cart Position', 'options' => array('none' => 'None', 'top' => 'Top', 'middle' => 'Middle', 'bottom' => 'Bottom'), 'default' => 'top'), array('id' => 'show-minicart-icon', 'type' => 'switch', 'title' => 'Show Only Mini Cart Icon', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'show-searchform', 'type' => 'switch', 'title' => 'Show Search Form', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'search-type', 'type' => 'button_set', 'title' => 'Search Post Type', 'options' => array('all' => 'All', 'post' => 'Post', 'product' => 'Product'), 'default' => 'product'), array('id' => 'search-pos', 'type' => 'button_set', 'title' => 'Search Form Position', 'options' => array('middle' => 'Middle', 'bottom' => 'Bottom'), 'default' => 'bottom'), array('id' => 'search-popup', 'type' => 'switch', 'required' => array('show-searchform', 'equals', '1'), 'title' => 'Toggle Search Form', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'welcome-msg', 'type' => 'text', 'title' => 'Welcome Message', 'default' => 'Welcome message!'), array('id' => 'header-contact-block', 'type' => 'text', 'title' => 'Header Contact Block', 'desc' => 'Input static block name', 'default' => ''), array('id' => 'header-contact-pos', 'type' => 'button_set', 'title' => 'Header Contact Position', 'options' => array('left' => 'Left', 'bottom' => 'Bottom'), 'default' => 'bottom'), array('id' => '2', 'type' => 'info', 'desc' => 'Main Menu'), array('id' => 'menu-align', 'type' => 'button_set', 'title' => 'Menu Position', 'options' => array('left' => 'Left', 'right' => 'Right'), 'default' => 'left'), array('id' => 'menu-item-padding', 'type' => 'button_set', 'title' => 'Menu Item Padding in Level 1', 'options' => array('dynamic' => 'Dynamic', 'static' => 'Static'), 'desc' => 'If set to "Dynamic", menu wrapper width will be container width and menu item padding will be calculate dynamically.', 'default' => 'static'), array('id' => '2', 'type' => 'info', 'desc' => 'Sticky Header'), array('id' => 'enable-sticky-header', 'type' => 'switch', 'title' => 'Enable Sticky Header', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'show-sticky-logo', 'type' => 'switch', 'title' => 'Show Logo on Sticky Header', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'show-sticky-searchform', 'type' => 'switch', 'title' => 'Show Search Form', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'show-sticky-switcher', 'type' => 'switch', 'title' => 'Show Switcher', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'show-sticky-minicart', 'type' => 'switch', 'title' => 'Show Mini Cart', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'show-sticky-minicart-icon', 'type' => 'switch', 'title' => 'Show Only Mini Cart Icon', 'default' => '0', 'on' => 'Yes', 'off' => 'No')));
            // Breadcrumbs Settings
            $this->sections[] = array('icon' => 'el-icon-minus', 'icon_class' => 'icon', 'title' => 'Breadcrumbs', 'fields' => array(array('id' => 'show-breadcrumbs', 'type' => 'switch', 'title' => 'Show Breadcrumbs', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'breadcrumbs-before-banner', 'type' => 'switch', 'required' => array('show-breadcrumbs', 'equals', '1'), 'title' => 'Show Breadcrumbs Before Banner', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'breadcrumbs-separator', 'type' => 'select', 'title' => 'Separator', 'options' => array('>' => '>', '|' => '|', '/' => '/'), 'default' => '>')));
            // Footer Settings
            $this->sections[] = array('icon' => 'el-icon-website', 'icon_class' => 'icon', 'title' => 'Footer', 'fields' => array(array('id' => "footer-copyright", 'type' => 'textarea', 'title' => 'Copyright', 'default' => '&copy; 2014 Venedor Store. All Rights Reserved.'), array('id' => '1', 'type' => 'info', 'desc' => 'Social Links'), array('id' => "footer-social-facebook", 'type' => 'text', 'title' => 'Facebook', 'default' => '#'), array('id' => "footer-social-twitter", 'type' => 'text', 'title' => 'Twitter', 'default' => '#'), array('id' => "footer-social-rss", 'type' => 'text', 'title' => 'RSS', 'default' => '#'), array('id' => "footer-social-pinterest", 'type' => 'text', 'title' => 'Pinterest', 'default' => '#'), array('id' => "footer-social-youtube", 'type' => 'text', 'title' => 'Youtube', 'default' => '#'), array('id' => "footer-social-instagram", 'type' => 'text', 'title' => 'Instagram', 'default' => '#'), array('id' => "footer-social-skype", 'type' => 'text', 'title' => 'Skype', 'default' => '#'), array('id' => "footer-social-linkedin", 'type' => 'text', 'title' => 'LinkedIn', 'default' => '#'), array('id' => "footer-social-googleplus", 'type' => 'text', 'title' => 'Google Plus', 'default' => '#')));
            // Homepage
            $this->sections[] = array('icon' => 'el-icon-home', 'icon_class' => 'icon', 'title' => 'Homepage', 'fields' => array(array('id' => '1', 'type' => 'info', 'desc' => '<strong>If select the home page to a static page, the settings will be ignore.</strong>'), array('id' => 'home-layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'right-sidebar'), array('id' => 'home-header-on-banner', 'type' => 'button_set', 'title' => 'Header on Banner', 'options' => array('header_on_banner' => 'Yes', '' => 'No'), 'desc' => 'Show header on banner. When select <strong>"Banner Type"</strong> to <strong>"Layerslider"</strong>, <strong>"Revolution Slider"</strong> or <strong>"Banner"</strong>, this option will be work.', 'default' => ''), array('id' => 'home-bg-slider', 'type' => 'select', 'compiler' => true, 'title' => 'Home Background Slider', 'options' => $venedor_rev_sliders, 'desc' => 'Select the Background Revolution Slider. If you should select <strong>"Banner Type"</strong> to <strong>"Revolution Slider"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.', 'default' => 0), array('id' => 'home-banner-type', 'type' => 'select', 'compiler' => true, 'title' => 'Home Banner Type', 'options' => $venedor_banner_type, 'default' => 0), array('id' => 'home-banner-width', 'type' => 'select', 'compiler' => true, 'title' => 'Home Banner Width', 'options' => $venedor_banner_width, 'default' => 'wide'), array('id' => 'home-layerslider', 'type' => 'select', 'compiler' => true, 'required' => array('home-banner-type', 'equals', 'layer_slider'), 'title' => 'Layer Slider', 'options' => $venedor_layer_sliders, 'default' => 0), array('id' => 'home-revslider', 'type' => 'select', 'compiler' => true, 'required' => array('home-banner-type', 'equals', 'rev_slider'), 'title' => 'Revolution Slider', 'options' => $venedor_rev_sliders, 'default' => 0), array('id' => 'home-productslider', 'type' => 'text', 'required' => array('home-banner-type', 'equals', 'product_slider'), 'title' => 'Product IDs for Slider', 'desc' => 'Comma separated list of product ids.'), array('id' => 'home-banner', 'type' => 'editor', 'required' => array('home-banner-type', 'equals', 'banner'), 'title' => 'Banner', 'desc' => 'You can edit using shortcodes.'), array('id' => 'home-content-top', 'type' => 'text', 'title' => 'Content Top', 'desc' => 'Input the content top block.'), array('id' => 'home-content-bottom', 'type' => 'text', 'title' => 'Content Bottom', 'desc' => 'Input the content bottom block.', 'default' => 'brands-slider')));
            // Blog
            $this->sections[] = array('icon' => 'el-icon-bookmark', 'icon_class' => 'icon', 'title' => 'Blog & Single Post', 'fields' => array(array('id' => '1', 'type' => 'info', 'desc' => 'Blog'), array('id' => 'blog-title', 'type' => 'text', 'title' => 'Blog Title', 'default' => 'Blog'), array('id' => 'blog-layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'right-sidebar'), array('id' => 'blog-header-on-banner', 'type' => 'button_set', 'title' => 'Header on Banner', 'options' => array('header_on_banner' => 'Yes', '' => 'No'), 'desc' => 'Show header on banner. When select <strong>"Banner Type"</strong> to <strong>"Layerslider"</strong>, <strong>"Revolution Slider"</strong> or <strong>"Banner"</strong>, this option will be work.', 'default' => ''), array('id' => 'blog-bg-slider', 'type' => 'select', 'compiler' => true, 'title' => 'Blog Background Slider', 'options' => $venedor_rev_sliders, 'desc' => 'Select the Background Revolution Slider. If you should select <strong>"Banner Type"</strong> to <strong>"Revolution Slider"</strong>, this will be <strong>synchronize</strong> with <strong>banner revolution slider</strong>.', 'default' => 0), array('id' => 'blog-banner-type', 'type' => 'select', 'compiler' => true, 'title' => 'Blog Banner Type', 'options' => $venedor_banner_type, 'default' => 0), array('id' => 'blog-banner-width', 'type' => 'select', 'compiler' => true, 'title' => 'Blog Banner Width', 'options' => $venedor_banner_width, 'default' => 'wide'), array('id' => 'blog-layerslider', 'type' => 'select', 'compiler' => true, 'required' => array('blog-banner-type', 'equals', 'layer_slider'), 'title' => 'Layer Slider', 'options' => $venedor_layer_sliders, 'default' => 0), array('id' => 'blog-revslider', 'type' => 'select', 'compiler' => true, 'required' => array('blog-banner-type', 'equals', 'rev_slider'), 'title' => 'Revolution Slider', 'options' => $venedor_rev_sliders, 'default' => 0), array('id' => 'blog-productslider', 'type' => 'text', 'required' => array('blog-banner-type', 'equals', 'product_slider'), 'title' => 'Product IDs for Slider', 'desc' => 'Comma separated list of product ids.'), array('id' => 'blog-banner', 'type' => 'editor', 'required' => array('blog-banner-type', 'equals', 'banner'), 'title' => 'Banner', 'desc' => 'You can edit using shortcodes.'), array('id' => 'blog-content-top', 'type' => 'text', 'title' => 'Content Top', 'desc' => 'Input the content top block.'), array('id' => 'blog-content-bottom', 'type' => 'text', 'title' => 'Content Bottom', 'desc' => 'Input the content bottom block.', 'default' => ''), array('id' => 'post-layout', 'type' => 'button_set', 'title' => 'Post Layout', 'options' => array('large-alt' => 'Large Alternate', 'medium-alt' => 'Medium Alternate', 'small-alt' => 'Small Alternate', 'grid' => 'Grid', 'timeline' => 'Timeline'), 'default' => 'medium-alt'), array('id' => 'blog-infinite', 'type' => 'switch', 'title' => 'Enable Infinite Scroll', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'post-format', 'type' => 'switch', 'title' => 'Show Post Format', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'blog-excerpt', 'type' => 'switch', 'title' => 'Show Excerpt', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'blog-excerpt-length', 'type' => 'text', 'title' => 'Excerpt Length', 'desc' => 'The number of words', 'default' => '80'), array('id' => 'blog-excerpt-type', 'type' => 'button_set', 'title' => 'Excerpt Type', 'options' => array('text' => 'Text', 'html' => 'HTML'), 'default' => 'text'), array('id' => 'post-zoom', 'type' => 'switch', 'title' => 'Slideshow Zoom Effect', 'default' => '1', 'on' => 'Enable', 'off' => 'Disable'), array('id' => '1', 'type' => 'info', 'desc' => 'Single Post'), array('id' => 'single-post-layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'right-sidebar'), array('id' => 'post-page-nav', 'type' => 'switch', 'title' => 'Show Prev/Next Navigation', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'post-slideshow-count', 'type' => 'text', 'title' => 'Number of Slideshow Images', 'desc' => 'The number of featurd image boxes for blog slideshows.', 'default' => '5'), array('id' => 'post-content-layout', 'type' => 'button_set', 'title' => 'Post Layout', 'options' => array('large-alt' => 'Large Alternate', 'medium-alt' => 'Medium Alternate'), 'default' => 'medium-alt'), array('id' => 'post-author', 'type' => 'switch', 'title' => 'Show Author Info', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'post-related', 'type' => 'switch', 'title' => 'Show Related Posts', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'post-comments', 'type' => 'switch', 'title' => 'Show Comments', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'post-addthis-above', 'type' => 'switch', 'title' => 'Show Addthis Buttons above Content', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'post-addthis-below', 'type' => 'switch', 'title' => 'Show Addthis Buttons below Content', 'default' => '1', 'on' => 'Yes', 'off' => 'No')));
            // Portfolio
            $this->sections[] = array('icon' => 'el-icon-camera', 'icon_class' => 'icon', 'title' => 'Portfolio', 'fields' => array(array('id' => 'portfolio-layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'right-sidebar'), array('id' => 'portfolio-items', 'type' => 'text', 'title' => 'Number of Portfolios', 'desc' => 'The number of portfolios per portfolio page.', 'default' => '8'), array('id' => 'portfolio-zoom', 'type' => 'switch', 'title' => 'Slideshow Zoom Effect', 'default' => '1', 'on' => 'Enable', 'off' => 'Disable'), array('id' => 'portfolio-slideshow-count', 'type' => 'text', 'title' => 'Number of Slideshow Images', 'desc' => 'The number of featurd image boxes for portfolio slideshows.', 'default' => '5'), array('id' => 'portfolio-page-nav', 'type' => 'switch', 'title' => 'Show Prev/Next Navigation', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'portfolio-content-layout', 'type' => 'button_set', 'title' => 'Portfolio Layout', 'options' => array('large-alt' => 'Large Alternate', 'medium-alt' => 'Medium Alternate'), 'default' => 'medium-alt'), array('id' => 'portfolio-related', 'type' => 'switch', 'title' => 'Show Related Portfolios', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'portfolio-addthis', 'type' => 'switch', 'title' => 'Show Addthis Buttons', 'default' => '1', 'on' => 'Yes', 'off' => 'No')));
            // Image Sizes
            $this->sections[] = array('icon' => 'el-icon-picture', 'icon_class' => 'icon', 'title' => 'Image Sizes', 'fields' => array(array('id' => '1', 'type' => 'info', 'desc' => 'You should regenerate the images in <strong>"Tools/Regen. Thumbnails"</strong> after <strong>"Save Changes"</strong>.'), array('id' => '1', 'type' => 'info', 'desc' => 'Post'), array('id' => 'related-post-w', 'type' => 'text', 'title' => 'Related Post Width', 'default' => '400'), array('id' => 'related-post-h', 'type' => 'text', 'title' => 'Related Post Height', 'default' => '184'), array('id' => '1', 'type' => 'info', 'desc' => 'Portfolio'), array('id' => 'related-portfolio-w', 'type' => 'text', 'title' => 'Related Portfolio Width', 'default' => '400'), array('id' => 'related-portfolio-h', 'type' => 'text', 'title' => 'Related Portfolio Height', 'default' => '320')));
            // Category
            $this->sections[] = array('icon' => 'el-icon-briefcase', 'icon_class' => 'icon', 'title' => 'Shop & Category (Woocommerce)', 'fields' => array(array('id' => 'woocategory-layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'right-sidebar'), array('id' => 'category-title', 'type' => 'switch', 'title' => 'Show Title', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-description', 'type' => 'switch', 'title' => 'Show Description', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-item', 'type' => 'text', 'title' => 'Products per Page', 'desc' => 'Comma-separated.', 'default' => '9,15,30'), array('id' => 'category-image-effect', 'type' => 'switch', 'title' => 'Show Image Hover Effect', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-calc-height', 'type' => 'switch', 'title' => 'Calculate Height in Grid View', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-hover', 'type' => 'switch', 'title' => 'Enable Hover Effect', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-addcart-icon', 'type' => 'switch', 'title' => 'Use Add Cart Icon when Hover in Grid View', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-align', 'type' => 'button_set', 'title' => 'Description Align', 'options' => array('left' => 'Left', 'center' => 'Center'), 'default' => 'center'), array('id' => 'category-product-desc', 'type' => 'switch', 'title' => 'Show Product Short Description', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-quickview', 'type' => 'switch', 'title' => 'Show Quick View', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'category-quickview-pos', 'type' => 'button_set', 'title' => 'Quick View Position', 'options' => array('top-left' => 'Top Left', 'top-right' => 'Top Right', 'bottom-left' => 'Bottom Left', 'bottom-right' => 'Bottom Right'), 'default' => 'top-right')));
            // Product
            $this->sections[] = array('icon' => 'el-icon-gift', 'icon_class' => 'icon', 'title' => 'Product (Woocommerce)', 'fields' => array(array('id' => 'wooproduct-layout', 'type' => 'image_select', 'compiler' => true, 'title' => 'Main Layout', 'options' => array('fullwidth' => array('alt' => 'Full Width', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'), 'left-sidebar' => array('alt' => 'Left Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cl.png'), 'right-sidebar' => array('alt' => 'Right Sidebar', 'img' => ReduxFramework::$_url . 'assets/img/2cr.png')), 'default' => 'fullwidth'), array('id' => 'product-related', 'type' => 'switch', 'title' => 'Show Related Products', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-related-count', 'type' => 'text', 'required' => array('product-related', 'equals', '1'), 'title' => 'Related Products Count', 'default' => '8'), array('id' => 'product-crosssell', 'type' => 'switch', 'title' => 'Show Cross Sells in Cart Page', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-crosssell-count', 'type' => 'text', 'required' => array('product-crosssell', 'equals', '1'), 'title' => 'Cross Sells Count', 'default' => '8'), array('id' => 'product-price', 'type' => 'switch', 'title' => 'Show Price on Image', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-hot', 'type' => 'switch', 'title' => 'Show "Hot" Label', 'desc' => 'Will be show in the featured product.', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-hot-pos', 'type' => 'button_set', 'title' => '"Hot" Label Position', 'options' => array('top-left' => 'Top Left', 'top-right' => 'Top Right', 'bottom-left' => 'Bottom Left', 'bottom-right' => 'Bottom Right'), 'default' => 'top-left'), array('id' => 'product-hot-wrap', 'type' => 'button_set', 'title' => '"Hot" Label Wrapper', 'options' => array('rect' => 'Rectangle', 'circle' => 'Circle'), 'default' => 'rect'), array('id' => 'product-sale', 'type' => 'switch', 'title' => 'Show "Sale" Label', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-sale-percent', 'type' => 'switch', 'title' => 'Show Percentage Saved Sale Price', 'desc' => 'Will be hide "Sale" label if set to "Yes".', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-sale-pos', 'type' => 'button_set', 'title' => '"Sale" Label Position', 'options' => array('top-left' => 'Top Left', 'top-right' => 'Top Right', 'bottom-left' => 'Bottom Left', 'bottom-right' => 'Bottom Right'), 'default' => 'top-left'), array('id' => 'product-sale-wrap', 'type' => 'button_set', 'title' => '"Sale" Label Wrapper', 'options' => array('rect' => 'Rectangle', 'circle' => 'Circle'), 'default' => 'rect'), array('id' => 'product-price-pos', 'type' => 'button_set', 'title' => 'Price Box Position', 'options' => array('top-left' => 'Top Left', 'top-right' => 'Top Right', 'bottom-left' => 'Bottom Left', 'bottom-right' => 'Bottom Right'), 'default' => 'bottom-right'), array('id' => 'product-addcart', 'type' => 'switch', 'title' => 'Show Add to Cart', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-wishlist', 'type' => 'switch', 'title' => 'Show Wishlist', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-compare', 'type' => 'switch', 'title' => 'Show Compare', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-addthis', 'type' => 'switch', 'title' => 'Addthis Social Links', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'product-tabs', 'type' => 'button_set', 'title' => 'Tabs Type', 'options' => array('default' => 'Horizontal', 'vertical' => 'Vertical', 'accordion' => 'Accordion'), 'default' => 'vertical')));
            // Product Zoom
            $this->sections[] = array('icon' => 'el-icon-picture', 'icon_class' => 'icon', 'title' => 'Image Zoom (Woocommerce)', 'fields' => array(array('id' => 'zoom-type', 'type' => 'button_set', 'title' => 'Type', 'options' => array('inner' => 'Inner', 'window' => 'Window', 'lens' => 'Lens'), 'default' => 'inner'), array('id' => 'zoom-scroll', 'type' => 'switch', 'title' => 'Scroll Zoom', 'default' => '0', 'on' => 'Yes', 'off' => 'No'), array('id' => 'zoom-lens-size', 'type' => 'text', 'title' => 'Lens Size', 'default' => '200'), array('id' => 'zoom-lens-shape', 'type' => 'button_set', 'title' => 'Lens Shape', 'options' => array('round' => 'Round', 'square' => 'Square'), 'default' => 'round'), array('id' => 'zoom-contain-lens', 'type' => 'switch', 'title' => 'Contain Lens Zoom', 'default' => '1', 'on' => 'Yes', 'off' => 'No'), array('id' => 'zoom-window-width', 'type' => 'text', 'title' => 'Window Width', 'default' => '400'), array('id' => 'zoom-window-height', 'type' => 'text', 'title' => 'Window Height', 'default' => '400'), array('id' => 'zoom-window-offset-x', 'type' => 'text', 'title' => 'Window Offset X', 'default' => '0'), array('id' => 'zoom-window-offset-y', 'type' => 'text', 'title' => 'Window Offset Y', 'default' => '0'), array('id' => 'zoom-window-pos', 'type' => 'button_set', 'title' => 'Window Position', 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16'), 'default' => '1'), array('id' => 'zoom-cursor', 'type' => 'button_set', 'title' => 'Cursor', 'options' => array('default' => 'Default', 'pointer' => 'Pointer', 'crosshair' => 'Crosshair', 'move' => 'Move'), 'default' => 'pointer'), array('id' => 'zoom-border', 'type' => 'text', 'title' => 'Border', 'default' => '4'), array('id' => 'zoom-lens-border', 'type' => 'text', 'title' => 'Lens Border', 'default' => '1'), array('id' => 'zoom-border-color', 'type' => 'color', 'title' => 'Border Color', 'default' => '#888888')));
        }
Exemplo n.º 6
0
        public function setSections()
        {
            //Background Patterns Reader
            $venedor_patterns_path = get_template_directory() . '/images/_textures/';
            $venedor_patterns_url = get_template_directory_uri() . '/images/_textures/';
            $venedor_patterns = array();
            $venedor_banner_type = venedor_ct_banner_type();
            $venedor_banner_width = venedor_ct_banner_width();
            $venedor_rev_sliders = venedor_ct_rev_sliders();
            $venedor_layer_sliders = venedor_ct_layer_sliders();
            if (is_dir($venedor_patterns_path)) {
                if ($venedor_patterns_dir = opendir($venedor_patterns_path)) {
                    $venedor_patterns = array();
                    while (($venedor_patterns_file = readdir($venedor_patterns_dir)) !== false) {
                        if (stristr($venedor_patterns_file, '.png') !== false || stristr($venedor_patterns_file, '.jpg') !== false) {
                            $name = explode(".", $venedor_patterns_file);
                            $name = str_replace('.' . end($name), '', $venedor_patterns_file);
                            $venedor_patterns[] = array('alt' => $name, 'img' => $venedor_patterns_url . $venedor_patterns_file);
                        }
                    }
                }
            }
            ob_start();
            $ct = wp_get_theme();
            $theme_data = $ct;
            $item_name = $theme_data->get('Name');
            $tags = $ct->Tags;
            $screenshot = $ct->get_screenshot();
            $class = $screenshot ? 'has-screenshot' : '';
            $customize_title = sprintf('Customize &#8220;%s&#8221;', $ct->display('Name'));
            ?>
        <div id="current-theme" class="<?php 
            echo esc_attr($class);
            ?>
">
            <?php 
            if ($screenshot) {
                ?>
            <?php 
                if (current_user_can('edit_theme_options')) {
                    ?>
                <a href="<?php 
                    echo wp_customize_url();
                    ?>
" class="load-customize hide-if-no-customize" title="<?php 
                    echo esc_attr($customize_title);
                    ?>
">
                    <img src="<?php 
                    echo esc_url($screenshot);
                    ?>
" alt="<?php 
                    echo 'Current theme preview';
                    ?>
" />
                </a>
                <?php 
                }
                ?>
            <img class="hide-if-customize" src="<?php 
                echo esc_url($screenshot);
                ?>
" alt="<?php 
                echo 'Current theme preview';
                ?>
" />
            <?php 
            }
            ?>

            <h4>
                <?php 
            echo $ct->display('Name');
            ?>
            </h4>

            <div>
                <ul class="theme-info">
                    <li><?php 
            printf('By %s', $ct->display('Author'));
            ?>
</li>
                    <li><?php 
            printf('Version %s', $ct->display('Version'));
            ?>
</li>
                    <li><?php 
            echo '<strong>' . 'Tags' . ':</strong> ';
            printf($ct->display('Tags'));
            ?>
</li>
                </ul>
                <p class="theme-description"><?php 
            echo $ct->display('Description');
            ?>
</p>
                <?php 
            if ($ct->parent()) {
                printf(' <p class="howto">' . 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' . '</p>', 'http://codex.wordpress.org/Child_Themes', $ct->parent()->display('Name'));
            }
            ?>
            </div>
        </div>

        <?php 
            $item_info = ob_get_contents();
            global $wp;
            ob_end_clean();
            // You can append a new section at any time.
            // General Settings
            $this->sections[] = array('icon' => 'el-icon-cogs', 'icon_class' => 'icon', 'title' => 'Theme Type', 'fields' => array(array('id' => '2', 'type' => 'info', 'desc' => 'After change, you should click <strong>"Reset All"</strong> and <strong>"Save Changes"</strong> in <strong>Theme Settings</strong> and <strong>Theme Design</strong> menus.'), array('id' => 'theme-settings', 'type' => 'select', 'title' => 'Theme Settings', 'options' => array('' => 'Demo #1 (Default)', '_red' => 'Demo #2 (Red)', '_brown' => 'Demo #3 (Brown)', '_blue_orange' => 'Demo #4 (Blue-Orange)', '_blue' => 'Demo #5 (Blue)', '_green_pink' => 'Demo #6 (Green-Pink)', '_orange' => 'Demo #7 (Orange)', '_yellow' => 'Demo #8 (Yellow)', '_clean' => 'Demo #9 (Clean)', '_pink' => 'Demo #10 (Pink)', '_green' => 'Demo #11 (Green)', '_grid' => 'Demo #12 (Grid)', '_parallax' => 'Demo #13 (Parallax)'), 'desc' => 'You should click "Reset All" and "Save Changes" in <strong>Theme Settings</strong> after change this option.', 'default' => ''), array('id' => 'theme-design', 'type' => 'select', 'title' => 'Theme Design', 'options' => array('' => 'Demo #1 (Default)', '_red' => 'Demo #2 (Red)', '_brown' => 'Demo #3 (Brown)', '_blue_orange' => 'Demo #4 (Blue-Orange)', '_blue' => 'Demo #5 (Blue)', '_green_pink' => 'Demo #6 (Green-Pink)', '_orange' => 'Demo #7 (Orange)', '_yellow' => 'Demo #8 (Yellow)', '_clean' => 'Demo #9 (Clean)', '_pink' => 'Demo #10 (Pink)', '_green' => 'Demo #11 (Green)', '_grid' => 'Demo #12 (Grid)', '_parallax' => 'Demo #13 (Parallax)'), 'desc' => 'You should click "Reset All" and "Save Changes" in <strong>Theme Design</strong> after change this option.', 'default' => '')));
            $this->sections[] = array('icon' => 'el-icon-cogs', 'icon_class' => 'icon', 'title' => 'Import', 'fields' => array(array('id' => '2', 'type' => 'info', 'desc' => '<strong>Import Sample Content using the Traditional Method</strong>'), array('id' => '17', 'type' => 'raw', 'markdown' => true, 'content' => (isset($_GET['import_success']) ? '<strong>Successfully Imported!</strong><br/><br/>' : '') . '<a href="' . admin_url('admin.php?page=venedor_import') . '&import_sample_content=true" class="button button-primary">' . 'Import' . '</a>'), array('id' => '2', 'type' => 'info', 'desc' => '<strong>Import Demo using the Alternative Method.</strong><br>Please reference Theme Install > Import Demo - Alternative Method in documentation.')));
        }