Changeset 13729 for trunk/themes/default/template
- Timestamp:
- Mar 25, 2012, 9:20:13 PM (13 years ago)
- Location:
- trunk/themes/default/template
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/template/index.tpl
r13683 r13729 8 8 <span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span> 9 9 </a> 10 <div id="sortOrderBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox()">10 <div id="sortOrderBox" class="switchBox" style="display:none; text-align:left" onclick="toggleSortOrderBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleSortOrderBox()"> 11 11 <div class="switchBoxTitle">{'Sort order'|@translate}</div> 12 12 {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if} 13 13 {if $image_order.SELECTED} 14 <span >✔{$image_order.DISPLAY}</span>14 <span class="switchCheck">✔ </span><span class="switchSelected">{$image_order.DISPLAY}</span> 15 15 {else} 16 <a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a>16 <a href="{$image_order.URL}" class="switchUnselected" rel="nofollow">{$image_order.DISPLAY}</a> 17 17 {/if} 18 18 {/foreach} … … 39 39 <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> 40 40 </a> 41 <div id="derivativeSwitchBox" style="display:none; text-align:left" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox()">41 <div id="derivativeSwitchBox" class="switchBox" style="display:none; text-align:left" onclick="toggleImageDerivativesBox()" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleImageDerivativesBox()"> 42 42 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 43 43 {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if} 44 44 {if $image_derivative.SELECTED} 45 <span >✔{$image_derivative.DISPLAY}</span>45 <span class="switchCheck">✔ </span><span class="switchSelected">{$image_derivative.DISPLAY}</span> 46 46 {else} 47 <a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a>47 <a href="{$image_derivative.URL}" class="switchUnselected" rel="nofollow">{$image_derivative.DISPLAY}</a> 48 48 {/if} 49 49 {/foreach} -
trunk/themes/default/template/menubar.tpl
r5095 r13729 10 10 </dl> 11 11 {/foreach} 12 </div> 12 </div><div id="menuSwitcher"></div> 13 13 {/if} -
trunk/themes/default/template/picture.tpl
r13683 r13729 32 32 jQuery('.derivativeChecked').hide(); 33 33 jQuery('#derivativeChecked'+typeSave).show(); 34 document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; 34 jQuery('#derivativeSiwtchBox .switchSelected').addClass('switchUnselected').removeClass('switchSelected'); 35 jQuery('#derivativeName'+typeSave).addClass('switchSelected').removeClass('switchUnselected'); 36 document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; 35 37 } 36 38 … … 42 44 { 43 45 elt.style.position = "absolute"; 44 elt.style.left = (ePos.offsetLeft +10)+"px";46 elt.style.left = (ePos.offsetLeft)+"px"; 45 47 elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; 46 48 elt.style.display=""; … … 52 54 {strip}<a id="derivativeSwitchLink" href="javascript:toggleDerivativeSwitchBox()" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 53 55 <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span></a> 54 <div id="derivativeSwitchBox" onclick="toggleDerivativeSwitchBox()" style="display:none">56 <div id="derivativeSwitchBox" class="switchBox" onclick="toggleDerivativeSwitchBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||toggleDerivativeSwitchBox()"> 55 57 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 56 58 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 57 <span class="derivativeChecked" id="derivativeChecked{$derivative->get_type()}" {if $derivative->get_type() ne $current.selected_derivative->get_type()}style="display:none"{/if}>✔</span> <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')">{$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span></a><br> 59 <span class="derivativeChecked switchCheck" 60 id="derivativeChecked{$derivative_type}" {if $derivative->get_type() ne $current.selected_derivative->get_type()}style="display:none"{/if}>✔ </span> 61 <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')" 62 id="derivativeName{$derivative_type}" 63 class="{if $derivative->get_type() == $current.selected_derivative->get_type()}switchSelected{else}switchUnselected{/if}"> 64 {$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> 65 </a><br> 58 66 {/foreach} 59 67 {if isset($U_ORIGINAL)} -
trunk/themes/default/template/picture_nav_buttons.tpl
r11579 r13729 31 31 </a> 32 32 {/if} 33 {strip}{if isset($first)}33 <!--{strip}{if isset($first)} 34 34 <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> 35 35 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> … … 39 39 <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> 40 40 </span> 41 {/if}{/strip} 41 {/if}{/strip}--> 42 42 {strip}{if isset($previous)} 43 43 <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> … … 73 73 </span> 74 74 {/if}{/strip} 75 {strip}{if isset($last)}75 <!--{strip}{if isset($last)} 76 76 <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> 77 77 <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> … … 81 81 <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> 82 82 </span> 83 {/if}{/strip} 83 {/if}{/strip}--> 84 84 {/if} 85 85 </div>
Note: See TracChangeset
for help on using the changeset viewer.