%PDF- %PDF-
| Direktori : /home/gachan/www/wp-content/themes/medicure/woocommerce/ |
| Current File : /home/gachan/www/wp-content/themes/medicure/woocommerce/content-product.php |
<?php
/**
* The template for displaying product content within loops.
*
* Override this template by copying it to yourtheme/woocommerce/content-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*
* @cmsms_package Medicure
* @cmsms_version 1.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
global $product, $woocommerce_loop;
// 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
$classes = array();
if ( 0 == ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 == $woocommerce_loop['columns'] )
$classes[] = 'first';
if ( 0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'] )
$classes[] = 'last';
$handler = apply_filters( 'woocommerce_add_to_cart_handler', $product->product_type, $product );
?>
<li <?php post_class( $classes ); ?>>
<div class="product_inner">
<?php woocommerce_show_product_loop_sale_flash();
$availability = $product->get_availability();
if (esc_attr($availability['class']) == 'out-of-stock') {
echo apply_filters('woocommerce_stock_html', '<span class="' . esc_attr( $availability['class'] ) . '">' . esc_html( $availability['availability'] ) . '</span>', $availability['availability']);
}
?>
<figure>
<span class="preloader">
<?php woocommerce_template_loop_product_thumbnail(); ?>
</span>
<?php cmsms_woocommerce_add_to_cart_button(); ?>
</figure>
<div class="cmsms_prod_info">
<header class="entry-header cmsms_prod_header">
<h6 class="entry-title cmsms_prod_title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h6>
<?php echo $product->get_categories(' / ', '<div class="cmsms_prod_cat">', '</div>'); ?>
</header>
<footer class="entry-meta cmsms_prod_footer">
<?php
woocommerce_template_loop_rating();
woocommerce_template_loop_price();
?>
</footer>
</div>
</div>
</li>