2012-07-19 18:34:49 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Loop-shop (deprecated)
|
|
|
|
*
|
|
|
|
* Outputs a product loop
|
|
|
|
*
|
2012-08-14 18:05:45 +00:00
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates
|
|
|
|
* @version 1.6.4
|
|
|
|
* @deprecated 1.6
|
2012-07-19 18:34:49 +00:00
|
|
|
*/
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-10-15 10:57:58 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
|
|
|
2012-07-19 18:34:49 +00:00
|
|
|
_deprecated_file( basename(__FILE__), '1.6' );
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<?php do_action('woocommerce_before_shop_loop'); ?>
|
|
|
|
|
2012-09-30 13:41:07 +00:00
|
|
|
<?php woocommerce_product_loop_start(); ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-07-19 18:34:49 +00:00
|
|
|
<?php woocommerce_product_subcategories(); ?>
|
|
|
|
|
|
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
|
|
|
|
|
|
<?php woocommerce_get_template_part( 'content', 'product' ); ?>
|
|
|
|
|
|
|
|
<?php endwhile; // end of the loop. ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-09-30 13:41:07 +00:00
|
|
|
<?php woocommerce_product_loop_end(); ?>
|
2012-07-19 18:34:49 +00:00
|
|
|
|
|
|
|
<?php do_action('woocommerce_after_shop_loop'); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
|
2012-09-30 13:41:07 +00:00
|
|
|
<?php if ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-07-19 18:34:49 +00:00
|
|
|
<p><?php _e( 'No products found which match your selection.', 'woocommerce' ); ?></p>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2012-07-19 18:34:49 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|