1 | <div class="pictureToolBar"> |
---|
2 | <div class="actionButtons" style="float:left"> |
---|
3 | {if isset($U_SLIDESHOW_START)} |
---|
4 | <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
5 | <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> |
---|
6 | </a> |
---|
7 | {/if} |
---|
8 | {if isset($U_METADATA)} |
---|
9 | <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
10 | <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> |
---|
11 | </a> |
---|
12 | {/if} |
---|
13 | {if isset($current.U_DOWNLOAD)} |
---|
14 | <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
15 | <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span> |
---|
16 | </a> |
---|
17 | {/if} |
---|
18 | {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} |
---|
19 | {if isset($favorite)} |
---|
20 | <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="novollow"> |
---|
21 | <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> |
---|
22 | </a> |
---|
23 | {/if} |
---|
24 | {if isset($U_SET_AS_REPRESENTATIVE)} |
---|
25 | <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
26 | <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> |
---|
27 | </a> |
---|
28 | {/if} |
---|
29 | {if isset($U_ADMIN)} |
---|
30 | <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
31 | <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span> |
---|
32 | </a> |
---|
33 | {/if} |
---|
34 | {if isset($U_CADDIE)}{*caddie management BEGIN*} |
---|
35 | <script type="text/javascript"> |
---|
36 | {literal}function addToCadie(aElement, rootUrl, id) |
---|
37 | { |
---|
38 | if (aElement.disabled) return; |
---|
39 | aElement.disabled=true; |
---|
40 | var y = new PwgWS(rootUrl); |
---|
41 | |
---|
42 | y.callService( |
---|
43 | "pwg.caddie.add", {image_id: id} , |
---|
44 | { |
---|
45 | onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, |
---|
46 | onSuccess: function(result) { aElement.disabled = false; } |
---|
47 | } |
---|
48 | ); |
---|
49 | }{/literal} |
---|
50 | </script> |
---|
51 | <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
52 | <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> |
---|
53 | </a> |
---|
54 | {/if}{*caddie management END*} |
---|
55 | </div> |
---|
56 | |
---|
57 | <div class="navigationButtons" style="float:right"> |
---|
58 | {if $DISPLAY_NAV_BUTTONS or isset($slideshow)} |
---|
59 | {if isset($first)} |
---|
60 | <a href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" class="pwg-state-default pwg-button"> |
---|
61 | <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> |
---|
62 | </a> |
---|
63 | {else} |
---|
64 | <span class="pwg-state-disabled pwg-button"> |
---|
65 | <span class="pwg-icon pwg-icon-arrowstop-w"> </span><span class="pwg-button-text">{'First'|@translate}</span> |
---|
66 | </span> |
---|
67 | {/if} |
---|
68 | {if isset($previous)} |
---|
69 | <a href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" class="pwg-state-default pwg-button"> |
---|
70 | <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> |
---|
71 | </a> |
---|
72 | {else} |
---|
73 | <span class="pwg-state-disabled pwg-button"> |
---|
74 | <span class="pwg-icon pwg-icon-arrow-w"> </span><span class="pwg-button-text">{'Previous'|@translate}</span> |
---|
75 | </span> |
---|
76 | {/if} |
---|
77 | {if isset($slideshow.U_START_PLAY)} |
---|
78 | <a href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" class="pwg-state-default pwg-button"> |
---|
79 | <span class="pwg-icon pwg-icon-play"> </span><span class="pwg-button-text">{'Play of slideshow'|@translate}</span> |
---|
80 | </a> |
---|
81 | {/if} |
---|
82 | {if isset($slideshow.U_STOP_PLAY)} |
---|
83 | <a href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" class="pwg-state-default pwg-button"> |
---|
84 | <span class="pwg-icon pwg-icon-pause"> </span><span class="pwg-button-text">{'Pause of slideshow'|@translate}</span> |
---|
85 | </a> |
---|
86 | {/if} |
---|
87 | {if isset($U_UP) and !isset($slideshow)} |
---|
88 | <a href="{$U_UP}" title="{'Thumbnails'|@translate}" class="pwg-state-default pwg-button"> |
---|
89 | <span class="pwg-icon pwg-icon-arrow-n"> </span><span class="pwg-button-text">{'Thumbnails'|@translate}</span> |
---|
90 | </a> |
---|
91 | {/if} |
---|
92 | {if isset($next)} |
---|
93 | <a href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> |
---|
94 | <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> |
---|
95 | </a> |
---|
96 | {else} |
---|
97 | <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> |
---|
98 | <span class="pwg-icon pwg-icon-arrow-e"> </span><span class="pwg-button-text">{'Next'|@translate}</span> |
---|
99 | </span> |
---|
100 | {/if} |
---|
101 | {if isset($last)} |
---|
102 | <a href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" class="pwg-state-default pwg-button pwg-button-icon-right"> |
---|
103 | <span class="pwg-icon pwg-icon-arrowstop-e"></span><span class="pwg-button-text">{'Last'|@translate}</span> |
---|
104 | </a> |
---|
105 | {else} |
---|
106 | <span class="pwg-state-disabled pwg-button pwg-button-icon-right"> |
---|
107 | <span class="pwg-icon pwg-icon-arrowstop-e"> </span><span class="pwg-button-text">{'Last'|@translate}</span> |
---|
108 | </span> |
---|
109 | {/if} |
---|
110 | {/if} |
---|
111 | </div> |
---|
112 | </div> |
---|
113 | |
---|