<?php
/*
	WPRichSnippets - Article Rating template
 
	WARNING: This file is part of the core WPRichSnippets plugin. DO NOT edit
	this file under any circumstances.
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

function wprs_template_Article_rating( $id = null ) {
	
	global $post;
    
	If ( ! isset($id) ) $id = $post->ID;
		
	// define $box
	$box = '';
	
	// get box settings
	$template = wprs_template($id);
	
	$box .= '<div class="wprs_container">';
	$box .= '<div class="row">';
		
		$box .= '<div id="wprs_square">';
			
			$box .= $template['media'];
			
			$box .= '<div class="row">';
				$box .= '<div class="col-xs-4 col-sm-4 col-md-4">';
					$box .= '<ul>';
						$box .= '<li><b><span>'. apply_filters('wprs_text_editor_rating', __('Editor Rating', 'wprs')) .'</span></b></li>';
						$box .= '<li>'.$template['editor_star_rating'].'</li>';
						$box .= '<li>'.$template['score_editor'].'</li>';
					$box .= '</ul>';
				$box .= '</div>';
				$box .= '<div class="col-xs-4 col-sm-4 col-md-4">'.$template['price'].'</div>';
				
				$box .= '<div class="col-xs-4 col-sm-4 col-md-4">';
					$box .= '<ul class="al-right">';
						if ($template['percentage_editor'] !='') {$box .= '<li>'.$template['percentage_editor'].'</li>';}
					$box .= '</ul>';
				$box .= '</div>';
			$box .= '</div>';

			$box .= '<hr />';
			
			$box .= '<div class="row">';
				$box .= '<div class="col-md-6 wprs_mb_10">';
					$box .= '<ul>';
						$box .= '<li>'.$template['itemprop_name'].'</li>';
						$box .= '<li class="'.$template['reviewed_by_class'].'">'.$template['author'].'</li>';		
						$box .= '<li class="'.$template['review_date_class'].'">'.$template['date_published'].'</li>';
						$box .= '<li class="'.$template['review_dmodified_class'].'">'.$template['date_modified'].'</li>';
					$box .= '</ul>';
				$box .= '</div>';
				$box .= '<div class="col-md-6">'.$template['criteria_editor'].'</div>';
			$box .= '</div>';

			$box .= '<hr />';
			
			/*
			$box .= '<div class="row">';
				$box .= '<div class="col-md-12">';
					$box .= $template['description'];
					$box .= $template['links_mini'];		
				$box .= '</div>';
			$box .= '</div>';
			*/
		
		$box .= '</div>';
			
	$box .= '</div>';
	$box .= '</div>';
	
	// remove links filter
	// it has been added already via the template
	remove_filter('wprs_box_footer', 'wprs_display_links');
	
	return apply_filters('wprs_template_Article_rating', $box);
	
}
