File: /home/carrerup/.trash/techland/woocommerce/single-product.php
<?php
/**
* The Template for displaying all single products
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) 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 https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 1.6.4
*/
get_header();
do_action("techland_before_woo_single");
$techland_justify = (stripos(techland_sidebar_control('single_shop_layout'), 'nt-no-sidebar') !== false) ? ' justify-content-center' : '';
$nt_framework_sidebar_type = ( 'bordered' == techland_settings( 'sidebar_type', 'default' ) ) ? ' nt-sidebar-type-2' : '';
$nt_framework_sidebar_bg = ( '' != techland_settings( 'sdbr_bg') || '' != techland_settings( 'border') ) ? ' has-fill' : '';
?>
<!-- WooCommerce product page container -->
<div id="nt-woo-single" class="nt-woo-single">
<!-- Hero section - this function using on all inner pages -->
<?php techland_woo_hero_section(); ?>
<?php
if ( function_exists('techland_vc_print_saved_template') && '' != techland_settings( 'vc_before_singleshop_templates' ) ) {
echo techland_vc_print_saved_template( techland_settings( 'vc_before_singleshop_templates' ) );
}
?>
<div class="nt-theme-inner-container">
<div class="container">
<div class="row<?php echo esc_attr($techland_justify); ?>">
<!-- Left sidebar -->
<?php if ( 'left-sidebar' == techland_settings( 'single_shop_layout', 'right-sidebar' ) ) { ?>
<div id="nt-sidebar" class="nt-sidebar<?php echo esc_attr($nt_framework_sidebar_type.$nt_framework_sidebar_bg);?> col-12 col-lg-4 col-xl-3">
<div class="nt-sidebar-inner">
<?php dynamic_sidebar( 'shop-single-sidebar' ); ?>
</div>
</div>
<?php } ?>
<!-- Sidebar none -->
<div class="<?php echo techland_sidebar_control( 'single_shop_layout' ); ?>">
<div class="content-container">
<?php woocommerce_content(); ?>
</div>
</div>
<!-- End sidebar + content -->
<!-- Right sidebar -->
<?php if ( 'right-sidebar' == techland_settings( 'single_shop_layout', 'right-sidebar' ) ) { ?>
<div id="nt-sidebar" class="nt-sidebar<?php echo esc_attr($nt_framework_sidebar_type.$nt_framework_sidebar_bg);?> col-12 col-lg-4 col-xl-3">
<div class="nt-sidebar-inner">
<?php dynamic_sidebar( 'shop-single-sidebar' ); ?>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php
if ( function_exists('techland_vc_print_saved_template') && '' != techland_settings( 'vc_after_singleshop_templates' ) ) {
echo techland_vc_print_saved_template( techland_settings( 'vc_after_singleshop_templates' ) );
}
do_action("techland_after_woo_single");
get_footer();
?>