Changeset 31389 for extensions/stripped/template/picture.tpl
- Timestamp:
- Mar 2, 2016, 4:13:43 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/template/picture.tpl
r27316 r31389 1 {combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'} 2 1 3 {assign var=derivative value=$pwg->derivative($stripped.imageSize, $current.src_image)} 2 4 {assign var='size' value=$derivative->get_size()} … … 35 37 {/if}{/strip} 36 38 {strip}{if isset($current.U_DOWNLOAD)} 37 <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'Download'|@translate}</a></li>39 <li><a id="downloadSwitchLink" href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'Download'|@translate}</a></li> 38 40 {/if}{/strip} 41 42 {if !empty($current.formats)} 43 {footer_script require='jquery'}{literal} 44 jQuery().ready(function() { 45 jQuery("#downloadSwitchLink").removeAttr("href"); 46 47 (window.SwitchBox=window.SwitchBox||[]).push("#downloadSwitchLink", "#downloadSwitchBox"); 48 }); 49 {/literal}{/footer_script} 50 51 <div id="downloadSwitchBox" class="switchBox"> 52 <div class="switchBoxTitle">{'Download'|translate} - {'Formats'|translate}</div> 53 <ul> 54 {foreach from=$current.formats item=format} 55 <li><a href="{$format.download_url}" rel="nofollow">{$format.label}<span class="downloadformatDetails"> ({$format.filesize})</span></a></li> 56 {/foreach} 57 </ul> 58 </div> 59 {/if} {* has formats *} 60 39 61 {strip}{if isset($PLUGIN_PICTURE_ACTIONS)} 40 62 <li class="plugin_buttons plugin_buttons_group1">{$PLUGIN_PICTURE_ACTIONS}</li>
Note: See TracChangeset
for help on using the changeset viewer.