<?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://docs.woocommerce.com/document/template-structure/
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     3.3.0
 */

$columns				= apply_filters( 'loop_shop_columns', 4 );
$screen_desktop 		= apply_filters( 'loop_shop_columns', 4 );
$screen_desktopsmall 	= apply_filters( 'loop_shop_columns', 4 );
$screen_mobile 			= 2;
$screen_tablet          = 3;
$skin = greenmart_tbay_get_theme();
$screen_landscape = ($skin === 'organic-el' || $skin === 'fresh-el') ? 2 : '';



$data_responsive = ' data-xlgdesktop='. $columns .'';

$data_responsive .= ' data-desktop='. $screen_desktop .'';

$data_responsive .= ' data-desktopsmall='. $screen_desktopsmall .'';

$data_responsive .= ' data-tablet='. $screen_tablet .'';

$data_elemntor = ($skin === 'organic-el' || $skin === 'fresh-el') ? ' data-landscape='. $screen_landscape .'' : '';

$data_responsive .= $data_elemntor;

$data_responsive .= ' data-mobile='. $screen_mobile .'';

$woo_mode = greenmart_tbay_woocommerce_get_display_mode();
?>
<div class="products products-<?php if ( $woo_mode == 'list' ) { ?>list<?php }else{ ?>grid<?php } ?>"><div class="row" <?php echo esc_attr($data_responsive); ?>>