1 | |
---|
2 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
3 | |
---|
4 | <div id="content"{if isset($MENUBAR)} class="contentWithMenu"{/if} {if isset ($SMILIES)}data-smiliessupportr={$SMILIES.representant} data-smiliessupporttid={$SMILIES.textarea_id}{/if} > |
---|
5 | {if isset($errors) or not empty($infos)} |
---|
6 | {include file='infos_errors.tpl'} |
---|
7 | {/if} |
---|
8 | {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} |
---|
9 | |
---|
10 | <div id="imageHeaderBar"> |
---|
11 | <div class="browsePath"> |
---|
12 | {$SECTION_TITLE}<span class="browsePathSeparator">{$LEVEL_SEPARATOR}</span><h2>{$current.TITLE}</h2> |
---|
13 | </div> |
---|
14 | </div> |
---|
15 | |
---|
16 | <div id="imageToolBar"> |
---|
17 | <div class="imageNumber">{$PHOTO}</div> |
---|
18 | {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} |
---|
19 | <div class="actionButtons"> |
---|
20 | {if isset($current.unique_derivatives) && count($current.unique_derivatives)>1} |
---|
21 | |
---|
22 | {strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
23 | <span class="pwg-icon pwg-icon-sizes"></span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> |
---|
24 | </a> |
---|
25 | <div id="derivativeSwitchBox" class="switchBox"> |
---|
26 | <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> |
---|
27 | {foreach from=$current.unique_derivatives item=derivative key=derivative_type} |
---|
28 | <span class="swit <span class="switchCheck" id="derivativeChecked{$derivative_type}"{if $derivative->get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ </span> |
---|
29 | <span href="" class="derivative" data-typesave="{$derivative_type}" data-url="{$derivative->get_url()}" data-typemap="{$derivative->get_type()} " data-cookie="{$COOKIE_PATH}">{$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> |
---|
30 | |
---|
31 | </span><br> |
---|
32 | {/foreach} |
---|
33 | {if isset($U_ORIGINAL)} |
---|
34 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
35 | <span class="original" href="" rel="nofollow" data-url="{$U_ORIGINAL}" data-winname="xxx" data-features="scrollbars=yes,toolbar=no,status=no,resizable=yes">{'Original'|@translate}</span> |
---|
36 | {/if} |
---|
37 | </div> |
---|
38 | {/strip} |
---|
39 | {/if} |
---|
40 | {strip}{if isset($U_SLIDESHOW_START)} |
---|
41 | <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="sameLayer pwg-state-default pwg-button" rel="nofollow"> |
---|
42 | <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> |
---|
43 | </a> |
---|
44 | {/if}{/strip} |
---|
45 | {strip}{if isset($U_METADATA)} |
---|
46 | <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button sameLayer" rel="nofollow"> |
---|
47 | <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> |
---|
48 | </a> |
---|
49 | {/if}{/strip} |
---|
50 | {strip}{if isset($current.U_DOWNLOAD)} |
---|
51 | <a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
52 | <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'Download'|@translate}</span> |
---|
53 | </a> |
---|
54 | {/if}{/strip} |
---|
55 | {if isset($PLUGIN_PICTURE_BUTTONS)}{foreach from=$PLUGIN_PICTURE_BUTTONS item=button}{$button}{/foreach}{/if} |
---|
56 | {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} |
---|
57 | {strip}{if isset($favorite)} |
---|
58 | <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button sameLayer" rel="nofollow"> |
---|
59 | <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> |
---|
60 | </a> |
---|
61 | {/if}{/strip} |
---|
62 | {strip}{if isset($U_SET_AS_REPRESENTATIVE)} |
---|
63 | <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button sameLayer" rel="nofollow"> |
---|
64 | <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> |
---|
65 | </a> |
---|
66 | {/if}{/strip} |
---|
67 | {strip}{if isset($U_ADMIN)} |
---|
68 | <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
69 | <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'Edit'|@translate}</span> |
---|
70 | </a> |
---|
71 | {/if}{/strip} |
---|
72 | {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} |
---|
73 | {footer_script} |
---|
74 | {literal}function addToCadie(aElement, rootUrl, id) |
---|
75 | { |
---|
76 | if (aElement.disabled) return; |
---|
77 | aElement.disabled=true; |
---|
78 | var y = new PwgWS(rootUrl); |
---|
79 | y.callService( |
---|
80 | "pwg.caddie.add", {image_id: id} , |
---|
81 | { |
---|
82 | onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, |
---|
83 | onSuccess: function(result) { aElement.disabled = false; } |
---|
84 | } |
---|
85 | ); |
---|
86 | }{/literal} |
---|
87 | {/footer_script} |
---|
88 | <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
89 | <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'Caddie'|@translate}</span> |
---|
90 | </a> |
---|
91 | {/if}{/strip}{*caddie management END*} |
---|
92 | </div> |
---|
93 | </div>{*<!-- imageToolBar -->*} |
---|
94 | |
---|
95 | <div id="theImageAndInfos"> |
---|
96 | <div id="theImage"> |
---|
97 | {$ELEMENT_CONTENT} |
---|
98 | |
---|
99 | {if isset($COMMENT_IMG)} |
---|
100 | <p class="imageComment">{$COMMENT_IMG}</p> |
---|
101 | {/if} |
---|
102 | {if isset($U_SLIDESHOW_STOP)} |
---|
103 | <p> |
---|
104 | [ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ] |
---|
105 | </p> |
---|
106 | {/if} |
---|
107 | |
---|
108 | </div>{*<!-- no significant white space for elegant--> |
---|
109 | *}<div id="infoSwitcher"></div>{*<!-- no significant white space for elegant--> |
---|
110 | *}<div id="imageInfos"> |
---|
111 | {if $DISPLAY_NAV_THUMB} |
---|
112 | <div class="navThumbs"> |
---|
113 | {if isset($previous)} |
---|
114 | <a class="navThumb sameLayer" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> |
---|
115 | <span class="thumbHover prevThumbHover"></span> |
---|
116 | <img src="{$previous.derivatives.square->get_url()}" alt="{$previous.TITLE}"> |
---|
117 | </a> |
---|
118 | {/if} |
---|
119 | {if isset($next)} |
---|
120 | <a class="navThumb sameLayer" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> |
---|
121 | <span class="thumbHover nextThumbHover"></span> |
---|
122 | <img src="{$next.derivatives.square->get_url()}" alt="{$next.TITLE}"> |
---|
123 | </a> |
---|
124 | {/if} |
---|
125 | </div> |
---|
126 | {/if} |
---|
127 | |
---|
128 | |
---|
129 | <dl id="standard" class="imageInfoTable"> |
---|
130 | {strip} |
---|
131 | {if $display_info.author and isset($INFO_AUTHOR)} |
---|
132 | <div id="Author" class="imageInfo"> |
---|
133 | <dt>{'Author'|@translate}</dt> |
---|
134 | <dd>{$INFO_AUTHOR}</dd> |
---|
135 | </div> |
---|
136 | {/if} |
---|
137 | {if $display_info.created_on and isset($INFO_CREATION_DATE)} |
---|
138 | <div id="datecreate" class="imageInfo"> |
---|
139 | <dt>{'Created on'|@translate}</dt> |
---|
140 | <dd>{$INFO_CREATION_DATE}</dd> |
---|
141 | </div> |
---|
142 | {/if} |
---|
143 | {if $display_info.posted_on} |
---|
144 | <div id="datepost" class="imageInfo"> |
---|
145 | <dt>{'Posted on'|@translate}</dt> |
---|
146 | <dd>{$INFO_POSTED_DATE}</dd> |
---|
147 | </div> |
---|
148 | {/if} |
---|
149 | {if $display_info.dimensions and isset($INFO_DIMENSIONS)} |
---|
150 | <div id="Dimensions" class="imageInfo"> |
---|
151 | <dt>{'Dimensions'|@translate}</dt> |
---|
152 | <dd>{$INFO_DIMENSIONS}</dd> |
---|
153 | </div> |
---|
154 | {/if} |
---|
155 | {if $display_info.file} |
---|
156 | <div id="File" class="imageInfo"> |
---|
157 | <dt>{'File'|@translate}</dt> |
---|
158 | <dd>{$INFO_FILE}</dd> |
---|
159 | </div> |
---|
160 | {/if} |
---|
161 | {if $display_info.filesize and isset($INFO_FILESIZE)} |
---|
162 | <div id="Filesize" class="imageInfo"> |
---|
163 | <dt>{'Filesize'|@translate}</dt> |
---|
164 | <dd>{$INFO_FILESIZE}</dd> |
---|
165 | </div> |
---|
166 | {/if} |
---|
167 | {if $display_info.tags and isset($related_tags)} |
---|
168 | <div id="Tags" class="imageInfo"> |
---|
169 | <dt>{'Tags'|@translate}</dt> |
---|
170 | <dd> |
---|
171 | {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach} |
---|
172 | </dd> |
---|
173 | </div> |
---|
174 | {/if} |
---|
175 | {if $display_info.categories and isset($related_categories)} |
---|
176 | <div id="Categories" class="imageInfo "> |
---|
177 | <dt>{'Albums'|@translate}</dt> |
---|
178 | <dd> |
---|
179 | <ul> |
---|
180 | {foreach from=$related_categories item=cat} |
---|
181 | <li class="related_categories">{$cat}</li> |
---|
182 | {/foreach} |
---|
183 | </ul> |
---|
184 | </dd> |
---|
185 | </div> |
---|
186 | {/if} |
---|
187 | {if $display_info.visits} |
---|
188 | <div id="Visits" class="imageInfo"> |
---|
189 | <dt>{'Visits'|@translate}</dt> |
---|
190 | <dd>{$INFO_VISITS}</dd> |
---|
191 | </div> |
---|
192 | {/if} |
---|
193 | |
---|
194 | {if $display_info.rating_score and isset($rate_summary)} |
---|
195 | <div id="Average" class="imageInfo"> |
---|
196 | <dt>{'Rating score'|@translate}</dt> |
---|
197 | <dd> |
---|
198 | {if $rate_summary.count} |
---|
199 | {if $rate_summary.count == 1} |
---|
200 | {assign var='rate_text' value='%d rate'|@translate} |
---|
201 | {else} |
---|
202 | {assign var='rate_text' value='%d rates'|@translate} |
---|
203 | {/if} |
---|
204 | <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$pwg->sprintf($rate_text, $rate_summary.count)})</span> |
---|
205 | {else} |
---|
206 | <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> |
---|
207 | {/if} |
---|
208 | </dd> |
---|
209 | </div> |
---|
210 | {/if} |
---|
211 | |
---|
212 | {if isset($rating)} |
---|
213 | <div id="rating" class="imageInfo"> |
---|
214 | <dt> |
---|
215 | <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> |
---|
216 | </dt> |
---|
217 | <dd> |
---|
218 | <form action="{$rating.F_ACTION}" method="post" id="rateForm" > |
---|
219 | {foreach from=$rating.marks item=mark name=rate_loop} |
---|
220 | {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} |
---|
221 | <input type="button" name="rate" value="{$mark}" class="rateButton rateButtonSelected" title="{$mark}"> |
---|
222 | {else} |
---|
223 | <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> |
---|
224 | {/if} |
---|
225 | {/foreach} |
---|
226 | </form> |
---|
227 | </dd> |
---|
228 | </div> |
---|
229 | {/if} |
---|
230 | |
---|
231 | {if $display_info.privacy_level and isset($available_permission_levels)} |
---|
232 | <div id="Privacy" class="imageInfoPri"><div class="relSwitchBox"> |
---|
233 | <dt><span class="noSlide" id="privacyLevelLink">{'Who can see this photo?'|@translate}</span></dt> |
---|
234 | <dd> |
---|
235 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
236 | |
---|
237 | <div id="privacyLevelBox" class="switchBox" style="display:none" > |
---|
238 | {foreach from=$available_permission_levels item=label key=level} |
---|
239 | <span id="levelCheck{$level}" class="switchCheck" {if $level != $current.level} style="display:none"{/if}>✔ </span> |
---|
240 | <span id="switchLevel{$level}" , {$current.id}, {$level})" class="noSlide privacy" data-root="{$ROOT_URL}" data-id="{$current.id}" data-level="{$level}" >{$label}</span><br> |
---|
241 | {/foreach} |
---|
242 | </div> |
---|
243 | |
---|
244 | </dd> |
---|
245 | </div></div> |
---|
246 | {/if} |
---|
247 | {/strip} |
---|
248 | </dl> |
---|
249 | |
---|
250 | {if isset($metadata)} |
---|
251 | <dl id="Metadata" class="imageInfoTable"> |
---|
252 | {foreach from=$metadata item=meta} |
---|
253 | <h3>{$meta.TITLE}</h3> |
---|
254 | {foreach from=$meta.lines item=value key=label} |
---|
255 | <div class="imageInfo"> |
---|
256 | <dt>{$label}</dt> |
---|
257 | <dd>{$value}</dd> |
---|
258 | </div> |
---|
259 | {/foreach} |
---|
260 | {/foreach} |
---|
261 | </dl> |
---|
262 | {/if} |
---|
263 | </div> |
---|
264 | </div> |
---|
265 | |
---|
266 | {if isset($COMMENT_COUNT)} |
---|
267 | <div id="comContent"> |
---|
268 | <div id="comments" {if (!isset($comment_add) && ($COMMENT_COUNT == 0))}class="noCommentContent"{else}class="commentContent"{/if}><div id="commentsSwitcher"></div> |
---|
269 | <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3> |
---|
270 | |
---|
271 | <div id="pictureComments"> |
---|
272 | {if isset($comment_add)} |
---|
273 | <div id="commentAdd" {if isset ($slideEasyCaptcha)}data-now={$smarty.now}{/if}> |
---|
274 | <h4>{'Add a comment'|@translate}</h4> |
---|
275 | <form method="post" action="{$comment_add.F_ACTION}" id="addComment"> |
---|
276 | {if $comment_add.SHOW_AUTHOR} |
---|
277 | <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> |
---|
278 | <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p> |
---|
279 | {/if} |
---|
280 | {if $comment_add.SHOW_EMAIL} |
---|
281 | <p><label for="email">{'Email'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> |
---|
282 | <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p> |
---|
283 | {/if} |
---|
284 | <p><label for="website_url">{'Website'|@translate} :</label></p> |
---|
285 | <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p> |
---|
286 | <p><label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label></p> |
---|
287 | <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p> |
---|
288 | <p><input type="hidden" name="key" value="{$comment_add.KEY}"> |
---|
289 | <input type="submit" value="{'Submit'|@translate}"></p> |
---|
290 | </form> |
---|
291 | </div> |
---|
292 | {/if} |
---|
293 | {if isset($comments)} |
---|
294 | <div id="pictureCommentList" > |
---|
295 | {if (($COMMENT_COUNT > 2) || !empty($navbar))} |
---|
296 | <div id="pictureCommentNavBar"> |
---|
297 | {if $COMMENT_COUNT > 2} |
---|
298 | <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a> |
---|
299 | {/if} |
---|
300 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
301 | </div> |
---|
302 | {/if} |
---|
303 | {include file='comment_list.tpl'} |
---|
304 | </div> |
---|
305 | {/if} |
---|
306 | <div style="clear:both"></div> |
---|
307 | </div> |
---|
308 | |
---|
309 | </div> |
---|
310 | </div> |
---|
311 | {/if}{*comments*} |
---|
312 | |
---|
313 | {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} |
---|
314 | |
---|
315 | </div> |
---|