* 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 http://docs.woothemes.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.5.0 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } global $product, $woocommerce_loop; $chairman_opt = get_option('chairman_opt'); $chairman_viewmode = Chairman::chairman_show_view_mode(); $chairman_productsfound = Chairman::chairman_shortcode_products_count(); // Store loop count we're currently on if (empty($woocommerce_loop['loop'])) { $woocommerce_loop['loop'] = 0; } // Store column count for displaying the grid if (empty($woocommerce_loop['columns'])) { $woocommerce_loop['columns'] = apply_filters('loop_shop_columns', 4); } // Ensure visibility if (!$product || !$product->is_visible()) { return; } // Increase loop count $woocommerce_loop['loop']++; // Extra post classes