{combine_css path="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"} {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} Toggle navigation {$SECTION_TITLE}{$LEVEL_SEPARATOR}{$current.TITLE} [{$PHOTO}] {if isset($current.unique_derivatives) && count($current.unique_derivatives)>1} {footer_script require='jquery'}{strip} 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('.derivative-li').removeClass('active'); jQuery('#derivative'+typeMap).addClass('active'); document.cookie = 'picture_deriv='+typeSave+';path={$COOKIE_PATH}'; } {/strip}{/footer_script} {'Photo sizes'|@translate} {foreach from=$current.unique_derivatives item=derivative key=derivative_type} {$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} {/if} {if isset($U_SLIDESHOW_START)} {'Slideshow'|@translate} {/if} {if isset($U_METADATA)} {'Show file metadata'|@translate} {/if} {if isset($current.U_DOWNLOAD)} {if empty($current.formats)} {'Download'|@translate} {else} {'Download'|@translate} {foreach from=$current.formats item=format} {$format.label} ({$format.filesize}) {/foreach} {/if} {* has formats *} {/if} {if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {if isset($favorite)} {'Favorites'|@translate} {/if} {if isset($U_SET_AS_REPRESENTATIVE)} {'representative'|@translate} {/if} {if isset($U_PHOTO_ADMIN)} {'Edit'|@translate} {/if} {if isset($U_CADDIE)} {footer_script}{strip} function addToCadie(aElement, rootUrl, id) { if (aElement.disabled) return; aElement.disabled=true; var y = new PwgWS(rootUrl); y.callService("pwg.caddie.add", {literal}{image_id: id}{/literal}, { onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, onSuccess: function(result) { aElement.disabled = false; } }); } {/strip}{/footer_script} {'Caddie'|@translate} {/if} {include file='infos_errors.tpl'}