<?php
/*
	WPRichSnippets - SoftwareApplication aggregate review 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_SoftwareApplication_aggregate( $id = null ) {
	
	global $post;
    
	If ( ! isset($id) ) $id = $post->ID;
		
	// define $box
	$box = '';
	
	// get box settings
	$template = wprs_template($id);

	$box .= '<div class="tab-pane active" id="item_square">';
			
		$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>'. __('User Rating', 'wprs') .'</span></b></li>';
								$box .= '<li>'.$template['user_star_aggregate'].'</li>';
								$box .= '<li>'.$template['score_user'].'</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_user_average'] !='') {$box .= '<li>'.$template['percentage_user_average'].'</li>';}
								$box .= '<li>'.$template['userrating_review_count'].'</li>';
							$box .= '</ul>';
						$box .= '</div>';
					
					$box .= '</div>';

					$box .= '<hr />';
					
					/*
					$box .= '<div class="row">';
						$box .= '<div class="summary col-md-12">';
							$box .= $template['description'];
							$box .= $template['links'];
						$box .= '</div>';
					$box .= '</div>';
					*/
	
				$box .= '</div>';
		
			$box .= '</div>';
		$box .= '</div>';


	$box .= '</div>';
	

	return apply_filters('wprs_template_SoftwareApplicationt_aggregate', $box);
	
}

/* to do

<div itemprop="brand" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">[Brand]</span></div>
<div itemprop="manufacturer" itemscope itemtype="http://schema.org/Organization">
Manufactured by: <span itemprop="name">[Manufacturer]</span></div>
<div>Model: <span itemprop="model">[Model]</span></div>
*/

