Ignore:
Timestamp:
Jan 18, 2011, 10:12:42 PM (10 years ago)
Author:
rvelices
Message:
  • picture page compacts the output html using smarty strip
  • decrease the default number of tags showable in the menubar
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/picture_nav_buttons.tpl

    r8299 r8757  
    3131        </a>
    3232{/if}
    33 {if isset($first)}
     33{strip}{if isset($first)}
    3434        <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button">
    3535                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
     
    3939                <span class="pwg-icon pwg-icon-arrowstop-w">&nbsp;</span><span class="pwg-button-text">{'First'|@translate}</span>
    4040        </span>
    41 {/if}
    42 {if isset($previous)}
     41{/if}{/strip}
     42{strip}{if isset($previous)}
    4343        <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button">
    4444                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
     
    4848                <span class="pwg-icon pwg-icon-arrow-w">&nbsp;</span><span class="pwg-button-text">{'Previous'|@translate}</span>
    4949        </span>
    50 {/if}
     50{/if}{/strip}
    5151{if isset($slideshow.U_START_PLAY)}
    5252        <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button">
     
    5959        </a>
    6060{/if}
    61 {if isset($U_UP) and !isset($slideshow)}
     61{strip}{if isset($U_UP) and !isset($slideshow)}
    6262        <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button">
    6363                <span class="pwg-icon pwg-icon-arrow-n">&nbsp;</span><span class="pwg-button-text">{'Thumbnails'|@translate}</span>
    6464        </a>
    65 {/if}
    66 {if isset($next)}
     65{/if}{/strip}
     66{strip}{if isset($next)}
    6767        <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
    6868                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
     
    7272                <span class="pwg-icon pwg-icon-arrow-e">&nbsp;</span><span class="pwg-button-text">{'Next'|@translate}</span>
    7373        </span>
    74 {/if}
    75 {if isset($last)}
     74{/if}{/strip}
     75{strip}{if isset($last)}
    7676        <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right">
    7777                <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span>
     
    8181                <span class="pwg-icon pwg-icon-arrowstop-e">&nbsp;</span><span class="pwg-button-text">{'Last'|@translate}</span>
    8282        </span>
    83 {/if}
     83{/if}{/strip}
    8484{/if}
    8585</div>
    86 
    87 {footer_script}{literal}
    88 document.onkeydown = function(e)
    89 {
     86{strip}
     87{footer_script}
     88document.onkeydown = function(e){ldelim}
    9089        e=e||window.event;
    9190        if (e.altKey) return true;
    92         var target = e.target||e.srcElement;
    93         if (target && target.type) return true; //an input editable element
    94         var keyCode = e.keyCode||e.which;
    95         var docElem = document.documentElement;
    96         var url;
    97         switch(keyCode) {
    98 {/literal}
     91        var target=e.target||e.srcElement;
     92        if (target && target.type) return true;{* an input editable element *}
     93        var keyCode=e.keyCode||e.which, docElem=document.documentElement, url;
     94        switch(keyCode){ldelim}
    9995{if isset($next)}
    100         case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}";  break;
     96        case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
    10197{/if}
    10298{if isset($previous)}
     
    104100{/if}
    105101{if isset($first)}
    106         /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
     102        {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
    107103{/if}
    108104{if isset($last)}
    109         /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
     105        {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
    110106{/if}
    111107{if isset($U_UP) and !isset($slideshow)}
    112         /*Up*/case 38: if (e.ctrlKey)url="{$U_UP}"; break;
     108        {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break;
    113109{/if}
    114110{if isset($slideshow.U_START_PLAY)}
    115         /*Pause*/case 32: url="{$slideshow.U_START_PLAY}"; break;
     111        {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break;
    116112{/if}
    117113{if isset($slideshow.U_STOP_PLAY)}
    118         /*Play*/case 32: url="{$slideshow.U_STOP_PLAY}"; break;
     114        {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break;
    119115{/if}
    120116        }
     
    123119}
    124120{/footer_script}
     121{/strip}
Note: See TracChangeset for help on using the changeset viewer.