<?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;
}
?>
<?php if(ignavo_shop_view() == 'list_view') { ?>
<div class="shop-products-wrapper">
<div class="products grid grid-cols-1 grid-bordered">
<?php } else { ?>
<div class="shop-products-wrapper">
<div class="products grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-<?php echo esc_attr( wc_get_loop_prop( 'columns' ) ); ?> column-gap column-gap-sm column-gap-lg row-gap row-gap-sm row-gap-lg"
style="
--column-gap: 10px;
--column-gap-sm: 20px;
--column-gap-lg: 30px;
--row-gap: 20px;
--row-gap-sm: 30px;
--row-gap-lg: 50px;
"
>
<?php } ?>