Changeset 12855 for trunk/themes
- Timestamp:
- Jan 5, 2012, 11:06:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/picture_content.tpl
r12797 r12855 3 3 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 4 4 {/if}> 5 {if count($current. available_derivative_types)>1}5 {if count($current.unique_derivatives)>1} 6 6 {footer_script}{literal} 7 7 function changeImgSrc(url,type,display) … … 35 35 <a id="derivativeSwitchLink" onclick="toggleDerivativeSwitchBox()" style="cursor:pointer">{$current.selected_derivative->get_type()|@translate}</a> 36 36 <div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none"> 37 {foreach from=$current. available_derivative_types item=derivative_type}38 <a onclick="changeImgSrc('{$current.derivatives[$derivative_type]->get_url()|@escape:javascript}', '{$derivative_type}', '{$derivative_type|@translate|@escape:javascript}')" style="cursor:pointer">{$derivative_type|@translate} ({$current.derivatives[$derivative_type]->get_size_hr()})</a><br>37 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 38 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}', '{$derivative_type}', '{$derivative->get_type()|@translate|@escape:javascript}')" style="cursor:pointer">{$derivative->get_type()|@translate} ({$derivative->get_size_hr()})</a><br> 39 39 {/foreach} 40 {if isset($U_ORIGINAL)} 41 <a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" title="{'Click on the photo to see it in high definition'|@translate}">{'original'|@translate}</a> 42 {/if} 40 43 </div> 41 44 {/if}
Note: See TracChangeset
for help on using the changeset viewer.