Changeset 12796 for trunk/themes
- Timestamp:
- Dec 27, 2011, 6:26:44 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/picture_content.tpl
r11062 r12796 1 {if isset($high)} 2 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 3 <a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')"> 1 <img src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" 2 {if isset($COMMENT_IMG)} 3 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 4 {/if}> 5 {if count($current.available_derivative_types)>1} 6 {footer_script}{literal} 7 function changeImgSrc(url,type) 8 { 9 var theImg = document.getElementById("theMainImage"); 10 if (theImg) 11 { 12 theImg.removeAttribute("width");theImg.removeAttribute("height"); 13 theImg.src = url; 14 } 15 document.cookie = 'picture_deriv=' + type; 16 } 17 {/literal}{/footer_script} 18 <p> 19 {foreach from=$current.available_derivative_types item=derivative_type} 20 <a onclick="changeImgSrc('{$current.derivatives[$derivative_type]->get_url()|@escape:javascript}', '{$derivative_type}')" title="{$current.derivatives[$derivative_type]->get_size_hr()}">{$derivative_type}</a> 21 {/foreach} 22 </p> 4 23 {/if} 5 <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" id="theMainImage"6 {if isset($COMMENT_IMG)}7 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"8 {/if}>9 {if isset($high) }10 </a>11 <p>{'Click on the photo to see it in high definition'|@translate}</p>12 {/if}
Note: See TracChangeset
for help on using the changeset viewer.