{combine_script id='core.switchbox' load='async' require='jquery' path='themes/versa/js/switchbox.js'}
{if isset($errors) or not empty($infos)} {include file='infos_errors.tpl'} {/if} {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
{combine_script id='pict.touch' load='footer' require='jquery' path='themes/versa/js/jquery.mobile-events.js'} {combine_script id='pict.swipe' load='footer' require='jquery' path='themes/versa/js/imagegestures.js'} {$ELEMENT_CONTENT} {if $DISPLAY_NAV_THUMB} {/if}
get_size_css(),0,strpos($current.selected_derivative->get_size_css(),";")))}">
    {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
  • {$PHOTO}
  • {if isset($current.unique_derivatives) && count($current.unique_derivatives)>1} {combine_script id='pict.imgsize' load='footer' require='jquery' path='themes/versa/js/imagesize.js'} {strip}
  • {'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)} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}

    {'Original'|@translate}

    {/if}
  • {/strip} {/if} {strip}{if isset($U_METADATA)}
  • {'Show file metadata'|@translate}
  • {/if}{/strip} {strip}{if isset($U_SLIDESHOW_START)}
  • {'slideshow'|@translate}
  • {/if}{/strip} {strip}{if isset($current.U_DOWNLOAD)}
  • {'Download'|@translate}
  • {/if}{/strip} {if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {strip}{if isset($favorite)}
  • {'Favorites'|@translate}
  • {/if}{/strip} {strip}{if isset($U_SET_AS_REPRESENTATIVE)}
  • {'representative'|@translate}
  • {/if}{/strip} {strip}{if isset($U_PHOTO_ADMIN)}
  • {'Edit'|@translate}
  • {/if}{/strip} {strip}{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}
  • {'Caddie'|@translate}
  • {/if}{/strip}{*caddie management END*}
{**}
{$SECTION_TITLE}{$LEVEL_SEPARATOR}

{$current.TITLE}

{**}
get_size_css(),0,strpos($current.selected_derivative->get_size_css(),";")))}"> {if isset($U_SLIDESHOW_STOP)}

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

{$COMMENT_IMG}

{/if}
{strip} {if $display_info.author and isset($INFO_AUTHOR)}
{'Author'|@translate}
{$INFO_AUTHOR}
{/if} {if $display_info.created_on and isset($INFO_CREATION_DATE)}
{'Created on'|@translate}
{$INFO_CREATION_DATE}
{/if} {if $display_info.posted_on}
{'Posted on'|@translate}
{$INFO_POSTED_DATE}
{/if} {if $display_info.dimensions and isset($INFO_DIMENSIONS)}
{'Dimensions'|@translate}
{$INFO_DIMENSIONS}
{/if} {if $display_info.file}
{'File'|@translate}
{$INFO_FILE}
{/if} {if $display_info.filesize and isset($INFO_FILESIZE)}
{'Filesize'|@translate}
{$INFO_FILESIZE}
{/if} {if $display_info.tags and 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.categories and isset($related_categories)}
{'Albums'|@translate}
    {foreach from=$related_categories item=cat}
  • {$cat}
  • {/foreach}
{/if} {if $display_info.visits}
{'Visits'|@translate}
{$INFO_VISITS}
{/if} {if $display_info.rating_score and isset($rate_summary)}
{'Rating score'|@translate}
{if $rate_summary.count} {$rate_summary.score} ({$rate_summary.count|@translate_dec:'%d rate':'%d rates'}) {else} {'no rate'|@translate} {/if}
{/if} {if isset($rating)}
{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 isset($rating.USER_RATE) && $mark==$rating.USER_RATE} {else} {/if} {/foreach} {strip}{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) {ldelim} if (rating.count == 1) {ldelim} e.innerHTML = "({'%d rate'|@translate|@escape:'javascript'})".replace( "%d", rating.count); } else {ldelim} e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); } {rdelim} {rdelim}{rdelim} ); {/footer_script} {/strip}
{/if} {if $display_info.privacy_level and isset($available_permission_levels)}
{'Who can see this photo?'|@translate}
{$available_permission_levels[$current.level]} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {footer_script require='jquery'}{strip} function setPrivacyLevel(id, level){ (new PwgWS('{$ROOT_URL}')).callService( "pwg.images.setPrivacyLevel", { image_id:id, level:level}, { method: "POST", onFailure: function(num, text) { alert(num + " " + text); }, onSuccess: function(result) { jQuery('#privacyLevelBox .switchCheck').css('visibility','hidden'); jQuery('#switchLevel'+level).prev('.switchCheck').css('visibility','visible'); jQuery('#privacyLevelLink').text(jQuery('#switchLevel'+level).text()); } } ); } (SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox"); {/strip}{/footer_script}
{/if} {/strip}
{**} {strip}{if isset($U_METADATA)}
{if isset($metadata)}
{foreach from=$metadata item=meta} {foreach from=$meta.lines item=value key=label}
{$label}
{$value}
{/foreach} {/foreach}
{/if}
{/if}{/strip}{**} {if isset($COMMENT_COUNT)}

{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}

{if isset($comments)}
{if (($COMMENT_COUNT > 2) || !empty($navbar))}
{if $COMMENT_COUNT > 2} {$COMMENTS_ORDER_TITLE} {/if} {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
{/if} {include file='comment_list.tpl'}
{/if} {if isset($comment_add)}

{'Add a comment'|@translate}

{if $comment_add.SHOW_AUTHOR}

{/if} {if $comment_add.SHOW_EMAIL}

{/if}

{/if}
{/if}{**}
{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}