<?php
/**
 * Product Loop Start
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/loop/loop-start.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://woocommerce.com/document/template-structure/
 * @package     WooCommerce\Templates
 * @version     3.3.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$grid_style = glowify_wp_option('grid_style') ?? 'default'; // Codester
$grid = isset($_GET['grid']) ? sanitize_text_field($_GET['grid']) : $grid_style;

$dtab = isset($_GET['dtab']) ? sanitize_text_field($_GET['dtab']) : 'grid';
$default_tab = ($dtab === 'grid') ? '' : 'active';
?>

<!--columns-<?php echo esc_attr( wc_get_loop_prop( 'columns' ) ); ?> -->

<?php if ( $grid === 'default' OR  $grid === 'v4' ) : ?>
<ul class="cs_shop_layout_main cs_grid_5_column cs_products_view cs_style_1 <?php echo esc_attr($default_tab);?>">
<?php elseif ( $grid === 'v2' ) : ?>
<ul class="cs_shop_layout_main cs_grid_style_2 cs_products_view cs_style_1 cs_type_1 <?php echo esc_attr($default_tab);?>">
<?php elseif ( $grid === 'default-2-column' ) : ?>
<ul class="cs_shop_layout_main cs_grid_2_column cs_products_view cs_style_1 <?php echo esc_attr($default_tab);?>">
<?php elseif ( $grid === 'default-3-column' ) : ?>
<ul class="cs_shop_layout_main cs_grid_3_column cs_products_view cs_style_1 <?php echo esc_attr($default_tab);?>">
<?php elseif ( $grid === 'default-4-column' ) : ?>
<ul class="cs_shop_layout_main cs_grid_4_column cs_products_view cs_style_1 <?php echo esc_attr($default_tab);?>">
<?php elseif ( $grid === 'v3' ) : ?>
<ul class="cs_shop_layout_main cs_grid_1_column cs_products_list_view">
<?php else : ?>
<ul class="cs_shop_layout_main cs_grid_style_2 cs_products_view cs_style_1 cs_type_1 <?php echo esc_attr($default_tab);?>">
<?php endif;?>



