Added version and improved the templates/content-widget-product.php

This commit is contained in:
Claudio Sanches 2015-09-23 17:13:26 -03:00
parent ff2524de78
commit dfd7a0493a
1 changed files with 5 additions and 3 deletions

View File

@ -6,9 +6,9 @@
* *
* @author WooThemes * @author WooThemes
* @package WooCommerce/Templates * @package WooCommerce/Templates
* @version 1.0.0 * @version 2.5.0
*/ */
// Exit if accessed directly // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; exit;
@ -21,6 +21,8 @@ global $product; ?>
<?php echo $product->get_image(); ?> <?php echo $product->get_image(); ?>
<span class="product-title"><?php echo $product->get_title(); ?></span> <span class="product-title"><?php echo $product->get_title(); ?></span>
</a> </a>
<?php if ( ! empty( $show_rating ) ) echo $product->get_rating_html(); ?> <?php if ( ! empty( $show_rating ) ) : ?>
<?php echo $product->get_rating_html(); ?>
<?php endif; ?>
<?php echo $product->get_price_html(); ?> <?php echo $product->get_price_html(); ?>
</li> </li>