| Current File : /home/tekstore/public_html/wp-content/themes/kuteshop/woocommerce/loop/loop-start.php |
<?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
*/
if ( !defined( 'ABSPATH' ) ) {
exit;
}
/**
*
* SETUP SHOP LOOP
*/
kuteshop_woocommerce_setup_loop();
$disable_labels = kuteshop_get_option( 'disable_labels' );
$disable_rating = kuteshop_get_option( 'disable_rating' );
$short_text = kuteshop_get_option( 'short_text' );
$columns = wc_get_loop_prop( 'columns' );
$product_style = wc_get_loop_prop( 'style' );
$class = array(
"products",
"shop-page",
"response-content",
"columns-{$columns}",
"ovic-products {$product_style}",
);
$array_style = array( 'style-01', 'style-04', 'style-05', 'style-06', 'style-08', 'style-09', 'style-15', 'style-16', 'style-26' );
if ( in_array( $product_style, $array_style ) )
$class[] = 'border-full';
if ( $disable_labels == 1 )
$class[] = 'labels-not-yes';
if ( $disable_rating == 1 )
$class[] = 'rating-not-yes';
if ( $short_text == 1 )
$class[] = 'short-text-yes';
/**
*
* SHOP CONTROL
*/
kuteshop_control_before_shop_loop();
?>
<ul class="<?php echo esc_attr( implode( ' ', $class ) ); ?>">