1 | {if isset($errors)} |
---|
2 | <div class="errors"> |
---|
3 | <ul> |
---|
4 | {foreach from=$errors item=error} |
---|
5 | <li>{$error}</li> |
---|
6 | {/foreach} |
---|
7 | </ul> |
---|
8 | </div> |
---|
9 | {/if} |
---|
10 | {if isset($infos)} |
---|
11 | <div class="infos"> |
---|
12 | <ul> |
---|
13 | {foreach from=$infos item=info} |
---|
14 | <li>{$info}</li> |
---|
15 | {/foreach} |
---|
16 | </ul> |
---|
17 | </div> |
---|
18 | {/if} |
---|
19 | |
---|
20 | <div class="titrePage" id="imageHeaderBar"> |
---|
21 | <div class="browsePath"> |
---|
22 | {$SECTION_TITLE} |
---|
23 | {if ($stripped.showTitleOnBrowsePath)}{$LEVEL_SEPARATOR}{$current.TITLE}{/if} |
---|
24 | </div> |
---|
25 | <ul class="randomButtons"> |
---|
26 | <li id="imageToolBar"> |
---|
27 | {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} |
---|
28 | </li> |
---|
29 | {strip}{if isset($U_SLIDESHOW_START) } |
---|
30 | <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li> |
---|
31 | {/if}{/strip} |
---|
32 | {strip}{if isset($U_ADMIN) } |
---|
33 | <li><a href="{$U_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li> |
---|
34 | {/if}{/strip} |
---|
35 | {strip}{if isset($U_CADDIE)} |
---|
36 | <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" rel="nofollow">{'caddie'|@translate}</a></li> |
---|
37 | {/if}{/strip} |
---|
38 | {strip}{if isset($favorite) } |
---|
39 | <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{'Favorites'|@translate}</a></li> |
---|
40 | {/if}{/strip} |
---|
41 | {strip}{if !empty($U_SET_AS_REPRESENTATIVE) } |
---|
42 | <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li> |
---|
43 | {/if}{/strip} |
---|
44 | {strip}{if isset($current.U_DOWNLOAD)} |
---|
45 | <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'download'|@translate}</a></li> |
---|
46 | {/if}{/strip} |
---|
47 | {strip}{if isset($PLUGIN_PICTURE_ACTIONS)} |
---|
48 | <li class="plugin_buttons plugin_buttons_group1">{$PLUGIN_PICTURE_ACTIONS}</li> |
---|
49 | {/if}{/strip} |
---|
50 | {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} |
---|
51 | {footer_script} |
---|
52 | {literal} |
---|
53 | function addToCadie(aElement, rootUrl, id) |
---|
54 | { |
---|
55 | if (aElement.disabled) return; |
---|
56 | aElement.disabled=true; |
---|
57 | var y = new PwgWS(rootUrl); |
---|
58 | y.callService( |
---|
59 | "pwg.caddie.add", {image_id: id} , |
---|
60 | { |
---|
61 | onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, |
---|
62 | onSuccess: function(result) { aElement.disabled = false; } |
---|
63 | } |
---|
64 | ); |
---|
65 | } |
---|
66 | {/literal} |
---|
67 | {/footer_script} |
---|
68 | {/if}{/strip} |
---|
69 | <li class="plugin_buttons plugin_buttons_group2">{*caddie management END*}</li> |
---|
70 | </ul> |
---|
71 | {php} |
---|
72 | global $pwg_loaded_plugins; |
---|
73 | $this->assign('GMaps_loaded', isset($pwg_loaded_plugins[ 'GMaps' ])); |
---|
74 | {/php} |
---|
75 | {if ($GMaps_loaded)}<div id="text_gmaps" style="display:none">{'GMap'|@translate}</div>{/if} |
---|
76 | <div style="clear:both;"></div> |
---|
77 | </div> <!-- imageHeaderBar --> |
---|
78 | |
---|
79 | {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} |
---|
80 | <div id="content"> |
---|
81 | |
---|
82 | <!-- Image HD --> |
---|
83 | <div id="theImageHigh" style="display:none;"> |
---|
84 | <div id="theImgHighBg"></div> |
---|
85 | <div id="theImgHighContainer"> |
---|
86 | <div id="theImgHighCloseButton" onclick="closeDisplayHigh();"></div> |
---|
87 | <div id="theImgHighZoomButton" class="fit" onclick="switchZoomHigh();"></div> |
---|
88 | <div id="theImgHighContainer2"> |
---|
89 | <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}"> |
---|
90 | </div> |
---|
91 | </div> |
---|
92 | </div> |
---|
93 | |
---|
94 | {assign var='display_description_tab' value=false} |
---|
95 | {if (!($stripped.showDescriptionInsteadOfTitle) && isset($COMMENT_IMG))} |
---|
96 | {assign var='display_description_tab' value=true} |
---|
97 | {/if} |
---|
98 | |
---|
99 | {assign var='showTitle' value=false} |
---|
100 | {if ($SHOW_PICTURE_NAME_ON_TITLE && (isset($COMMENT_IMG) || !($stripped.showDescriptionInsteadOfTitle) ))} |
---|
101 | {assign var='showTitle' value=true} |
---|
102 | {/if} |
---|
103 | |
---|
104 | {php} |
---|
105 | global $pwg_loaded_plugins; |
---|
106 | $this->assign('nothumbs', (isset($pwg_loaded_plugins[ 'Autosize' ]) || isset($pwg_loaded_plugins[ 'look_like_gbo2' ]))); |
---|
107 | $this->assign('usertags', (isset($pwg_loaded_plugins[ 'user_tags' ]))); |
---|
108 | {/php} |
---|
109 | {if $stripped.useNavigationArrows } |
---|
110 | {assign var='nothumbs' value=true} |
---|
111 | {/if} |
---|
112 | |
---|
113 | <div id="theImageAndTitle"> |
---|
114 | <div id="theImageBox"> |
---|
115 | {if ($DISPLAY_NAV_THUMB) && !($nothumbs)} |
---|
116 | {if isset($previous) }<div id="linkPrevOut"><a id="linkPrevIn" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"><div class="navThumb" ><img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}" /></div></a></div>{/if} |
---|
117 | {if isset($next) }<div id="linkNextOut"><a id="linkNextIn" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"><div class="navThumb" ><img src="{$next.THUMB_SRC}" alt="{$next.TITLE}" /></div></a></div>{/if} |
---|
118 | {/if} |
---|
119 | <div id="theImage"> |
---|
120 | {$ELEMENT_CONTENT} |
---|
121 | </div> |
---|
122 | </div> |
---|
123 | {if $showTitle } |
---|
124 | <div id="imageTitleContainer"><div id="imageTitle"> |
---|
125 | {if $stripped.showDescriptionInsteadOfTitle} |
---|
126 | {$COMMENT_IMG|strip_tags:false} |
---|
127 | {else} |
---|
128 | {$current.TITLE} |
---|
129 | {/if} |
---|
130 | </div></div> |
---|
131 | {/if} |
---|
132 | </div> <!-- theImage --> |
---|
133 | <div style="clear: both;"></div> |
---|
134 | |
---|
135 | <div id="tabZone"> |
---|
136 | |
---|
137 | {assign var='display_info_panel' value=false} |
---|
138 | {assign var='display_count' value='0'} |
---|
139 | {if $display_info.author}{assign var='display_count' value=$display_count+1}{/if} |
---|
140 | {if $display_info.created_on}{assign var='display_count' value=$display_count+1}{/if} |
---|
141 | {if $display_info.posted_on}{assign var='display_count' value=$display_count+1}{/if} |
---|
142 | {if $display_info.dimensions}{assign var='display_count' value=$display_count+1}{/if} |
---|
143 | {if $display_info.file}{assign var='display_count' value=$display_count+1}{/if} |
---|
144 | {if $display_info.filesize}{assign var='display_count' value=$display_count+1}{/if} |
---|
145 | {if $display_info.categories}{assign var='display_count' value=$display_count+1}{/if} |
---|
146 | {if $display_info.visits}{assign var='display_count' value=$display_count+1}{/if} |
---|
147 | {if $display_info.average_rate and isset($rate_summary) }{assign var='display_count' value=$display_count+1}{/if} |
---|
148 | {if isset($rating)}{assign var='display_count' value=$display_count+1}{/if} |
---|
149 | {if $display_info.privacy_level and isset($available_permission_levels) }{assign var='display_count' value=$display_count+1}{/if} |
---|
150 | {if (($display_count > 0) && ((isset($U_ADMIN)) || ($stripped.infoTabAdminOnly == false)))} |
---|
151 | {assign var='display_info_panel' value=true} |
---|
152 | {/if} |
---|
153 | <div id="tabTitleBar"> |
---|
154 | <ul id="tabTitles"> |
---|
155 | {if $display_description_tab} |
---|
156 | <li id="tabTcaption" class="tabTitle" name="caption">{'Description'|@translate}</li> |
---|
157 | {/if} |
---|
158 | {if ($display_info.tags && (isset($related_tags) || ($usertags)))} |
---|
159 | <li id="tabTtags" class="tabTitle" name="tags">{'Tags'|@translate}</li> |
---|
160 | {/if} |
---|
161 | {if isset($metadata)} |
---|
162 | {foreach from=$metadata item=meta key=id} |
---|
163 | <li id="tabTmeta{$id}" class="tabTitle" name="meta{$id}">{$meta.TITLE}</li> |
---|
164 | {/foreach} |
---|
165 | {/if} |
---|
166 | {if $display_info_panel} |
---|
167 | <li id="tabTinfo" class="tabTitle" name="info">{'Information'|@translate}</li> |
---|
168 | {/if} |
---|
169 | {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) } |
---|
170 | <li id="tabTcomments" class="tabTitle" title="{'Add a comment'|@translate}" name="comments">{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</li> |
---|
171 | {/if} |
---|
172 | </ul> |
---|
173 | </div> |
---|
174 | <div id="tabs"> |
---|
175 | {if $display_description_tab} |
---|
176 | <div id="Tcaption" class="tabBlock"><div class="tabBlockContent"> |
---|
177 | {$COMMENT_IMG} |
---|
178 | </div></div> |
---|
179 | {/if} |
---|
180 | {if ($display_info.tags && (isset($related_tags) || ($usertags)))} |
---|
181 | <div id="Ttags" class="tabBlock"><div class="tabBlockContent"> |
---|
182 | {if ($usertags)}<table id="TagsTable"><tr id="Tags" ><td class="label"></td><td class="value">{/if} |
---|
183 | {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} |
---|
184 | <a href="{$tag.URL}">{$tag.name}</a> |
---|
185 | {/foreach} |
---|
186 | {if ($usertags)}</td></tr></table>{/if} |
---|
187 | </div></div> |
---|
188 | {/if} |
---|
189 | {if isset($metadata)} |
---|
190 | {foreach from=$metadata item=meta key=id} |
---|
191 | <div id="Tmeta{$id}" class="tabBlock"><div class="tabBlockContent"> |
---|
192 | {if count($meta.lines)>0 and !array_key_exists('<!--rawContent-->', $meta.lines)} |
---|
193 | <table id="table_meta{$id}" class="infoTable2"> |
---|
194 | {foreach from=$meta.lines item=value key=label} |
---|
195 | <tr> |
---|
196 | <td class="label">{$label|@translate}</td> |
---|
197 | <td class="value">{$value}</td> |
---|
198 | </tr> |
---|
199 | {/foreach} |
---|
200 | </table> |
---|
201 | {else} |
---|
202 | {assign var='empty' value='<!--rawContent-->'} |
---|
203 | {$meta.lines.$empty} |
---|
204 | {/if} |
---|
205 | </div></div> |
---|
206 | {/foreach} |
---|
207 | {/if} |
---|
208 | {if $display_info_panel} |
---|
209 | <div id="Tinfo" class="tabBlock"><div class="tabBlockContent"> |
---|
210 | <table id="standard" class="infoTable"> |
---|
211 | {if $display_info.author} |
---|
212 | <tr id="Author"> |
---|
213 | <td class="label">{'Author'|@translate}</td> |
---|
214 | <td class="value">{if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}</td> |
---|
215 | </tr> |
---|
216 | {/if} |
---|
217 | {if $display_info.created_on} |
---|
218 | <tr id="datecreate"> |
---|
219 | <td class="label">{'Created on'|@translate}</td> |
---|
220 | <td class="value">{if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}</td> |
---|
221 | </tr> |
---|
222 | {/if} |
---|
223 | {if $display_info.posted_on} |
---|
224 | <tr id="datepost"> |
---|
225 | <td class="label">{'Posted on'|@translate}</td> |
---|
226 | <td class="value">{$INFO_POSTED_DATE}</td> |
---|
227 | </tr> |
---|
228 | {/if} |
---|
229 | {if $display_info.dimensions} |
---|
230 | <tr id="Dimensions"> |
---|
231 | <td class="label">{'Dimensions'|@translate}</td> |
---|
232 | <td class="value">{if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS}{else}{'N/A'|@translate}{/if}</td> |
---|
233 | </tr> |
---|
234 | {/if} |
---|
235 | {if $display_info.file} |
---|
236 | <tr id="File"> |
---|
237 | <td class="label">{'File'|@translate}</td> |
---|
238 | <td class="value">{$INFO_FILE}</td> |
---|
239 | </tr> |
---|
240 | {/if} |
---|
241 | {if $display_info.filesize} |
---|
242 | <tr id="Filesize"> |
---|
243 | <td class="label">{'Filesize'|@translate}</td> |
---|
244 | <td class="value">{if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}</td> |
---|
245 | </tr> |
---|
246 | {/if} |
---|
247 | {if $display_info.categories} |
---|
248 | <tr id="Categories"> |
---|
249 | <td class="label">{'Categories'|@translate}</td> |
---|
250 | <td class="value"> |
---|
251 | {if isset($related_categories)} |
---|
252 | <ul> |
---|
253 | {foreach from=$related_categories item=cat} |
---|
254 | <li>{$cat}</li> |
---|
255 | {/foreach} |
---|
256 | </ul> |
---|
257 | {/if} |
---|
258 | </td> |
---|
259 | </tr> |
---|
260 | {/if} |
---|
261 | {if $display_info.visits} |
---|
262 | <tr id="Visits"> |
---|
263 | <td class="label">{'Visits'|@translate}</td> |
---|
264 | <td class="value">{$INFO_VISITS}</td> |
---|
265 | </tr> |
---|
266 | {/if} |
---|
267 | |
---|
268 | {if $display_info.average_rate and isset($rate_summary) } |
---|
269 | <tr id="Average"> |
---|
270 | <td class="label">{'Average rate'|@translate}</td> |
---|
271 | <td class="value" id="ratingSummary"> |
---|
272 | {if $rate_summary.count} |
---|
273 | {assign var='rate_text' value='%.2f (rated %d times)'|@translate } |
---|
274 | {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) } |
---|
275 | {else} |
---|
276 | {'no rate'|@translate} |
---|
277 | {/if} |
---|
278 | </td> |
---|
279 | </tr> |
---|
280 | {/if} |
---|
281 | |
---|
282 | {if isset($rating)} |
---|
283 | <tr id="rating"> |
---|
284 | <td class="label"> |
---|
285 | <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> |
---|
286 | </td> |
---|
287 | <td class="value"> |
---|
288 | <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> |
---|
289 | <div> |
---|
290 | {foreach from=$rating.marks item=mark name=rate_loop} |
---|
291 | {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} |
---|
292 | <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> |
---|
293 | {else} |
---|
294 | <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> |
---|
295 | {/if} |
---|
296 | {/foreach} |
---|
297 | {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
298 | {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} |
---|
299 | {footer_script} |
---|
300 | var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; |
---|
301 | _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, |
---|
302 | updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), |
---|
303 | ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); |
---|
304 | {/footer_script} |
---|
305 | {/strip} |
---|
306 | </div> |
---|
307 | </form> |
---|
308 | </td> |
---|
309 | </tr> |
---|
310 | {/if} |
---|
311 | |
---|
312 | {if $display_info.privacy_level and isset($available_permission_levels)} |
---|
313 | <tr id="Privacy"> |
---|
314 | <td class="label">{'Who can see this photo?'|@translate}</td> |
---|
315 | <td class="value"> |
---|
316 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
317 | {footer_script} |
---|
318 | {literal}function setPrivacyLevel(selectElement, rootUrl, id, level) |
---|
319 | { |
---|
320 | selectElement.disabled = true; |
---|
321 | var y = new PwgWS(rootUrl); |
---|
322 | y.callService( |
---|
323 | "pwg.images.setPrivacyLevel", {image_id: id, level:level} , |
---|
324 | { |
---|
325 | method: "POST", |
---|
326 | onFailure: function(num, text) { selectElement.disabled = false; alert(num + " " + text); }, |
---|
327 | onSuccess: function(result) { selectElement.disabled = false; } |
---|
328 | } |
---|
329 | ); |
---|
330 | }{/literal} |
---|
331 | {/footer_script} |
---|
332 | <select onchange="setPrivacyLevel(this, '{$ROOT_URL}', {$current.id}, this.options[selectedIndex].value)"> |
---|
333 | {foreach from=$available_permission_levels item=label key=level} |
---|
334 | <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option> |
---|
335 | {/foreach} |
---|
336 | </select> |
---|
337 | </td> |
---|
338 | </tr> |
---|
339 | {/if} |
---|
340 | |
---|
341 | </table> |
---|
342 | </div></div> |
---|
343 | {/if} |
---|
344 | {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) } |
---|
345 | <div id="Tcomments" class="tabBlock"><div id="theComments" class="tabBlockContent"> |
---|
346 | <div id="theCommentsBlock"> |
---|
347 | {if !empty($COMMENT_NAV_BAR)} |
---|
348 | <div class="navigationBar">{$COMMENT_NAV_BAR}</div> |
---|
349 | {/if} |
---|
350 | {if isset($comment_add)} |
---|
351 | <div id="commentAdd"> |
---|
352 | <h4>{'Add a comment'|@translate}</h4> |
---|
353 | <form method="post" action="{$comment_add.F_ACTION}" class="filter" id="addComment" > |
---|
354 | {if $comment_add.SHOW_AUTHOR} |
---|
355 | <p><label>{'Author'|@translate} :</label></p> |
---|
356 | <p><input type="text" name="author" /></p> |
---|
357 | {/if} |
---|
358 | <p><label>{'Comment'|@translate} :</label></p> |
---|
359 | <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p> |
---|
360 | <p><input type="hidden" name="key" value="{$comment_add.KEY}" /> |
---|
361 | <input class="submit" type="submit" value="{'Submit'|@translate}"></p> |
---|
362 | </form> |
---|
363 | </div> |
---|
364 | {/if} |
---|
365 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
366 | {if isset($comments)} |
---|
367 | <div id="commentList"> |
---|
368 | {include file='comment_list.tpl'} |
---|
369 | </div> |
---|
370 | {/if} |
---|
371 | <div style="clear: both;"></div> |
---|
372 | </div> |
---|
373 | </div></div> |
---|
374 | {/if} |
---|
375 | </div> |
---|
376 | </div> |
---|
377 | <div style="clear: both;"></div> |
---|
378 | </div> |
---|
379 | {if isset($stripped.imagePreload)} |
---|
380 | <div id="image_urls" style="display:none;"> |
---|
381 | {foreach from=$U_IMGNEXT item=u_img key=id} |
---|
382 | {if isset($u_img)}<div class="next{$id} preload">{$u_img}</div>{/if} |
---|
383 | {/foreach} |
---|
384 | </div> |
---|
385 | {/if} |
---|
386 | {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} |
---|