<?php
/**
 * Product Loop Start
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     3.3.0
 */

$class   = '';
$is_list_view = basel_loop_prop( 'products_view' ) == 'list';


if( basel_loop_prop( 'products_masonry' ) ) {
	$class .= ' grid-masonry';
}

if ( $is_list_view ) {
	$class .= ' elements-list';
}

if ( 'none' !== basel_get_opt( 'product_title_lines_limit' ) && ! $is_list_view ) {
	$class .= ' title-line-' . basel_get_opt( 'product_title_lines_limit' );
}

$class .= ' pagination-' . basel_get_opt( 'shop_pagination' );

// fix for price filter ajax
$min_price = isset( $_GET['min_price'] ) ? esc_attr( $_GET['min_price'] ) : '';
$max_price = isset( $_GET['max_price'] ) ? esc_attr( $_GET['max_price'] ) : '';
basel_enqueue_inline_style( 'woo-categories-general' );
?>

<div class="products elements-grid basel-products-holder <?php echo esc_attr( $class ); ?> row grid-columns-<?php echo esc_attr( basel_loop_prop( 'products_columns' ) ); ?>" data-min_price="<?php echo esc_attr( $min_price ); ?>" data-max_price="<?php echo esc_attr( $max_price ); ?>" data-source="main_loop">