{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} {include file='picture_nav_keys.tpl'|@get_extent:'picture_nav_keys'}
{$SECTION_TITLE} {$LEVEL_SEPARATOR}{$current.TITLE}
{$PHOTO}
{footer_script require='jquery'}{literal} jQuery("#linkPrev img, #linkNext img").css("opacity", 0); jQuery("#linkPrev").mouseenter(function() { jQuery("#linkPrev img").css("opacity", 1); }); jQuery("#linkPrev").mouseleave(function() { jQuery("#linkPrev img").css("opacity", 0); }); jQuery("#linkNext").mouseenter(function() { jQuery("#linkNext img").css("opacity", 1); }); jQuery("#linkNext").mouseleave(function() { jQuery("#linkNext img").css("opacity", 0); }); {/literal}{/footer_script}
{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.rating_score and isset($rate_summary) }
{'Rating score'|@translate}: {if $rate_summary.count} {$rate_summary.score} ({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)}) {else} {'no rate'|@translate} {/if}
{if isset($rating)}
{assign var="ratingExploded" value=$rate_summary.score|@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: "{'Rating score'|@translate}: %.2f ({'%d rates'|@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}