[4446] | 1 | <div class="navButtons"> |
---|
[4489] | 2 | |
---|
[4446] | 3 | {if isset($last)} |
---|
| 4 | <a id="icon_last" class="navButton" href="{$last.U_IMG}" title="{'last_page'|@translate} : {$last.TITLE}" rel="last"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'last_page'|@translate}">--></a> |
---|
| 5 | {else} |
---|
| 6 | <a class="navButton"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a> |
---|
| 7 | {/if} |
---|
[4489] | 8 | |
---|
[4446] | 9 | {if isset($next)} |
---|
| 10 | <a id="icon_right" class="navButton" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}">--></a> |
---|
| 11 | {else} |
---|
| 12 | <a class="navButton"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a> |
---|
| 13 | {/if} |
---|
| 14 | |
---|
| 15 | {if isset($slideshow.U_START_PLAY)} |
---|
| 16 | <a id="icon_play" class="navButton" href="{$slideshow.U_START_PLAY}" title="{'start_play'|@translate}"><!-- <img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'start_play'|@translate}"> --></a> |
---|
| 17 | {/if} |
---|
| 18 | |
---|
| 19 | {if isset($slideshow.U_STOP_PLAY)} |
---|
| 20 | <a id="icon_pause" class="navButton" href="{$slideshow.U_STOP_PLAY}" title="{'stop_play'|@translate}"><!-- <img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'stop_play'|@translate}"> --></a> |
---|
| 21 | {/if} |
---|
| 22 | |
---|
| 23 | {if isset($U_UP) and !isset($slideshow)} |
---|
| 24 | <a id="icon_up" class="navButton" href="{$U_UP}" title="{'thumbnails'|@translate}" rel="up"><!-- <img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" class="button" alt="{'thumbnails'|@translate}"> --></a> |
---|
| 25 | {/if} |
---|
[4489] | 26 | |
---|
[4446] | 27 | {if isset($previous)} |
---|
| 28 | <a id="icon_left" class="navButton" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'previous_page'|@translate}">--></a> |
---|
| 29 | {else} |
---|
| 30 | <a class="navButton"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a> |
---|
| 31 | {/if} |
---|
[4489] | 32 | |
---|
[4446] | 33 | {if isset($first)} |
---|
| 34 | <a id="icon_first" class="navButton" href="{$first.U_IMG}" title="{'first_page'|@translate} : {$first.TITLE}" rel="first"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'first_page'|@translate}">--></a> |
---|
| 35 | {else} |
---|
| 36 | <a class="navButton"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a> |
---|
| 37 | {/if} |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | {if isset($slideshow.U_START_REPEAT)} |
---|
| 41 | <a id="icon_start_repeat" class="navButton" href="{$slideshow.U_START_REPEAT}" title="{'start_repeat'|@translate}"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'start_repeat'|@translate}">--></a> |
---|
| 42 | {/if} |
---|
| 43 | |
---|
| 44 | {if isset($slideshow.U_STOP_REPEAT)} |
---|
| 45 | <a id="icon_stop_repeat" class="navButton" href="{$slideshow.U_STOP_REPEAT}" title="{'stop_repeat'|@translate}"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'stop_repeat'|@translate}">--></a> |
---|
| 46 | {/if} |
---|
| 47 | |
---|
| 48 | {if isset($slideshow)} |
---|
| 49 | {if isset($slideshow.U_DEC_PERIOD)} |
---|
| 50 | <a id="icon_dec_period" class="navButton" href="{$slideshow.U_DEC_PERIOD}" title="{'dec_period'|@translate}"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'dec_period'|@translate}">--></a> |
---|
| 51 | {else} |
---|
| 52 | <a class="navButton"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a> |
---|
| 53 | {/if} |
---|
| 54 | |
---|
| 55 | {if isset($slideshow.U_INC_PERIOD)} |
---|
| 56 | <a id="icon_inc_period" class="navButton" href="{$slideshow.U_INC_PERIOD}" title="{'inc_period'|@translate}"><!--<img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'inc_period'|@translate}">--></a> |
---|
| 57 | {else} |
---|
| 58 | <a class="navButton"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a> |
---|
| 59 | {/if} |
---|
| 60 | {/if} |
---|
| 61 | |
---|
| 62 | </div> |
---|
| 63 | |
---|
| 64 | <script type="text/javascript">// <![CDATA[ |
---|
| 65 | {literal} |
---|
| 66 | function keyboardNavigation(e) |
---|
| 67 | { |
---|
[4489] | 68 | if(!e) e=window.event; |
---|
| 69 | if (e.altKey) return true; |
---|
| 70 | var target = e.target || e.srcElement; |
---|
| 71 | if (target && target.type) return true; //an input editable element |
---|
| 72 | var keyCode=e.keyCode || e.which; |
---|
| 73 | var docElem = document.documentElement; |
---|
| 74 | switch(keyCode) { |
---|
[4446] | 75 | {/literal} |
---|
| 76 | {if isset($next)} |
---|
[4489] | 77 | case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; } break; |
---|
[4446] | 78 | {/if} |
---|
| 79 | {if isset($previous)} |
---|
[4489] | 80 | case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break; |
---|
[4446] | 81 | {/if} |
---|
| 82 | {if isset($first)} |
---|
[4489] | 83 | /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break; |
---|
[4446] | 84 | {/if} |
---|
| 85 | {if isset($last)} |
---|
[4489] | 86 | /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break; |
---|
[4446] | 87 | {/if} |
---|
| 88 | {if isset($U_UP) and !isset($slideshow)} |
---|
[4489] | 89 | /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break; |
---|
[4446] | 90 | {/if} |
---|
| 91 | |
---|
| 92 | {if isset($slideshow.U_START_PLAY)} |
---|
[4489] | 93 | /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break; |
---|
[4446] | 94 | {/if} |
---|
| 95 | {if isset($slideshow.U_STOP_PLAY)} |
---|
[4489] | 96 | /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break; |
---|
[4446] | 97 | {/if} |
---|
[4489] | 98 | } |
---|
| 99 | return true; |
---|
[4446] | 100 | } |
---|
| 101 | document.onkeydown=keyboardNavigation; |
---|
| 102 | // ]]></script> |
---|