Exemplo n.º 1
0
 id="li-comment-<?php 
comment_ID();
?>
">
	<div id="comment-<?php 
comment_ID();
?>
" class="comment_container comment">

		<?php 
echo get_avatar($comment, apply_filters('woocommerce_review_gravatar_size', '70'), '', get_comment_author());
?>
		<div class="comment-content"><div class="arrow-comment"></div>
			<?php 
if ($rating && get_option('woocommerce_enable_review_rating') == 'yes') {
    $avclass = chow_get_rating_class($rating);
    ?>
				<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="star-rating" title="<?php 
    echo sprintf(__('Rated %d out of 5', 'woocommerce'), $rating);
    ?>
">
					<div class="rating  <?php 
    echo $avclass;
    ?>
"><div class="star-rating"></div><div class="star-bg"></div></div>
				</div>
			<?php 
}
?>
			<div class="comment-by"><strong itemprop="author"><?php 
comment_author();
Exemplo n.º 2
0
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.3.2
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
global $product;
if (get_option('woocommerce_enable_review_rating') === 'no') {
    return;
}
$count = $product->get_rating_count();
$average = $product->get_average_rating();
$avclass = chow_get_rating_class($average);
if ($count > 0) {
    ?>

	<div class="woocommerce-product-rating reviews-counter" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
		<div class="star-rating rating <?php 
    echo $avclass;
    ?>
" title="<?php 
    printf(__('Rated %s out of 5', 'woocommerce'), $average);
    ?>
">
            <div class="star-rating"></div>
            <div class="star-bg"></div>
		</div>
		<a href="#reviews" class="woocommerce-review-link" rel="nofollow"><?php