[6109] | 1 | <div class="navButtons"> |
---|
| 2 | {if $DISPLAY_NAV_BUTTONS or isset($slideshow)} |
---|
| 3 | |
---|
[16016] | 4 | {strip}{if isset($next)} |
---|
| 5 | <a href="{$next.U_IMG}" |
---|
| 6 | title="{'Next'|@translate} : {$next.TITLE}" |
---|
| 7 | id="icon_right" class="navButton" |
---|
[12592] | 8 | rel="next"></a> |
---|
[6109] | 9 | {else} |
---|
[12592] | 10 | <a id="icon_right_unactive" class="navButton"></a> |
---|
[16016] | 11 | {/if}{/strip} |
---|
[6109] | 12 | |
---|
[16016] | 13 | {strip}{if isset($slideshow.U_START_PLAY)} |
---|
| 14 | <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" id="icon_play" class="navButton" ></a> |
---|
| 15 | {/if}{/strip} |
---|
[6109] | 16 | |
---|
[16016] | 17 | {strip}{if isset($slideshow.U_STOP_PLAY)} |
---|
| 18 | <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" id="icon_pause" class="navButton" ></a> |
---|
| 19 | {/if}{/strip} |
---|
[6109] | 20 | |
---|
[16016] | 21 | {strip}{if isset($U_UP) and !isset($slideshow)} |
---|
| 22 | <a href="{$U_UP}" title="{'Thumbnails'|@translate}" rel="up" id="icon_up" class="navButton"></a> |
---|
| 23 | {/if}{/strip} |
---|
[6109] | 24 | |
---|
[16016] | 25 | {strip}{if isset($previous)} |
---|
| 26 | <a href="{$previous.U_IMG}" |
---|
| 27 | title="{'Previous'|@translate} : {$previous.TITLE}" |
---|
| 28 | id="icon_left" class="navButton" |
---|
[12592] | 29 | rel="prev"></a> |
---|
[6109] | 30 | {else} |
---|
[12592] | 31 | <a id="icon_left_unactive" class="navButton"></a> |
---|
[16016] | 32 | {/if}{/strip} |
---|
[6109] | 33 | |
---|
| 34 | {if isset($slideshow.U_START_REPEAT)} |
---|
[16016] | 35 | <a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" id="icon_start_repeat" class="navButton" ></a> |
---|
[6109] | 36 | {/if} |
---|
| 37 | |
---|
| 38 | {if isset($slideshow.U_STOP_REPEAT)} |
---|
[16016] | 39 | <a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" id="icon_stop_repeat" class="navButton" ></a> |
---|
[6109] | 40 | {/if} |
---|
| 41 | |
---|
| 42 | {if isset($slideshow)} |
---|
| 43 | {if isset($slideshow.U_DEC_PERIOD)} |
---|
[16016] | 44 | <a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" id="icon_dec_period" class="navButton"></a> |
---|
[6109] | 45 | {else} |
---|
[12592] | 46 | <a id="icon_dec_period_unactive" class="navButton" ></a> |
---|
[6109] | 47 | {/if} |
---|
| 48 | |
---|
| 49 | {if isset($slideshow.U_INC_PERIOD)} |
---|
[16016] | 50 | <a href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" id="icon_inc_period" class="navButton" ></a> |
---|
[6109] | 51 | {else} |
---|
[12592] | 52 | <a id="icon_inc_period_unactive" class="navButton"></a> |
---|
[6109] | 53 | {/if} |
---|
| 54 | {/if} |
---|
| 55 | {/if} |
---|
| 56 | </div> |
---|
[16016] | 57 | {strip} |
---|
| 58 | {footer_script} |
---|
| 59 | document.onkeydown = function(e){ldelim} |
---|
| 60 | e=e||window.event; |
---|
[6109] | 61 | if (e.altKey) return true; |
---|
[16016] | 62 | var target=e.target||e.srcElement; |
---|
| 63 | if (target && target.type) return true;{* an input editable element *} |
---|
| 64 | var keyCode=e.keyCode||e.which, docElem=document.documentElement, url; |
---|
| 65 | switch(keyCode){ldelim} |
---|
[6109] | 66 | {if isset($next)} |
---|
[16016] | 67 | case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break; |
---|
[6109] | 68 | {/if} |
---|
| 69 | {if isset($previous)} |
---|
[16016] | 70 | case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break; |
---|
[6109] | 71 | {/if} |
---|
| 72 | {if isset($first)} |
---|
[16016] | 73 | {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break; |
---|
[6109] | 74 | {/if} |
---|
| 75 | {if isset($last)} |
---|
[16016] | 76 | {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break; |
---|
[6109] | 77 | {/if} |
---|
| 78 | {if isset($U_UP) and !isset($slideshow)} |
---|
[16016] | 79 | {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break; |
---|
[6109] | 80 | {/if} |
---|
| 81 | {if isset($slideshow.U_START_PLAY)} |
---|
[16016] | 82 | {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break; |
---|
[6109] | 83 | {/if} |
---|
| 84 | {if isset($slideshow.U_STOP_PLAY)} |
---|
[16016] | 85 | {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break; |
---|
[6109] | 86 | {/if} |
---|
| 87 | } |
---|
[16016] | 88 | if (url) {ldelim}window.location=url.replace("&","&"); return false;} |
---|
[6109] | 89 | return true; |
---|
| 90 | } |
---|
[16016] | 91 | {/footer_script} |
---|
| 92 | {/strip} |
---|