function kt_register_sidebars() { register_sidebar(array('name' => esc_html__('Primary Widget Area', 'adroit'), 'id' => 'primary-widget-area', 'description' => esc_html__('The primary widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); register_sidebar(array('name' => esc_html__('Blog Widget Area', 'adroit'), 'id' => 'blog-widget-area', 'description' => esc_html__('The blog widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); register_sidebar(array('name' => esc_html__('Side Area', 'adroit'), 'id' => 'side-widget-area', 'description' => esc_html__('The side widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); register_sidebar(array('name' => esc_html__('Promo Area', 'adroit'), 'id' => 'promo-area', 'description' => esc_html__('IMPORTANT: For best result select set number of widget to 3.', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); $count = 5; for ($i = 1; $i <= $count; $i++) { register_sidebar(array('name' => sprintf(esc_html__('Sidebar %s', 'adroit'), $i), 'id' => 'sidebar-column-' . $i, 'description' => sprintf(esc_html__('The sidebar column %s widget area', 'adroit'), $i), 'before_widget' => '<div class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); } register_sidebar(array('name' => esc_html__('Instagram Footer', 'adroit'), 'id' => 'instagram-footer', 'before_widget' => '<div id="%1$s" class="instagram-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<!--', 'after_title' => '-->', 'description' => esc_html__('Use the Instagram widget here. IMPORTANT: For best result select "Small" under "Photo Size" and set number of photos to 6.', 'adroit'))); register_sidebar(array('name' => esc_html__('Footer top', 'adroit'), 'id' => 'footer-top', 'description' => esc_html__('The footer top widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); $count = 4; for ($i = 1; $i <= $count; $i++) { register_sidebar(array('name' => sprintf(esc_html__('Footer column %s', 'adroit'), $i), 'id' => 'footer-column-' . $i, 'description' => sprintf(esc_html__('The footer column %s widget area', 'adroit'), $i), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); } register_sidebar(array('name' => esc_html__('Footer bottom column 1', 'adroit'), 'id' => 'footer-bottom-1', 'description' => esc_html__('The footer bottom widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-footer-bottom %2$s">', 'after_widget' => '</div>', 'before_title' => '<!--', 'after_title' => '-->')); register_sidebar(array('name' => esc_html__('Footer bottom column 2', 'adroit'), 'id' => 'footer-bottom-2', 'description' => esc_html__('The footer bottom widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-footer-bottom %2$s">', 'after_widget' => '</div>', 'before_title' => '<!--', 'after_title' => '-->')); $sidebars = kt_option('custom_sidebars'); if (!empty($sidebars) && is_array($sidebars)) { foreach ($sidebars as $sidebar) { $sidebar = wp_parse_args($sidebar, array('title' => '', 'description' => '')); if ($sidebar['title'] != '') { $id = sanitize_title($sidebar['title']); register_sidebar(array('name' => $sidebar['title'], 'id' => $id, 'description' => $sidebar['description'], 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); } } } }
function kt_register_sidebars() { register_sidebar(array('name' => esc_html__('Primary Widget Area', 'mondova'), 'id' => 'primary-widget-area', 'description' => esc_html__('The primary widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); register_sidebar(array('name' => esc_html__('Shop Widget Area', 'wingman'), 'id' => 'shop-widget-area', 'description' => esc_html__('The shop widget area', 'wingman'), 'before_widget' => '<div id="%1$s" class="widget clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); register_sidebar(array('name' => esc_html__('Blog Widget Area', 'mondova'), 'id' => 'blog-widget-area', 'description' => esc_html__('The blog widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); $count = 5; for ($i = 1; $i <= $count; $i++) { register_sidebar(array('name' => sprintf(esc_html__('Sidebar %s', 'mondova'), $i), 'id' => 'sidebar-column-' . $i, 'description' => sprintf(esc_html__('The sidebar column %s widget area', 'mondova'), $i), 'before_widget' => '<section class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); } register_sidebar(array('name' => esc_html__('Footer top', 'mondova'), 'id' => 'footer-top', 'description' => esc_html__('The footer top widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>')); $count = 4; for ($i = 1; $i <= $count; $i++) { register_sidebar(array('name' => sprintf(esc_html__('Footer column %s', 'mondova'), $i), 'id' => 'footer-column-' . $i, 'description' => sprintf(esc_html__('The footer column %s widget area', 'mondova'), $i), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); } register_sidebar(array('name' => esc_html__('Footer bottom column 1', 'mondova'), 'id' => 'footer-bottom-1', 'description' => esc_html__('The footer bottom widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<!--', 'after_title' => '-->')); register_sidebar(array('name' => esc_html__('Footer bottom column 2', 'mondova'), 'id' => 'footer-bottom-2', 'description' => esc_html__('The footer bottom widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<!--', 'after_title' => '-->')); $sidebars = kt_option('custom_sidebars'); if (!empty($sidebars) && is_array($sidebars)) { foreach ($sidebars as $sidebar) { $sidebar = wp_parse_args($sidebar, array('title' => '', 'description' => '')); if ($sidebar['title'] != '') { $id = sanitize_title($sidebar['title']); register_sidebar(array('name' => $sidebar['title'], 'id' => $id, 'description' => $sidebar['description'], 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>')); } } } }
public function widget($args, $instance) { $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); echo $args['before_widget']; if ($title) { echo $args['before_title'] . $title . $args['after_title']; } $attachment = kt_get_thumbnail_attachment($instance['attachment'], $instance['size']); $value = isset($instance['value']) ? $instance['value'] : ''; if ($attachment) { printf('<div class="kt-aboutwidget-img"><img src="%s" alt="%s" class="img-responsive" title="%s"/></div>', esc_url($attachment['url']), esc_attr($attachment['alt']), esc_attr($attachment['title'])); } if ($instance['description']) { printf('<div class="kt-aboutwidget-text">%s</div>', $instance['description']); } $socials_arr = array('facebook' => array('title' => esc_html__('Facebook', 'adroit'), 'icon' => 'fa fa-facebook', 'link' => '%s'), 'twitter' => array('title' => esc_html__('Twitter', 'adroit'), 'icon' => 'fa fa-twitter', 'link' => 'http://www.twitter.com/%s'), 'dribbble' => array('title' => esc_html__('Dribbble', 'adroit'), 'icon' => 'fa fa-dribbble', 'link' => 'http://www.dribbble.com/%s'), 'vimeo' => array('title' => esc_html__('Vimeo', 'adroit'), 'icon' => 'fa fa-vimeo-square', 'link' => 'http://www.vimeo.com/%s'), 'tumblr' => array('title' => esc_html__('Tumblr', 'adroit'), 'icon' => 'fa fa-tumblr', 'link' => 'http://%s.tumblr.com/'), 'skype' => array('title' => esc_html__('Skype', 'adroit'), 'icon' => 'fa fa-skype', 'link' => 'skype:%s'), 'linkedin' => array('title' => esc_html__('LinkedIn', 'adroit'), 'icon' => 'fa fa-linkedin', 'link' => '%s'), 'googleplus' => array('title' => esc_html__('Google Plus', 'adroit'), 'icon' => 'fa fa-google-plus', 'link' => '%s'), 'youtube' => array('title' => esc_html__('Youtube', 'adroit'), 'icon' => 'fa fa-youtube', 'link' => 'http://www.youtube.com/user/%s'), 'pinterest' => array('title' => esc_html__('Pinterest', 'adroit'), 'icon' => 'fa fa-pinterest', 'link' => 'http://www.pinterest.com/%s'), 'instagram' => array('title' => esc_html__('Instagram', 'adroit'), 'icon' => 'fa fa-instagram', 'link' => 'http://instagram.com/%s')); foreach ($socials_arr as $k => &$v) { $val = kt_option($k); $v['val'] = $val ? $val : ''; } ?> <?php if ($value) { $social_type = explode(',', $value); ?> <ul class="kt-aboutwidget-socials"> <?php foreach ($social_type as $id) { $val = $socials_arr[$id]; printf('<li><a href="%s" target="_blank"><i class="%s"></i></a></li>', esc_url(str_replace('%s', $val['val'], $val['link'])), esc_attr($val['icon'])); } ?> </ul> <?php } echo $args['after_widget']; }
* will need to copy the new files to your theme to maintain compatibility. We try to do this. * as little as possible, but it does happen. When this occurs the version of the template file will. * be bumped and the readme will list any important changes. * * @see http://docs.woothemes.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.3.0 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $post, $product, $woocommerce; $attachment_ids = $product->get_gallery_attachment_ids(); $kt_enable_product_thumb_slide = kt_option('kt_enable_product_thumb_slide', 'yes'); if ($attachment_ids) { $loop = 0; $columns = apply_filters('woocommerce_product_thumbnails_columns', 3); ?> <?php if ($kt_enable_product_thumb_slide == "yes") { ?> <div class="kt-thumbnails owl-carousel nav-center-center nav-style3" data-responsive='{"0":{"items":3},"600":{"items":3},"1000":{"items":4}}' data-nav="true" data-dots="false" data-margin="20"> <?php } else { ?> <div class="thumbnails <?php echo 'columns-' . $columns; ?> ">
/** * The main template file * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * e.g., it puts together the home page when no home.php file exists. * * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy} * * @package WordPress * @subpackage Kute Theme * @since KuteTheme 1.0 */ get_header(); $kt_sidebar_are = kt_option('kt_sidebar_are', 'left'); $sidebar_are_layout = 'sidebar-' . $kt_sidebar_are; if ($kt_sidebar_are == "left" || $kt_sidebar_are == "right") { $col_class = "main-content col-xs-12 col-sm-8 col-md-9"; } else { $col_class = "main-content col-xs-12 col-sm-12 col-md-12"; } ?> <div id="primary" class="content-area <?php echo esc_attr($sidebar_are_layout); ?> "> <main id="main" class="site-main" role="main"> <div class="container"> <?php breadcrumb_trail();
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 }
<a href="#" class="mobile-navigation"><?php _e('Main menu', 'kutetheme'); ?> <i class="fa fa-bars"></i></a> </nav> </div> </div> </div> </div> </div> <div class="container"> <div class="block-header-top12"> <?php global $kt_enable_vertical_menu; $kt_click_open_vertical_menu = kt_option('kt_click_open_vertical_menu', 'disable'); $kt_vertical_item_visible = kt_option('kt_vertical_item_visible', 11); if ($kt_enable_vertical_menu == 'enable') { ?> <div class="block-vertical"> <div id="box-vertical-megamenus" class="vertical-wapper"> <div data-items="<?php echo esc_attr($kt_vertical_item_visible); ?> " class="box-vertical-megamenus <?php if ($kt_click_open_vertical_menu == "enable") { echo esc_attr('hiden_content'); } ?> "> <h4 class="title"> <span class="title-menu"><?php
<?php if (kt_is_wc() && kt_option('header_cart', 1)) { ?> <div class="shopping-bag shopping-bag-wishlist"> <?php kt_woocommerce_get_wishlist(); ?> </div> <?php }
function kt_get_social_footer() { $social_icons = ''; $facebook = kt_option('kt_facebook_link_id'); $twitter = kt_option('kt_twitter_link_id'); $pinterest = kt_option('kt_pinterest_link_id'); $dribbble = kt_option('kt_dribbble_link_id'); $vimeo = kt_option('kt_vimeo_link_id'); $tumblr = kt_option('kt_tumblr_link_id'); $skype = kt_option('kt_skype_link_id'); $linkedin = kt_option('kt_linkedIn_link_id'); $vk = kt_option('kt_vk_link_id'); $googleplus = kt_option('kt_google_plus_link_id'); $youtube = kt_option('kt_youtube_link_id'); $instagram = kt_option('kt_instagram_link_id'); if ($facebook) { $social_icons .= '<li><a href="' . esc_url($facebook) . '" title ="' . __('Facebook', 'kutetheme') . '" ><i class="fa fa-facebook"></i></a></li>'; } if ($twitter) { $social_icons .= '<li><a href="http://www.twitter.com/' . esc_attr($twitter) . '" title = "' . __('Twitter', 'kutetheme') . '" ><i class="fa fa-twitter"></i></a></li>'; } if ($dribbble) { $social_icons .= '<li><a href="http://www.dribbble.com/' . esc_attr($dribbble) . '" title ="' . __('Dribbble', 'kutetheme') . '" ><i class="fa fa-dribbble"></i></a></li>'; } if ($vimeo) { $social_icons .= '<li><a href="http://www.vimeo.com/' . esc_attr($vimeo) . '" title ="' . __('Vimeo', 'kutetheme') . '" ><i class="fa fa-vimeo-square"></i></a></li>'; } if ($tumblr) { $social_icons .= '<li><a href="http://' . esc_attr($tumblr) . '.tumblr.com/" title ="' . __('Tumblr', 'kutetheme') . '" ><i class="fa fa-tumblr"></i></a></li>'; } if ($skype) { $social_icons .= '<li><a href="skype:' . esc_attr($skype) . '" title ="' . __('Skype', 'kutetheme') . '" ><i class="fa fa-skype"></i></a></li>'; } if ($linkedin) { $social_icons .= '<li><a href="' . esc_attr($linkedin) . '" title ="' . __('Linkedin', 'kutetheme') . '" ><i class="fa fa-linkedin"></i></a></li>'; } if ($googleplus) { $social_icons .= '<li><li><a href="' . esc_url($googleplus) . '" title ="' . __('Google Plus', 'kutetheme') . '" ><i class="fa fa-google-plus"></i></a></li>'; } if ($youtube) { $social_icons .= '<li><a href="http://www.youtube.com/user/' . esc_attr($youtube) . '" title ="' . __('Youtube', 'kutetheme') . '"><i class="fa fa-youtube"></i></a></li>'; } if ($pinterest) { $social_icons .= '<li><a href="http://www.pinterest.com/' . esc_attr($pinterest) . '/" title ="' . __('Pinterest', 'kutetheme') . '" ><i class="fa fa-pinterest-p"></i></a></li>'; } if ($instagram) { $social_icons .= '<li><a href="http://instagram.com/' . esc_attr($instagram) . '" title ="' . __('Instagram', 'kutetheme') . '" ><i class="fa fa-instagram"></i></a></li>'; } if ($vk) { $social_icons .= '<li><a href="https://vk.com/' . esc_attr($vk) . '" title ="' . __('Vk', 'kutetheme') . '" ><i class="fa fa-vk"></i></a></li>'; } ?> <?php if ($social_icons) { ?> <div class="footer-social"> <ul> <?php echo apply_filters('kt_get_social_header', $social_icons); ?> </ul> </div> <?php } ?> <?php }
if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $product, $woocommerce_loop; $upsells = $product->get_upsells(); if (sizeof($upsells) === 0) { return; } $meta_query = WC()->query->get_meta_query(); $args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array($product->id), 'meta_query' => $meta_query); $products = new WP_Query($args); $woocommerce_loop['columns'] = $columns; $loop = 'false'; $kt_upsell_products_title = kt_option('kt_upsell_products_title', 'You may also like…'); $kt_upsell_products_columns = kt_option('kt_upsell_products_columns', 3); $item_desktop = $kt_upsell_products_columns; $item_ipad = $kt_upsell_products_columns - 1; if ($products->have_posts()) { ?> <?php if ($products->post_count > 1) { $loop = 'true'; } ?> <div class="upsells products product-slide"> <div class="section-title style3"> <h3><?php echo esc_html($kt_upsell_products_title); ?> </h3>
/** * Get page sidebar * * @param null $post_id * @return mixed|void */ function kt_get_page_sidebar($post_id = null) { global $post; if (!$post_id) { $post_id = $post->ID; } $sidebar = array('sidebar' => rwmb_meta('_kt_sidebar', array(), $post_id), 'sidebar_area' => ''); if (isset($_REQUEST['sidebar'])) { $sidebar['sidebar'] = $_REQUEST['sidebar']; } if ($sidebar['sidebar'] == '' || $sidebar['sidebar'] == 'default') { $sidebar['sidebar'] = kt_option('page_sidebar'); if ($sidebar['sidebar'] == 'left') { $sidebar['sidebar_area'] = kt_option('page_sidebar_left', 'primary-widget-area'); } elseif ($sidebar['sidebar'] == 'right') { $sidebar['sidebar_area'] = kt_option('page_sidebar_right', 'primary-widget-area'); } } elseif ($sidebar['sidebar'] == 'left') { $sidebar['sidebar_area'] = rwmb_meta('_kt_left_sidebar', array(), $post_id); } elseif ($sidebar['sidebar'] == 'right') { $sidebar['sidebar_area'] = rwmb_meta('_kt_right_sidebar', array(), $post_id); } elseif ($sidebar['sidebar'] == 'full') { $sidebar['sidebar'] = ''; } return apply_filters('kt_page_sidebar', $sidebar); }
function kt_about_us_link() { $kt_page_about_us = kt_option('kt_page_about_us', false); if ($kt_page_about_us) { echo get_page_link($kt_page_about_us); } }
function kt_myaccount_menu_link($items, $args) { $kt_enable_myaccount_box = kt_option('kt_enable_myaccount_box', 'enable'); if ($kt_enable_myaccount_box == 'disable') { return $items; } ob_start(); if ($args->theme_location == 'topbar_menuright') { ?> <?php if (kt_is_wc()) { ?> <?php $myaccount_page_id = get_option('woocommerce_myaccount_page_id'); $myaccount_link = get_permalink(get_option('woocommerce_myaccount_page_id')); ?> <?php if (is_user_logged_in()) { ?> <?php if ($myaccount_page_id) { $logout_url = wp_logout_url(get_permalink(woocommerce_get_page_id('shop'))); if (get_option('woocommerce_force_ssl_checkout') == 'yes') { $logout_url = str_replace('http:', 'https:', $logout_url); } } ?> <li class="menu-item menu-item-has-children"> <a href="<?php echo esc_url($myaccount_link); ?> "><?php _e('My Account', 'kutetheme'); ?> </a> <ul class="sub-menu"> <?php if (function_exists('YITH_WCWL')) { $wishlist_url = YITH_WCWL()->get_wishlist_url(); ?> <li><a href="<?php echo esc_attr($wishlist_url); ?> "><?php _e('Wishlists', 'kutetheme'); ?> </a></li> <?php } ?> <?php if (defined('YITH_WOOCOMPARE')) { global $yith_woocompare; $count = count($yith_woocompare->obj->products_list); ?> <li><a href="#" class="yith-woocompare-open"><?php esc_html_e("Compare", 'kutetheme'); ?> <span>(<?php echo esc_attr($count); ?> )</span></a></li> <?php } ?> <?php if (isset($logout_url) && $logout_url) { ?> <li><a href="<?php echo esc_url($logout_url); ?> "><?php _e('Logout', 'kutetheme'); ?> </a></li> <?php } ?> </ul> </li> <?php } else { ?> <li class="menu-item login-item"><a href="<?php echo esc_url($myaccount_link); ?> "><?php _e('Login/Register', 'kutetheme'); ?> </a></li> <?php } ?> <?php } ?> <?php } $item = ob_get_contents(); $items = $item . $items; ob_clean(); return $items; }
<?php $address = kt_get_info_address(); $hotline = kt_get_info_hotline(); $email = kt_get_info_email(); $copyright = kt_get_info_copyrights(); $kt_footer_payment_logo = kt_option('kt_footer_payment_logo', ''); $kt_footer_background = kt_option('kt_footer_background', ''); ?> <!-- Footer --> <footer id="footer2" class="footer3"> <div class="footer-top"> <div class="container"> <div class="row"> <div class="col-sm-3"> <div class="footer-logo"> <?php kt_get_logo_footer(); ?> </div> </div> <div class="col-sm-12 col-md-6"> <div class="footer-menu"> <?php wp_nav_menu(array('menu' => 'custom_footer_menu', 'theme_location' => 'custom_footer_menu', 'depth' => 1, 'container' => '', 'container_class' => '', 'container_id' => '', 'menu_class' => 'custom_footer_menu', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker())); ?> </div> </div> <div class="col-sm-12 col-md-3"> <div class="footer-sidebar4"> <?php
if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $product, $woocommerce_loop; $crosssells = WC()->cart->get_cross_sells(); if (0 === sizeof($crosssells)) { return; } $meta_query = WC()->query->get_meta_query(); $args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => apply_filters('woocommerce_cross_sells_total', $posts_per_page), 'orderby' => $orderby, 'post__in' => $crosssells, 'meta_query' => $meta_query); $products = new WP_Query($args); $woocommerce_loop['columns'] = apply_filters('woocommerce_cross_sells_columns', $columns); $loop = 'false'; $kt_cross_sells_products_title = kt_option('kt_cross_sells_products_title', 'You may be interested in'); $kt_cross_sells_products_columns = kt_option('kt_cross_sells_products_columns', 3); $item_desktop = $kt_cross_sells_products_columns; $item_ipad = $kt_cross_sells_products_columns - 1; if ($products->have_posts()) { ?> <?php if ($products->post_count > 1) { $loop = 'true'; } ?> <div class="cross-sells product-slide"> <div class="section-title"> <h3><?php echo esc_html($kt_cross_sells_products_title); ?> </h3>
/** * The Template for displaying all single products. * * Override this template by copying it to yourtheme/woocommerce/single-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } get_header(); $kt_sidebar_are = kt_option('kt_woo_shop_sidebar_are', 'full'); $sidebar_are_layout = 'sidebar-' . $kt_sidebar_are; if ($kt_sidebar_are == "left" || $kt_sidebar_are == "right") { $col_class = "main-content col-xs-12 col-sm-8 col-md-9"; } else { $col_class = "main-content col-xs-12 col-sm-12 col-md-12"; } add_filter('kt_loop_product_thumbnail', function () { }); ?> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
<?php $classes = array(); $kt_woo_product_style = kt_option('kt_woo_product_style', 1); $kt_woo_flash_style = kt_option('kt_woo_flash_style', 'flash1'); $classes[] = 'product-item style' . $kt_woo_product_style; // Flash icon style $classes[] = $kt_woo_flash_style; $template_style = 'style-' . $kt_woo_product_style; ?> <li <?php post_class($classes); ?> > <?php wc_get_template_part('content-product', $template_style); ?> </li>
</div> </div> <?php } ?> </div> </header> <?php $menu_cate_menu5 = kt_option('kt_header_5_menu_cate', ''); if ($menu_cate_menu5) { ?> <?php $banner_url = kt_option('kt_header_5_menu_bg', ''); $title = kt_option('kt_header_5_menu_title', ''); $sub_title = kt_option('kt_header_5_menu_subtitle', ''); $depth = kt_option('kt_header_5_menu_depth', ''); ?> <div class="header-categoy-menu style-4" <?php if ($banner_url) { ?> style="background-image: url('<?php echo esc_url($banner_url); ?> ');"<?php } ?> > <span class="close-header-sidebar"><span class="icon pe-7s-close"></span></span> <span class="open-header-sidebar"><i class="fa fa-angle-double-left"></i></span> <div class="inner"> <div class="block-category-carousel">
* The Template for displaying all single products. * * Override this template by copying it to yourtheme/woocommerce/single-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } get_header(); $kt_sidebar_are = kt_option('kt_woo_shop_sidebar_are', 'left'); if (is_product()) { $kt_sidebar_are = kt_option('kt_woo_single_sidebar_are', 'left'); } $sidebar_are_layout = 'sidebar-' . $kt_sidebar_are; if ($kt_sidebar_are == "left" || $kt_sidebar_are == "right") { $col_class = "main-content col-xs-12 col-sm-8 col-md-9"; } else { $col_class = "main-content col-xs-12 col-sm-12 col-md-12"; } ?> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20
function kt_search_form() { global $kt_used_header; if (isset($kt_used_header) && $kt_used_header) { $setting = kt_option('kt_used_header', '1'); $kt_used_header = intval($setting); } if (kt_is_wc() && $kt_used_header != 5) { get_template_part('templates/search-form/product', 'search-form'); } else { get_template_part('templates/search-form/post', 'search-form'); } }
function kt_social_icons($atts, $content = null) { extract(shortcode_atts(array('type' => '', 'size' => ''), $atts)); $facebook = kt_option('facebook_page_url'); $twitter = kt_option('twitter_username'); $pinterest = kt_option('pinterest_username'); $dribbble = kt_option('dribbble_username'); $vimeo = kt_option('vimeo_username'); $tumblr = kt_option('tumblr_username'); $skype = kt_option('skype_username'); $linkedin = kt_option('linkedin_page_url'); $googleplus = kt_option('googleplus_page_url'); $youtube = kt_option('youtube_username'); $instagram = kt_option('instagram_username'); $social_icons = ''; if ($type == '') { if ($facebook) { $social_icons .= '<li class="facebook"><a data-toggle="tooltip" data-placement="top" title="Facebook" href="' . $facebook . '" target="_blank"><i class="fa fa-facebook"></i></a></li>' . "\n"; } if ($twitter) { $social_icons .= '<li class="twitter"><a data-toggle="tooltip" data-placement="top" title="Twitter" href="http://www.twitter.com/' . $twitter . '" target="_blank"><i class="fa fa-twitter"></i></a></li>' . "\n"; } if ($dribbble) { $social_icons .= '<li class="dribbble"><a data-toggle="tooltip" data-placement="top" title="Dribbble" href="http://www.dribbble.com/' . $dribbble . '" target="_blank"><i class="fa fa-dribbble"></i></a></li>' . "\n"; } if ($vimeo) { $social_icons .= '<li class="vimeo"><a data-toggle="tooltip" data-placement="top" title="Vimeo" href="http://www.vimeo.com/' . $vimeo . '" target="_blank"><i class="fa fa-vimeo-square"></i></a></li>' . "\n"; } if ($tumblr) { $social_icons .= '<li class="tumblr"><a data-toggle="tooltip" data-placement="top" title="Tubmlr" href="http://' . $tumblr . '.tumblr.com/" target="_blank"><i class="fa fa-tumblr"></i></a></li>' . "\n"; } if ($skype) { $social_icons .= '<li class="skype"><a data-toggle="tooltip" data-placement="top" title="Skype" href="skype:' . $skype . '" target="_blank"><i class="fa fa-skype"></i></a></li>' . "\n"; } if ($linkedin) { $social_icons .= '<li class="linkedin"><a data-toggle="tooltip" data-placement="top" title="Linkedin" href="' . $linkedin . '" target="_blank"><i class="fa fa-linkedin"></i></a></li>' . "\n"; } if ($googleplus) { $social_icons .= '<li class="googleplus"><a data-toggle="tooltip" data-placement="top" title="Google+" href="' . $googleplus . '" target="_blank"><i class="fa fa-google-plus"></i></a></li>' . "\n"; } if ($youtube) { $social_icons .= '<li class="youtube"><a data-toggle="tooltip" data-placement="top" title="Youtube" href="http://www.youtube.com/user/' . $youtube . '" target="_blank"><i class="fa fa-youtube"></i></a></li>' . "\n"; } if ($pinterest) { $social_icons .= '<li class="pinterest"><a data-toggle="tooltip" data-placement="top" title="Pinterest" href="http://www.pinterest.com/' . $pinterest . '/" target="_blank"><i class="fa fa-pinterest"></i></a></li>' . "\n"; } if ($instagram) { $social_icons .= '<li class="instagram"><a data-toggle="tooltip" data-placement="top" title="Instagram" href="http://instagram.com/' . $instagram . '" target="_blank"><i class="fa fa-instagram"></i></a></li>' . "\n"; } } else { $social_type = explode(',', $type); foreach ($social_type as $id) { if ($id == "facebook") { $social_icons .= '<li class="facebook"><a data-toggle="tooltip" data-placement="top" title="Facebook" href="' . $facebook . '" target="_blank"><i class="fa fa-facebook"></i></a></li>' . "\n"; } if ($id == "twitter") { $social_icons .= '<li class="twitter"><a data-toggle="tooltip" data-placement="top" title="Twitter" href="http://www.twitter.com/' . $twitter . '" target="_blank"><i class="fa fa-twitter"></i></a></li>' . "\n"; } if ($id == "dribbble") { $social_icons .= '<li class="dribbble"><a data-toggle="tooltip" data-placement="top" title="Dribbble" href="http://www.dribbble.com/' . $dribbble . '" target="_blank"><i class="fa fa-dribbble"></i></a></li>' . "\n"; } if ($id == "vimeo") { $social_icons .= '<li class="vimeo"><a data-toggle="tooltip" data-placement="top" title="Vimeo" href="http://www.vimeo.com/' . $vimeo . '" target="_blank"><i class="fa fa-vimeo-square"></i></a></li>' . "\n"; } if ($id == "tumblr") { $social_icons .= '<li class="tumblr"><a data-toggle="tooltip" data-placement="top" title="Tumblr" href="http://' . $tumblr . '.tumblr.com/" target="_blank"><i class="fa fa-tumblr"></i></a></li>' . "\n"; } if ($id == "skype") { $social_icons .= '<li class="skype"><a data-toggle="tooltip" data-placement="top" title="Skype" href="skype:' . $skype . '" target="_blank"><i class="fa fa-skype"></i></a></li>' . "\n"; } if ($id == "linkedin") { $social_icons .= '<li class="linkedin"><a data-toggle="tooltip" data-placement="top" title="Linkedin" href="' . $linkedin . '" target="_blank"><i class="fa fa-linkedin"></i></a></li>' . "\n"; } if ($id == "googleplus") { $social_icons .= '<li class="googleplus"><a data-toggle="tooltip" data-placement="top" title="Google+" href="' . $googleplus . '" target="_blank"><i class="fa fa-google-plus"></i></a></li>' . "\n"; } if ($id == "youtube") { $social_icons .= '<li class="youtube"><a data-toggle="tooltip" data-placement="top" title="Youtube" href="http://www.youtube.com/user/' . $youtube . '" target="_blank"><i class="fa fa-youtube"></i></a></li>' . "\n"; } if ($id == "pinterest") { $social_icons .= '<li class="pinterest"><a data-toggle="tooltip" data-placement="top" title="Pinterest" href="http://www.pinterest.com/' . $pinterest . '/" target="_blank"><i class="fa fa-pinterest"></i></a></li>' . "\n"; } if ($id == "instagram") { $social_icons .= '<li class="instagram"><a data-toggle="tooltip" data-placement="top" title="Instagram" href="http://instagram.com/' . $instagram . '" target="_blank"><i class="fa fa-instagram"></i></a></li>' . "\n"; } } } $output = '<ul class="kt_social_icons ' . $size . '">'; $output .= $social_icons; $output .= '</ul>'; return $output; }
<div class="main-nav-socials"> <?php $social = kt_option('footer_socials'); ?> <?php $socials_arr = array('facebook' => array('title' => esc_html__('Facebook', 'adroit'), 'icon' => 'fa fa-facebook', 'link' => '%s'), 'twitter' => array('title' => esc_html__('Twitter', 'adroit'), 'icon' => 'fa fa-twitter', 'link' => 'http://www.twitter.com/%s'), 'dribbble' => array('title' => esc_html__('Dribbble', 'adroit'), 'icon' => 'fa fa-dribbble', 'link' => 'http://www.dribbble.com/%s'), 'vimeo' => array('title' => esc_html__('Vimeo', 'adroit'), 'icon' => 'fa fa-vimeo-square', 'link' => 'http://www.vimeo.com/%s'), 'tumblr' => array('title' => esc_html__('Tumblr', 'adroit'), 'icon' => 'fa fa-tumblr', 'link' => 'http://%s.tumblr.com/'), 'skype' => array('title' => esc_html__('Skype', 'adroit'), 'icon' => 'fa fa-skype', 'link' => 'skype:%s'), 'linkedin' => array('title' => esc_html__('LinkedIn', 'adroit'), 'icon' => 'fa fa-linkedin', 'link' => '%s'), 'googleplus' => array('title' => esc_html__('Google Plus', 'adroit'), 'icon' => 'fa fa-google-plus', 'link' => '%s'), 'youtube' => array('title' => esc_html__('Youtube', 'adroit'), 'icon' => 'fa fa-youtube', 'link' => 'http://www.youtube.com/user/%s'), 'pinterest' => array('title' => esc_html__('Pinterest', 'adroit'), 'icon' => 'fa fa-pinterest', 'link' => 'http://www.pinterest.com/%s'), 'instagram' => array('title' => esc_html__('Instagram', 'adroit'), 'icon' => 'fa fa-instagram', 'link' => 'http://instagram.com/%s')); foreach ($socials_arr as $k => &$v) { $val = kt_option($k); $v['val'] = $val ? $val : ''; } $social_icons = ''; if ($social) { $social_type = explode(',', $social); foreach ($social_type as $id) { $val = $socials_arr[$id]; if ($val['val']) { $social_text = '<i class="' . esc_attr($val['icon']) . '"></i>'; $social_icons .= '<a class="' . esc_attr($id) . '" title="' . esc_attr($val['title']) . '" href="' . esc_attr(str_replace('%s', $val['val'], $val['link'])) . '" target="_blank">' . $social_text . '</a>'; } } } else { foreach ($socials_arr as $key => $val) { if ($val['val']) { $social_text = '<i class="' . esc_attr($val['icon']) . '"></i>'; $social_icons .= '<a class="' . esc_attr($key) . '" title="' . esc_attr($val['title']) . '" href="' . esc_attr(str_replace('%s', $val['val'], $val['link'])) . '" target="_blank">' . $social_text . '</a>'; } } } ?> <?php echo $social_icons;
public function widget($args, $instance) { echo apply_filters('kt_wg_before_widget', $args['before_widget']); //Defaults $wtitle = isset($instance['wtitle']) && $instance['wtitle'] ? esc_html($instance['wtitle']) : ''; $facebook = kt_option('kt_facebook_link_id'); $twitter = kt_option('kt_twitter_link_id'); $pinterest = kt_option('kt_pinterest_link_id'); $dribbble = kt_option('kt_dribbble_link_id'); $vimeo = kt_option('kt_vimeo_link_id'); $tumblr = kt_option('kt_tumblr_link_id'); $skype = kt_option('kt_skype_link_id'); $linkedin = kt_option('kt_linkedIn_link_id'); $vk = kt_option('kt_vk_link_id'); $googleplus = kt_option('kt_google_plus_link_id'); $youtube = kt_option('kt_youtube_link_id'); $instagram = kt_option('kt_instagram_link_id'); $social_icons = ''; if ($facebook) { $social_icons .= '<a href="' . esc_url($facebook) . '" title ="' . __('Facebook', 'kutetheme') . '" ><i class="fa fa-facebook"></i></a>'; } if ($twitter) { $social_icons .= '<a href="http://www.twitter.com/' . esc_attr($twitter) . '" title = "' . __('Twitter', 'kutetheme') . '" ><i class="fa fa-twitter"></i></a>'; } if ($dribbble) { $social_icons .= '<a href="http://www.dribbble.com/' . esc_attr($dribbble) . '" title ="' . __('Dribbble', 'kutetheme') . '" ><i class="fa fa-dribbble"></i></a>'; } if ($vimeo) { $social_icons .= '<a href="http://www.vimeo.com/' . esc_attr($vimeo) . '" title ="' . __('Vimeo', 'kutetheme') . '" ><i class="fa fa-vimeo-square"></i></a>'; } if ($tumblr) { $social_icons .= '<a href="http://' . esc_attr($tumblr) . '.tumblr.com/" title ="' . __('Tumblr', 'kutetheme') . '" ><i class="fa fa-tumblr"></i></a>'; } if ($skype) { $social_icons .= '<a href="skype:' . esc_attr($skype) . '" title ="' . __('Skype', 'kutetheme') . '" ><i class="fa fa-skype"></i></a>'; } if ($linkedin) { $social_icons .= '<a href="' . esc_attr($linkedin) . '" title ="' . __('Linkedin', 'kutetheme') . '" ><i class="fa fa-linkedin"></i></a>'; } if ($googleplus) { $social_icons .= '<a href="' . esc_url($googleplus) . '" title ="' . __('Google Plus', 'kutetheme') . '" ><i class="fa fa-google-plus"></i></a>'; } if ($youtube) { $social_icons .= '<a href="http://www.youtube.com/user/' . esc_attr($youtube) . '" title ="' . __('Youtube', 'kutetheme') . '"><i class="fa fa-youtube"></i></a>'; } if ($pinterest) { $social_icons .= '<a href="http://www.pinterest.com/' . esc_attr($pinterest) . '/" title ="' . __('Pinterest', 'kutetheme') . '" ><i class="fa fa-pinterest-p"></i></a>'; } if ($instagram) { $social_icons .= '<a href="http://instagram.com/' . esc_attr($instagram) . '" title ="' . __('Instagram', 'kutetheme') . '" ><i class="fa fa-instagram"></i></a>'; } if ($vk) { $social_icons .= '<a href="https://vk.com/' . esc_attr($vk) . '" title ="' . __('Vk', 'kutetheme') . '" ><i class="fa fa-vk"></i></a>'; } ?> <div class="introduce-title"><?php echo esc_attr($wtitle); ?> </div> <div class="social-link"> <?php $allowed_html = array('a' => array('href' => array(), 'title' => array()), 'i' => array('classs' => array())); echo kt_get_html($social_icons); ?> </div> <?php echo apply_filters('kt_wg_after_widget', $args['after_widget']); }
<?php /** * The sidebar containing the main widget area * * @package WordPress * @subpackage Kute theme * @since KuteTheme 1.0 */ $kt_used_sidebar = kt_option('kt_used_sidebar', 'sidebar-primary'); if (is_page()) { $kt_page_used_sidebar = kt_get_post_meta(get_the_ID(), 'kt_page_used_sidebar', 'none'); if ($kt_page_used_sidebar != "none") { $kt_used_sidebar = $kt_page_used_sidebar; } } ?> <div id="secondary" class="secondary"> <?php if (is_active_sidebar($kt_used_sidebar)) { ?> <div id="widget-area" class="widget-area" role="complementary"> <?php dynamic_sidebar($kt_used_sidebar); ?> </div><!-- .widget-area --> <?php } ?> </div><!-- .secondary -->
<?php /** * The template for displaying all single posts and attachments * * @package WordPress * @subpackage Kute theme * @since KuteTheme 1.0 */ get_header(); $kt_sidebar_are = kt_option('kt_sidebar_are', 'full'); $sidebar_are_layout = 'sidebar-' . $kt_sidebar_are; if ($kt_sidebar_are == "left" || $kt_sidebar_are == "right") { $col_class = "main-content col-xs-12 col-sm-8 col-md-9"; } else { $col_class = "main-content col-xs-12 col-sm-12 col-md-12"; } ?> <div id="primary" class="content-area <?php echo esc_attr($sidebar_are_layout); ?> "> <main id="main" class="site-main" role="main"> <div class="container"> <?php breadcrumb_trail(); ?> <div class="row"> <div class="<?php echo esc_attr($col_class); ?>
// Exit if accessed directly } global $product, $woocommerce_loop; if (empty($product) || !$product->exists()) { return; } $related = $product->get_related($posts_per_page); if (sizeof($related) === 0) { return; } $args = apply_filters('woocommerce_related_products_args', array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $related, 'post__not_in' => array($product->id))); $products = new WP_Query($args); $woocommerce_loop['columns'] = $columns; $loop = 'false'; $kt_related_products_title = kt_option('kt_related_products_title', 'Related Products'); $kt_related_products_columns = kt_option('kt_related_products_columns', 3); $item_desktop = $kt_related_products_columns; $item_ipad = $kt_related_products_columns - 1; if ($products->have_posts()) { ?> <?php if ($products->post_count > 1) { $loop = 'true'; } ?> <div class="related products product-slide"> <div class="section-title"> <h3><?php echo esc_html($kt_related_products_title); ?> </h3>
* be bumped and the readme will list any important changes. * * @see http://docs.woothemes.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $wp_query; if (!woocommerce_products_will_display()) { return; } $products_per_page = kt_option('products_per_page', 12); $paged = max(1, $wp_query->get('paged')); $per_page = $wp_query->get('posts_per_page'); $total = $wp_query->found_posts; $first = $per_page * $paged - $per_page + 1; $last = min($total, $wp_query->get('posts_per_page') * $paged); ?> <p class="woocommerce-result-count"> <?php if (1 === $total) { _e('Showing the single result', 'woocommerce'); } elseif ($total <= $per_page || -1 === $per_page) { printf(__('Showing all %d results', 'woocommerce'), $total); } else { printf(_x('Showing %1$d–%2$d of %3$d results', '%1$d = first, %2$d = last, %3$d = total', 'woocommerce'), $first, $last, $total); }
<!-- HEADER --> <?php $kt_header_message = kt_option('kt_header_message', ''); ?> <div id="header" class="header option3"> <div class="top-header"> <div class="container"> <?php echo kt_get_hotline(); ?> <?php echo kt_get_wpml(); ?> <div class="support-link"> <a href="<?php kt_service_link(); ?> "><?php esc_html_e('Services', 'kutetheme'); ?> </a> <a href="<?php kt_support_link(); ?> "><?php esc_html_e('Support', 'kutetheme'); ?> </a> </div> <?php echo kt_menu_my_account();
/** * The Template for displaying all single products. * * Override this template by copying it to yourtheme/woocommerce/single-product.php * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } get_header(); $kt_sidebar_are = kt_option('kt_woo_shop_sidebar_are', 'left'); $sidebar_are_layout = 'sidebar-' . $kt_sidebar_are; if ($kt_sidebar_are == "left" || $kt_sidebar_are == "right") { $col_class = "main-content col-xs-12 col-sm-8 col-md-9"; } else { $col_class = "main-content col-xs-12 col-sm-12 col-md-12"; } ?> <?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */
<span class="blog-comment"> <i class="fa fa-comment"></i> <span class="count-comment"> <?php comments_number(esc_html__('0', 'kute-boutique'), esc_html__('1', 'kute-boutique'), esc_html__('%', 'kute-boutique')); ?> </span> </span> </div> <?php kt_post_thumbnail(); ?> <div class="blog-short-desc"> <?php the_content(); ?> </div> </article> <?php wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'kute-boutique') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'kute-boutique') . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>')); ?> </div> <?php $kt_display_about_author = kt_option('kt_display_about_author', 'yes'); $kt_enable_related_post = kt_option('kt_enable_related_post', 'yes'); if ($kt_display_about_author == "yes") { get_template_part('templates/blogs/single', 'post-author'); } if ($kt_enable_related_post == "yes") { get_template_part('templates/blogs/single', 'post-related'); }