From 753f58d6a966a1051dcd62a3eeab8fc18798bcac Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 27 Dec 2011 05:26:44 +0000 Subject: feature 2541 multisize - core implementation + usage on most public/admin pages - still to do: sync process, upload, gui/persistence for size parameters, migration script, center of interest ... git-svn-id: http://piwigo.org/svn/trunk@12796 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/picture_content.tpl | 35 +++++++++++++++++++---------- 1 file changed, 23 insertions(+), 12 deletions(-) (limited to 'themes/default/template') diff --git a/themes/default/template/picture_content.tpl b/themes/default/template/picture_content.tpl index 53681b585..a4a9b4760 100644 --- a/themes/default/template/picture_content.tpl +++ b/themes/default/template/picture_content.tpl @@ -1,12 +1,23 @@ -{if isset($high)} -{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} - -{/if} - {$ALT_IMG} -{if isset($high) } - -

{'Click on the photo to see it in high definition'|@translate}

-{/if} +get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" +{if isset($COMMENT_IMG)} + title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" +{/if}> +{if count($current.available_derivative_types)>1} +{footer_script}{literal} +function changeImgSrc(url,type) +{ + var theImg = document.getElementById("theMainImage"); + if (theImg) + { + theImg.removeAttribute("width");theImg.removeAttribute("height"); + theImg.src = url; + } + document.cookie = 'picture_deriv=' + type; +} +{/literal}{/footer_script} +

+{foreach from=$current.available_derivative_types item=derivative_type} +{$derivative_type} +{/foreach} +

+{/if} \ No newline at end of file -- cgit v1.2.3