source: extensions/floOS/OS_default/template/picture_nav_buttons.tpl @ 14974

Last change on this file since 14974 was 14974, checked in by flop25, 12 years ago

PHPWG_VERSION assigned and correction of the use of strpos in tpl

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