</div>
				
				<span class="hover-number"></span>
				
			<?php 
    } else {
        ?>
			
				<span class="rating"><?php 
        echo esc_html(Bunyad::reviews()->get_user_rating(null, $type)) . ($type == 'percent' ? ' %' : '');
        ?>
</span>
				
				<span class="hover-number"></span>
			
				<div class="rating-bar"><span class="bar" style="width: <?php 
        echo Bunyad::reviews()->get_user_rating(null, 'percent');
        ?>
%;"></span></div>			
			
			<?php 
    }
    ?>
		</li>
	
	<?php 
}
?>
	
	</ul>
</section>
    /**
     * Filter callback: Add theme's default review snippet
     * 
     * @param string $content
     */
    public function add_review_snippet($content, $type = null)
    {
        if (!Bunyad::posts()->meta('reviews')) {
            return $content;
        }
        // star or bar rating?
        if ($type == 'stars') {
            if (Bunyad::options()->review_style == 'stars') {
                return '
					<span class="star-rating">
						<span class="main-stars"><span style="width: ' . Bunyad::reviews()->decimal_to_percent(Bunyad::posts()->meta('review_overall')) . '%;">
							<strong class="rating">' . Bunyad::posts()->meta('review_overall') . '</strong></span>
						</span>
					</span>';
            }
            return $content;
        } else {
            if (Bunyad::options()->review_style == 'bar') {
                return '<div class="review rate-number"><span class="progress"></span><span>' . Bunyad::posts()->meta('review_overall') . '</span></div>';
            }
        }
        return $content;
    }