2015-09-23 19:39:11 +00:00
|
|
|
<?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
|
2015-09-23 20:13:26 +00:00
|
|
|
* @version 2.5.0
|
2015-09-23 19:39:11 +00:00
|
|
|
*/
|
2015-09-23 20:13:26 +00:00
|
|
|
|
2015-09-23 19:39:11 +00:00
|
|
|
// Exit if accessed directly
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
global $product; ?>
|
|
|
|
|
2013-05-13 14:12:12 +00:00
|
|
|
<li>
|
|
|
|
<a href="<?php echo esc_url( get_permalink( $product->id ) ); ?>" title="<?php echo esc_attr( $product->get_title() ); ?>">
|
|
|
|
<?php echo $product->get_image(); ?>
|
2014-12-17 19:02:23 +00:00
|
|
|
<span class="product-title"><?php echo $product->get_title(); ?></span>
|
2013-05-13 14:12:12 +00:00
|
|
|
</a>
|
2015-09-23 20:13:26 +00:00
|
|
|
<?php if ( ! empty( $show_rating ) ) : ?>
|
|
|
|
<?php echo $product->get_rating_html(); ?>
|
|
|
|
<?php endif; ?>
|
2013-05-13 14:12:12 +00:00
|
|
|
<?php echo $product->get_price_html(); ?>
|
2015-09-23 19:39:11 +00:00
|
|
|
</li>
|