{include file='include/colorbox.inc.tpl'} {combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'} {combine_script id='picture-js' load='async' require='jquery,jquery.colorbox' path='themes/greydragon/js/theme.photo.js'} {assign var=overlay_mode value="off"} {if $greydragon.p_pict_tab_mode == "txt-with-overlay" || $greydragon.p_pict_tab_mode == "ico-with-overlay"}{$overlay_mode="on"}{/if} {assign var=ico_mode value="off"} {if $greydragon.p_pict_tab_mode == "ico-tab-open" || $greydragon.p_pict_tab_mode == "ico-tab-close" || $greydragon.p_pict_tab_mode == "ico-with-overlay"}{$ico_mode="on"}{/if} {if isset($MENUBAR)}{$MENUBAR}{/if}
{if isset($errors) or not empty($infos)} {include file='infos_errors.tpl'} {/if} {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
{$SECTION_TITLE}{$LEVEL_SEPARATOR}

{$current.TITLE}

{$PHOTO}
{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
{if isset($current.unique_derivatives) && count($current.unique_derivatives)>1} {footer_script require='jquery'}{literal} function changeImgSrc(url,typeSave,typeMap) { var theImg = document.getElementById("theMainImage"); if (theImg) { theImg.removeAttribute("width");theImg.removeAttribute("height"); theImg.src = url; theImg.useMap = "#map"+typeMap; } jQuery('#derivativeSwitchBox .switchCheck').css('visibility','hidden'); jQuery('#derivativeChecked'+typeMap).css('visibility','visible'); document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; } (SwitchBox=window.SwitchBox||[]).push("#derivativeSwitchLink", "#derivativeSwitchBox"); {/literal}{/footer_script} {strip} {'Photo sizes'|@translate}
{'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_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*}
{**} {assign var=def_tab value="{$greydragon.p_pict_tab_default}"} {if !isset($metadata) && $def_tab == 'exif'}{$def_tab="desc"}{/if} {if !isset($COMMENT_COUNT) && $def_tab == 'comments'}{$def_tab="desc"}{/if} {if !isset( $COMMENT_IMG ) && $def_tab == 'desc'}{$def_tab="info"}{/if} {if $greydragon.p_pict_tab_mode !== "hide" && $overlay_mode == "off"} {/if} {if $greydragon.p_pict_tab_mode !== "hide"}
{include file='picture_tab_content.tpl'} {*GD_META_CONTENT*}
{/if}
{* if isset($greydragon.image_preload)} { /if *} {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}