👁 查看:loop-start.php
路径:/home/forge/kingkrunch.com/wp/wp-content/themes/foodstuff/woocommerce/loop/loop-start.php
大小:930 B · 修改:2020-09-11 16:13:49 · 权限:0775 · 可写
<?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.woothemes.com/document/template-structure/
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     3.3.0
 */
?>
<?php if(is_shop() || is_product_category() || is_product_tag() || is_product()  || is_cart() || is_archive()):?>
	<ul class="products columns-<?php echo esc_attr( wc_get_loop_prop( 'columns' ) ); ?>">
<?php else : ?>
	<ul class="products" >
<?php endif;?>