{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
{$SECTION_TITLE} {$LEVEL_SEPARATOR}{$current.TITLE}
{$PHOTO}
{if isset($previous) }{/if} {if isset($next) }{/if}
{$ELEMENT_CONTENT}
{if isset($U_SLIDESHOW_STOP) }

[ {'slideshow_stop'|@translate}]

{/if}
{if isset($COMMENT_IMG)}

{$COMMENT_IMG}

{/if}
{'Visits'|@translate} {$INFO_VISITS}
{if isset($related_tags)}
{'Tags'|@translate}: {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}
{/if}
{if $display_info.average_rate and isset($rate_summary) }
{'Average rate'|@translate}: {assign var='rate_text' value='%.2f (rated %d times)'|@translate } {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }
{if isset($rating)}
{assign var="ratingExploded" value=$rate_summary.average|@explode:'.'} {foreach from=$rating.marks item=mark name=rate_loop} {if !$smarty.foreach.rate_loop.first} | {/if} {/foreach} {combine_script id='rating' load='header' require='core.scripts' path='themes/default/js/rating.js'} {footer_script} makeNiceRatingForm({ldelim} rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id}, ratingSummaryText: "{'Average rate'|@translate}: {'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim}); {/footer_script}
{else}
{assign var="ratingExploded" value=$rate_summary.average|@explode:'.'} {if $ratingExploded[1]>49}{/if}
{/if}
{/if}
{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}