">
		<?php 
porto_widget_product_thumbnail();
?>
	</a>
    <div class="product-details">
        <a href="<?php 
echo esc_url(get_permalink($product->id));
?>
" title="<?php 
echo esc_attr($product->get_title());
?>
">
            <?php 
echo $product->get_title();
?>
        </a>
        <?php 
if (!empty($show_rating) || $porto_settings['woo-show-rating']) {
    ?>
            <?php 
    echo porto_get_rating_html($product);
    ?>
        <?php 
}
?>
        <?php 
echo $product->get_price_html();
?>
    </div>
</li>
Beispiel #2
0
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
 * will need to copy the new files to your theme to maintain compatibility. We try to do this.
 * as little as possible, but it does happen. When this occurs the version of the template file will.
 * be bumped and the readme will list any important changes.
 *
 * @see 	    http://docs.woothemes.com/document/template-structure/
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
global $product;
if (get_option('woocommerce_enable_review_rating') === 'no') {
    return;
}
if ($rating_html = porto_get_rating_html($product)) {
    ?>
<div class="rating-wrap">
    <span class="rating-before"><span class="rating-line"></span></span>
    <div class="rating-content"><?php 
    echo $rating_html;
    ?>
</div>
    <span class="rating-after"><span class="rating-line"></span></span>
</div>
<?php 
}