Пример #1
0
	<?php 
foreach ($comments as $comment) {
    /** @var $product \Jigoshop\Entity\Product */
    $product = $comment->product;
    ?>
		<li>
		<a href="<?php 
    echo get_comment_link($comment->comment_ID);
    ?>
">
			<?php 
    echo Product::getFeaturedImage($product, Options::IMAGE_TINY);
    ?>
			<span class="js_widget_product_title"><?php 
    echo $product->getName();
    ?>
</span>
		</a>
		<?php 
    echo Product::getRatingHtml($comment->rating, 'recent_reviews');
    ?>
		<?php 
    printf(_x('by %1$s', 'author', 'jigoshop'), get_comment_author($comment->comment_ID));
    ?>
	</li>
	<?php 
}
?>
</ul>
<?php 
echo $after_widget;
Пример #2
0
foreach ($products as $product) {
    /** @var $product \Jigoshop\Entity\Product */
    ?>
	<li>
		<a href="<?php 
    echo $product->getLink();
    ?>
">
			<?php 
    echo Product::getFeaturedImage($product, Options::IMAGE_TINY);
    ?>
			<span class="js_widget_product_title"><?php 
    echo $product->getName();
    ?>
</span>
		</a>
		<?php 
    echo Product::getRatingHtml(Product::getRating($product));
    ?>
 ?>
		<span class="js_widget_product_price"><?php 
    echo Product::getPriceHtml($product);
    ?>
</span>
	</li>
	<?php 
}
?>
</ul>
<?php 
echo $after_widget;