{include file='infos_errors.tpl'}
{if isset($MENUBAR)}
{if #menuAnimated# == "noswitch"} {$MENUBAR} {else} {$MENUBAR} {/if}
{else}
{/if}
{$PHOTO}

{$SECTION_TITLE|cat:$LEVEL_SEPARATOR|cat:$current.TITLE|replace:$LEVEL_SEPARATOR:" | "}

{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} {if $DISPLAY_NAV_THUMB} {if isset($previous) } {/if} {if isset($next) } {/if} {/if}
 
{$ELEMENT_CONTENT} {if isset($COMMENT_IMG)}

{$COMMENT_IMG}

{else}

 

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

[ {'stop the slideshow'|@translate} ]

{/if}
{assign var='display_info_panel' value=false} {foreach from=$display_info item=displayitem} {if $displayitem} {assign var='display_info_panel' value=true} {/if} {/foreach} {if isset($U_SLIDESHOW_START) or isset($U_METADATA) or count($current.unique_derivatives)>1 or isset($current.U_DOWNLOAD) or isset($favorite) or !empty($U_SET_AS_REPRESENTATIVE) or isset($U_ADMIN) or isset($U_CADDIE) } {if count($current.unique_derivatives)>1}
{'Photo sizes'|@translate}
{foreach from=$current.unique_derivatives item=derivative key=derivative_type} get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ {$derivative->get_type()|@translate} ({$derivative->get_size_hr()})
{/foreach} {if isset($U_ORIGINAL)} {'Original'|@translate} {/if}
{/if}
{if count($current.unique_derivatives)>1} {/if} {if isset($U_SLIDESHOW_START)} {/if} {if isset($U_METADATA)} {/if} {if isset($current.U_DOWNLOAD)} {/if} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {if isset($favorite)} {/if} {if isset($U_SET_AS_REPRESENTATIVE)} {/if} {if isset($U_ADMIN)} {/if} {if isset($U_CADDIE) }{*caddie management BEGIN*} {footer_script} {literal}function addToCadie(aElement, rootUrl, id) { if (aElement.disabled) return; aElement.disabled=true; var y = new PwgWS(rootUrl); y.callService( "pwg.caddie.add", {image_id: id} , { onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, onSuccess: function(result) { aElement.disabled = false; } } ); }{/literal} {/footer_script} {/if}{*caddie management END*} {footer_script} $('div.randomButtons a.button').addClass('sTipOnRight'); {/footer_script}
{/if}
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
{if $display_info_panel}
 
{if $display_info.author or $display_info.created_on or $display_info.posted_on} {assign var='colspan' value=6} {if $display_info.author} {assign var='colspan' value=`$colspan-2`} {/if} {if $display_info.created_on} {assign var='colspan' value=`$colspan-2`} {/if} {if $display_info.posted_on} {assign var='colspan' value=`$colspan-2`} {/if} {if $colspan!=0} {/if} {/if} {if $display_info.dimensions or $display_info.file or $display_info.filesize} {assign var='colspan' value=6} {if $display_info.dimensions} {assign var='colspan' value=`$colspan-2`} {/if} {if $display_info.file} {assign var='colspan' value=`$colspan-2`} {/if} {if $display_info.filesize} {assign var='colspan' value=`$colspan-2`} {/if} {if $colspan!=0} {/if} {/if} {if isset($related_tags) and $display_info.tags} {/if} {if isset($related_categories) and $display_info.categories} {/if} {if $display_info.visits} {if $display_info.privacy_level and isset($available_permission_levels)} {/if} {/if} {if (isset($rate_summary) or isset($rating)) and $display_info.rating_score} {if isset($rate_summary)} {else} {/if} {if isset($rating)} {else} {/if} {/if}
         
{'Author'|@translate} {if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}{'Created on'|@translate} {if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}{'Posted on'|@translate} {$INFO_POSTED_DATE} 
{'Dimensions'|@translate} {if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS|@replace:"*":"x"}{else}{'N/A'|@translate}{/if}{'File'|@translate} {$INFO_FILE}{'Filesize'|@translate} {if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if} 
 
{'Tags'|@translate} {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} {$tag.name}{/foreach}
 
{'Albums'|@translate} {foreach from=$related_categories item=cat name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} {$cat} {/foreach}
 
{'Visits'|@translate} {$INFO_VISITS}{'Who can see this photo?'|@translate}
{foreach from=$available_permission_levels item=label key=level} {$label}
{/foreach}
{'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.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}
  {foreach from=$rating.marks item=mark name=rate_loop} {if !$smarty.foreach.rate_loop.first} | {/if} {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} {else} {/if} {/foreach} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} {footer_script} var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, onSuccess : function(rating) {ldelim} var e = document.getElementById("updateRate"); if (e) e.innerHTML = "{'Update your rating'|@translate|@escape:'javascript'}"; e = document.getElementById("ratingScore"); if (e) e.innerHTML = rating.score; e = document.getElementById("ratingCount"); if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); {rdelim}{rdelim} ); {/footer_script}
 
{/if} {if isset($metadata)} {foreach from=$metadata item=meta key=id}
 
{if count($meta.lines)>0 and !array_key_exists('', $meta.lines)} {foreach from=$meta.lines item=value key=label name=metaloop} {if ($smarty.foreach.metaloop.iteration-1) % #metaNumCols# == 0} {if !$smarty.foreach.metaloop.first}{/if} {if !$smarty.foreach.metaloop.last}{/if} {/if} {/foreach}
{$label|@translate} {$value}
{else} {assign var='empty' value=''} {$meta.lines.$empty} {/if}
{/foreach} {/if} {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) }
 
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} {if isset($comment_add) or isset($comments)} {if isset($comment_add)} {if isset($comments)} {/if} {if isset($comments)} {if isset($comment_add)} {/if}
{else} {/if}

{'Add a comment'|@translate}

{if $comment_add.SHOW_AUTHOR} {/if}
{'Author'|@translate}
{else} {/if}
{include file='comment_list.tpl' comment_separator=true}
{/if}
{/if} {*comments*}
{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}