File "loop-start.php"
Full Path: /home/tekvhqgl/public_html/dev2024_old_skip/wp-content/themes/customify/woocommerce/loop/loop-start.php
File size: 974 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Product Loop Start
*
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 3.3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
do_action( 'customify_wc_loop_start' );
$columns = intval( wc_get_loop_prop( 'columns', 3 ) );
$tablet = intval( wc_get_loop_prop( 'tablet_columns', 2 ) );
$mobile = intval( wc_get_loop_prop( 'mobile_columns', 1 ) );
if ( $tablet > $columns && $columns > 1 ) {
$tablet = $columns;
}
if ( ! $tablet ) {
$tablet = $columns;
}
if ( $mobile >= $tablet && $tablet > 1 ) {
$mobile = $tablet;
}
if ( ! $mobile ) {
$mobile = 1;
}
if ( ! $columns ) {
$columns = 4;
$tablet = 2;
$mobile = 1;
}
$view = customify_get_default_catalog_view_mod();
$class = sprintf( "customify-grid-{$columns}_md-{$columns}_sm-{$tablet}_xs-{$mobile}" );
$class .= ' wc-' . $view . '-view';
?>
<ul class="products <?php echo esc_attr( $class ); ?>">