コード例 #1
0
ファイル: tab-category.php プロジェクト: k2jysy/kshop
 protected function content($atts, $content = null)
 {
     $atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('categories_tab', $atts) : $atts;
     extract(shortcode_atts(array('title' => 'Tabs Name', 'tabs_type' => 'tab-1', 'per_page' => 10, 'column' => 4, 'category' => 0, 'main_color' => '#ff3366', 'icon' => '', 'bg_cate' => '', 'banner_top' => '', 'banner_left' => '', "featured" => false, "align" => 'left', "number_slide" => 14, 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 0, 'slidespeed' => 250, 'css' => '', 'css_animation' => '', 'el_class' => '', 'nav' => 'true', 'loop' => 'false', 'use_responsive' => 1, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1), $atts));
     global $woocommerce_loop;
     $is_phone = false;
     if (function_exists('kt_is_phone') && kt_is_phone()) {
         $is_phone = true;
     }
     $elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' box-tab-category ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
     $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
     if (function_exists('kt_hex2rgb')) {
         $main_color_rgb = kt_hex2rgb($main_color);
     } else {
         $main_color_rgb = array('red' => 255, 'green' => 51, 'blue' => 102);
     }
     $elementClass = apply_filters('kt_category_tab_class_container', $elementClass);
     $tabs = kt_get_all_attributes('tab_section', $content);
     $id = uniqid($category);
     $term = get_term($category, 'product_cat');
     if (isset($bg_cate) && $bg_cate) {
         $att_bg = wp_get_attachment_image_src($bg_cate, 'full');
         $att_bg_url = is_array($att_bg) ? esc_url($att_bg[0]) : "";
         if ($att_bg_url) {
             $style = "style='background: #fff url(" . $att_bg_url . ") no-repeat left bottom;'";
         }
     }
     if (count($tabs) > 0 && $term) {
         $term_link = get_term_link($term);
         if (!$is_phone) {
             $args = array('hierarchical' => 1, 'show_option_none' => '', 'hide_empty' => 0, 'parent' => $term->term_id, 'taxonomy' => 'product_cat');
             $subcats = get_categories($args);
         }
         if (file_exists(KUTETHEME_PLUGIN_PATH . '/js_composer/includes/' . $tabs_type . '.php')) {
             if ($tabs_type == 'tab-1') {
                 $elementClass .= ' option1 tab-1';
             } elseif ($tabs_type == 'tab-2') {
                 $elementClass .= ' option2 tab-2';
             } elseif ($tabs_type == 'tab-3') {
                 $elementClass .= ' option2 tab-3';
             } elseif ($tabs_type == 'tab-4') {
                 $elementClass .= ' option2 tab-4';
             } elseif ($tabs_type == 'tab-5') {
                 $elementClass .= ' option2 tab-5';
             } elseif ($tabs_type == 'tab-6') {
                 $elementClass .= ' option7 tab-6';
             } elseif ($tabs_type == 'tab-7') {
                 $elementClass .= ' option7 tab-7';
             }
             @(include KUTETHEME_PLUGIN_PATH . 'js_composer/includes/' . $tabs_type . '.php');
         }
     }
 }
コード例 #2
0
 protected function content($atts, $content = null)
 {
     $atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('categories_tab', $atts) : $atts;
     extract(shortcode_atts(array('title' => 'Tabs Name', 'tabs_type' => 'tab-1', 'per_page' => 10, 'column' => 4, 'category' => 0, 'main_color' => '#ff3366', 'icon' => '', 'banner_top' => '', 'banner_left' => '', "featured" => false, 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 0, 'slidespeed' => 250, 'css' => '', 'css_animation' => '', 'el_class' => '', 'nav' => 'true', 'loop' => 'true', 'use_responsive' => 0, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1), $atts));
     global $woocommerce_loop;
     $elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'container ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
     $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
     if (function_exists('kt_hex2rgb')) {
         $main_color_rgb = kt_hex2rgb($main_color);
     } else {
         $main_color_rgb = array('red' => 255, 'green' => 51, 'blue' => 102);
     }
     $elementClass = apply_filters('kt_category_tab_class_container', $elementClass);
     $tabs = kt_get_all_attributes('tab_section', $content);
     $id = uniqid($category);
     $term = get_term($category, 'product_cat');
     if (count($tabs) > 0 && $term) {
         $term_link = get_term_link($term);
         $args = array('hierarchical' => 1, 'show_option_none' => '', 'hide_empty' => 0, 'parent' => $term->term_id, 'taxonomy' => 'product_cat');
         $subcats = get_categories($args);
         if (file_exists(THEME_DIR . 'js_composer/includes/' . $tabs_type . '.php')) {
             if ($tabs_type == 'tab-1') {
                 $elementClass .= ' option1 tab-1';
             } elseif ($tabs_type == 'tab-2') {
                 $elementClass .= ' option2 tab-2';
             } elseif ($tabs_type == 'tab-3') {
                 $elementClass .= ' option2 tab-3';
             } elseif ($tabs_type == 'tab-4') {
                 $elementClass .= ' option2 tab-4';
             } elseif ($tabs_type == 'tab-5') {
                 $elementClass .= ' option2 tab-5';
             } elseif ($tabs_type == 'tab-6') {
                 $elementClass .= ' option6 tab-6';
             } elseif ($tabs_type == 'tab-7') {
                 $elementClass .= ' option7 tab-7';
             }
             @(include locate_template('js_composer/includes/' . $tabs_type . '.php'));
         }
     }
 }
コード例 #3
0
/**
 * Enqueues front-end CSS for color scheme.
 *
 * @since Kute Theme 1.0
 *
 * @see wp_add_inline_style()
 */
function kt_color_scheme_css()
{
    $color_scheme_option = get_theme_mod('color_scheme', 'default');
    $color_scheme = kt_get_color_scheme();
    $main_color = get_theme_mod('main_color', $color_scheme[1]);
    $box_background_color = get_theme_mod('box_background_color', $color_scheme[2]);
    $textcolor = get_theme_mod('textcolor', $color_scheme[3]);
    $price_color = get_theme_mod('price_color', $color_scheme[8]);
    // Convert main and sidebar text hex color to rgba.
    $color_button_rgb = kt_hex2rgb($color_scheme[5]);
    $color_main_rgb = kt_hex2rgb($main_color);
    $colors = array('background_color' => $color_scheme[0], 'main_color' => $main_color, 'box_background_color' => $box_background_color, 'textcolor' => $textcolor, 'rate_color' => $color_scheme[4], 'button_color' => $color_scheme[5], 'menu_link_footer' => $color_scheme[6], 'module_bored' => $color_scheme[7], 'price_color' => $price_color, 'button_color_rgb' => vsprintf('rgba( %1$s, %2$s, %3$s, 0.4)', $color_button_rgb), 'color_main_rgb' => vsprintf('rgba( %1$s, %2$s, %3$s, 0.5)', $color_main_rgb));
    $color_scheme_css = kt_get_color_scheme_css($colors);
    wp_add_inline_style('kutetheme-style', $color_scheme_css);
}
コード例 #4
0
ファイル: box_product.php プロジェクト: hikaram/wee
    protected function content($atts, $content = null)
    {
        $atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('box_products', $atts) : $atts;
        extract(shortcode_atts(array('title' => __('hot deals', 'kutetheme'), 'per_page' => 5, 'type' => 'hot-deals', 'taxonomy' => 0, 'orderby' => 'date', 'order' => 'DESC', 'main_color' => '#ff3300', 'style' => 'style-1', 'banner' => '', 'banner_link' => '', 'speed_banner' => '250', 'autoplay' => 'false', 'navigation' => 'false', 'margin' => 20, 'slidespeed' => 250, 'nav' => 'true', 'loop' => 'true', 'use_responsive' => 1, 'items_destop' => 4, 'items_tablet' => 2, 'items_mobile' => 1, 'css' => '', 'css_animation' => '', 'el_class' => ''), $atts));
        global $woocommerce_loop;
        $elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'box-products ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'css_animation' => $this->getCSSAnimation($css_animation), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
        $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
        if (function_exists('kt_hex2rgb')) {
            $main_color_rgb = kt_hex2rgb($main_color);
        } else {
            $main_color_rgb = array('red' => 255, 'green' => 51, 'blue' => 102);
        }
        ob_start();
        $meta_query = WC()->query->get_meta_query();
        $args = array('post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => $per_page, 'suppress_filter' => true, 'meta_query' => $meta_query);
        if ($type == 'hot-deals') {
            $product_ids_on_sale = wc_get_product_ids_on_sale();
            $args['post__in'] = array_merge(array(0), $product_ids_on_sale);
            if ($orderby == 'discount') {
                $newargs['meta_key'] = '_reduction_percent';
                $newargs['orderby'] = 'meta_value_num';
            } else {
                $args['orderby'] = $orderby;
            }
            $args['order'] = $order;
            if (!$title) {
                $title = __('Hot Deals', 'kutetheme');
            }
        } elseif ($type == 'best-selling') {
            $newargs['meta_key'] = 'total_sales';
            $newargs['orderby'] = 'meta_value_num';
            if (!$title) {
                $title = __('Best Selling', 'kutetheme');
            }
        } elseif ($type == 'recent-product') {
            $args['orderby'] = $orderby;
            $args['order'] = $order;
            if (!$title) {
                $title = __('New Arrivals', 'kutetheme');
            }
        } elseif ($type == 'most-review') {
            add_filter('posts_clauses', array($this, 'order_by_rating_post_clauses'));
            if (!$title) {
                $title = __('Most Reviews', 'kutetheme');
            }
        }
        $cate_ids = array();
        if ($taxonomy) {
            $cate_ids = explode(",", $taxonomy);
            $args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $cate_ids));
        }
        $products = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
        if ($products->have_posts()) {
            $data_carousel = array("autoplay" => $autoplay, "navigation" => $navigation, "margin" => $margin, "slidespeed" => $slidespeed, "theme" => 'style-navigation-top', "autoheight" => 'false', 'nav' => 'true', 'dots' => 'false', 'loop' => $loop, 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
            if ($use_responsive) {
                $arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
                $data_responsive = json_encode($arr);
                $data_carousel["responsive"] = $data_responsive;
            } else {
                $data_carousel['items'] = $items_destop;
            }
            $unique_id = uniqid();
            $carousel = _data_carousel($data_carousel);
            $banner_i = 1;
            if (isset($banner) && $banner) {
                $banner_args = array('post_type' => 'attachment', 'include' => $banner, 'orderby' => 'post__in');
                $list_banner = get_posts($banner_args);
                ob_start();
                foreach ($list_banner as $l) {
                    ?>
                    <li>
                        <a target="_blank" href="<?php 
                    echo $banner_link ? esc_url($banner_link) : '';
                    ?>
">
                            <?php 
                    echo wp_get_attachment_image($l->ID, 'full');
                    ?>
                        </a>
                    </li>
                <?php 
                    $banner_i++;
                }
                $banner_carousel = ob_get_clean();
            }
            add_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
            add_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
            remove_action('kt_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 10);
            ?>
            <div class="container-tab <?php 
            if ($style == "style-1") {
                ?>
 option3 <?php 
            } else {
                ?>
 option4 <?php 
            }
            ?>
">
                <!-- box product -->
                <div class="<?php 
            echo apply_filters('kt_class_box_product', $elementClass);
            ?>
" id="change-color-<?php 
            echo esc_attr($unique_id);
            ?>
" data-target="change-color" data-color="<?php 
            echo esc_attr($main_color);
            ?>
" data-rgb="<?php 
            echo esc_attr(implode(',', $main_color_rgb));
            ?>
">
                    <div class="box-product-head">
                        <span class="box-title"><?php 
            echo esc_html($title);
            ?>
</span>
                        <ul class="box-tabs nav-tab">
                            <li class="active">
                                <a data-toggle="tab" href="#tab-all-<?php 
            echo $unique_id;
            ?>
">
                                    <?php 
            _e('All', 'edo');
            ?>
                                </a>
                            </li>
                            
                            <?php 
            if (count($cate_ids)) {
                ?>
                                <?php 
                foreach ($cate_ids as $id) {
                    ?>
                                    <?php 
                    $term = get_term($id, 'product_cat');
                    $cate_obj[] = $term;
                    ?>
                                    <li>
                                        <a data-toggle="tab" href="#tab-<?php 
                    echo esc_attr($term->term_id . '-' . $unique_id);
                    ?>
">
                                            <?php 
                    echo esc_html($term->name);
                    ?>
                                        </a>
                                    </li>
                                <?php 
                }
                ?>
                            <?php 
            }
            ?>
                        </ul>
                    </div>
                    <div class="box-product-content">
                        <?php 
            if (isset($banner_carousel)) {
                ?>
                        <div class="box-product-adv">
                            <ul class="owl-carousel nav-center" data-slidespeed="<?php 
                echo intval($speed_banner);
                ?>
" data-items="1" data-dots="false"  <?php 
                if ($banner_i > 2) {
                    ?>
 data-autoplay="true" data-loop="true" <?php 
                } else {
                    ?>
 data-autoplay="false" data-loop="false" <?php 
                }
                ?>
  data-nav="true">
                                <?php 
                echo apply_filters('kt_banner_box_product', $banner_carousel);
                ?>
                            </ul>
                        </div>
                        <?php 
            }
            ?>
                        <div class="box-product-list" <?php 
            if (!isset($banner_carousel)) {
                ?>
 style="margin-left: 0;" <?php 
            }
            ?>
>
                            <div class="tab-container">
                                <div id="tab-all-<?php 
            echo esc_attr($unique_id);
            ?>
" class="tab-panel active">
    								<?php 
            do_action("woocommerce_shortcode_before_box_product_loop");
            ?>
                                        <?php 
            $this->kt_loop_product($products, $carousel);
            ?>
                                    <?php 
            do_action("woocommerce_shortcode_after_box_product_loop");
            ?>
    							</div>
                                <?php 
            if (count($cate_obj) > 0) {
                ?>
                                    <?php 
                foreach ($cate_obj as $term) {
                    $args['tax_query'] = array(array('taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $term->term_id));
                    $term_products = new WP_Query(apply_filters('woocommerce_shortcode_products_query', $args, $atts));
                    if ($term_products->have_posts()) {
                        ?>
            							<div id="tab-<?php 
                        echo $term->term_id . '-' . $unique_id;
                        ?>
" class="tab-panel">
            								<?php 
                        do_action("woocommerce_shortcode_before_box_product_loop");
                        ?>
                                                <?php 
                        $this->kt_loop_product($term_products, $carousel);
                        ?>
                                            <?php 
                        do_action("woocommerce_shortcode_after_box_product_loop");
                        ?>
            							</div>
                                        <?php 
                    } else {
                        ?>
                                            <div id="tab-<?php 
                        echo $term->term_id . '-' . $unique_id;
                        ?>
" class="tab-panel">
                                                <?php 
                        $this->kt_tab_empty();
                        ?>
                                            </div>
                                        <?php 
                    }
                    ?>
                                    <?php 
                }
                ?>
                                <?php 
            }
            ?>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- ./box product -->
            </div>
            <?php 
            add_action('kt_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 10);
            remove_filter("woocommerce_get_price_html_from_to", "kt_get_price_html_from_to", 10, 4);
            remove_filter('woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2);
            if ($type == 'most-review') {
                remove_filter('posts_clauses', array($this, 'order_by_rating_post_clauses'));
            }
        }
        return ob_get_clean();
    }
コード例 #5
0
ファイル: theme.php プロジェクト: acamboy/kutetheme-wp
function kt_themne_color()
{
    $kt_used_header = kt_option('kt_used_header', 1);
    $main_color = kt_option('main_color', '#ff3366');
    $bg_color = kt_option('bg_color', '#fff');
    $price_color = kt_option('price_color', '#ff3366');
    $rgba_main_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.5)', kt_hex2rgb($main_color));
    $rgba_main_color_07 = vsprintf('rgba( %1$s, %2$s, %3$s, 0.7)', kt_hex2rgb($main_color));
    $rgba_main_color_08 = vsprintf('rgba( %1$s, %2$s, %3$s, 0.8)', kt_hex2rgb($main_color));
    /* Main color */
    $css = <<<CSS
    html body{
        background-color: {$bg_color};
    }
    body .header.style11 .block-mini-cart::after{
        border-bottom-color: {$bg_color};
    }
    body a:hover,
    body a:focus,
    body a:active,
    body.woocommerce .summary .yith-wcwl-add-to-wishlist .show a:hover,
    body.woocommerce .summary .compare:hover,
    body.woocommerce .woocommerce-breadcrumb a:hover,
    body .blog-list .blog-list-wapper ul li .readmore a,
    body .count-down-time2 .box-count,
    body .trending .trending-product li .product-price,
    body .hot-deals-box .hot-deals-tab .hot-deals-tab-box .nav-tab li.active>a,
    body .lasttest-blog11 .item-blog .readmore,
    body .footer4.style2 .social-link .fa:hover,
    .option11.hot-cat-section11 .hot-cat-9 .cat-item:hover,
    .option11.hot-cat-section11 .hot-cat-9 .cat-item:hover .cat-title a,
    .footer4 .social-link a:hover .fa,
    .header.style14 .navigation-main-menu>li:hover>a, 
    .header.style14 .navigation-main-menu>li.active>a,
    .footer5 .social-link a:hover .fa,
    .footer5 .address-list .tit-name,
    .footer5 a:hover,
    .option-14 .block-deal .title,
    .option12.section-blog-12 .blog12 .blog-title a:hover,
    body .block-deal .title,
    .service4 .service-title a:hover,
    .footer5 .footer-coppyright{
        color: {$main_color}
    }
    body .main-header .header-search-box .form-inline .btn-search,
    body .main-header .shopping-cart-box a.cart-link:after,
    body .cart-block .cart-block-content .cart-buttons a.btn-check-out,
    body .main-bg,
    body .box-vertical-megamenus .vertical-menu-list>li:hover,
    body .megamenu .widget .widgettitle:before,
    body .megamenu .widget .widgettitle:before,
    body .owl-controls .owl-prev:hover, 
    body .owl-controls .owl-next:hover,
    body .product-list li .quick-view a:hover,
    body .product-list li .quick-view a:hover,
    body .scroll_top:hover,
    body .cate-box .cate-link:hover,
    body #footer2.footer3 .mailchimp-wrapper .mailchimp-form .mailchimp-submit,
    body.woocommerce div.product form.cart .button,
    body.woocommerce .summary .yith-wcwl-add-to-wishlist .show a:hover:before,
    body.woocommerce .summary .compare:hover:before,
    body.woocommerce #respond input#submit:hover, 
    body.woocommerce a.button:hover, 
    body.woocommerce button.button:hover, 
    body.woocommerce input.button:hover,
    body .display-product-option li.selected span, 
    body .display-product-option li:hover span,
    body .nav-links a:hover, 
    body .nav-links .current,
    body .product-list.list .add-to-cart,
    body.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content,
    body .owl-controls .owl-dots .owl-dot.active,
    body .products-block .link-all,
    body .widget_kt_on_sale .product-list li .add-to-cart,
    body .woocommerce #respond input#submit.alt, 
    body .woocommerce a.button.alt, 
    body .woocommerce button.button.alt, 
    body .woocommerce input.button.alt,
    body .woocommerce #respond input#submit:hover, 
    body .woocommerce a.button:hover, 
    body .woocommerce button.button:hover, 
    body .woocommerce input.button:hover,
    body .woocommerce #respond input#submit.alt:hover, 
    body .woocommerce a.button.alt:hover, 
    body .woocommerce button.button.alt:hover, 
    body .woocommerce input.button.alt:hover,
    body .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-widget-content .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-widget-header, 
    body .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-state-focus, 
    body .ui-selectmenu-menu .ui-widget-content .ui-state-focus, 
    body .ui-selectmenu-menu .ui-widget-header .ui-state-focus,
    body .trending .trending-title,
    body .hot-deals-box .hot-deals-tab .hot-deals-title,
    body .block-popular-cat .more,
    body .block-popular-cat .sub-categories>ul>li>a:before,
    body .hot-deals-box .hot-deals-tab .box-count-down .box-count:before,
    body .products .group-tool-button a:hover, 
    body .products .group-tool-button a.compare:hover,
    body .option7 .products .group-tool-button a:hover, 
    body .option7 .products .group-tool-button a.compare:hover, 
    body .option7 .products .search:hover,
    body .woocommerce div.product form.cart .button,
    body .banner-text .banner-button:hover,
    body .products-style8 .add-to-cart:hover,
    body .products-style8 .product.compare-button .compare:hover,
    body .products-style8 .yith-wcwl-add-to-wishlist>div:hover,
    body .lock-boock-button a:hover,
    body .block-collections .collection-list .info .collection-button a:hover,
    body .block-blogs .blog-list-wapper .owl-controls .owl-prev:hover, 
    body .block-blogs .blog-list-wapper .owl-controls .owl-next:hover,
    body .block-mini-cart,
    body .footer4 .mailchimp-form .mailchimp-submit,
    body .section-band-logo.style2 .owl-controls .owl-prev:hover, 
    body .section-band-logo.style2 .owl-controls .owl-next:hover,
    body .option12.section-blog-12 .owl-controls .owl-prev:hover, 
    body .option12.section-blog-12 .owl-controls .owl-next:hover,
    .block-new-product12 .owl-controls .owl-prev:hover, 
    .block-new-product12 .owl-controls .owl-next:hover,
    .option12.block-hotdeal-week .owl-controls .owl-prev:hover, 
    .option12.block-hotdeal-week .owl-controls .owl-next:hover,
    .option12.block-hotdeal-week .add-to-cart,
    .option12.block-hotdeal-week .add-to-cart:hover,
    .option12.block-hotdeal-week .yith-wcwl-add-to-wishlist:hover,
    .option12.block-hotdeal-week .compare-button:hover,
    .option12.section-blog-12 .blog12 .date,
    .header.style11 .block-mini-cart .cart-link .icon .count,
    html body .footer4.style2 .mailchimp-form .mailchimp-submit:hover,
    body .block-mini-cart-9 .cart-link .count,
    .header.style13 .header-search-inner form .btn-search,
    .main-menu-style13 .navigation-main-menu>li>a:before,
    body .mobile-navigation,
    .header.style14 .navigation-main-menu>li>a:before,
    .block-minicart14 .cart-link .count,
    .footer5 .widget_kt_mailchimp .mailchimp-submit,
    .footer5 .tagcloud a:hover,
    .block-testimonials3 .owl-controls .owl-dots .owl-dot.active,
    .product-style4 .yith-wcwl-add-to-wishlist .yith-wcwl-add-button:hover, 
    .product-style4 .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse:hover, 
    .product-style4 .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse:hover,
    .product-style4 .compare-button:hover,
    .product-style4 .yith-wcqv-button:hover,
    .product-style4 .product-new,
    .product-style4 .add_to_cart_button:hover, 
    .product-style4 .added_to_cart:hover,
    .option-13.tab-product-13 .nav-tab li a:after,
    .option-13 .product-style3 .yith-wcwl-add-button:hover, 
    .option-13 .product-style3 .compare-button:hover, 
    .option-13 .product-style3 .search:hover,
    .option-13 .owl-controls .owl-prev:hover, 
    .option-13 .owl-controls .owl-next:hover,
    .option-13.block-top-brands .head .title,
    .option-13 .product-style3 .add-to-cart:hover a,
    .option-13.block-top-brands .bx-wrapper .bx-controls-direction a:hover,
    .block-testimonials3 .owl-controls .owl-dots .owl-dot.active,
    .option-14.block-static ul.list li .group-button-control .yith-wcwl-add-to-wishlist:hover,
    .option-14.block-static ul.list li .group-button-control .compare-button a:hover,
    .option-14.block-static ul.list li .group-button-control .search.yith-wcqv-button:hover,
    .option-14.block-static ul.list .group-button-control .add-to-cart a,
    .option-14.block-static .owl-controls .owl-prev:hover, 
    .option-14.block-static .owl-controls .owl-next:hover,
    .option-14 .block-deal .group-button-control .add-to-cart a,
    .option-14 .block-deal .yith-wcwl-add-to-wishlist:hover,
     body .block-deal .add-to-cart a,
    .product-style4 .add_to_cart_button:hover, .product-style4 .added_to_cart:hover,
    .option-14.block-top-brands2 .brand-products .owl-controls .owl-prev:hover, 
    .option-14.block-top-brands2 .brand-products .owl-controls .owl-next:hover,
    .option-14.block-top-brands2 .list-brands .owl-controls .owl-prev:hover, 
    .option-14.block-top-brands2 .list-brands .owl-controls .owl-next:hover,
    .block-tab-category14 .box-tabs li a::after,
    body .widget_product_tag_cloud .tagcloud a:hover,
    .block-deal .yith-wcwl-add-to-wishlist .yith-wcwl-add-button:hover,
    .block-deal .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
    .block-deal .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a:hover
    {
        background-color: {$main_color};
    }

    body .box-vertical-megamenus .vertical-menu-content,
    body .popular-tabs .nav-tab li:hover, 
    body .popular-tabs .nav-tab li.active,
    body .latest-deals .latest-deal-content,
    body .brand-showcase .brand-showcase-title,
    body .group-title span,
    body #footer2.footer3,
    body .view-product-list .page-title span,
    body .page-heading span.page-heading-title,
    body .count-down-time2 .box-count,
    body .option3 .main-header .header-search-box .form-inline,
    body .banner-text .banner-button:hover,
    body .products-style8 .add-to-cart:hover,
    body .products-style8 .product.compare-button .compare:hover,
    body .products-style8 .yith-wcwl-add-to-wishlist>div:hover,
    body .lock-boock-button a:hover,
    body .block-collections .collection-list .info .collection-button a:hover,
    body .block-loock-bocks .owl-controls .owl-next:hover, 
    body .block-loock-bocks .owl-controls .owl-prev:hover,
    body .block-testimonials .owl-controls .owl-prev:hover, 
    body .block-testimonials .owl-controls .owl-next:hover,
    body .block-blogs .blog-list-wapper .owl-controls .owl-prev:hover, 
    body .block-blogs .blog-list-wapper .owl-controls .owl-next:hover,
    body .block-manufacturer-logo .owl-controls .owl-prev:hover, 
    body .block-manufacturer-logo .owl-controls .owl-next:hover,
    body .section-band-logo.style2 .owl-controls .owl-prev:hover, 
    body .section-band-logo.style2 .owl-controls .owl-next:hover,
    body .option12.section-blog-12 .owl-controls .owl-prev:hover, 
    body .option12.section-blog-12 .owl-controls .owl-next:hover,
    .block-new-product12 .owl-controls .owl-prev:hover, 
    .block-new-product12 .owl-controls .owl-next:hover,
    .option12.block-hotdeal-week .owl-controls .owl-prev:hover, 
    .option12.block-hotdeal-week .owl-controls .owl-next:hover,
    body .vertical-menu-list .mega-group-header span,
    body .footer4.style2 .social-link .fa:hover,
    .header.style13 .header-search-inner form,
    .footer4 .social-link a:hover .fa,
    .footer5 .social-link a:hover .fa,
    .footer5 .tagcloud a:hover,
    .option-13 .owl-controls .owl-prev:hover, 
    .option-13 .owl-controls .owl-next:hover,
    .option-13.block-top-brands .list-brand .item:hover, 
    .option-13.block-top-brands .list-brand .item.active,
    .option-13.block-top-brands .bx-wrapper .bx-controls-direction a:hover,
     body .block-testimonials3 .owl-controls .owl-dots .owl-dot,
    .block-testimonials3 .owl-controls .owl-dots .owl-dot.active,
    .product-style4:hover,
    .product-style4 .yith-wcwl-add-to-wishlist .yith-wcwl-add-button:hover, 
    .product-style4 .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse:hover, 
    .product-style4 .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse:hover,
    .product-style4 .compare-button:hover,
    .product-style4 .yith-wcqv-button:hover,
    .option-14.block-static ul.list li .group-button-control .yith-wcwl-add-to-wishlist:hover,
    .option-14.block-static ul.list li .group-button-control .compare-button a:hover,
    .option-14.block-static ul.list li .group-button-control .search.yith-wcqv-button:hover,
    .option-14.block-static ul.list .group-button-control .add-to-cart a,
    .option-14.block-static .block-static-products ul.list li:hover .product-thumb,
    .option-14 .block-deal .yith-wcwl-add-to-wishlist:hover,
    
    .option-14.block-static .owl-controls .owl-prev:hover, 
    .option-14.block-top-brands2 .brand-products .owl-controls .owl-prev:hover, 
    .option-14.block-top-brands2 .brand-products .owl-controls .owl-next:hover,
    .option-14.block-top-brands2 .list-brands .owl-controls .owl-prev:hover, 
    .option-14.block-top-brands2 .list-brands .owl-controls .owl-next:hover,
    .option-14.block-static .owl-controls .owl-prev:hover, 
    .option-14.block-static .owl-controls .owl-next:hover,
    .option-14.block-top-brands2 .list-brands a.active img,
    .option-14.block-top-brands2 .list-brands a:hover img,
     body .widget_product_tag_cloud .tagcloud a:hover,
     .block-deal .yith-wcwl-add-to-wishlist .yith-wcwl-add-button:hover,
    .block-deal .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
    .block-deal .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a:hover
    {
        border-color: {$main_color};

    }
    body .product-list li .add-to-cart:hover,
    body .products-style8 .product-thumb .yith-wcqv-button,
    body .lasttest-blog11 .item-blog .cat{
        background-color: {$rgba_main_color}
    }
    body .option11.featured-banner .box-small-banner .banner:before{
        background-color: {$rgba_main_color_08};
    }
    .product-style4 .add_to_cart_button, .product-style4 .added_to_cart{
        background-color: {$rgba_main_color_07};
    }
    body .product-list li .content_price,
    body.woocommerce div.product p.price,
    body.woocommerce div.product span.price,
    body .cart-block .cart-block-content .product-info .p-right .p-rice,
    .woocommerce div.product p.price, 
    .woocommerce div.product span.price,
    body .vertical-menu-list .mega-product .price,
    .option12.tab-7.block-tab-category .product-style3 .price,
    .option12.block-hotdeal-week .price,
    .block-new-product12 .price,
    .option-13 .product-style3 .content_price .price,
    .option-14 .block-deal .price,
    .block-deal .price,
    .product-style4 .price,
    .option-14.block-static .price,
    .woocommerce div.product form.cart .group_table .price{
        color: {$price_color}
    }
CSS;
    /* Vertical menu */
    $vm_bg_color = kt_option('vm_bg_color', '#fff');
    $vm_text_color = kt_option('vm_text_color', '#666');
    $vm_bg_hover_color = kt_option('vm_bg_hover_color', '#ff3366');
    $vm_text_hover_color = kt_option('vm_text_hover_color', '#fff');
    $css .= <<<CSS
    body .box-vertical-megamenus .vertical-menu-content{
        background-color: {$vm_bg_color};
    }
    body .box-vertical-megamenus .all-category span:hover{
        border-color: {$vm_bg_hover_color};
        color: {$vm_text_hover_color};
    }
    body .box-vertical-megamenus .vertical-menu-list>li:hover,
    body .box-vertical-megamenus .all-category span:hover{
        background-color: {$vm_bg_hover_color};
    }
    body .box-vertical-megamenus .vertical-menu-list>li>a{
        color: {$vm_text_color};
    }
    body .box-vertical-megamenus .vertical-menu-list>li:hover>a,
    body .box-vertical-megamenus .vertical-menu-list>li:hover>a:before{
        color: {$vm_text_hover_color}
    }
CSS;
    /* Header color */
    if ($kt_used_header == 1) {
        $h1_topbar_bg = kt_option('h1_topbar_bg', '#f6f6f6');
        $h1_mega_menu_bg = kt_option('h1_mega_menu_bg', '#eee');
        $h1_box_category_bg = kt_option('h1_box_category_bg', '#000');
        $h1_mege_menu_text_color = kt_option('h1_mege_menu_text_color', '#000');
        $h1_mege_menu_text_hover_color = kt_option('h1_mege_menu_text_hover_color', '#fff');
        $h1_item_mege_menu_bg_hover_color = kt_option('h1_item_mege_menu_bg_hover_color', '#ff3366');
        $h1_topbar_text_color = kt_option('h1_topbar_text_color', '#666');
        $h1_box_category_text_color = kt_option('h1_box_category_text_color', '#fff');
        $h1_topbar_text_hover_color = kt_option('h1_topbar_text_hover_color', '#ff3366');
        $h1_mega_menu_border = kt_option('h1_mega_menu_border', '#cacaca');
        $css .= <<<CSS
        .header.style1 .top-header{
            background-color: {$h1_topbar_bg};
            color:{$h1_topbar_text_color};
        }
        .header.style1 .top-bar-menu>li>a{
            color: {$h1_topbar_text_color};
        }
        .header.style1 .top-bar-menu>li>a:hover{
            color: {$h1_topbar_text_hover_color};
        }
        .header.style1 .box-vertical-megamenus .title{
            background-color: {$h1_box_category_bg};
            color:{$h1_box_category_text_color};
        }
        .header.style1 .top-main-menu .main-menu-wapper{
            background-color: {$h1_mega_menu_bg};
        }
        .header.style1 .navigation-main-menu>li:hover>a, 
        .header.style1 .navigation-main-menu>li.active>a{
            color: {$h1_mege_menu_text_hover_color};
            border-color: transparent;
        }
        .header.style1 .navigation-main-menu>li:hover, 
        .header.style1 .navigation-main-menu>li.active{
            background-color: {$h1_item_mege_menu_bg_hover_color};
        }
        .header.style1 .navigation-main-menu>li>a{
            color: {$h1_mege_menu_text_color};
        }
        .header.style1 .navigation-main-menu>li>a{
            border-color: {$h1_mega_menu_border};
        }
        .header.style1 .nav-top-menu.nav-ontop{
            background-color: {$h1_mega_menu_bg};
        }
        
CSS;
    }
    /* HEADER STYLE 2*/
    if ($kt_used_header == 2) {
        $h2_topbar_bg = kt_option('h2_topbar_bg', '#f6f6f6');
        $h2_mega_menu_bg = kt_option('h2_mega_menu_bg', '#958457');
        $h2_box_category_bg = kt_option('h2_box_category_bg', '#4c311d');
        $h2_topbar_text_color = kt_option('h2_topbar_text_color', '#666');
        $h2_mege_menu_text_color = kt_option('h2_mege_menu_text_color', '#fff');
        $h2_box_category_text_color = kt_option('h2_box_category_text_color', '#fff');
        $h2_topbar_text_hover_color = kt_option('h2_topbar_text_hover_color', '#4c311d');
        $h2_mege_menu_text_hover_color = kt_option('h2_mege_menu_text_hover_color', '#fff');
        $h2_item_mege_menu_bg_hover_color = kt_option('h2_item_mege_menu_bg_hover_color', '#ab9d77');
        $css .= <<<CSS
    .header.style2 .top-header{
        background-color: {$h2_topbar_bg};
        color:{$h2_topbar_text_color};
    }
    .header.style2 .top-bar-menu>li>a{
        color:{$h2_topbar_text_color};
    }
    .header.style2 .top-bar-menu>li>a:hover{
        color:{$h2_topbar_text_hover_color};
    }
    .header.style2 .box-vertical-megamenus .title{
        background-color: {$h2_box_category_bg};
        color:{$h2_box_category_text_color};
    }
    body .top-main-menu.style2 .main-menu-wapper{
        background-color: {$h2_mega_menu_bg};
    }
    .header.style2 .top-main-menu.style2 .navigation-main-menu>li:hover, 
    .header.style2 .top-main-menu.style2 .navigation-main-menu>li.active{
        background-color: {$h2_item_mege_menu_bg_hover_color};
    }
    .header.style2 .top-main-menu.style2 .navigation-main-menu>li>a{
        color: {$h2_mege_menu_text_color};
    }
    .header.style2 .navigation-main-menu>li:hover>a, 
    .header.style2 .navigation-main-menu>li.active>a{
        color: {$h2_mege_menu_text_hover_color};
    }
    .header.style2 .nav-top-menu.nav-ontop{
        background-color: {$h2_mega_menu_bg};
    }

CSS;
    }
    if ($kt_used_header == 3) {
        $h3_topbar_bg = kt_option('h3_topbar_bg', '#f6f6f6');
        $h3_box_category_bg = kt_option('h3_box_category_bg', '#0088cc');
        $h3_mega_menu_bg_ontop = kt_option('h3_mega_menu_bg_ontop', '#0088cc');
        $h3_topbar_text_color = kt_option('h3_topbar_text_color', '#666');
        $h3_mege_menu_text_color_ontop = kt_option('h3_mege_menu_text_color_ontop', '#fff');
        $h3_box_category_text_color = kt_option('h3_box_category_text_color', '#fff');
        $h3_topbar_text_hover_color = kt_option('h3_topbar_text_hover_color', '#0088cc');
        $h3_mege_menu_text_hover_color = kt_option('h3_mege_menu_text_hover_color', '#0088cc');
        $h3_mege_menu_hover_text_color_ontop = kt_option('h3_mege_menu_hover_text_color_ontop', '#fff');
        $h3_item_mege_menu_bg_hover_color = kt_option('h3_item_mege_menu_bg_hover_color', '#31a5df');
        $css .= <<<CSS
        .header.option3 .top-header{
            background-color: {$h3_topbar_bg};
            color:{$h3_topbar_text_color};
        }
        .header.option3 .top-bar-menu>li>a{
            color:{$h3_topbar_text_color};
        }
        .header.option3 .top-bar-menu>li>a:hover{
            color:{$h3_topbar_text_hover_color};
        }
        .header.option3 .box-vertical-megamenus .title{
            background-color: {$h3_box_category_bg};
            color:{$h3_box_category_text_color};
        }
        .header.option3 .nav-ontop{
            background-color: {$h3_mega_menu_bg_ontop};
        }
        .header.option3 .nav-top-menu.nav-ontop .top-main-menu.style3 .navigation-main-menu>li>a{
            color: {$h3_mege_menu_text_color_ontop};
        }
CSS;
    }
    if ($kt_used_header == 4) {
        $h4_topbar_bg = kt_option('h4_topbar_bg', '#f6f6f6');
        $h4_box_category_bg = kt_option('h4_box_category_bg', '#0088cc');
        $h4_topbar_text_color = kt_option('h4_topbar_text_color', '#666');
        $h4_mege_menu_text_color = kt_option('h4_mege_menu_text_color', '#333');
        $h4_box_category_text_color = kt_option('h4_box_category_text_color', '#fff');
        $h4_topbar_text_hover_color = kt_option('h4_topbar_text_hover_color', '#0088cc');
        $h4_mege_menu_text_hover_color = kt_option('h4_mege_menu_text_hover_color', '#0088cc');
        $css .= <<<CSS
        .header.option4 .top-header{
            background-color: {$h4_topbar_bg};
            color:{$h4_topbar_text_color};
        }
        .header.option4 .top-bar-menu>li>a{
            color:{$h4_topbar_text_color};
        }
        .header.option4 .top-bar-menu>li>a:hover{
            color:{$h4_topbar_text_hover_color};
        }
        .header.option4 .box-vertical-megamenus .title{
            background-color: {$h4_box_category_bg};
            color:{$h4_box_category_text_color};
        }
CSS;
    }
    if ($kt_used_header == 5) {
        $h5_topbar_bg = kt_option('h5_topbar_bg', '#f6f6f6');
        $h5_mega_menu_bg = kt_option('h5_mega_menu_bg', '#eee');
        $h5_nav_mega_menu_bg = kt_option('h5_nav_mega_menu_bg', '#f96d10');
        $h5_box_category_bg = kt_option('h5_box_category_bg', '#e80000');
        $h5_topbar_text_color = kt_option('h5_topbar_text_color', '#666');
        $h5_mege_menu_text_color = kt_option('h5_mege_menu_text_color', '#fff');
        $h5_box_category_text_color = kt_option('h5_box_category_text_color', '#fff');
        $h5_topbar_text_hover_color = kt_option('h5_topbar_text_hover_color', '#f96d10');
        $h5_mege_menu_text_hover_color = kt_option('h5_mege_menu_text_hover_color', '#fff');
        $h5_item_mege_menu_bg_hover_color = kt_option('h5_item_mege_menu_bg_hover_color', '#e80000');
        $css .= <<<CSS
        .header.option5 .top-header{
            background-color: {$h5_topbar_bg};
            color:{$h5_topbar_text_color};
        }
        .header.option5 .top-bar-menu>li>a{
            color:{$h5_topbar_text_color};
        }
        .header.option5 .top-bar-menu>li>a:hover{
            color:{$h5_topbar_text_hover_color};
        }
        .header.option5 .box-vertical-megamenus .title{
            background-color: {$h5_box_category_bg};
            color:{$h5_box_category_text_color};
        }
        .header.option5 .top-main-menu .main-menu-wapper{
            background-color: {$h5_nav_mega_menu_bg};
        }
        .header.option5  .nav-top-menu{
            background-color: {$h5_mega_menu_bg};
        }
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li:hover, 
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li.active{
             background-color: {$h5_item_mege_menu_bg_hover_color};
        }
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li>a{
            color: {$h5_mege_menu_text_color};
        }
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li:hover>a, 
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li.active>a{
            color: {$h5_mege_menu_text_hover_color};
        }
        .option5.header .nav-top-menu.nav-ontop{
            background-color: {$h5_nav_mega_menu_bg};
        }
CSS;
    }
    if ($kt_used_header == 6) {
        $h6_topbar_bg = kt_option('h6_topbar_bg', '#007176');
        $h6_mega_menu_bg = kt_option('h6_mega_menu_bg', '#008a90');
        $h6_nav_mega_menu_bg = kt_option('h6_nav_mega_menu_bg', '#007176');
        $h6_box_category_bg = kt_option('h6_box_category_bg', '#000');
        $h6_search_box_bg = kt_option('h6_search_box_bg', '#00abb3');
        $h6_topbar_text_color = kt_option('h6_topbar_text_color', '#fff');
        $h6_mege_menu_text_color = kt_option('h6_mege_menu_text_color', '#fff');
        $h6_box_category_text_color = kt_option('h6_box_category_text_color', '#fff');
        $h6_topbar_text_hover_color = kt_option('h6_topbar_text_hover_color', '#ccc');
        $h6_mege_menu_text_hover_color = kt_option('h6_mege_menu_text_hover_color', '#fff');
        $h6_item_mege_menu_bg_hover_color = kt_option('h6_item_mege_menu_bg_hover_color', '#00abb3');
        $h6_header_bg = kt_option('h6_header_bg', '#008a90');
        $css .= <<<CSS
        .header.option6 .top-header{
            background-color: {$h6_topbar_bg};
            color:{$h6_topbar_text_color};
        }
        .header.option6 .top-bar-menu>li>a{
            color:{$h6_topbar_text_color};
        }
        .header.option6 .top-bar-menu>li>a:hover{
            color:{$h6_topbar_text_hover_color};
        }
        .header.option6 .box-vertical-megamenus .title{
            background-color: {$h6_box_category_bg};
            color:{$h6_box_category_text_color};
        }
        .header.option6 .top-main-menu .main-menu-wapper{
            background-color: {$h6_nav_mega_menu_bg};
        }
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li:hover, 
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li.active{
             background-color: {$h6_item_mege_menu_bg_hover_color};
        }
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li>a{
            color: {$h6_mege_menu_text_color};
        }
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li:hover>a, 
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li.active>a{
            color: {$h6_mege_menu_text_hover_color};
        }
        body .option6.header{
            background-color: {$h6_header_bg};
        }
        .option6.header .main-header .header-search-box .form-inline,
        .option6.header .main-header .header-search-box .form-inline .form-category{
            background-color: {$h6_search_box_bg};
        }
        .option6.header .nav-top-menu.nav-ontop{
            background-color: {$h6_nav_mega_menu_bg};
        }
CSS;
    }
    if ($kt_used_header == 7) {
        $h7_topbar_bg = kt_option('h7_topbar_bg', '#cd2600');
        $h7_mega_menu_bg = kt_option('h7_mega_menu_bg', '#e62e04');
        $h7_box_category_bg = kt_option('h7_box_category_bg', '#434343');
        $h7_button_box_category_bg = kt_option('h7_button_box_category_bg', '#2a2a2a');
        $h7_topbar_text_color = kt_option('h7_topbar_text_color', '#fff');
        $h7_mege_menu_text_color = kt_option('h7_mege_menu_text_color', '#fff');
        $h7_box_category_text_color = kt_option('h7_box_category_text_color', '#fff');
        $h7_topbar_text_hover_color = kt_option('h7_topbar_text_hover_color', '#ccc');
        $h7_mege_menu_text_hover_color = kt_option('h7_mege_menu_text_hover_color', '#fff');
        $h7_item_mege_menu_bg_hover_color = kt_option('h7_item_mege_menu_bg_hover_color', '#f04923');
        $h7_header_bg = kt_option('h7_header_bg', '#e62e04');
        $css .= <<<CSS
        .header.style7 .top-header{
            background-color: {$h7_topbar_bg};
            color:{$h7_topbar_text_color};
        }
        .header.style7 .top-bar-menu>li>a{
            color:{$h7_topbar_text_color};
        }
        .header.style7 .top-bar-menu>li>a:hover{
            color:{$h7_topbar_text_hover_color};
        }
        .header.style7 #main-header{
            background-color: {$h7_box_category_bg};
        }
        body .header.style7 .main-header,
        body .header.style7 #main-header{
            background-color: {$h7_header_bg};
        }
        body .main-menu-style7.main-menu-wapper{
            background-color: {$h7_mega_menu_bg};
        }
        body .main-menu-style7 .navigation-main-menu>li>a{
            color: {$h7_mege_menu_text_color};
        }
        body .main-menu-style7 .navigation-main-menu>li:hover, 
        body .main-menu-style7 .navigation-main-menu>li.active{
            background-color: {$h7_item_mege_menu_bg_hover_color};
        }
        body .main-menu-style7 .navigation-main-menu>li:hover>a,
        body .main-menu-style7 .navigation-main-menu>li.active>a{
            color: {$h7_mege_menu_text_hover_color};
        }
        body .option7 .box-vertical-megamenus .title .btn-open-mobile{
            background-color: {$h7_button_box_category_bg};
        }

CSS;
    }
    if ($kt_used_header == 12) {
        $h12_header_bg = kt_option('h12_header_bg', '#394264');
        $h12_box_category_bg = kt_option('h12_box_category_bg', '#ff3366');
        $h12_topbar_text_color = kt_option('h12_topbar_text_color', '#9099b7');
        $h12_mege_menu_text_color = kt_option('h12_mege_menu_text_color', '#9099b7');
        $h12_box_category_text_color = kt_option('h12_box_category_text_color', '#ffffff');
        $h12_topbar_text_hover_color = kt_option('h12_topbar_text_hover_color', '#9099b7');
        $h12_mege_menu_text_hover_color = kt_option('h12_mege_menu_text_hover_color', '#fff');
        $h12_box_header_bg_color = kt_option('h12_box_header_bg_color', '#50597b');
        $css .= <<<CSS
        body .header.style12 .top{
            background-color: {$h12_header_bg};
        }
        body  .top-bar-menu>li>a{
            color: {$h12_topbar_text_color};
            border-color:{$h12_topbar_text_color};
        }
        body  .top-bar-menu>li>a:hover{
            color: {$h12_topbar_text_hover_color};
        }
        body .main-menu-style12 .navigation-main-menu>li>a{
            color: {$h12_mege_menu_text_color};
        }
        body .main-menu-style12 .navigation-main-menu>li>a:hover,
        body .main-menu-style12 .navigation-main-menu>li.active>a{
            color: {$h12_mege_menu_text_hover_color};
        }
        body .main-menu-style12 .navigation-main-menu>li>a:before{
            background-color: {$h12_mege_menu_text_hover_color};
        }
        body .block-header-top12{
            background-color: {$h12_box_header_bg_color};
        }
        body .box-vertical-megamenus .title{
            background-color: {$h12_box_category_bg};
            color:{$h12_box_category_text_color};
        }
        body .block-header-top12 .box-vertical-megamenus .btn-open-mobile{
            border-color: {$h12_box_category_text_color};
        }
CSS;
    }
    if ($kt_used_header == 11) {
        $h11_box_category_bg = kt_option('h11_box_category_bg', '#ff6633');
        $h11_box_category_text_color = kt_option('h11_box_category_text_color', '#fff');
        $h11_box_header_bg_color = kt_option('h11_box_header_bg_color', '#333');
        $h11_box_contact_info_bg_color = kt_option('h11_box_contact_info_bg_color', '#666666');
        $h11_box_contact_info_color = kt_option('h11_box_contact_info_color', '#fff');
        $h11_header_bg = kt_option('h11_header_bg', '#f5f5f5');
        $css .= <<<CSS
        .header.style11 .block-header-top12,
        .header.style11 .navigation-main-menu>li:hover, 
        .header.style11 .navigation-main-menu>li.active,
        .header.style11 .block-mini-cart{
            background-color: {$h11_box_header_bg_color};
        }
        .header.style11{
            background-color: {$h11_header_bg};
        }
        .header.style11 .box-vertical-megamenus .title,
        .header.style11 .block-search .btn-search{
            background-color: {$h11_box_category_bg};
            color:{$h11_box_category_text_color};
        }
        .header.style11 .block-header-top12 .contact-info .inner{
            background-color: {$h11_box_contact_info_bg_color};
            color:{$h11_box_contact_info_color};
        }
        .header.style11 .block-header-top12 .top-bar-social a{
            color:{$h11_box_contact_info_color};
        }
        body .header.style11 .block-header-top12 .contact-info .fa{
            border-color: {$h11_box_contact_info_color};
        }
        .header.style11 .block-header-top12 .top-bar-social a:hover{
            color: {$h11_box_category_bg};
        }
        .header.style11 .block-header-top12 .top-bar-social a:hover .fa{
            border-color: {$h11_box_category_bg};
        }
CSS;
    }
    if ($kt_used_header == "9") {
        $h9_header_bg = kt_option('h9_header_bg', '#000');
        $h9_header_opacity = kt_option('h9_header_opacity', '0.6');
        $h9_header_color = kt_option('h9_header_color', '#fff');
        $h9_header_hover_color = kt_option('h9_header_hover_color', '#ff6633');
        $h9_topbar_bg_color = kt_option('h9_topbar_bg_color', '#fff');
        $h9_topbar_opacity = kt_option('h9_topbar_opacity', '0.4');
        $h9_topbar_color = kt_option('h9_topbar_color', '#fff');
        $h9_topbar_hover_color = kt_option('h9_topbar_hover_color', '#ff6633');
        $h9_header_bg_rgb = vsprintf('rgba( %1$s, %2$s, %3$s,' . $h9_header_opacity . ')', kt_hex2rgb($h9_header_bg));
        $h9_topbar_bg_color_rgb = vsprintf('rgba( %1$s, %2$s, %3$s,' . $h9_topbar_opacity . ')', kt_hex2rgb($h9_topbar_bg_color));
        $h9_header_color_rgb = vsprintf('rgba( %1$s, %2$s, %3$s,0.2)', kt_hex2rgb($h9_header_color));
        $css .= <<<CSS
        body .header.style9{
            background-color: {$h9_header_bg_rgb};
        }
        body .header.style9 .top-header{
            background-color: {$h9_topbar_bg_color_rgb};
        }
        .header.style9 .top-bar-menu > li > a{
            color: {$h9_topbar_color};
        }
        .header.style9 .top-bar-menu > li > a:hover{
            color: {$h9_topbar_hover_color};
        }
        .header.style9 .navigation-main-menu > li:hover>a, 
        .header.style9 .navigation-main-menu > li.active>a{
            color: {$h9_header_hover_color};
        }
        .header.style9 .navigation-main-menu > li > a:after{
            background-color: {$h9_header_hover_color};
        }
        .header.style9 .form-search-9 .icon:hover, 
        .block-mini-cart-9 .cart-link:hover,
        .header.style9 .form-search-9 .btn-search{
            background-color: {$h9_header_hover_color};
        }
CSS;
    }
    if ($kt_used_header == 13) {
        $h13_box_category_bg = kt_option('h13_box_category_bg', '#000');
        $h13_box_category_text_color = kt_option('h13_box_category_text_color', '#fff');
        $css .= <<<CSS
        .block-header-top13 .box-vertical-megamenus .title{
          background-color: {$h13_box_category_bg};
          color:{$h13_box_category_text_color};
        }
        body .block-header-top13 .box-vertical-megamenus .btn-open-mobile{
            border-color: {$h13_box_category_text_color};
        }
CSS;
    }
    ?>
    <style id="kt-theme-color" type="text/css">
        <?php 
    echo apply_filters('kt_customize_css', $css);
    ?>
    </style>
    <?php 
}
コード例 #6
0
ファイル: output_css.php プロジェクト: oeuvrayjoris/grece
function kad_custom_css()
{
    global $pinnacle;
    if (isset($pinnacle['topbar_height']) && isset($pinnacle['topbar']) && $pinnacle['topbar'] == 1) {
        $topbar_height = '#topbar {height:' . $pinnacle['topbar_height'] . 'px;} #topbar ul.sf-menu li a, #topbar .top-menu-cart-btn, #topbar .top-menu-search-btn, #topbar .topbarsociallinks li a, #topbar .nav-trigger-case .kad-navbtn {line-height:' . $pinnacle['topbar_height'] . 'px;}';
    } else {
        $topbar_height = '';
    }
    if (isset($pinnacle['topbar_iconmenu_fontsize'])) {
        $topbar_iconmenu_fontsize = '#kad-banner #topbar .topbarsociallinks li a {font-size:' . $pinnacle['topbar_iconmenu_fontsize'] . 'px;}';
    } else {
        $topbar_iconmenu_fontsize = '';
    }
    $htoppadding = '.trans-header #pageheader {padding-top:' . pinnacle_header_height() . 'px;}';
    //Typography
    if (!empty($pinnacle['font_h1'])) {
        $font_family = '.headerfont, .tp-caption, .yith-wcan-list li, .yith-wcan .yith-wcan-reset-navigation, ul.yith-wcan-label li a, .product_item .price {font-family:' . $pinnacle['font_h1']['font-family'] . ';} 
  .topbarmenu ul li {font-family:' . $pinnacle['font_primary_menu']['font-family'] . ';}
  #kadbreadcrumbs {font-family:' . $pinnacle['font_p']['font-family'] . ';}';
    } else {
        $font_family = '';
    }
    //Basic Styling
    if (!empty($pinnacle['primary_color'])) {
        $primaryrgb = kt_hex2rgb($pinnacle['primary_color']);
        $color_primary = '.home-message:hover {background-color:' . $pinnacle['primary_color'] . '; background-color: rgba(' . $primaryrgb[0] . ', ' . $primaryrgb[1] . ', ' . $primaryrgb[2] . ', 0.6);}
nav.woocommerce-pagination ul li a:hover, .wp-pagenavi a:hover, .woocommerce-info, .panel-heading .accordion-toggle, .variations .kad_radio_variations label:hover, .variations .kad_radio_variations label.selectedValue,.variations .kad_radio_variations label:hover {border-color: ' . $pinnacle['primary_color'] . ';}
a, .product_price ins .amount, .price ins .amount, .price ins, .color_primary, .postedinbottom a:hover, .footerclass a:hover, .posttags a:hover, .subhead a:hover, .nav-trigger-case:hover .kad-menu-name, .star-rating, .kad-btn-border-white:hover, .tp-caption .kad-btn-border-white:hover, .woocommerce-info:before, .nav-trigger-case:hover .kad-navbtn, #wp-calendar a, .widget_categories .widget-inner .cat-item a:hover, .widget_archive li a:hover, .widget_nav_menu li a:hover,.widget_recent_entries li a:hover, .widget_pages li a:hover, .product-categories li a:hover, .product-categories li a:hover {color: ' . $pinnacle['primary_color'] . ';}
.widget_price_filter .ui-slider .ui-slider-handle, .product_item .kad_add_to_cart:hover, .product_item a.button:hover, .product_item.hidetheaction:hover .kad_add_to_cart:hover, .kad-btn-primary, html .woocommerce-page .widget_layered_nav ul.yith-wcan-label li a:hover, html .woocommerce-page .widget_layered_nav ul.yith-wcan-label li.chosen a, nav.woocommerce-pagination ul li span.current, nav.woocommerce-pagination ul li a:hover, .product-category.grid_item a:hover h5, .woocommerce-message .button, .widget_layered_nav_filters ul li a, .widget_layered_nav ul li.chosen a, .wpcf7 input.wpcf7-submit, .yith-wcan .yith-wcan-reset-navigation, .panel-heading .accordion-toggle, .nav-tabs li.active, .menu-cart-btn .kt-cart-total, .form-search .search-icon, .product_item .add_to_cart_button:hover, div.product .woocommerce-tabs ul.tabs li.active, #containerfooter .menu li a:hover, .bg_primary, .home-iconmenu .home-icon-item:hover i, .home-iconmenu .home-icon-item:hover h4:after, .home-iconmenu .home-icon-item:hover .kad-btn-primary, p.demo_store, #commentform .form-submit #submit, .kad-hover-bg-primary:hover, .widget_shopping_cart_content .checkout, .product_item.hidetheaction:hover .add_to_cart_button:hover, .product_item.hidetheaction:hover a.button:hover, .productnav a:hover, .kad-btn-primary, .single_add_to_cart_button, #commentform .form-submit #submit, #payment #place_order, .yith-wcan .yith-wcan-reset-navigation, .checkout-button, .widget_shopping_cart_content .checkout, .cart-collaterals .shipping_calculator .button, .login .form-row .button, .order-actions .button, input[type="submit"].button, .post-password-form input[type="submit"], #kad-top-cart-popup .button.checkout, #kad-head-cart-popup .button.checkout, table.shop_table td.actions .checkout-button.button, .select2-container .select2-choice .select2-arrow, .woocommerce span.onsale, span.onsale, .woocommerce #carouselcontainer span.onsale, #filters li a.selected, #filters li a:hover, .p_primarystyle .portfolio-hoverover, .woocommerce-message, .woocommerce-error, a.added_to_cart:hover, .cart-collaterals .cart_totals tr.order-total, .cart-collaterals .shipping_calculator h2 a:hover, .top-menu-cart-btn .kt-cart-total, #topbar ul.sf-menu li a:hover, .topbarmenu ul.sf-menu li.sf-dropdown:hover, .topbarsociallinks li a:hover, #topbar .nav-trigger-case .kad-navbtn:hover, .top-menu-search-btn:hover, .top-search-btn.collapsed:hover, .top-menu-cart-btn:hover, .top-cart-btn.collapsed:hover, .wp-pagenavi .current, .wp-pagenavi a:hover, .login .form-row .button, .post-password-form input[type="submit"], .kad-post-navigation .kad-previous-link a:hover, .kad-post-navigation .kad-next-link a:hover, .select2-results .select2-highlighted, .variations .kad_radio_variations label.selectedValue, #payment #place_order, .checkout-button, input[type="submit"].button, .order-actions .button, .productnav a:hover, #nav-main ul.sf-menu ul li a:hover, #nav-main ul.sf-menu ul li.current-menu-item a, .woocommerce-checkout .chosen-container .chosen-results li.highlighted, .return-to-shop a.wc-backward {background: ' . $pinnacle['primary_color'] . ';}';
    } else {
        $color_primary = '';
    }
    if (!empty($pinnacle['primary20_color'])) {
        $color_primary30 = 'a:hover {color: ' . $pinnacle['primary20_color'] . ';} 
.kad-btn-primary:hover, .login .form-row .button:hover, #payment #place_order:hover, .yith-wcan .yith-wcan-reset-navigation:hover, .widget_shopping_cart_content .checkout:hover, .woocommerce-message .button:hover, #commentform .form-submit #submit:hover, .wpcf7 input.wpcf7-submit:hover, .widget_layered_nav_filters ul li a:hover, table.shop_table td.actions .checkout-button.button:hover, .product_item.hidetheaction:hover .add_to_cart_button, .kad-btn-primary:hover, input[type="submit"].button:hover, .single_add_to_cart_button:hover, .order-actions .button:hover, .woocommerce-message .button:hover,  #kad-top-cart-popup .buttons .button.checkout:hover, #kad-head-cart-popup .buttons .button.checkout:hover, #commentform .form-submit #submit:hover, .checkout-button:hover, #payment #place_order:hover, .widget_shopping_cart_content .checkout:hover, .cart-collaterals .shipping_calculator .button:hover, .yith-wcan .yith-wcan-reset-navigation:hover, .login .form-row .button:hover, .post-password-form input[type="submit"]:hover, table.shop_table td.actions .checkout-button.button:hover .widget_layered_nav ul li.chosen a:hover, .checkout-button:hover, .order-actions .button:hover, input[type="submit"].button:hover, .product_item.hidetheaction:hover .kad_add_to_cart, .product_item.hidetheaction:hover a.button, .post-password-form input[type="submit"]:hover, .return-to-shop a.wc-backward:hover {background: ' . $pinnacle['primary20_color'] . ';}';
    } else {
        $color_primary30 = '';
    }
    if (!empty($pinnacle['gray_font_color'])) {
        $color_grayfont = '.color_gray, .subhead, .subhead a, .posttags, .posttags a, .product_meta a, .postedinbottom a {color:' . $pinnacle['gray_font_color'] . ';}';
    } else {
        $color_grayfont = '';
    }
    if (!empty($pinnacle['header_background_choice']) && $pinnacle['header_background_choice'] == 'simple' && !empty($pinnacle['header_background_color'])) {
        $head_bgcolor = kt_hex2rgb($pinnacle['header_background_color']);
        $hbg_color = '.is-sticky .headerclass, .none-trans-header .headerclass {background: rgba(' . $head_bgcolor[0] . ', ' . $head_bgcolor[1] . ', ' . $head_bgcolor[2] . ', ' . $pinnacle['header_background_transparency'] . ');}';
    } else {
        $hbg_color = '';
    }
    if (!empty($pinnacle['header_overlay_background_transparency'])) {
        $header_overlay_background_transparency = '.titleclass .header-color-overlay {opacity:' . $pinnacle['header_overlay_background_transparency'] . ';}';
    } else {
        $header_overlay_background_transparency = '';
    }
    if (!empty($pinnacle['pageheader_background']) && !empty($pinnacle['pageheader_background']['background-color'])) {
        $pageheader_color = '.titleclass {background:' . $pinnacle['pageheader_background']['background-color'] . ';}';
    } else {
        $pageheader_color = '';
    }
    if (!empty($pinnacle['footerfont_color'])) {
        $color_footerfont = '#containerfooter h3, #containerfooter, .footercredits p, .footerclass a, .footernav ul li a, #containerfooter .menu li a, .footerclass h5, .footerclass h2 .footerclass .kadence_social_widget a, .footerclass .widget-title {color:' . $pinnacle['footerfont_color'] . ';}.footerclass .widget-title:after{background: ' . $pinnacle['footerfont_color'] . ';}';
    } else {
        $color_footerfont = '';
    }
    if (!empty($pinnacle['font_primary_menu']['color'])) {
        $mobile_color = '.none-trans-header .nav-trigger-case.collapsed .kad-navbtn, .is-sticky .nav-trigger-case.collapsed .kad-navbtn {color:' . $pinnacle['font_primary_menu']['color'] . ';}';
    } else {
        $mobile_color = '';
    }
    if (!empty($pinnacle['header_border_color'])) {
        $header_border_color = '.headerclass {border-color:' . $pinnacle['header_border_color'] . ';}';
    } else {
        $header_border_color = '';
    }
    // Sitewide Call
    if (isset($pinnacle['sitewide_action_padding'])) {
        $sitewide_action_padding = '.kt-call-sitewide-to-action {padding:' . $pinnacle['sitewide_action_padding'] . 'px 0;}';
    } else {
        $sitewide_action_padding = '';
    }
    //home page
    if (isset($pinnacle['home_action_padding'])) {
        $home_action_padding = '.kt-home-call-to-action {padding:' . $pinnacle['home_action_padding'] . 'px 0;}';
    } else {
        $home_action_padding = '';
    }
    if (isset($pinnacle['page_max_width']) && $pinnacle['page_max_width'] == '1') {
        $page_max_width = '@media (min-width: 1200px) {.container {width: 970px;} aside.col-lg-3 {width: 33.33333333333333%;} .main.col-lg-9 {width: 66.66666666666666%;}}';
    } else {
        $page_max_width = '';
    }
    //topbar mobile
    if (isset($pinnacle['topbar_mobile_hide']) && $pinnacle['topbar_mobile_hide'] == '1') {
        $topbar_mobile_hide = '@media (max-width: 767px) {#topbar{display:none;}}';
    } else {
        $topbar_mobile_hide = '';
    }
    //Page title pagetitle_align
    if (isset($pinnacle['pagetitle_align']) && $pinnacle['pagetitle_align'] != 'center') {
        $pagetitle_align = '.page-header {text-align: ' . $pinnacle['pagetitle_align'] . ';}@media (max-width: 992px){#kadbreadcrumbs {text-align: ' . $pinnacle['pagetitle_align'] . ';}}';
    } else {
        $pagetitle_align = '';
    }
    if (isset($pinnacle['pagetitle_align']) && $pinnacle['pagetitle_align'] == 'right') {
        $pagetitle_align_right = '#kadbreadcrumbs {margin-top: 0;}';
    } else {
        $pagetitle_align_right = '';
    }
    if (!empty($pinnacle['x2_logo_upload']['url'])) {
        $x2logo = '@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {body #kad-banner #logo .kad-standard-logo, .trans-header .is-sticky #kad-banner #logo .kad-standard-logo {background-image: url("' . $pinnacle['x2_logo_upload']['url'] . '") !important;} }';
    } else {
        $x2logo = '';
    }
    if (!empty($pinnacle['th_x2_logo_upload']['url'])) {
        $x2logo_white = ' @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .trans-header #kad-banner #logo .kad-standard-logo-tranbg {background-image:url("' . $pinnacle['th_x2_logo_upload']['url'] . '") !important;}}';
    } else {
        $x2logo_white = '';
    }
    if (!empty($pinnacle['shop_title_min_height'])) {
        $ptitle_minheight = '.product_item .product_details h5 {min-height:' . $pinnacle['shop_title_min_height'] . 'px;}';
    } else {
        $ptitle_minheight = '';
    }
    if (isset($pinnacle['hide_author']) and $pinnacle['hide_author'] == 0) {
        $show_author = '.kad-hidepostauthortop, .postauthortop {display:none;}';
    } else {
        $show_author = '';
    }
    if (isset($pinnacle['hide_postedin']) and $pinnacle['hide_postedin'] == 0) {
        $show_postedin = '.postedinbottom {display:none;}';
    } else {
        $show_postedin = '';
    }
    if (isset($pinnacle['hide_posttags']) and $pinnacle['hide_posttags'] == 0) {
        $show_posttag = '.posttags {display:none;}';
    } else {
        $show_posttag = '';
    }
    if (isset($pinnacle['hide_commenticon']) and $pinnacle['hide_commenticon'] == 0) {
        $show_comment = '.postcommentscount {display:none;}';
    } else {
        $show_comment = '';
    }
    if (isset($pinnacle['hide_postdate']) and $pinnacle['hide_postdate'] == 0) {
        $show_date = '.postdate, .kad-hidedate, .postdatetooltip{display:none;}';
    } else {
        $show_date = '';
    }
    if (isset($pinnacle['topbar_layout']) and $pinnacle['topbar_layout'] == 1) {
        $topbar_layout = '.kad-topbar-left, .kad-topbar-left .topbar_social {float:right;} #topbar .kad-topbar-right ul.topbmenu, .kad-topbar-right .kad-topsearch-button, .kad-topbar-right .top-menu-cart-btn {float:left;} .kad-topbar-right #kad-top-search-popup, .kad-topbar-right #kad-top-cart-popup{right: auto;left: 0px;}';
    } else {
        $topbar_layout = '';
    }
    if (isset($pinnacle['smooth_scrolling_background']) && $pinnacle['smooth_scrolling_background'] == 1) {
        $scrolling_background = '#ascrail2000 {background-color: transparent;}';
    } else {
        $scrolling_background = '';
    }
    if (isset($pinnacle['header_height'])) {
        $header_height = '.kad-header-style-basic #nav-main ul.sf-menu > li > a, .kad-header-style-basic #kad-shrinkheader #mobile-nav-trigger a {line-height:' . $pinnacle['header_height'] . 'px;}';
    } else {
        $header_height = '.kad-header-style-basic #nav-main ul.sf-menu > li > a, .kad-header-style-basic #kad-shrinkheader #mobile-nav-trigger a {line-height:90px;}';
    }
    if (isset($pinnacle['mobile_switch']) && $pinnacle['mobile_switch'] == '1') {
        $mobileslider = '@media (max-width: 767px) {.kad-desktop-slider {display:none;}}';
    } else {
        $mobileslider = '';
    }
    if (isset($pinnacle['single_post_header_title']) && $pinnacle['single_post_header_title'] == 'posttitle' && isset($pinnacle['default_showposttitle_below']) && $pinnacle['default_showposttitle_below'] == '0') {
        $posttitle = '.single-post .single-article header h1.entry-title {display:none;}';
    } else {
        $posttitle = '';
    }
    if (!empty($pinnacle['custom_css'])) {
        $custom_css = $pinnacle['custom_css'];
    } else {
        $custom_css = '';
    }
    $kad_custom_css = '<style type="text/css">' . $topbar_height . $topbar_iconmenu_fontsize . $header_border_color . $htoppadding . $header_overlay_background_transparency . $pageheader_color . $font_family . $color_primary30 . $color_grayfont . $color_footerfont . $posttitle . $home_action_padding . $sitewide_action_padding . $pagetitle_align_right . $color_primary . $pagetitle_align . $show_posttag . $x2logo . $x2logo_white . $ptitle_minheight . $topbar_layout . $topbar_mobile_hide . $hbg_color . $scrolling_background . $show_author . $show_postedin . $show_comment . $header_height . $page_max_width . $show_date . $mobile_color . $mobileslider . $custom_css . '</style>';
    echo $kad_custom_css;
}
コード例 #7
0
ファイル: look_books.php プロジェクト: acamboy/kutetheme-wp
    protected function content($atts, $content = null)
    {
        $atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('kt_look_books', $atts) : $atts;
        $atts = shortcode_atts(array('title' => 'LOOK BOOKS', 'sub_title' => '', 'columns' => 4, 'link_submit' => '#', 'overlay_opacity' => '0.7', 'overlay_color' => '#000000', 'el_class' => '', 'css' => '', 'autoplay' => 0, 'navigation' => 0, 'margin' => 30, 'slidespeed' => 200, 'css' => '', 'el_class' => '', 'loop' => 0, 'use_responsive' => 1, 'items_destop' => 3, 'items_tablet' => 2, 'items_mobile' => 1), $atts);
        extract($atts);
        $elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
        $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array('section8 block-loock-bocks ', ''), implode(' ', $elementClass));
        if ($overlay_color == "") {
            $overlay_color = "#000000";
        }
        $overlay_color = kt_hex2rgb($overlay_color);
        $args = array('post_type' => 'look-books', 'post_status' => 'publish', 'posts_per_page' => $columns);
        $look_book_query = new WP_Query($args);
        $data_carousel = array("autoplay" => $autoplay == 1 ? "true" : "false", "nav" => $navigation == 1 ? "true" : "false", "margin" => $margin, "smartSpeed" => $slidespeed, "theme" => 'style-navigation-bottom', "autoheight" => 'false', 'dots' => 'false', 'loop' => $loop == 1 ? "true" : "false", 'autoplayTimeout' => 1000, 'autoplayHoverPause' => 'true');
        if ($use_responsive) {
            $arr = array('0' => array("items" => $items_mobile), '768' => array("items" => $items_tablet), '992' => array("items" => $items_destop));
            $data_responsive = json_encode($arr);
            $data_carousel["responsive"] = $data_responsive;
            if ($look_book_query->post_count < $items_mobile || $look_book_query->post_count < $items_tablet || $look_book_query->post_count < $items_destop) {
                $data_carousel['loop'] = 'false';
            } else {
                $data_carousel['loop'] = $loop;
            }
        } else {
            $data_carousel['items'] = 3;
            if ($look_book_query->post_count < 3) {
                $data_carousel['loop'] = 'false';
            } else {
                $data_carousel['loop'] = $loop;
            }
        }
        ob_start();
        ?>
        <div class="<?php 
        echo esc_attr($elementClass);
        ?>
">
            <div class="overlay" style="background-color: rgba(<?php 
        echo esc_attr($overlay_color['red']);
        ?>
,<?php 
        echo esc_attr($overlay_color['green']);
        ?>
,<?php 
        echo esc_attr($overlay_color['blue']);
        ?>
,<?php 
        echo esc_attr($overlay_opacity);
        ?>
);"></div>
            <?php 
        if ($title) {
            ?>
            <h3 class="section-title"><?php 
            echo esc_html($title);
            ?>
</h3>
            <?php 
        }
        ?>
            <div class="container">
                <?php 
        if ($look_book_query->have_posts()) {
            ?>
                <ul class="loock-boock-list owl-carousel" <?php 
            echo _data_carousel($data_carousel);
            ?>
>
                    <?php 
            while ($look_book_query->have_posts()) {
                $look_book_query->the_post();
                $_kt_page_lookbook_location = get_post_meta(get_the_ID(), '_kt_page_lookbook_location', true);
                ?>
                    <li class="">
                        <?php 
                if (has_post_thumbnail()) {
                    ?>
                        <?php 
                    $full_image_src = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), "full");
                    ?>
                        <div class="image">
                            <a class="fancybox" href="<?php 
                    echo esc_url($full_image_src[0]);
                    ?>
"><?php 
                    the_post_thumbnail('lookbook-thumb');
                    ?>
</a>
                        </div>
                        <?php 
                }
                ?>
                        <div class="info">
                            <p class="name"><?php 
                the_title();
                ?>
</p>
                            <?php 
                if ($_kt_page_lookbook_location) {
                    ?>
                            <p class="location"><?php 
                    echo esc_html($_kt_page_lookbook_location);
                    ?>
</p>
                            <?php 
                }
                ?>
                        </div>
                    </li>
                    <?php 
            }
            ?>
                </ul>
                <div class="lock-boock-button">
                    <a href="<?php 
            echo esc_url($link_submit);
            ?>
"><?php 
            _e('Submit Your Photos', 'kutetheme');
            ?>
</a>
                    <a href="<?php 
            echo get_post_type_archive_link('look-books');
            ?>
"><?php 
            _e('View All', 'kutethme');
            ?>
</a>
                </div>
                <?php 
        } else {
            ?>
                    <p><?php 
            _e('No Look Book item.', 'kutetheme');
            ?>
</p>
                <?php 
        }
        ?>
            </div>
        </div>
        <?php 
        wp_reset_query();
        wp_reset_postdata();
        return ob_get_clean();
    }
コード例 #8
0
    protected function content($atts, $content = null)
    {
        $atts = function_exists('vc_map_get_attributes') ? vc_map_get_attributes('kt_testimonial', $atts) : $atts;
        $atts = shortcode_atts(array('title' => __('TESTIMONIALS', 'kutetheme'), 'type' => 'style-1', 'sub_title' => '', 'columns' => 4, 'overlay_opacity' => '0.7', 'overlay_color' => '#000000', 'main_color' => '#f2e9e0', 'box_text_color' => '#333333', 'el_class' => '', 'css' => ''), $atts);
        extract($atts);
        $elementClass = array('base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, ' ', $this->settings['base'], $atts), 'extra' => $this->getExtraClass($el_class), 'shortcode_custom' => vc_shortcode_custom_css_class($css, ' '));
        if ($type == 'style-1') {
            $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array('section8 block-testimonials ', ''), implode(' ', $elementClass));
        }
        if ($type == 'style-2') {
            $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array('block-testimonials2 option12 ', ''), implode(' ', $elementClass));
        }
        if ($type == 'style-3') {
            $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
        }
        if ($overlay_color == "") {
            $overlay_color = "#000000";
        }
        $overlay_color = kt_hex2rgb($overlay_color);
        $args = array('post_type' => 'testimonial', 'post_status' => 'publish', 'posts_per_page' => $columns);
        $testimonial_query = new WP_Query($args);
        ob_start();
        if ($type == 'style-1') {
            ?>
        <div class="<?php 
            echo esc_attr($elementClass);
            ?>
">
            <div class="overlay" style="background-color: rgba(<?php 
            echo esc_attr($overlay_color['red']);
            ?>
,<?php 
            echo esc_attr($overlay_color['green']);
            ?>
,<?php 
            echo esc_attr($overlay_color['blue']);
            ?>
,<?php 
            echo esc_attr($overlay_opacity);
            ?>
);"></div>
            <div class="container">
                <?php 
            if ($title) {
                ?>
                    <h3 class="section-title"><?php 
                echo esc_html($title);
                ?>
</h3>
                    <?php 
            }
            ?>
                    <?php 
            if ($testimonial_query->have_posts()) {
                ?>
                    <div class="testimonial-wapper">
                        <div class="testimonials">
                            <ul class="testimonial <?php 
                echo is_rtl() ? 'testimonial-carousel-rtl' : 'testimonial-carousel';
                ?>
 ">
                            <?php 
                while ($testimonial_query->have_posts()) {
                    $testimonial_query->the_post();
                    ?>
                                <li>
                                    <?php 
                    if (has_post_thumbnail()) {
                        ?>
                                    <div class="testimonial-image">
                                       <a href="<?php 
                        echo get_the_permalink();
                        ?>
"><?php 
                        the_post_thumbnail('testimonial-thumb');
                        ?>
</a>
                                    </div>
                                    <?php 
                    }
                    ?>
                                    <div class="info">
                                        <?php 
                    the_content();
                    ?>
                                        <p class="testimonial-nane"><?php 
                    the_title();
                    ?>
</p>
                                    </div>
                                </li>
                                <?php 
                }
                ?>
                            </ul>
                            
                        </div>
                        <div class="testimonial-caption"></div>
                    </div>
                    <?php 
            }
            ?>
            </div>
        </div>
        <?php 
        } elseif ($type == 'style-3') {
            ?>
        <?php 
            if ($testimonial_query->have_posts()) {
                ?>
        <?php 
                $loop = "false";
                if ($testimonial_query->post_count > 1) {
                    $loop = "true";
                }
                ?>
        <div style="background-color:<?php 
                echo esc_attr($main_color);
                ?>
; color:<?php 
                echo esc_attr($box_text_color);
                ?>
;" data-color="<?php 
                echo esc_attr($main_color);
                ?>
" class="testtimonial-color block-testimonials3 <?php 
                echo esc_attr($elementClass);
                ?>
">
            <ul class="list owl-carousel" data-nav="false" data-dots="true" data-items="1" data-autoplay="true" data-loop="<?php 
                echo $loop;
                ?>
">
                <?php 
                while ($testimonial_query->have_posts()) {
                    $testimonial_query->the_post();
                    ?>
                        <li>
                        <div class="blank"></div>
                        <?php 
                    if (has_post_thumbnail()) {
                        ?>
                            <div class="image" style="border-color:<?php 
                        echo esc_attr($main_color);
                        ?>
">
                                    <?php 
                        the_post_thumbnail('testimonial-thumb');
                        ?>
                            </div>
                        <?php 
                    }
                    ?>
                        <div class="info">
                            <div class="text">
                                <?php 
                    the_content();
                    ?>
                            </div>
                            <span class="name">- <?php 
                    the_title();
                    ?>
 -</span>
                        </div>
                    </li>
                    <?php 
                }
                ?>
            </ul>
        </div>
        <?php 
            }
            ?>
        <?php 
        } else {
            ?>
            <?php 
            if ($testimonial_query->have_posts()) {
                ?>
                <div class="<?php 
                echo esc_attr($elementClass);
                ?>
">
                    <ul class="list testimonial-carousel2" data-nav="false" data-dots="true" data-items="3">
                        <?php 
                while ($testimonial_query->have_posts()) {
                    $testimonial_query->the_post();
                    ?>
                        <li>

                            <?php 
                    if (has_post_thumbnail()) {
                        ?>
                                <div class="image">
                                    <a href="#">
                                        <?php 
                        the_post_thumbnail('testimonial-thumb');
                        ?>
                                    </a>
                                </div>
                            <?php 
                    }
                    ?>
                            <div class="info">
                                <div class="text">
                                    <?php 
                    the_content();
                    ?>
                                </div>
                                <span class="name">- <?php 
                    the_title();
                    ?>
 -</span>
                            </div>
                        </li>
                        <?php 
                }
                ?>
                    </ul>
                    <div class="testimonial-caption"></div>
                </div>
            <?php 
            }
            ?>
        <?php 
        }
        wp_reset_query();
        wp_reset_postdata();
        return ob_get_clean();
    }
コード例 #9
0
ファイル: widgets.php プロジェクト: pcuervo/od4d
    public function widget($args, $instance)
    {
        if (!isset($args['widget_id'])) {
            $args['widget_id'] = $this->id;
        }
        ob_start();
        extract($args);
        $carousel_rn = rand(10, 100);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Testimonials', 'pinnacle') : $instance['title'], $instance, $this->id_base);
        if (empty($instance['number']) || !($number = absint($instance['number']))) {
            $number = 10;
        }
        if (empty($instance['wordcount']) || !($wordcount = absint($instance['wordcount']))) {
            $wordcount = 25;
        }
        if (isset($instance['orderby'])) {
            $testorder = $instance['orderby'];
        } else {
            $testorder = 'rand';
        }
        if (isset($instance['columns'])) {
            $columns = $instance['columns'];
        } else {
            $columns = '1';
        }
        if (!empty($instance['link'])) {
            $link = $instance['link'];
        } else {
            $link = false;
        }
        if (!empty($instance['linktext'])) {
            $linktext = $instance['linktext'];
        } else {
            $linktext = '';
        }
        if (!empty($instance['pagelink'])) {
            $pagelink = $instance['pagelink'];
        } else {
            $pagelink = '';
        }
        if (!empty($instance['speed'])) {
            $speed = $instance['speed'];
        } else {
            $speed = '11000';
        }
        if (!empty($instance['test_bg_color'])) {
            $test_bg_color = $instance['test_bg_color'];
        } else {
            $test_bg_color = '#ffffff';
        }
        if (!empty($instance['test_color'])) {
            $test_color = 'color:' . $instance['test_color'];
        } else {
            $test_color = 'color: #444444';
        }
        if (!empty($instance['test_title_color'])) {
            $test_title_color = 'color:' . $instance['test_title_color'];
            $test_title_color_bg = 'background-color:' . $instance['test_title_color'];
        } else {
            $test_title_color = 'color: #444444';
            $test_title_color_bg = 'background-color:#4444;';
        }
        if (!empty($instance['test_bg_opacity'])) {
            $test_bg_opacity = $instance['test_bg_opacity'];
        } else {
            $test_bg_opacity = '1';
        }
        if (empty($instance['scroll']) || $instance['scroll'] == 1) {
            $scroll = 'items:1,';
        } else {
            $scroll = '';
        }
        $bg_color_rgb = kt_hex2rgb($test_bg_color);
        $bg_color = 'background: rgba(' . $bg_color_rgb[0] . ', ' . $bg_color_rgb[1] . ', ' . $bg_color_rgb[2] . ', ' . $test_bg_opacity . ');';
        $border_color = 'border-top-color: rgba(' . $bg_color_rgb[0] . ', ' . $bg_color_rgb[1] . ', ' . $bg_color_rgb[2] . ', ' . $test_bg_opacity . ');';
        if ($columns == '2') {
            $itemsize = 'tcol-lg-6 tcol-md-6 tcol-sm-6 tcol-xs-12 tcol-ss-12';
            $slidewidth = 560;
            $slideheight = 560;
            $md = 2;
            $sm = 2;
            $xs = 1;
            $ss = 1;
        } else {
            if ($columns == '1') {
                $itemsize = 'tcol-lg-12 tcol-md-12 tcol-sm-12 tcol-xs-12 tcol-ss-12';
                $slidewidth = 560;
                $slideheight = 560;
                $md = 1;
                $sm = 1;
                $xs = 1;
                $ss = 1;
            } else {
                if ($columns == '3') {
                    $itemsize = 'tcol-lg-4 tcol-md-4 tcol-sm-4 tcol-xs-6 tcol-ss-12';
                    $slidewidth = 366;
                    $slideheight = 366;
                    $md = 3;
                    $sm = 3;
                    $xs = 2;
                    $ss = 1;
                } else {
                    if ($columns == '6') {
                        $itemsize = 'tcol-lg-2 tcol-md-2 tcol-sm-3 tcol-xs-4 tcol-ss-6';
                        $slidewidth = 240;
                        $slideheight = 240;
                        $md = 6;
                        $sm = 4;
                        $xs = 3;
                        $ss = 2;
                    } else {
                        if ($columns == '5') {
                            $itemsize = 'tcol-lg-25 tcol-md-25 tcol-sm-3 tcol-xs-4 tcol-ss-6';
                            $slidewidth = 240;
                            $slideheight = 240;
                            $md = 5;
                            $sm = 4;
                            $xs = 3;
                            $ss = 2;
                        } else {
                            $itemsize = 'tcol-lg-3 tcol-md-3 tcol-sm-4 tcol-xs-6 tcol-ss-12';
                            $slidewidth = 269;
                            $slideheight = 269;
                            $md = 4;
                            $sm = 3;
                            $xs = 2;
                            $ss = 1;
                        }
                    }
                }
            }
        }
        $widget_title_style = '<style type="text/css">#testimonial-c-case-' . $carousel_rn . ' .widget-title {' . $test_title_color . '} #testimonial-c-case-' . $carousel_rn . ' .widget-title:after {' . $test_title_color_bg . '}</style>';
        $r = new WP_Query(apply_filters('widget_posts_args', array('post_type' => 'testimonial', 'testimonial-group' => $instance['thecat'], 'no_found_rows' => true, 'posts_per_page' => $number, 'orderby' => $testorder, 'post_status' => 'publish', 'ignore_sticky_posts' => true)));
        if ($r->have_posts()) {
            ?>
    <?php 
            echo $before_widget;
            ?>
    <?php 
            echo $widget_title_style;
            ?>
    <div id="testimonial-c-case-<?php 
            echo $carousel_rn;
            ?>
">
    <?php 
            if ($title) {
                echo $before_title . $title . $after_title;
            }
            ?>
        <div class="fredcarousel">
          <div id="carouselcontainer-<?php 
            echo $carousel_rn;
            ?>
" class="rowtight kt-testimonail-carousel">
          <div id="testimonial-carousel-<?php 
            echo $carousel_rn;
            ?>
" class="kad-testimonial-carousel">
            <?php 
            while ($r->have_posts()) {
                $r->the_post();
                ?>
            <div class="<?php 
                echo $itemsize;
                ?>
 t_item">
              <div class="grid_item testimonial_item all">
                <div class="testimonialbox clearfix" style="<?php 
                echo $bg_color;
                ?>
 <?php 
                echo $test_color;
                ?>
">
                <?php 
                global $post;
                ?>
                  <?php 
                echo esc_attr(strip_tags(pinnacle_content($wordcount)));
                ?>
                  <?php 
                if (isset($link) && $link == 'page') {
                    if (!empty($pagelink)) {
                        $thepagelink = $pagelink;
                    } else {
                        $thepagelink = get_the_permalink();
                    }
                    echo '<a href="' . $thepagelink . '" class="kadtestimoniallink testpagelink">';
                    if (!empty($linktext)) {
                        $thelinktext = $linktext;
                    } else {
                        $thelinktext = __('Read More', 'virtue');
                    }
                    echo $thelinktext;
                    echo '</a>';
                } else {
                    if (isset($link) && $link == 'post') {
                        echo '<a href="' . get_the_permalink() . '" class="kadtestimoniallink">';
                        if (!empty($linktext)) {
                            $thelinktext = $linktext;
                        } else {
                            $thelinktext = __('Read More', 'virtue');
                        }
                        echo $thelinktext;
                        echo '</a>';
                    }
                }
                ?>
                </div>
                <div class="testimonialbottom">
                <div class="lipbg kad-arrow-down" style="<?php 
                echo $border_color;
                ?>
"></div>
                <p style="<?php 
                echo $test_title_color;
                ?>
"><strong><?php 
                the_title();
                ?>
</strong>
                <?php 
                $location = get_post_meta($post->ID, '_kad_testimonial_location', true);
                if ($location != '') {
                    echo ' - ' . $location;
                }
                ?>
                </p>
                </div> <!--testimonial bottom -->
              </div> <!-- grid item -->
            </div> <!--itemsize -->
      <?php 
            }
            ?>
        </div>
      </div>
        <div class="clearfix"></div>
        <a class="prev kt-icon-arrow-left test-prev" id="prevport-<?php 
            echo $carousel_rn;
            ?>
" style="<?php 
            echo $bg_color;
            ?>
 <?php 
            echo $test_color;
            ?>
" href="#"></a>
        <a class="next kt-icon-arrow-right test-next" id="nextport-<?php 
            echo $carousel_rn;
            ?>
" style="<?php 
            echo $bg_color;
            ?>
 <?php 
            echo $test_color;
            ?>
" href="#"></a>
    </div>
    <script type="text/javascript"> jQuery( window ).load(function () {var $wcontainer = jQuery('#carouselcontainer-<?php 
            echo $carousel_rn;
            ?>
'); var $container = jQuery('#testimonial-carousel-<?php 
            echo $carousel_rn;
            ?>
'); 
          function ini_testCarousel() {
            $container.carouFredSel({scroll: { <?php 
            echo $scroll;
            ?>
 easing: "swing", duration: 700, pauseOnHover : true}, auto: {play: true, timeoutDuration: <?php 
            echo $speed;
            ?>
},prev: '#prevport-<?php 
            echo $carousel_rn;
            ?>
', next: '#nextport-<?php 
            echo $carousel_rn;
            ?>
', pagination: false, swipe: true, items: {visible: null}});
          }
          setWidths();
          ini_testCarousel();
          jQuery(window).on("debouncedresize", function( event ) { $container.trigger("destroy"); setWidths(); ini_testCarousel();});
          $wcontainer.animate({'opacity' : 1});
          function getUnitWidth() {var width;
          if(jQuery(window).width() <= 480) {
          width = $wcontainer.width() / <?php 
            echo $ss;
            ?>
;
          } else if(jQuery(window).width() <= 768) {
          width = $wcontainer.width() / <?php 
            echo $xs;
            ?>
;
          } else if(jQuery(window).width() <= 990) {
          width = $wcontainer.width() / <?php 
            echo $sm;
            ?>
;
          } else {
          width = $wcontainer.width() / <?php 
            echo $md;
            ?>
;
          }
          return width;
          }
          function setWidths() {
          var unitWidth = getUnitWidth() -1;
          $container.children().css({ width: unitWidth });
          } });
      </script>
      </div>      
    <?php 
            echo $after_widget;
            // Reset the global $the_post as this query will have stomped on it
            wp_reset_postdata();
        }
    }
コード例 #10
0
/**
 * Enqueues front-end CSS for color scheme.
 *
 * @since Kute Theme 1.0
 *
 * @see wp_add_inline_style()
 */
function kt_color_scheme_css()
{
    $color_scheme_option = get_theme_mod('color_scheme', 'default');
    // Don't do anything if the default color scheme is selected.
    if ('default' === $color_scheme_option) {
        return;
    }
    $color_scheme = kt_get_color_scheme();
    // Convert main and sidebar text hex color to rgba.
    $color_button_rgb = kt_hex2rgb($color_scheme[5]);
    $color_main_rgb = kt_hex2rgb($color_scheme[1]);
    $colors = array('background_color' => $color_scheme[0], 'main_color' => $color_scheme[1], 'box_background_color' => $color_scheme[2], 'textcolor' => $color_scheme[3], 'rate_color' => $color_scheme[4], 'button_color' => $color_scheme[5], 'menu_link_footer' => $color_scheme[6], 'button_color_rgb' => vsprintf('rgba( %1$s, %2$s, %3$s, 0.4)', $color_button_rgb), 'color_main_rgb' => vsprintf('rgba( %1$s, %2$s, %3$s, 0.5)', $color_main_rgb));
    $color_scheme_css = kt_get_color_scheme_css($colors);
    wp_add_inline_style('kutetheme-style', $color_scheme_css);
}
コード例 #11
0
ファイル: theme.php プロジェクト: k2jysy/kshop
function kt_themne_color()
{
    $kt_used_header = kt_option('kt_used_header', 1);
    $main_color = kt_option('main_color', '#ff3366');
    $bg_color = kt_option('bg_color', '#fff');
    $price_color = kt_option('price_color', '#ff3366');
    $rgba_main_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.5)', kt_hex2rgb($main_color));
    /* Main color */
    $css = <<<CSS
    html body{
        background-color: {$bg_color};
    }
    body a:hover,
    body a:focus,
    body a:active,
    body.woocommerce .summary .yith-wcwl-add-to-wishlist .show a:hover,
    body.woocommerce .summary .compare:hover,
    body.woocommerce .woocommerce-breadcrumb a:hover,
    body .blog-list .blog-list-wapper ul li .readmore a,
    body .count-down-time2 .box-count,
    body .trending .trending-product li .product-price,
    body .hot-deals-box .hot-deals-tab .hot-deals-tab-box .nav-tab li.active>a{
        color: {$main_color}
    }
    body .main-header .header-search-box .form-inline .btn-search,
    body .main-header .shopping-cart-box a.cart-link:after,
    body .cart-block .cart-block-content .cart-buttons a.btn-check-out,
    body .main-bg,
    body .box-vertical-megamenus .vertical-menu-list>li:hover,
    body .megamenu .widget .widgettitle:before,
    body .megamenu .widget .widgettitle:before,
    body .owl-controls .owl-prev:hover, 
    body .owl-controls .owl-next:hover,
    body .product-list li .quick-view a:hover,
    body .product-list li .quick-view a:hover,
    body .scroll_top:hover,
    body .cate-box .cate-link:hover,
    body #footer2.footer3 .mailchimp-wrapper .mailchimp-form .mailchimp-submit,
    body.woocommerce div.product form.cart .button,
    body.woocommerce .summary .yith-wcwl-add-to-wishlist .show a:hover:before,
    body.woocommerce .summary .compare:hover:before,
    body.woocommerce #respond input#submit:hover, 
    body.woocommerce a.button:hover, 
    body.woocommerce button.button:hover, 
    body.woocommerce input.button:hover,
    body .display-product-option li.selected span, 
    body .display-product-option li:hover span,
    body .nav-links a:hover, 
    body .nav-links .current,
    body .product-list.list .add-to-cart,
    body.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content,
    body .owl-controls .owl-dots .owl-dot.active,
    body .products-block .link-all,
    body .widget_kt_on_sale .product-list li .add-to-cart,
    body .woocommerce #respond input#submit.alt, 
    body .woocommerce a.button.alt, 
    body .woocommerce button.button.alt, 
    body .woocommerce input.button.alt,
    body .woocommerce #respond input#submit:hover, 
    body .woocommerce a.button:hover, 
    body .woocommerce button.button:hover, 
    body .woocommerce input.button:hover,
    body .woocommerce #respond input#submit.alt:hover, 
    body .woocommerce a.button.alt:hover, 
    body .woocommerce button.button.alt:hover, 
    body .woocommerce input.button.alt:hover,
    body .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-widget-content .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-widget-header, 
    body .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-state-focus, 
    body .ui-selectmenu-menu .ui-widget-content .ui-state-focus, 
    body .ui-selectmenu-menu .ui-widget-header .ui-state-focus,
    body .trending .trending-title,
    body .hot-deals-box .hot-deals-tab .hot-deals-title,
    body .block-popular-cat .more,
    body .block-popular-cat .sub-categories>ul>li>a:before,
    body .hot-deals-box .hot-deals-tab .box-count-down .box-count:before,
    body .products .group-tool-button a:hover, 
    body .products .group-tool-button a.compare:hover,
    body .option7 .products .group-tool-button a:hover, 
    body .option7 .products .group-tool-button a.compare:hover, 
    body .option7 .products .search:hover,
    body .woocommerce div.product form.cart .button{
        background-color: {$main_color};
    }

    body .box-vertical-megamenus .vertical-menu-content,
    body .popular-tabs .nav-tab li:hover, 
    body .popular-tabs .nav-tab li.active,
    body .latest-deals .latest-deal-content,
    body .brand-showcase .brand-showcase-title,
    body .group-title span,
    body #footer2.footer3,
    body .view-product-list .page-title span,
    body .page-heading span.page-heading-title,
    body .count-down-time2 .box-count,
    body  .option3 .main-header .header-search-box .form-inline{
        border-color: {$main_color};
    }
    body .product-list li .add-to-cart:hover{
        background-color: {$rgba_main_color}
    }
    body .product-list li .content_price,
    body.woocommerce div.product p.price,
    body.woocommerce div.product span.price,
    body .cart-block .cart-block-content .product-info .p-right .p-rice,
    .woocommerce div.product p.price, 
    .woocommerce div.product span.price,
    body .vertical-menu-list .mega-product .price{
        color: {$price_color}
    }
CSS;
    /* Vertical menu */
    $vm_bg_color = kt_option('vm_bg_color', '#fff');
    $vm_text_color = kt_option('vm_text_color', '#666');
    $vm_bg_hover_color = kt_option('vm_bg_hover_color', '#ff3366');
    $vm_text_hover_color = kt_option('vm_text_hover_color', '#fff');
    $css .= <<<CSS
    body .box-vertical-megamenus .vertical-menu-content{
        background-color: {$vm_bg_color};
    }
    body .box-vertical-megamenus .all-category span:hover{
        border-color: {$vm_bg_hover_color};
        color: {$vm_text_hover_color};
    }
    body .box-vertical-megamenus .vertical-menu-list>li:hover,
    body .box-vertical-megamenus .all-category span:hover{
        background-color: {$vm_bg_hover_color};
    }
    body .box-vertical-megamenus .vertical-menu-list>li>a{
        color: {$vm_text_color};
    }
    body .box-vertical-megamenus .vertical-menu-list>li:hover>a,
    body .box-vertical-megamenus .vertical-menu-list>li:hover>a:before{
        color: {$vm_text_hover_color}
    }
CSS;
    /* Header color */
    if ($kt_used_header == 1) {
        $h1_topbar_bg = kt_option('h1_topbar_bg', '#f6f6f6');
        $h1_mega_menu_bg = kt_option('h1_mega_menu_bg', '#eee');
        $h1_box_category_bg = kt_option('h1_box_category_bg', '#000');
        $h1_mege_menu_text_color = kt_option('h1_mege_menu_text_color', '#000');
        $h1_mege_menu_text_hover_color = kt_option('h1_mege_menu_text_hover_color', '#fff');
        $h1_item_mege_menu_bg_hover_color = kt_option('h1_item_mege_menu_bg_hover_color', '#ff3366');
        $h1_topbar_text_color = kt_option('h1_topbar_text_color', '#666');
        $h1_box_category_text_color = kt_option('h1_box_category_text_color', '#fff');
        $h1_topbar_text_hover_color = kt_option('h1_topbar_text_hover_color', '#ff3366');
        $h1_mega_menu_border = kt_option('h1_mega_menu_border', '#cacaca');
        $css .= <<<CSS
        .header.style1 .top-header{
            background-color: {$h1_topbar_bg};
            color:{$h1_topbar_text_color};
        }
        .header.style1 .top-bar-menu>li>a{
            color: {$h1_topbar_text_color};
        }
        .header.style1 .top-bar-menu>li>a:hover{
            color: {$h1_topbar_text_hover_color};
        }
        .header.style1 .box-vertical-megamenus .title{
            background-color: {$h1_box_category_bg};
            color:{$h1_box_category_text_color};
        }
        .header.style1 .top-main-menu .main-menu-wapper{
            background-color: {$h1_mega_menu_bg};
        }
        .header.style1 .navigation-main-menu>li:hover>a, 
        .header.style1 .navigation-main-menu>li.active>a{
            color: {$h1_mege_menu_text_hover_color};
            border-color: transparent;
        }
        .header.style1 .navigation-main-menu>li:hover, 
        .header.style1 .navigation-main-menu>li.active{
            background-color: {$h1_item_mege_menu_bg_hover_color};
        }
        .header.style1 .navigation-main-menu>li>a{
            color: {$h1_mege_menu_text_color};
        }
        .header.style1 .navigation-main-menu>li>a{
            border-color: {$h1_mega_menu_border};
        }
        .header.style1 .nav-top-menu.nav-ontop{
            background-color: {$h1_mega_menu_bg};
        }
        
CSS;
    }
    /* HEADER STYLE 2*/
    if ($kt_used_header == 2) {
        $h2_topbar_bg = kt_option('h2_topbar_bg', '#f6f6f6');
        $h2_mega_menu_bg = kt_option('h2_mega_menu_bg', '#958457');
        $h2_box_category_bg = kt_option('h2_box_category_bg', '#4c311d');
        $h2_topbar_text_color = kt_option('h2_topbar_text_color', '#666');
        $h2_mege_menu_text_color = kt_option('h2_mege_menu_text_color', '#fff');
        $h2_box_category_text_color = kt_option('h2_box_category_text_color', '#fff');
        $h2_topbar_text_hover_color = kt_option('h2_topbar_text_hover_color', '#4c311d');
        $h2_mege_menu_text_hover_color = kt_option('h2_mege_menu_text_hover_color', '#fff');
        $h2_item_mege_menu_bg_hover_color = kt_option('h2_item_mege_menu_bg_hover_color', '#ab9d77');
        $css .= <<<CSS
    .header.style2 .top-header{
        background-color: {$h2_topbar_bg};
        color:{$h2_topbar_text_color};
    }
    .header.style2 .top-bar-menu>li>a{
        color:{$h2_topbar_text_color};
    }
    .header.style2 .top-bar-menu>li>a:hover{
        color:{$h2_topbar_text_hover_color};
    }
    .header.style2 .box-vertical-megamenus .title{
        background-color: {$h2_box_category_bg};
        color:{$h2_box_category_text_color};
    }
    body .top-main-menu.style2 .main-menu-wapper{
        background-color: {$h2_mega_menu_bg};
    }
    .header.style2 .top-main-menu.style2 .navigation-main-menu>li:hover, 
    .header.style2 .top-main-menu.style2 .navigation-main-menu>li.active{
        background-color: {$h2_item_mege_menu_bg_hover_color};
    }
    .header.style2 .top-main-menu.style2 .navigation-main-menu>li>a{
        color: {$h2_mege_menu_text_color};
    }
    .header.style2 .navigation-main-menu>li:hover>a, 
    .header.style2 .navigation-main-menu>li.active>a{
        color: {$h2_mege_menu_text_hover_color};
    }
    .header.style2 .nav-top-menu.nav-ontop{
        background-color: {$h2_mega_menu_bg};
    }

CSS;
    }
    if ($kt_used_header == 3) {
        $h3_topbar_bg = kt_option('h3_topbar_bg', '#f6f6f6');
        $h3_box_category_bg = kt_option('h3_box_category_bg', '#0088cc');
        $h3_mega_menu_bg_ontop = kt_option('h3_mega_menu_bg_ontop', '#0088cc');
        $h3_topbar_text_color = kt_option('h3_topbar_text_color', '#666');
        $h3_mege_menu_text_color_ontop = kt_option('h3_mege_menu_text_color_ontop', '#fff');
        $h3_box_category_text_color = kt_option('h3_box_category_text_color', '#fff');
        $h3_topbar_text_hover_color = kt_option('h3_topbar_text_hover_color', '#0088cc');
        $h3_mege_menu_text_hover_color = kt_option('h3_mege_menu_text_hover_color', '#0088cc');
        $h3_mege_menu_hover_text_color_ontop = kt_option('h3_mege_menu_hover_text_color_ontop', '#fff');
        $h3_item_mege_menu_bg_hover_color = kt_option('h3_item_mege_menu_bg_hover_color', '#31a5df');
        $css .= <<<CSS
        .header.option3 .top-header{
            background-color: {$h3_topbar_bg};
            color:{$h3_topbar_text_color};
        }
        .header.option3 .top-bar-menu>li>a{
            color:{$h3_topbar_text_color};
        }
        .header.option3 .top-bar-menu>li>a:hover{
            color:{$h3_topbar_text_hover_color};
        }
        .header.option3 .box-vertical-megamenus .title{
            background-color: {$h3_box_category_bg};
            color:{$h3_box_category_text_color};
        }
        .header.option3 .nav-ontop{
            background-color: {$h3_mega_menu_bg_ontop};
        }
        .header.option3 .nav-top-menu.nav-ontop .top-main-menu.style3 .navigation-main-menu>li>a{
            color: {$h3_mege_menu_text_color_ontop};
        }
CSS;
    }
    if ($kt_used_header == 4) {
        $h4_topbar_bg = kt_option('h4_topbar_bg', '#f6f6f6');
        $h4_box_category_bg = kt_option('h4_box_category_bg', '#0088cc');
        $h4_topbar_text_color = kt_option('h4_topbar_text_color', '#666');
        $h4_mege_menu_text_color = kt_option('h4_mege_menu_text_color', '#333');
        $h4_box_category_text_color = kt_option('h4_box_category_text_color', '#fff');
        $h4_topbar_text_hover_color = kt_option('h4_topbar_text_hover_color', '#0088cc');
        $h4_mege_menu_text_hover_color = kt_option('h4_mege_menu_text_hover_color', '#0088cc');
        $css .= <<<CSS
        .header.option4 .top-header{
            background-color: {$h4_topbar_bg};
            color:{$h4_topbar_text_color};
        }
        .header.option4 .top-bar-menu>li>a{
            color:{$h4_topbar_text_color};
        }
        .header.option4 .top-bar-menu>li>a:hover{
            color:{$h4_topbar_text_hover_color};
        }
        .header.option4 .box-vertical-megamenus .title{
            background-color: {$h4_box_category_bg};
            color:{$h4_box_category_text_color};
        }
CSS;
    }
    if ($kt_used_header == 5) {
        $h5_topbar_bg = kt_option('h5_topbar_bg', '#f6f6f6');
        $h5_mega_menu_bg = kt_option('h5_mega_menu_bg', '#eee');
        $h5_nav_mega_menu_bg = kt_option('h5_nav_mega_menu_bg', '#f96d10');
        $h5_box_category_bg = kt_option('h5_box_category_bg', '#e80000');
        $h5_topbar_text_color = kt_option('h5_topbar_text_color', '#666');
        $h5_mege_menu_text_color = kt_option('h5_mege_menu_text_color', '#fff');
        $h5_box_category_text_color = kt_option('h5_box_category_text_color', '#fff');
        $h5_topbar_text_hover_color = kt_option('h5_topbar_text_hover_color', '#f96d10');
        $h5_mege_menu_text_hover_color = kt_option('h5_mege_menu_text_hover_color', '#fff');
        $h5_item_mege_menu_bg_hover_color = kt_option('h5_item_mege_menu_bg_hover_color', '#e80000');
        $css .= <<<CSS
        .header.option5 .top-header{
            background-color: {$h5_topbar_bg};
            color:{$h5_topbar_text_color};
        }
        .header.option5 .top-bar-menu>li>a{
            color:{$h5_topbar_text_color};
        }
        .header.option5 .top-bar-menu>li>a:hover{
            color:{$h5_topbar_text_hover_color};
        }
        .header.option5 .box-vertical-megamenus .title{
            background-color: {$h5_box_category_bg};
            color:{$h5_box_category_text_color};
        }
        .header.option5 .top-main-menu .main-menu-wapper{
            background-color: {$h5_nav_mega_menu_bg};
        }
        .header.option5  .nav-top-menu{
            background-color: {$h5_mega_menu_bg};
        }
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li:hover, 
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li.active{
             background-color: {$h5_item_mege_menu_bg_hover_color};
        }
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li>a{
            color: {$h5_mege_menu_text_color};
        }
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li:hover>a, 
        .header.option5 .top-main-menu.style5 .navigation-main-menu>li.active>a{
            color: {$h5_mege_menu_text_hover_color};
        }
        .option5.header .nav-top-menu.nav-ontop{
            background-color: {$h5_nav_mega_menu_bg};
        }
CSS;
    }
    if ($kt_used_header == 6) {
        $h6_topbar_bg = kt_option('h6_topbar_bg', '#007176');
        $h6_mega_menu_bg = kt_option('h6_mega_menu_bg', '#008a90');
        $h6_nav_mega_menu_bg = kt_option('h6_nav_mega_menu_bg', '#007176');
        $h6_box_category_bg = kt_option('h6_box_category_bg', '#000');
        $h6_search_box_bg = kt_option('h6_search_box_bg', '#00abb3');
        $h6_topbar_text_color = kt_option('h6_topbar_text_color', '#fff');
        $h6_mege_menu_text_color = kt_option('h6_mege_menu_text_color', '#fff');
        $h6_box_category_text_color = kt_option('h6_box_category_text_color', '#fff');
        $h6_topbar_text_hover_color = kt_option('h6_topbar_text_hover_color', '#ccc');
        $h6_mege_menu_text_hover_color = kt_option('h6_mege_menu_text_hover_color', '#fff');
        $h6_item_mege_menu_bg_hover_color = kt_option('h6_item_mege_menu_bg_hover_color', '#00abb3');
        $h6_header_bg = kt_option('h6_header_bg', '#008a90');
        $css .= <<<CSS
        .header.option6 .top-header{
            background-color: {$h6_topbar_bg};
            color:{$h6_topbar_text_color};
        }
        .header.option6 .top-bar-menu>li>a{
            color:{$h6_topbar_text_color};
        }
        .header.option6 .top-bar-menu>li>a:hover{
            color:{$h6_topbar_text_hover_color};
        }
        .header.option6 .box-vertical-megamenus .title{
            background-color: {$h6_box_category_bg};
            color:{$h6_box_category_text_color};
        }
        .header.option6 .top-main-menu .main-menu-wapper{
            background-color: {$h6_nav_mega_menu_bg};
        }
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li:hover, 
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li.active{
             background-color: {$h6_item_mege_menu_bg_hover_color};
        }
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li>a{
            color: {$h6_mege_menu_text_color};
        }
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li:hover>a, 
        .header.option6 .top-main-menu.style6 .navigation-main-menu>li.active>a{
            color: {$h6_mege_menu_text_hover_color};
        }
        body .option6.header{
            background-color: {$h6_header_bg};
        }
        .option6.header .main-header .header-search-box .form-inline,
        .option6.header .main-header .header-search-box .form-inline .form-category{
            background-color: {$h6_search_box_bg};
        }
        .option6.header .nav-top-menu.nav-ontop{
            background-color: {$h6_nav_mega_menu_bg};
        }
CSS;
    }
    if ($kt_used_header == 7) {
        $h7_topbar_bg = kt_option('h7_topbar_bg', '#cd2600');
        $h7_mega_menu_bg = kt_option('h7_mega_menu_bg', '#e62e04');
        $h7_box_category_bg = kt_option('h7_box_category_bg', '#434343');
        $h7_button_box_category_bg = kt_option('h7_button_box_category_bg', '#2a2a2a');
        $h7_topbar_text_color = kt_option('h7_topbar_text_color', '#fff');
        $h7_mege_menu_text_color = kt_option('h7_mege_menu_text_color', '#fff');
        $h7_box_category_text_color = kt_option('h7_box_category_text_color', '#fff');
        $h7_topbar_text_hover_color = kt_option('h7_topbar_text_hover_color', '#ccc');
        $h7_mege_menu_text_hover_color = kt_option('h7_mege_menu_text_hover_color', '#fff');
        $h7_item_mege_menu_bg_hover_color = kt_option('h7_item_mege_menu_bg_hover_color', '#f04923');
        $h7_header_bg = kt_option('h7_header_bg', '#e62e04');
        $css .= <<<CSS
        .header.style7 .top-header{
            background-color: {$h7_topbar_bg};
            color:{$h7_topbar_text_color};
        }
        .header.style7 .top-bar-menu>li>a{
            color:{$h7_topbar_text_color};
        }
        .header.style7 .top-bar-menu>li>a:hover{
            color:{$h7_topbar_text_hover_color};
        }
        .header.style7 .box-vertical-megamenus .title{
            background-color: {$h7_box_category_bg};
            color:{$h7_box_category_text_color};
        }
        body .header.style7 .main-header{
            background-color: {$h7_header_bg};
        }
        body .main-menu-style7.main-menu-wapper{
            background-color: {$h7_mega_menu_bg};
        }
        body .main-menu-style7 .navigation-main-menu>li>a{
            color: {$h7_mege_menu_text_color};
        }
        body .main-menu-style7 .navigation-main-menu>li:hover, 
        body .main-menu-style7 .navigation-main-menu>li.active{
            background-color: {$h7_item_mege_menu_bg_hover_color};
        }
        body .main-menu-style7 .navigation-main-menu>li:hover>a,
        body .main-menu-style7 .navigation-main-menu>li.active>a{
            color: {$h7_mege_menu_text_hover_color};
        }
        body .option7 .box-vertical-megamenus .title .btn-open-mobile{
            background-color: {$h7_button_box_category_bg};
        }

CSS;
    }
    ?>
    <style id="kt-theme-color" type="text/css">
        <?php 
    echo apply_filters('kt_customize_css', $css);
    ?>
    </style>
    <?php 
}
コード例 #12
0
ファイル: custom-header.php プロジェクト: k2jysy/kshop
/**
 * Enqueues front-end CSS for the sidebar text color.
 *
 * @since Kute Theme 1.0
 */
function kt_sidebar_text_color_css()
{
    $color_scheme = kt_get_color_scheme();
    $default_color = $color_scheme[4];
    $sidebar_link_color = get_theme_mod('sidebar_textcolor', $default_color);
    // Don't do anything if the current color is the default.
    if ($sidebar_link_color === $default_color) {
        return;
    }
    // If we get this far, we have custom styles. Let's do this.
    $sidebar_link_color_rgb = kt_hex2rgb($sidebar_link_color);
    $sidebar_text_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.7)', $sidebar_link_color_rgb);
    $sidebar_border_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.1)', $sidebar_link_color_rgb);
    $sidebar_border_focus_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.3)', $sidebar_link_color_rgb);
    $css = '
		/* Custom Sidebar Text Color */
		.site-title a,
		.site-description,
		.secondary-toggle:before {
			color: %1$s;
		}

		.site-title a:hover,
		.site-title a:focus {
			color: %1$s; /* Fallback for IE7 and IE8 */
			color: %2$s;
		}

		.secondary-toggle {
			border-color: %1$s; /* Fallback for IE7 and IE8 */
			border-color: %3$s;
		}

		.secondary-toggle:hover,
		.secondary-toggle:focus {
			border-color: %1$s; /* Fallback for IE7 and IE8 */
			border-color: %4$s;
		}

		.site-title a {
			outline-color: %1$s; /* Fallback for IE7 and IE8 */
			outline-color: %4$s;
		}

		@media screen and (min-width: 59.6875em) {
			.secondary a,
			.dropdown-toggle:after,
			.widget-title,
			.widget blockquote cite,
			.widget blockquote small {
				color: %1$s;
			}

			.widget button,
			.widget input[type="button"],
			.widget input[type="reset"],
			.widget input[type="submit"],
			.widget_calendar tbody a {
				background-color: %1$s;
			}

			.textwidget a {
				border-color: %1$s;
			}

			.secondary a:hover,
			.secondary a:focus,
			.main-navigation .menu-item-description,
			.widget,
			.widget blockquote,
			.widget .wp-caption-text,
			.widget .gallery-caption {
				color: %2$s;
			}

			.widget button:hover,
			.widget button:focus,
			.widget input[type="button"]:hover,
			.widget input[type="button"]:focus,
			.widget input[type="reset"]:hover,
			.widget input[type="reset"]:focus,
			.widget input[type="submit"]:hover,
			.widget input[type="submit"]:focus,
			.widget_calendar tbody a:hover,
			.widget_calendar tbody a:focus {
				background-color: %2$s;
			}

			.widget blockquote {
				border-color: %2$s;
			}

			.main-navigation ul,
			.main-navigation li,
			.secondary-toggle,
			.widget input,
			.widget textarea,
			.widget table,
			.widget th,
			.widget td,
			.widget pre,
			.widget li,
			.widget_categories .children,
			.widget_nav_menu .sub-menu,
			.widget_pages .children,
			.widget abbr[title] {
				border-color: %3$s;
			}

			.dropdown-toggle:hover,
			.dropdown-toggle:focus,
			.widget hr {
				background-color: %3$s;
			}

			.widget input:focus,
			.widget textarea:focus {
				border-color: %4$s;
			}

			.sidebar a:focus,
			.dropdown-toggle:focus {
				outline-color: %4$s;
			}
		}
	';
    wp_add_inline_style('kt-style', sprintf($css, $sidebar_link_color, $sidebar_text_color, $sidebar_border_color, $sidebar_border_focus_color));
}
コード例 #13
0
ファイル: general_shortcodes.php プロジェクト: pcuervo/od4d
 function kad_simple_box_shortcode_function($atts, $content)
 {
     extract(shortcode_atts(array('padding_top' => '15', 'padding_bottom' => '15', 'padding_left' => '15', 'padding_right' => '15', 'min_height' => '1', 'background' => '#ffffff', 'style' => '', 'opacity' => '1'), $atts));
     $bg_color_rgb = kt_hex2rgb($background);
     if (!empty($style)) {
         $style = $style;
     } else {
         $style = '';
     }
     $bcolor = 'rgba(' . $bg_color_rgb[0] . ', ' . $bg_color_rgb[1] . ', ' . $bg_color_rgb[2] . ', ' . $opacity . ');';
     return '<div class="kt-simple-box" style="background-color:' . $bcolor . ' min-height:' . $min_height . 'px; padding-top:' . $padding_top . 'px; padding-bottom:' . $padding_bottom . 'px; padding-left:' . $padding_left . 'px; padding-right:' . $padding_right . 'px; ' . $style . '">' . do_shortcode($content) . '</div>';
 }