1 | |
---|
2 | {include file='include/autosize.inc.tpl'} |
---|
3 | |
---|
4 | <div class="titrePage"> |
---|
5 | <h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2> |
---|
6 | </div> |
---|
7 | |
---|
8 | {if !isset($default)} |
---|
9 | <form method="post" action="{$F_ACTION}" class="properties"> |
---|
10 | {/if} |
---|
11 | <div id="configContent"> |
---|
12 | {if isset($main)} |
---|
13 | <fieldset id="mainConf"> |
---|
14 | <legend></legend> |
---|
15 | <ul> |
---|
16 | <li> |
---|
17 | <span class="property"> |
---|
18 | <label for="gallery_title">{'Gallery title'|@translate}</label> |
---|
19 | </span> |
---|
20 | <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}"> |
---|
21 | </li> |
---|
22 | |
---|
23 | <li> |
---|
24 | <span class="property"> |
---|
25 | <label for="page_banner">{'Page banner'|@translate}</label> |
---|
26 | </span> |
---|
27 | <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea> |
---|
28 | </li> |
---|
29 | </ul> |
---|
30 | </fieldset> |
---|
31 | |
---|
32 | <fieldset id="mainConfCheck"> |
---|
33 | <legend></legend> |
---|
34 | <ul> |
---|
35 | <li> |
---|
36 | <label> |
---|
37 | <span class="property">{'Lock gallery'|@translate}</span> |
---|
38 | <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if}> |
---|
39 | </label> |
---|
40 | </li> |
---|
41 | |
---|
42 | <li> |
---|
43 | <label> |
---|
44 | <span class="property">{'Allow rating'|@translate}</span> |
---|
45 | <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}> |
---|
46 | </label> |
---|
47 | </li> |
---|
48 | |
---|
49 | <li> |
---|
50 | <label> |
---|
51 | <span class="property">{'Rating by guests'|@translate}</span> |
---|
52 | <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}> |
---|
53 | </label> |
---|
54 | </li> |
---|
55 | |
---|
56 | <li> |
---|
57 | <label> |
---|
58 | <span class="property">{'Allow user registration'|@translate}</span> |
---|
59 | <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}> |
---|
60 | </label> |
---|
61 | </li> |
---|
62 | |
---|
63 | <li> |
---|
64 | <label> |
---|
65 | <span class="property">{'Allow user customization'|@translate}</span> |
---|
66 | <input type="checkbox" name="allow_user_customization" {if ($main.allow_user_customization)}checked="checked"{/if}> |
---|
67 | </label> |
---|
68 | </li> |
---|
69 | |
---|
70 | <li> |
---|
71 | <label> |
---|
72 | <span class="property">{'Mail address is obligatory for all users'|@translate}</span> |
---|
73 | <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}> |
---|
74 | </label> |
---|
75 | </li> |
---|
76 | |
---|
77 | <li> |
---|
78 | <label> |
---|
79 | <span class="property">{'Email admins when a new user registers'|@translate}</span> |
---|
80 | <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}> |
---|
81 | </label> |
---|
82 | </li> |
---|
83 | |
---|
84 | <li> |
---|
85 | |
---|
86 | <span class="property"> |
---|
87 | {'Week starts on'|@translate} |
---|
88 | {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected} |
---|
89 | </span> |
---|
90 | </li> |
---|
91 | |
---|
92 | <li> |
---|
93 | |
---|
94 | <span class="property"> |
---|
95 | {'Default photos order'|@translate} |
---|
96 | |
---|
97 | {foreach from=$main.order_by item=order} |
---|
98 | <span class="filter {if $ORDER_BY_IS_CUSTOM}transparent{/if}"> |
---|
99 | <select name="order_by_field[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}> |
---|
100 | {html_options options=$main.order_field_options selected=$order.FIELD } |
---|
101 | </select> |
---|
102 | <select name="order_by_direction[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}> |
---|
103 | {html_options options=$main.order_direction_options selected=$order.DIRECTION } |
---|
104 | </select> |
---|
105 | <a class="removeFilter">{'delete'|@translate}</a> |
---|
106 | </span> |
---|
107 | {/foreach} |
---|
108 | |
---|
109 | {if !$ORDER_BY_IS_CUSTOM} |
---|
110 | <a class="addFilter">{'Add a criteria'|@translate}</a> |
---|
111 | {else} |
---|
112 | <span class="order_by_is_custom">{'You can\'t define a default photo order because you have a custom setting in your local configuration.'|@translate}</span> |
---|
113 | {/if} |
---|
114 | </span> |
---|
115 | </li> |
---|
116 | |
---|
117 | {if !$ORDER_BY_IS_CUSTOM} |
---|
118 | {footer_script require='jquery'} |
---|
119 | // counters for displaying of addFilter link |
---|
120 | fields = {$main.order_by|@count}; max_fields = {$main.order_field_options|@count}; max_fields--; |
---|
121 | |
---|
122 | {literal} |
---|
123 | function updateAddFilterLink() { |
---|
124 | if (fields >= max_fields) { |
---|
125 | $('.addFilter').css('display', 'none'); |
---|
126 | } else { |
---|
127 | $('.addFilter').css('display', ''); |
---|
128 | } |
---|
129 | } |
---|
130 | |
---|
131 | function updateRemoveFilterTrigger() { |
---|
132 | $(".removeFilter").click(function () { |
---|
133 | $(this).parent('span.filter').remove(); |
---|
134 | fields--; |
---|
135 | updateAddFilterLink(); |
---|
136 | }); |
---|
137 | } |
---|
138 | |
---|
139 | jQuery(document).ready(function () { |
---|
140 | $('.addFilter').click(function() { |
---|
141 | rel = $(this).attr('rel'); |
---|
142 | $(this).prev('span.filter').clone().insertBefore($(this)); |
---|
143 | $(this).prev('span.filter').children('select[name="order_by_field[]"]').val(''); |
---|
144 | $(this).prev('span.filter').children('select[name="order_by_direction[]"]').val('ASC'); |
---|
145 | |
---|
146 | fields++; |
---|
147 | updateAddFilterLink(); |
---|
148 | updateRemoveFilterTrigger(); |
---|
149 | }); |
---|
150 | |
---|
151 | updateRemoveFilterTrigger(); |
---|
152 | updateAddFilterLink(); |
---|
153 | }); |
---|
154 | {/literal} |
---|
155 | {/footer_script} |
---|
156 | {/if} |
---|
157 | </ul> |
---|
158 | </fieldset> |
---|
159 | {/if} |
---|
160 | |
---|
161 | {if isset($history)} |
---|
162 | <fieldset id="historyConf"> |
---|
163 | <legend></legend> |
---|
164 | <ul> |
---|
165 | <li> |
---|
166 | <label><span class="property">{'Save page visits by guests'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if}></label> |
---|
167 | </li> |
---|
168 | |
---|
169 | <li> |
---|
170 | <label><span class="property">{'Save page visits by users'|@translate}</span><input type="checkbox" name="log" {if ($history.log)}checked="checked"{/if}></label> |
---|
171 | </li> |
---|
172 | |
---|
173 | <li> |
---|
174 | <label><span class="property">{'Save page visits by administrators'|@translate}</span><input type="checkbox" name="history_admin" {if ($history.history_admin)}checked="checked"{/if}></label> |
---|
175 | </li> |
---|
176 | </ul> |
---|
177 | </fieldset> |
---|
178 | {/if} |
---|
179 | |
---|
180 | {if isset($comments)} |
---|
181 | <fieldset id="commentsConf"> |
---|
182 | <legend></legend> |
---|
183 | <ul> |
---|
184 | <li> |
---|
185 | <label> |
---|
186 | <span class="property">{'Comments for all'|@translate}</span> |
---|
187 | <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}> |
---|
188 | </label> |
---|
189 | </li> |
---|
190 | |
---|
191 | <li> |
---|
192 | <span class="property"> |
---|
193 | <label for="nb_comment_page">{'Number of comments per page'|@translate}</label> |
---|
194 | </span> |
---|
195 | <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}"> |
---|
196 | </li> |
---|
197 | |
---|
198 | <li> |
---|
199 | <label> |
---|
200 | <span class="property">{'Validation'|@translate}</span> |
---|
201 | <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}> |
---|
202 | </label> |
---|
203 | </li> |
---|
204 | |
---|
205 | <li> |
---|
206 | <label> |
---|
207 | <span class="property">{'Email admins when a valid comment is entered'|@translate}</span> |
---|
208 | <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}> |
---|
209 | </label> |
---|
210 | </li> |
---|
211 | |
---|
212 | <li> |
---|
213 | <label> |
---|
214 | <span class="property">{'Email admins when a comment requires validation'|@translate}</span> |
---|
215 | <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}> |
---|
216 | </label> |
---|
217 | </li> |
---|
218 | |
---|
219 | <li> |
---|
220 | <label> |
---|
221 | <span class="property">{'Allow users to edit their own comments'|@translate}</span> |
---|
222 | <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}> |
---|
223 | </label> |
---|
224 | </li> |
---|
225 | <li> |
---|
226 | <label> |
---|
227 | <span class="property">{'Allow users to delete their own comments'|@translate}</span> |
---|
228 | <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}> |
---|
229 | </label> |
---|
230 | </li> |
---|
231 | <li> |
---|
232 | <label> |
---|
233 | <span class="property">{'Email administrators when a comment is modified'|@translate}</span> |
---|
234 | <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}> |
---|
235 | </label> |
---|
236 | </li> |
---|
237 | <li> |
---|
238 | <label> |
---|
239 | <span class="property">{'Email administrators when a comment is deleted'|@translate}</span> |
---|
240 | <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}> |
---|
241 | </label> |
---|
242 | </li> |
---|
243 | |
---|
244 | </ul> |
---|
245 | </fieldset> |
---|
246 | {/if} |
---|
247 | |
---|
248 | </div> <!-- configContent --> |
---|
249 | |
---|
250 | {if isset($default)} |
---|
251 | {$PROFILE_CONTENT} |
---|
252 | {/if} |
---|
253 | |
---|
254 | {if isset($display)} |
---|
255 | <fieldset id="indexDisplayConf"> |
---|
256 | <legend>{'Main Page'|@translate}</legend> |
---|
257 | <ul> |
---|
258 | <li> |
---|
259 | <label> |
---|
260 | <span class="property">{'display only recently posted photos'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
261 | <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}> |
---|
262 | </label> |
---|
263 | </li> |
---|
264 | |
---|
265 | <li> |
---|
266 | <label> |
---|
267 | <span class="property">{'Activate icon "new" next to albums and pictures'|@translate}</span> |
---|
268 | <input type="checkbox" name="index_new_icon" {if ($display.index_new_icon)}checked="checked"{/if}> |
---|
269 | </label> |
---|
270 | </li> |
---|
271 | |
---|
272 | <li> |
---|
273 | <label> |
---|
274 | <span class="property">{'Sort order'|@translate|@string_format:$pwg->l10n('Activate field "%s"')}</span> |
---|
275 | <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}> |
---|
276 | </label> |
---|
277 | </li> |
---|
278 | |
---|
279 | <li> |
---|
280 | <label> |
---|
281 | <span class="property">{'display all photos in all sub-albums'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
282 | <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}> |
---|
283 | </label> |
---|
284 | </li> |
---|
285 | |
---|
286 | <li> |
---|
287 | <label> |
---|
288 | <span class="property">{'display a calendar by posted date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
289 | <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}> |
---|
290 | </label> |
---|
291 | </li> |
---|
292 | |
---|
293 | <li> |
---|
294 | <label> |
---|
295 | <span class="property">{'display a calendar by creation date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
296 | <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}> |
---|
297 | </label> |
---|
298 | </li> |
---|
299 | |
---|
300 | <li> |
---|
301 | <label> |
---|
302 | <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
303 | <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}> |
---|
304 | </label> |
---|
305 | </li> |
---|
306 | </ul> |
---|
307 | </fieldset> |
---|
308 | |
---|
309 | <fieldset id="pictureDisplayConf"> |
---|
310 | <legend>{'Photo Page'|@translate}</legend> |
---|
311 | <ul> |
---|
312 | <li> |
---|
313 | <label> |
---|
314 | <span class="property">{'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
315 | <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}> |
---|
316 | </label> |
---|
317 | </li> |
---|
318 | |
---|
319 | <li> |
---|
320 | <label> |
---|
321 | <span class="property">{'Show file metadata'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
322 | <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}> |
---|
323 | </label> |
---|
324 | </li> |
---|
325 | |
---|
326 | <li> |
---|
327 | <label> |
---|
328 | <span class="property">{'Download this file'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
329 | <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}> |
---|
330 | </label> |
---|
331 | </li> |
---|
332 | |
---|
333 | <li> |
---|
334 | <label> |
---|
335 | <span class="property">{'add this photo to your favorites'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}</span> |
---|
336 | <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}> |
---|
337 | </label> |
---|
338 | </li> |
---|
339 | |
---|
340 | <li> |
---|
341 | <label> |
---|
342 | <span class="property">{'Activate Navigation Bar'|@translate}</span> |
---|
343 | <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}> |
---|
344 | </label> |
---|
345 | </li> |
---|
346 | |
---|
347 | <li> |
---|
348 | <label> |
---|
349 | <span class="property">{'Activate Navigation Thumbnails'|@translate}</span> |
---|
350 | <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}> |
---|
351 | </label> |
---|
352 | </li> |
---|
353 | |
---|
354 | <li> |
---|
355 | <label> |
---|
356 | <span class="property">{'Show menubar'|@translate}</span> |
---|
357 | <input type="checkbox" name="picture_menu" {if ($display.picture_menu)}checked="checked"{/if}> |
---|
358 | </label> |
---|
359 | </li> |
---|
360 | </ul> |
---|
361 | </fieldset> |
---|
362 | |
---|
363 | <fieldset id="pictureInfoConf"> |
---|
364 | <legend>{'Photo Properties'|@translate}</legend> |
---|
365 | <ul> |
---|
366 | <li> |
---|
367 | <label> |
---|
368 | <span class="property">{'Author'|@translate}</span> |
---|
369 | <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}> |
---|
370 | </label> |
---|
371 | </li> |
---|
372 | |
---|
373 | <li> |
---|
374 | <label> |
---|
375 | <span class="property">{'Created on'|@translate}</span> |
---|
376 | <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}> |
---|
377 | </label> |
---|
378 | </li> |
---|
379 | |
---|
380 | <li> |
---|
381 | <label> |
---|
382 | <span class="property">{'Posted on'|@translate}</span> |
---|
383 | <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}> |
---|
384 | </label> |
---|
385 | </li> |
---|
386 | |
---|
387 | <li> |
---|
388 | <label> |
---|
389 | <span class="property">{'Dimensions'|@translate}</span> |
---|
390 | <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}> |
---|
391 | </label> |
---|
392 | </li> |
---|
393 | |
---|
394 | <li> |
---|
395 | <label> |
---|
396 | <span class="property">{'File'|@translate}</span> |
---|
397 | <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}> |
---|
398 | </label> |
---|
399 | </li> |
---|
400 | |
---|
401 | <li> |
---|
402 | <label> |
---|
403 | <span class="property">{'Filesize'|@translate}</span> |
---|
404 | <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}> |
---|
405 | </label> |
---|
406 | </li> |
---|
407 | |
---|
408 | <li> |
---|
409 | <label> |
---|
410 | <span class="property">{'Tags'|@translate}</span> |
---|
411 | <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}> |
---|
412 | </label> |
---|
413 | </li> |
---|
414 | |
---|
415 | <li> |
---|
416 | <label> |
---|
417 | <span class="property">{'Albums'|@translate}</span> |
---|
418 | <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}> |
---|
419 | </label> |
---|
420 | </li> |
---|
421 | |
---|
422 | <li> |
---|
423 | <label> |
---|
424 | <span class="property">{'Visits'|@translate}</span> |
---|
425 | <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}> |
---|
426 | </label> |
---|
427 | </li> |
---|
428 | |
---|
429 | <li> |
---|
430 | <label> |
---|
431 | <span class="property">{'Rating score'|@translate}</span> |
---|
432 | <input type="checkbox" name="picture_informations[rating_score]" {if ($display.picture_informations.rating_score)}checked="checked"{/if}> |
---|
433 | </label> |
---|
434 | </li> |
---|
435 | |
---|
436 | <li> |
---|
437 | <label> |
---|
438 | <span class="property">{'Who can see this photo?'|@translate} ({'available for administrators only'|@translate})</span> |
---|
439 | <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}> |
---|
440 | </label> |
---|
441 | </li> |
---|
442 | </ul> |
---|
443 | </fieldset> |
---|
444 | {/if} |
---|
445 | |
---|
446 | {if !isset($default)} |
---|
447 | <p> |
---|
448 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> |
---|
449 | <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> |
---|
450 | </p> |
---|
451 | </form> |
---|
452 | {/if} |
---|