{combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'} {assign var=derivative value=$pwg->derivative($stripped_responsive.imageSize, $current.src_image)} {assign var='size' value=$derivative->get_size()} {literal} {/literal} {include file='infos_errors.tpl'}
{if ($GMaps_loaded)}{/if}
{$SECTION_TITLE} {if ($stripped_responsive.showTitleOnBrowsePath)}{$LEVEL_SEPARATOR}{$current.TITLE}{/if}
{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
 
{assign var='display_description_tab' value=false} {if (($stripped_responsive.imageCaption != 'description') && isset($COMMENT_IMG))} {assign var='display_description_tab' value=true} {/if} {assign var='showTitle' value=false} {if isset($COMMENT_IMG) and $stripped_responsive.imageCaption == 'description'} {assign var='showTitle' value=true} {/if} {if isset($current.TITLE) and $stripped_responsive.imageCaption == 'title'} {assign var='showTitle' value=true} {/if}
 
{$ELEMENT_CONTENT}
{if $showTitle }
{if ($stripped_responsive.imageCaption == 'description' )} {$COMMENT_IMG} {/if} {if ($stripped_responsive.imageCaption == 'title' )} {$current.TITLE} {/if}
{/if}
{assign var='display_info_panel' value=false} {assign var='display_count' value='0'} {if $display_info.author}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.created_on}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.posted_on}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.dimensions}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.file}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.filesize}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.categories}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.visits}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.rating_score and isset($rate_summary) }{assign var='display_count' value=$display_count+1}{/if} {if isset($rating)}{assign var='display_count' value=$display_count+1}{/if} {if $display_info.privacy_level and isset($available_permission_levels) }{assign var='display_count' value=$display_count+1}{/if} {if (($display_count > 0) && ((isset($U_ADMIN)) || ($stripped_responsive.infoTabAdminOnly == false)))} {assign var='display_info_panel' value=true} {/if}
    {if $display_description_tab}
  • {'Description'|@translate}
  • {/if} {if ($display_info.tags && (isset($related_tags) || ($usertags)))}
  • {'Tags'|@translate}
  • {/if} {if isset($metadata)} {foreach from=$metadata item=meta key=id}
  • {$meta.TITLE}
  • {/foreach} {/if} {if $display_info_panel}
  • {'Information'|@translate}
  • {/if} {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) }
  • {$COMMENT_COUNT|translate_dec:'%d comment':'%d comments'}
  • {/if}
{if $display_description_tab}
{$COMMENT_IMG}
{/if} {if ($display_info.tags && (isset($related_tags) || ($usertags)))}
{if ($usertags)}
{/if} {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} {$tag.name} {/foreach} {if ($usertags)}
{/if}
{/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} {/foreach}
{$label|@translate} {$value}
{else} {assign var='empty' value=''} {$meta.lines.$empty} {/if}
{/foreach} {/if} {if $display_info_panel}
{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}, updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); {/footer_script} {/strip}
{/if} {/strip}
{if $display_info.privacy_level and isset($available_permission_levels)} {/if}
{'Who can see this photo?'|@translate} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {footer_script} {literal}function setPrivacyLevel(selectElement, rootUrl, id, level) { selectElement.disabled = true; var y = new PwgWS(rootUrl); y.callService( "pwg.images.setPrivacyLevel", {image_id: id, level:level} , { method: "POST", onFailure: function(num, text) { selectElement.disabled = false; alert(num + " " + text); }, onSuccess: function(result) { selectElement.disabled = false; } } ); }{/literal} {/footer_script}
{/if} {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) }
{if !empty($COMMENT_NAV_BAR)} {/if} {if isset($comment_add)}

{'Add a comment'|@translate}

{if $comment_add.SHOW_AUTHOR}

{/if} {if $comment_add.SHOW_EMAIL}

{/if} {if $comment_add.SHOW_WEBSITE}

{/if}

{/if} {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} {if isset($comments)}
{if isset($COMMENT_LIST)} {$COMMENT_LIST} {else} {include file='comment_list.tpl'} {/if}
{/if}
{/if}
{if isset($stripped_responsive.imagePreload)} {/if} {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}