Merge pull request #9209 from wpexplorer/patch-1
Update content-widget-product.php
This commit is contained in:
commit
ff2524de78
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue