File: //proc/self/root/home/vitanhod/www/wp-content/themes/nooni/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;
}
get_header();
$theme_options = nooni_get_theme_options();
$extra_class = '';
$page_column_class = nooni_page_layout_columns_class($theme_options['ts_prod_layout']);
$show_breadcrumb = $theme_options['ts_prod_breadcrumb'];
$show_page_title = $theme_options['ts_prod_title'];
if( $show_breadcrumb || $show_page_title ){
$extra_class = 'show_breadcrumb_'.$theme_options['ts_breadcrumb_layout'];
}
nooni_breadcrumbs_title($show_breadcrumb, $show_page_title, get_the_title());
?>
<div class="page-container <?php echo esc_attr($extra_class) ?> <?php echo esc_attr($page_column_class['main_class']); ?>">
<!-- Left Sidebar -->
<?php if( $page_column_class['left_sidebar'] ): ?>
<div id="left-sidebar" class="ts-sidebar">
<aside>
<?php if( is_active_sidebar($theme_options['ts_prod_left_sidebar']) ): ?>
<?php dynamic_sidebar( $theme_options['ts_prod_left_sidebar'] ); ?>
<?php endif; ?>
</aside>
</div>
<?php endif; ?>
<div id="main-content">
<div id="primary" class="site-content">
<?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>
<!-- Right Sidebar -->
<?php if( $page_column_class['right_sidebar'] ): ?>
<div id="right-sidebar" class="ts-sidebar">
<aside>
<?php if( is_active_sidebar($theme_options['ts_prod_right_sidebar']) ): ?>
<?php dynamic_sidebar( $theme_options['ts_prod_right_sidebar'] ); ?>
<?php endif; ?>
</aside>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>