File: /var/www/vhosts/plasmak.com.tr/httpdocs/wp-content/themes/buliten/woocommerce/single-product.php
<?php
/**
* 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
}
$options = _WSH()->option();
$allowed_tags = wp_kses_allowed_html('post');
$meta = _WSH()->get_meta('_bunch_layout_settings');
$meta1 = _WSH()->get_meta('_bunch_header_settings');
$layout = buliten_set($meta, 'layout');
$sidebar = buliten_set($meta, 'sidebar');
$layout = ($layout) ? $layout : buliten_set($options, 'woocommerce_single_page_layout');
$sidebar = ($sidebar) ? $sidebar : buliten_set($options, 'woocommerce_single_page_sidebar');
$classes = (! $layout || $layout == 'full' || buliten_set($_GET, 'layout_style')=='full') ? 'col-lg-12 col-md-12 col-sm-12 col-xs-12' : 'col-xl-9 col-lg-8 col-md-12';
$bg = buliten_set($meta1, 'header_img');
$title = buliten_set($meta1, 'header_title');
$bg = ($bg) ? $bg : buliten_set($options, 'woocommerce_page_header_img');
$title = ($title) ? $title : buliten_set($options, 'woocommerce_page_header_title');
get_header('shop'); ?>
<!--Page Title-->
<section class="page-title" <?php if ($bg):?>style="background-image:url(<?php echo esc_url($bg)?>);"<?php endif;?>>
<div class="auto-container">
<h2><?php if ($title) {
echo wp_kses($title, $allowed_tags);
} else {
wp_title('');
}?></h2>
<?php echo wp_kses(buliten_get_the_breadcrumb(), $allowed_tags); ?>
</div>
</section>
<!--End Page Title-->
<!--Sidebar Page Container-->
<div class="sidebar-page-container">
<div class="auto-container">
<div class="row clearfix">
<!-- sidebar area -->
<?php if ($layout == 'left') : ?>
<?php if (is_active_sidebar($sidebar)) {
?>
<div class="sidebar-side col-xl-3 col-lg-4 col-md-12">
<aside class="sidebar shop-sidebar">
<?php dynamic_sidebar($sidebar); ?>
<?php
/**
* woocommerce_sidebar hook
*
* @hooked woocommerce_get_sidebar - 10
*/
do_action('woocommerce_sidebar'); ?>
</aside>
</div>
<?php
} ?>
<?php endif; ?>
<div class="<?php echo esc_attr($classes);?> content-side">
<div class="shop-single">
<div class="product-details">
<?php
/**
* woocommerce_before_main_content hook
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
*/
do_action('woocommerce_before_main_content');
?>
<?php while (have_posts()) : the_post(); ?>
<?php wc_get_template_part('content', 'single-product'); ?>
<?php endwhile; // end of the loop.?>
<?php
/**
* woocommerce_after_main_content hook
*
* @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
*/
do_action('woocommerce_after_main_content');
?>
</div>
</div>
</div>
<!-- sidebar area -->
<?php if ($layout == 'right'): ?>
<?php if (is_active_sidebar($sidebar)) {
?>
<div class="sidebar-side col-xl-3 col-lg-4 col-md-12">
<aside class="sidebar shop-sidebar">
<?php dynamic_sidebar($sidebar); ?>
<?php
/**
* woocommerce_sidebar hook
*
* @hooked woocommerce_get_sidebar - 10
*/
do_action('woocommerce_sidebar'); ?>
</aside>
</div>
<?php
} ?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer('shop'); ?>