HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/bristolfilton.co.uk/public_html/wp-content/themes/storeone/woocommerce.php
<?php
/**
 * The template for displaying all 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 may use a
 * different template.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package storeone
 */
get_header();
$page_class = (is_shop() && is_active_sidebar( 'sidebar-shop' ))?'col-md-9':'col-md-12';

?>
<div class="container-fluid bgs-space bgs-products">
    <div class="container">
        <div class="row">
            <div class="<?php echo esc_attr($page_class); ?> product-gallery bgs-woocommerce left-sidebar">
                <?php 
                    if(is_shop() && !is_search()){
                        get_template_part('template-parts/slider-shop');
                    }
                ?>
                <?php if ( have_posts() ) : ?>
                    <?php woocommerce_content(); ?>
                <?php endif; ?> 
            </div>
            <?php 
                if(!is_product() && is_active_sidebar( 'sidebar-shop' )){
                    get_sidebar('shop'); 
                }
            ?>
        </div>
    </div>
</div>
<?php
get_footer();