Merge pull request #9209 from wpexplorer/patch-1

Update content-widget-product.php
This commit is contained in:
Claudio Sanches 2015-09-23 17:12:28 -03:00
commit ff2524de78
1 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,21 @@
<?php global $product; ?>
<?php
/**
* The template for displaying product widget entries.
*
* Override this template by copying it to yourtheme/woocommerce/content-widget-product.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.0.0
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $product; ?>
<li>
<a href="<?php echo esc_url( get_permalink( $product->id ) ); ?>" title="<?php echo esc_attr( $product->get_title() ); ?>">
<?php echo $product->get_image(); ?>
@ -6,4 +23,4 @@
</a>
<?php if ( ! empty( $show_rating ) ) echo $product->get_rating_html(); ?>
<?php echo $product->get_price_html(); ?>
</li>
</li>