Changeset 12873 for trunk/themes/default/template
- Timestamp:
- Jan 11, 2012, 6:03:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/index.tpl
r12764 r12873 5 5 <ul class="categoryActions"> 6 6 {if !empty($image_orders)} 7 <li>{'Sort order'|@translate}: {strip} 8 <select onchange="document.location = this.options[this.selectedIndex].value;"> 9 {foreach from=$image_orders item=image_order} 10 <option value="{$image_order.URL}"{if $image_order.SELECTED} selected="selected"{/if}>{$image_order.DISPLAY}</option> 7 <li>{strip}<a href="javascript:toggleSortOrderBox()" id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 8 <span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span> 9 </a> 10 <div id="sortOrderBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()"> 11 {'Sort order'|@translate}: 12 {foreach from=$image_orders item=image_order}<br> 13 {if $image_order.SELECTED} 14 <span>{$image_order.DISPLAY}</span> 15 {else} 16 <a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a> 17 {/if} 11 18 {/foreach} 12 </select> 13 {/strip}</li> 19 </div> 20 {footer_script}{literal} 21 function toggleSortOrderBox() 22 { 23 var elt = document.getElementById("sortOrderBox"), 24 ePos = document.getElementById("sortOrderLink"); 25 if (elt.style.display==="none") 26 { 27 elt.style.position = "absolute"; 28 elt.style.left = (ePos.offsetLeft) + "px"; 29 elt.style.top = (ePos.offsetTop + ePos.offsetHeight) + "px"; 30 elt.style.display=""; 31 } 32 else 33 elt.style.display="none"; 34 } 35 {/literal}{/footer_script} 36 {/strip}</li> 14 37 {/if} 15 38 {if isset($favorite)}
Note: See TracChangeset
for help on using the changeset viewer.