Exemple #1
0
<?php

/**
 * The template for displaying pages
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages and that
 * other "pages" on your WordPress site will use a different template.
 *
 * @package KuteTheme
 * @subpackage edo
 * @since edo 1.0
 */
get_header();
// Default option
$kt_sidebar_are = edo_option('kt_sidebar_are', 'full');
// Page option
$kt_page_layout = edo_get_post_meta(get_the_ID(), 'kt_page_layout', 'none');
$kt_show_page_breadcrumb = edo_get_post_meta(get_the_ID(), 'kt_show_page_breadcrumb', 'show');
if ($kt_page_layout != "none") {
    $kt_sidebar_are = $kt_page_layout;
}
$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 page-full-width col-sm-12";
}
?>
<div id="primary" class="content-area <?php 
echo esc_attr($sidebar_are_layout);
Exemple #2
0
	<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
">
	<?php 
wp_head();
?>
</head>

<body <?php 
body_class();
?>
>
<?php 
$kt_banner_header = edo_option('kt_banner_header', '');
$kt_link_banner_header = edo_option('kt_link_banner_header', '#');
if ($kt_banner_header) {
    ?>
<div class="top-banner-header">
	<a href="<?php 
    echo esc_url($kt_link_banner_header);
    ?>
">
	<img src="<?php 
    echo esc_url($kt_banner_header);
    ?>
" alt="">
	</a>
	<div class="container"><span class="close-banner-top"><i class="fa fa-times"></i></span></div>
</div>
<?php 
Exemple #3
0
			</div>
		</div>
	</div>
	<div class="footer-social">
		<div class="container">
			<div class="row">
				<div class="block-social">
					<ul class="list-social">
						<?php 
echo edo_get_html($social_icons);
?>
					</ul>
				</div>
				<div class="block-payment">
					<?php 
$payment_logo = edo_option('kt_payment_logo', '');
if ($payment_logo != "") {
    ?>
                        	<img src="<?php 
    echo esc_url($payment_logo);
    ?>
" alt="<?php 
    esc_attr_e('Payment Logo', 'edo');
    ?>
" />
                        	<?php 
}
?>
				</div>
			</div>
		</div>
Exemple #4
0
<!-- header -->
<?php 
$kt_phone = edo_option('kt_phone', '(0123) 456 789');
?>
<header id="header" class="option2">
	<div class="container">
		<!-- main header -->
		<div class="row">
			<div class="main-header">
				<div class="row">
					<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
						<div class="logo">
							<?php 
echo edo_get_logo();
?>
						</div>
					</div>
					<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12 main-header-banner">
						<div class="block block-header-right">
							<ul class="list-link">
								<li class="item">
									<a href="#">
										<span class="icon phone"></span>
										<span class="line1"><?php 
esc_html_e('Call us:', 'edo');
?>
<br /><strong><?php 
echo esc_html($kt_phone);
?>
</strong></span>
									</a>
Exemple #5
0
    function edo_themne_color()
    {
        $main_color = edo_option('kt_theme_color', '#5a88ca');
        $kt_theme_color_2 = edo_option('kt_theme_color_2', '#f2d03b');
        $rgb_color = edo_hex2rgb($main_color);
        $css = <<<CSS
\t/* Color Scheme */

\tbody a:hover,
\tbody .top-bar .top-bar-link.dot>li>a:before,
\tbody .block-category .categories>li>a:before,
\tbody .option3 .advanced-search .btn-search,
\tbody .option3 .wrap-block-cl .user-info .fa,
\tbody .option3 .wrap-block-cl .user-info .dropdown-menu .fa,
\tbody .option4 .advanced-search .btn-search,
\tbody .option4 .wrap-block-cl .user-info .fa,
\tbody .option4 .wrap-block-cl .user-info .dropdown-menu .fa,
\tbody .widget_product_categories .children>li>a:before,
\tbody .block-popular-cat .sub-categories li a:before,
\t.header.style5 .advanced-search .btn-search,
\t.header.style5 .user-info .main-link,
\t.box-product-style8 .nav-tab li.active a,
\t.box-product-style8 .nav-tab li:hover a,
\t.box-product-style8 .box-link a,
\t.product.style5 .btn-quick-view:before,
\t.lasttest-blogs .item-blog .title a:hover,
\t.lasttest-blogs .item-blog .readmore,
\t.popular-tabs .nav-tab li.active a,
\t.popular-tabs .nav-tab li a:hover,
\t.popular-tabs .nav-tab li a:focus,
\t.edo_icon.style2:hover .icon-info .title{

\t\tcolor: {$main_color};
\t}

\tbody #category-select-menu .ui-state-focus,
\tbody .main-bg,
\tbody .block-wrap-cart .iner-block-cart>a:after,
\tbody .main-menu .navbar-nav>li>a:hover, 
\tbody .main-menu .navbar-nav>li.active>a, 
\tbody .main-menu .navbar-nav>li>a:focus,
\tbody .main-menu .navbar-nav>li>a:visited,
\tbody .main-menu .dropdown-menu>li:hover,
\tbody .button-radius .icon:before,
\tbody .megamenu .widget_nav_menu ul>li:hover,
\tbody .block-category .nav-tab>li>a:hover, 
\tbody .block-category .nav-tab>li.active>a,
\tbody .block-category .categories>li>a>.text:before,
\tbody .block-category .categories>li>a>.text:before,
\tbody .block-category .categories>li>a:hover>.text,
\tbody .owl-carousel .owl-next:hover,
\tbody .owl-carousel .owl-prev:hover,
\tbody .footer-block-box .block-input-box .block-button, 
\tbody .footer-block-box .block-input-box .mailchimp-submit,
\tbody .block-social .list-social li>a:hover,
\tbody .scroll_top,
\tbody .block-header-right .item.item-cart,
\tbody .block-vertical-menu .vertical-head,
\tbody .block-tabs .nav-tab li a:hover, 
\tbody .block-tabs .nav-tab li.active a,
\tbody .block-hot-deals2 .nav-tab li.active a:before, 
\tbody .block-hot-deals2 .nav-tab li:hover a:before,
\tbody .option3 .wrap-block-cl .dropdown-menu>li>a:hover,
\tbody .option3 .tab-cat-products .sub-cat,
\tbody .block-top-review .list-product .product:hover .order, 
\tbody .block-top-review .list-product .product.active .order,
\tbody .option4 .wrap-block-cl .dropdown-menu>li>a:hover,
\tbody .option4 .block-wrap-cart .iner-block-cart>a:after,
\tbody .option4 .products .btn-quick-view,
\tbody .option3 .products .btn-quick-view,
\tbody .display-product-option li.selected span, 
\tbody .display-product-option li:hover span,
\tbody .products .btn-quick-view,
\tbody .woocommerce #respond input#submit, 
\tbody .woocommerce a.button, 
\tbody .woocommerce button.button, 
\tbody .woocommerce input.button, 
\tbody .woocommerce #respond input#submit.alt, 
\tbody .woocommerce a.button.alt, 
\tbody .woocommerce button.button.alt, 
\tbody .woocommerce input.button.alt,
\tbody .woocommerce #respond input#submit:hover, 
\tbody .woocommerce a.button:hover, 
\tbody .woocommerce button.button:hover, 
\tbody .woocommerce input.button:hover, 
\tbody .woocommerce #respond input#submit.alt:hover, 
\tbody .woocommerce a.button.alt:hover, 
\tbody .woocommerce button.button.alt:hover, 
\tbody .woocommerce input.button.alt:hover,
\tbody .tagcloud a:hover,
\tbody .nav-links>a:hover, 
\tbody .nav-links .current,
\tbody.woocommerce div.product form.cart .single_add_to_cart_button:before,
\tbody.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
\tbody.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content,
\tbody.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover, 
\tbody.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
\tbody.woocommerce #respond input#submit:hover, 
\tbody.woocommerce a.button:hover, 
\tbody.woocommerce button.button:hover, 
\tbody.woocommerce input.button:hover, 
\tbody.woocommerce #respond input#submit.alt:hover, 
\tbody.woocommerce a.button.alt:hover, 
\tbody.woocommerce button.button.alt:hover, 
\tbody.woocommerce input.button.alt:hover,
\tbody.woocommerce #review_form #respond .form-submit input,
\tbody input[type="submit"], button,
\tbody.woocommerce .wishlist_table td.product-add-to-cart .add_to_cart_button:before,
\tbody .block-category-list a:hover,
\t.header.style5 .block-wrap-cart,
\tbody .button,
\t.header.style6 .main-menu,
\t.product.style5 .yith-wcwl-add-button a:hover,
\t.product.style5 .yith-wcwl-wishlistaddedbrowse a:hover,
\t.product.style5 .yith-wcwl-wishlistexistsbrowse a:hover,
\t.product.style5 .compare.button:hover,
\t.product.style5 .compare:hover,
\t.lasttest-blogs.style2 .owl-carousel .owl-next:hover,
\t.lasttest-blogs.style2 .owl-carousel .owl-prev:hover,
\t.edo_icon.style2:hover .icon
\t{
\t\tbackground-color: {$main_color};
\t}

\tbody .block-category .nav-tab>li>a:hover, 
\tbody .block-category .nav-tab>li.active>a,
\tbody .owl-carousel .owl-next:hover,
\tbody .owl-carousel .owl-prev:hover,
\tbody .block-social .list-social li>a:hover,
\tbody .block-header-right .item .icon,
\tbody .block-hot-deals2 .nav-tab li.active a:before, 
\tbody .block-hot-deals2 .nav-tab li:hover a:before,
\tbody .option3 .main-menu .navbar-nav>li>a:hover, 
\tbody .option3 .main-menu .navbar-nav>li.active>a, 
\tbody .option3 .main-menu .navbar-nav>li>a:focus,
\tbody .option3 .main-menu .navbar-nav>li>a:visited,
\tbody .block3 .block-head .nav-tab.tab-category li.active, 
\tbody .block3 .block-head .nav-tab.tab-category li:hover,
\tbody .option4 .block3 .block-head .nav-tab.default li:hover>a, 
\tbody .option4 .block3 .block-head .nav-tab.default li.active>a,
\tbody .option3 .block3 .block-head .nav-tab.default li:hover>a, 
\tbody .option3 .block3 .block-head .nav-tab.default li.active>a,
\tbody.woocommerce #content div.product div.thumbnails a:hover img, 
\tbody.woocommerce div.product div.thumbnails a:hover img, 
\tbody.woocommerce-page #content div.product div.thumbnails a:hover img, 
\tbody.woocommerce-page div.product div.thumbnails a:hover img,
\t.product.style5 .yith-wcwl-add-button a:hover,
\t.product.style5 .yith-wcwl-wishlistaddedbrowse a:hover,
\t.product.style5 .yith-wcwl-wishlistexistsbrowse a:hover,
\t.product.style5 .compare.button:hover,
\t.product.style5 .compare:hover,
\t.lasttest-blogs.style2 .owl-carousel .owl-next:hover,
\t.lasttest-blogs.style2 .owl-carousel .owl-prev:hover,
\t.edo_icon.style2:hover .icon{
\t\tborder-color: {$main_color};
\t}
\tbody .block-category .categories>li>a>.text:after{
\t\t border-left: 16px solid {$main_color};
\t}
\tbody .option3 .block-vertical-menu .vertical-head,
\tbody .option3 .block .block-head,
\tbody .block3 .block-head .block-title,
\tbody .option4 .block-vertical-menu .vertical-head{
\t\tborder-top: 5px solid {$main_color};
\t}

\tbody .option4 .block3 .block-head{
\t\t    border-top: 2px solid {$main_color};
\t}
\tbody .block-categories .sub-cat{
\t\tbackground: rgba({$rgb_color['red']},{$rgb_color['green']},{$rgb_color['blue']}, 0.9);
\t}
\tbody .woocommerce .widget_price_filter .ui-slider .ui-slider-handle,
\tbody .woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content{
\t\tbackground: {$main_color};
\t}

\t.header.style6 .advanced-search .btn-search,
\t.header.style6 .hotline .icon,
\t.header.style6 .block-wrap-cart .iner-block-cart>a:after,
\t.edo_icon:hover .icon,
\t.product.style6 .btn-add-cart,
\t.box-product-carousel .owl-carousel .owl-prev, 
\t.box-product-carousel .owl-carousel .owl-next,
\t.popular-tabs .nav-tab li:after,
\t.popular-tabs .owl-carousel .owl-prev, 
\t.popular-tabs .owl-carousel .owl-next,
\t.lasttest-blogs.style2 .owl-carousel .owl-next,
    .lasttest-blogs.style2 .owl-carousel .owl-prev,
    .edo_icon.style2 .icon
\t{
\t\tbackground-color: {$kt_theme_color_2};
\t}
\t.edo_icon:hover .icon,
\t.box-product-carousel .owl-carousel .owl-prev, 
\t.box-product-carousel .owl-carousel .owl-next,
\t.popular-tabs .owl-carousel .owl-prev, 
\t.popular-tabs .owl-carousel .owl-next,
\t.lasttest-blogs.style2 .owl-carousel .owl-next,
\t.lasttest-blogs.style2 .owl-carousel .owl-prev{
\t\tborder-color: {$kt_theme_color_2};
\t}
\t.edo_icon .icon,
\t.edo_icon:hover .title{
\t\tcolor: {$kt_theme_color_2};
\t}
CSS;
        ?>
		<style id="edo-theme-color" type="text/css">
	        <?php 
        echo apply_filters('edo_customize_css', $css);
        ?>
	    </style>
		<?php 
    }
Exemple #6
0
<?php

/**
 * The sidebar containing the main widget area
 *
 * @package KuteTheme
 * @subpackage edo
 * @since edo 1.0
 */
$kt_used_sidebar = edo_option('kt_woo_shop_used_sidebar', 'sidebar-shop');
// option Single product
if (is_product()) {
    $kt_used_sidebar = edo_option('kt_woo_single_used_sidebar', 'full');
}
?>
<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 -->

Exemple #7
0
<?php

/**
 * The sidebar containing the main widget area
 *
 * @package KuteTheme
 * @subpackage edo
 * @since edo 1.0
 */
$kt_used_sidebar = edo_option('kt_used_sidebar', 'sidebar-shop');
if (is_page()) {
    $kt_page_used_sidebar = edo_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 -->
Exemple #8
0
 *
 * 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 = edo_option('kt_woo_shop_sidebar_are', 'full');
// option Single product
if (is_product()) {
    $kt_sidebar_are = edo_option('kt_woo_single_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">
        <div class="container">
                <div class="row">
}
?>

<?php 
/**
 * woocommerce_before_single_product hook
 *
 * @hooked wc_print_notices - 10
 */
do_action('woocommerce_before_single_product');
if (post_password_required()) {
    echo get_the_password_form();
    return;
}
$kt_woo_box_right_single_product_summary = edo_option('kt_woo_box_right_single_product_summary', 'enable');
$kt_woo_box_bottom_single_product_summary = edo_option('kt_woo_box_bottom_single_product_summary', 'enable');
?>
<div itemscope itemtype="<?php 
echo woocommerce_get_product_schema();
?>
" id="product-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<div class="row">
		<div class="col-sm-5">
			<div class="block-product-image">
				<?php 
Exemple #10
0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
?>

<?php 
do_action('woocommerce_before_mini_cart');
?>

<?php 
$check_out_url = WC()->cart->get_cart_url();
$total = WC()->cart->get_cart_total();
$count = WC()->cart->cart_contents_count;
$edo_used_header = edo_option('kt_used_header', '1');
?>
<div class="widget_shopping_cart_content">
    <?php 
if ($edo_used_header == 2) {
    ?>
    <a class="link-cart" href="<?php 
    echo esc_url($check_out_url);
    ?>
">
		<span class="icon cart"></span>
		<span class="line1"><?php 
    esc_html_e('Shopping Cart', 'edo');
    ?>
<br /><strong><?php 
    echo WC()->cart->get_cart_total();
Exemple #11
0
<?php

/**
 * Product loop new flash
 *
 * @author 		AngelsIT
 * @package 	Edo
 * @version     1.0.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
global $post, $product;
$postdate = get_the_time('Y-m-d');
// Post date
$postdatestamp = strtotime($postdate);
// Timestamped post date
$newness = edo_option('kt_woo_newness', 7);
// Newness in days as defined by option
if (time() - 60 * 60 * 24 * $newness < $postdatestamp) {
    ?>

	<?php 
    echo apply_filters('woocommerce_new_flash', '<span class="product-new">' . esc_attr__('New', 'woocommerce') . '</span>', $post, $product);
    ?>

<?php 
}
Exemple #12
0
 function edo_get_socials()
 {
     $facebook = edo_option('kt_facebook_link_id');
     $twitter = edo_option('kt_twitter_link_id');
     $pinterest = edo_option('kt_pinterest_link_id');
     $dribbble = edo_option('kt_dribbble_link_id');
     $vimeo = edo_option('kt_vimeo_link_id');
     $tumblr = edo_option('kt_tumblr_link_id');
     $skype = edo_option('kt_skype_link_id');
     $linkedin = edo_option('kt_linkedIn_link_id');
     $vk = edo_option('kt_vk_link_id');
     $googleplus = edo_option('kt_google_plus_link_id');
     $youtube = edo_option('kt_youtube_link_id');
     $instagram = edo_option('kt_instagram_link_id');
     $social_icons = '';
     if ($facebook) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="' . esc_url($facebook) . '" title ="Facebook" ><i class="fa fa-facebook"></i></a>';
         $social_icons .= '</li>';
     }
     if ($twitter) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://www.twitter.com/' . esc_attr($twitter) . '" title ="Twitter" ><i class="fa fa-twitter"></i></a>';
     }
     if ($dribbble) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://www.dribbble.com/' . esc_attr($dribbble) . '" title ="Dribbble" ><i class="fa fa-dribbble"></i></a>';
         $social_icons .= '</li>';
     }
     if ($vimeo) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://www.vimeo.com/' . esc_attr($vimeo) . '" title ="Vimeo" ><i class="fa fa-vimeo-square"></i></a>';
         $social_icons .= '</li>';
     }
     if ($tumblr) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://' . esc_attr($tumblr) . '.tumblr.com/" title ="Tumblr" ><i class="fa fa-tumblr"></i></a>';
         $social_icons .= '</li>';
     }
     if ($skype) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="skype:' . esc_attr($skype) . '" title ="Skype" ><i class="fa fa-skype"></i></a>';
         $social_icons .= '</li>';
     }
     if ($linkedin) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="' . esc_attr($linkedin) . '" title ="Linkedin" ><i class="fa fa-linkedin"></i></a>';
         $social_icons .= '</li>';
     }
     if ($googleplus) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="' . esc_url($googleplus) . '" title ="Google Plus" ><i class="fa fa-google-plus"></i></a>';
         $social_icons .= '</li>';
     }
     if ($youtube) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://www.youtube.com/user/' . esc_attr($youtube) . '" title ="Youtube"><i class="fa fa-youtube"></i></a>';
         $social_icons .= '</li>';
     }
     if ($pinterest) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://www.pinterest.com/' . esc_attr($pinterest) . '/" title ="Pinterest" ><i class="fa fa-pinterest-p"></i></a>';
         $social_icons .= '</li>';
     }
     if ($instagram) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="http://instagram.com/' . esc_attr($instagram) . '" title ="Instagram" ><i class="fa fa-instagram"></i></a>';
         $social_icons .= '</li>';
     }
     if ($vk) {
         $social_icons .= '<li>';
         $social_icons .= '<a href="https://vk.com/' . esc_attr($vk) . '" title ="Vk" ><i class="fa fa-vk"></i></a>';
         $social_icons .= '</li>';
     }
     return $social_icons;
 }
Exemple #13
0
<header id="header" class="header style6">
	<div class="container">
		<!-- box header -->
		<div class="row">
			<div class="row">
				<div class="main-header">
					<div class="col-sm-5 ">
		                <div class="top-bar">
		                	<?php 
wp_nav_menu(array('menu' => 'topbar-menu', 'theme_location' => 'topbar-menu', 'depth' => 1, 'container' => '', 'container_class' => '', 'container_id' => '', 'menu_class' => 'top-bar-link top-bar-link-left', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker()));
?>
		                </div>
		                <?php 
$kt_phone = edo_option('kt_phone', '');
?>
		                <?php 
if ($kt_phone) {
    ?>
		                <div class="hotline">

		                	<span><i class="icon fa fa-phone"></i> <?php 
    _e('Call us now toll free:', 'edo');
    ?>
</span>
		                	<span class="number"><?php 
    echo esc_html($kt_phone);
    ?>
</span>
		                </div>
		            	<?php 
}
Exemple #14
0
 function edo_custom_products_per_page()
 {
     $loop_shop_per_page = edo_option('kt_woo_products_perpage', 18);
     // Display 24 products per page. Goes in functions.php
     return $loop_shop_per_page;
 }