1 | <div class="navButtons"> |
---|
2 | |
---|
3 | {strip}{if isset($last)} |
---|
4 | <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> |
---|
5 | <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> |
---|
6 | </a> |
---|
7 | {else} |
---|
8 | <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> |
---|
9 | <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> |
---|
10 | </span> |
---|
11 | {/if}{/strip} |
---|
12 | {strip}{if isset($next)} |
---|
13 | <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> |
---|
14 | <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> |
---|
15 | </a> |
---|
16 | {else} |
---|
17 | <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> |
---|
18 | <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> |
---|
19 | </span> |
---|
20 | {/if}{/strip} |
---|
21 | {if isset($next) } |
---|
22 | <a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> |
---|
23 | {if strpos('2.4',$PHPWG_VERSION)} |
---|
24 | <img src="{$next.derivatives.square->get_url()}" class="thumbLink" id="linkNext" alt="{$next.TITLE}"> |
---|
25 | {else} |
---|
26 | <img src="{$next.THUMB_SRC}" class="thumbLink" id="linkNext" alt="{$next.TITLE}"> |
---|
27 | {/if} |
---|
28 | </a> |
---|
29 | {/if} |
---|
30 | {if strpos('2.4',$PHPWG_VERSION)} |
---|
31 | <img src="{$current.derivatives.square->get_url()}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}"> |
---|
32 | {else} |
---|
33 | <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}"> |
---|
34 | {/if} |
---|
35 | {if isset($previous) } |
---|
36 | <a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> |
---|
37 | {if strpos('2.4',$PHPWG_VERSION)} |
---|
38 | <img src="{$previous.derivatives.square->get_url()}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}"> |
---|
39 | {else} |
---|
40 | <img src="{$previous.THUMB_SRC}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}"> |
---|
41 | {/if} |
---|
42 | </a> |
---|
43 | {/if} |
---|
44 | |
---|
45 | {if isset($slideshow.U_START_PLAY)} |
---|
46 | <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button"> |
---|
47 | <span class="pwg-icon pwg-icon-play"> </span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span> |
---|
48 | </a> |
---|
49 | {/if} |
---|
50 | {if isset($slideshow.U_STOP_PLAY)} |
---|
51 | <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" class="pwg-state-default pwg-button"> |
---|
52 | <span class="pwg-icon pwg-icon-pause"> </span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span> |
---|
53 | </a> |
---|
54 | {/if} |
---|
55 | |
---|
56 | |
---|
57 | {strip}{if isset($previous)} |
---|
58 | <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> |
---|
59 | <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> |
---|
60 | </a> |
---|
61 | {else} |
---|
62 | <span class="pwg-state-disabled pwg-button"> |
---|
63 | <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> |
---|
64 | </span> |
---|
65 | {/if}{/strip} |
---|
66 | |
---|
67 | {strip}{if isset($first)} |
---|
68 | <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> |
---|
69 | <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> |
---|
70 | </a> |
---|
71 | {else} |
---|
72 | <span class="pwg-state-disabled pwg-button"> |
---|
73 | <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> |
---|
74 | </span> |
---|
75 | {/if}{/strip} |
---|
76 | |
---|
77 | |
---|
78 | {if isset($slideshow.U_START_REPEAT)} |
---|
79 | <a href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" class="pwg-state-default pwg-button"> |
---|
80 | <span class="pwg-icon pwg-icon-repeat-play"> </span><span class="pwg-button-text">{'Repeat the slideshow'|@translate}</span> |
---|
81 | </a> |
---|
82 | {/if} |
---|
83 | {if isset($slideshow.U_STOP_REPEAT)} |
---|
84 | <a href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" class="pwg-state-default pwg-button"> |
---|
85 | <span class="pwg-icon pwg-icon-repeat-stop"> </span><span class="pwg-button-text">{'Not repeat the slideshow'|@translate}</span> |
---|
86 | </a> |
---|
87 | {/if} |
---|
88 | |
---|
89 | {if isset($slideshow)} |
---|
90 | {if isset($slideshow.U_INC_PERIOD)} |
---|
91 | <a href="{$slideshow.U_INC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button"> |
---|
92 | <span class="pwg-icon pwg-icon-clock-minus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> |
---|
93 | </a> |
---|
94 | {else} |
---|
95 | <span class="pwg-state-disabled pwg-button"> |
---|
96 | <span class="pwg-icon pwg-icon-clock-minus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> |
---|
97 | </span> |
---|
98 | {/if} |
---|
99 | {if isset($slideshow.U_DEC_PERIOD)} |
---|
100 | <a href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" class="pwg-state-default pwg-button"> |
---|
101 | <span class="pwg-icon pwg-icon-clock-plus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> |
---|
102 | </a> |
---|
103 | {else} |
---|
104 | <span class="pwg-state-disabled pwg-button"> |
---|
105 | <span class="pwg-icon pwg-icon-clock-plus"> </span><span class="pwg-button-text">{'Accelerate diaporama speed'|@translate}</span> |
---|
106 | </span> |
---|
107 | {/if} |
---|
108 | {/if} |
---|
109 | {strip}{if isset($U_UP) and !isset($slideshow)} |
---|
110 | <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button"> |
---|
111 | <span class="pwg-icon pwg-icon-arrow-n"> </span><span class="pwg-button-text">{'Thumbnails'|@translate}</span> |
---|
112 | </a> |
---|
113 | {/if}{/strip} |
---|
114 | </div> |
---|
115 | {strip} |
---|
116 | {footer_script} |
---|
117 | document.onkeydown = function(e){ldelim} |
---|
118 | e=e||window.event; |
---|
119 | if (e.altKey) return true; |
---|
120 | var target=e.target||e.srcElement; |
---|
121 | if (target && target.type) return true;{* an input editable element *} |
---|
122 | var keyCode=e.keyCode||e.which, docElem=document.documentElement, url; |
---|
123 | switch(keyCode){ldelim} |
---|
124 | {if isset($next)} |
---|
125 | case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break; |
---|
126 | {/if} |
---|
127 | {if isset($previous)} |
---|
128 | case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break; |
---|
129 | {/if} |
---|
130 | {if isset($first)} |
---|
131 | {* Home *}case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break; |
---|
132 | {/if} |
---|
133 | {if isset($last)} |
---|
134 | {* End *}case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break; |
---|
135 | {/if} |
---|
136 | {if isset($U_UP) and !isset($slideshow)} |
---|
137 | {* Up *}case 38: if (e.ctrlKey)url="{$U_UP}"; break; |
---|
138 | {/if} |
---|
139 | {if isset($slideshow.U_START_PLAY)} |
---|
140 | {* Pause *}case 32: url="{$slideshow.U_START_PLAY}"; break; |
---|
141 | {/if} |
---|
142 | {if isset($slideshow.U_STOP_PLAY)} |
---|
143 | {* Play *}case 32: url="{$slideshow.U_STOP_PLAY}"; break; |
---|
144 | {/if} |
---|
145 | } |
---|
146 | if (url) {ldelim}window.location=url.replace("&","&"); return false;} |
---|
147 | return true; |
---|
148 | } |
---|
149 | {/footer_script} |
---|
150 | {/strip} |
---|