{config_load file="lang/$language/lang_$language.conf" section="reviews"}
{config_load file="lang/$language/lang_$language.conf" section="antispam"}

{if $SUCCESS_MSG}
	<div class="messageStackSuccess">{$SUCCESS_MSG}</div>
{elseif $ERROR_MSG}
	<div class="headerError">{$ERROR_MSG}</div>
{else}
	{if $module_content}
	<div itemprop="review" itemscope itemtype="http://schema.org/Review">
	<h2><span class="fr fs85">{$AVERAGE}</span>{#heading_reviews#}</h2> 
	{foreach name=aussen item=module_data from=$module_content} 
	<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
	<meta itemprop="worstRating" content = "0">
		<div><b>{#text_author#}</b> <span>{$module_data.AUTHOR}</span> ({$module_data.DATE})</div>
		<b>{#text_rating#}</b> {$module_data.RATING} (<span class="fs85" itemprop="ratingValue">{$module_data.RATINGNUM}</span>/<span class="fs85" itemprop="bestRating">5</span>)<br>
		<span itemprop="description">{#text_text#} {$module_data.TEXT}</span>
		<br><br>
	</div>
	{/foreach}<br>
	</div>
	{/if}
{/if}
{if $FORM_ACTION_REVIEW !=''}
	{$FORM_ACTION_REVIEW}
		<b>{#text_author#}</b> {$AUTHOR}<br><br>
		<b>{#text_input#}</b><br>
		{$INPUT_TEXT}<br>
		<div class="fs85">{#text_note#}</div><br>
		{if $INPUT_RATING}
		<b class="left">{#text_rating#}</b> 
		<br>
		<div class="votingstarsrev">{$INPUT_RATING}</div>
		<br>
		{/if}
		{if $ANTISPAMCODEACTIVE == 'true'}
			<b>{#text_antispam#}</b>
			{$ANTISPAMCODEQUESTION}<br>
			<b>{#text_antispam_input#}</b>
			{$INPUT_ANTISPAMCODE}
			{$ANTISPAMCODEID}
			<br>
		{/if}
		{$BUTTON_SUBMIT}<br><br>
	{$FORM_END}
{/if}