<?php
// Reviews summary stars
$reviews_summary = '';
if ( !in_array($post_options['layout'], array('accordion_1', 'accordion_2', 'list')) && $post_options['reviews'] && seohub_get_custom_option('show_reviews', null, $post_data['post_id'], $post_data['post_type'])=='yes' ) {	//!!!!! Check option in the specified post
	$avg_author = $post_data['post_reviews_'.(seohub_get_theme_option('reviews_first')=='author' ? 'author' : 'users')];
	if ($avg_author > 0) {
		$reviews_summary .= '<div class="post_rating reviews_summary blog_reviews">'
			. '<div class="criteria_summary criteria_row">' . trim(seohub_reviews_get_summary_stars($avg_author, false, false, 5)) . '</div>'
			. '</div>';
	}
}
?>
