source: trunk/admin/themes/default/template/configuration.tpl @ 25489

Last change on this file since 25489 was 25489, checked in by mistic100, 7 years ago

bug 2883: filter order_by for duplicated values

  • Property svn:eol-style set to LF
File size: 29.7 KB
Line 
1{footer_script}
2(function(){
3  var targets = {
4    'input[name="rate"]' : '#rate_anonymous',
5    'input[name="allow_user_registration"]' : '#email_admin_on_new_user',
6    'input[name="comments_validation"]' : '#email_admin_on_comment_validation',
7    'input[name="user_can_edit_comment"]' : '#email_admin_on_comment_edition',
8    'input[name="user_can_delete_comment"]' : '#email_admin_on_comment_deletion',
9  };
10
11  for (selector in targets) {
12    var target = targets[selector];
13
14    jQuery(target).toggle(jQuery(selector).is(':checked'));
15
16    (function(target){
17      jQuery(selector).on('change', function() {
18        jQuery(target).toggle($(this).is(':checked'));
19      });
20    })(target);
21  };
22}());
23{/footer_script}
24
25<h2>{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}</h2>
26
27{if !isset($default)}
28<form method="post" action="{$F_ACTION}" class="properties"{if isset($watermark)} enctype="multipart/form-data"{/if}>
29{/if}
30
31<div id="configContent">
32{if isset($main)}
33<fieldset class="mainConf">
34  <legend>{'Basic settings'|translate}</legend>
35  <ul>
36    <li>
37      <label for="gallery_title">{'Gallery title'|@translate}</label>
38      <br>
39      <input type="text" maxlength="255" size="50" name="gallery_title" id="gallery_title" value="{$main.CONF_GALLERY_TITLE}">
40    </li>
41
42    <li>
43      <label for="page_banner">{'Page banner'|@translate}</label>
44      <br>
45      <textarea rows="5" cols="50" class="description" name="page_banner" id="page_banner">{$main.CONF_PAGE_BANNER}</textarea>
46    </li>
47   
48   <li id="order_filters">
49      <label>{'Default photos order'|@translate}</label>
50
51    {foreach from=$main.order_by item=order}
52      <span class="filter {if isset($ORDER_BY_IS_CUSTOM)}transparent{/if}">
53        <select name="order_by[]" {if isset($ORDER_BY_IS_CUSTOM)}disabled{/if}>
54          {html_options options=$main.order_by_options selected=$order}
55        </select>
56        <a class="removeFilter">{'delete'|@translate}</a>
57      </span>
58    {/foreach}
59
60    {if !isset($ORDER_BY_IS_CUSTOM)}
61      <a class="addFilter">{'Add a criteria'|@translate}</a>
62    {else}
63      <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>
64    {/if}
65    </li>
66  </ul>
67 
68{if !isset($ORDER_BY_IS_CUSTOM)}
69{footer_script require='jquery'}
70(function(){
71var max_fields = Math.ceil({$main.order_by_options|@count}/2);
72
73function updateFilters() {
74  var $selects = jQuery('#order_filters select');
75
76  jQuery('#order_filters .addFilter').toggle($selects.length <= max_fields);
77  jQuery('#order_filters .removeFilter').css('display', '').filter(':first').css('display', 'none');
78 
79  $selects.find('option').removeAttr('disabled');
80  $selects.each(function() {
81    $selects.not(this).find('option[value="'+ jQuery(this).val() +'"]').attr('disabled', 'disabled');
82  });
83}
84
85jQuery('#order_filters').on('click', '.removeFilter', function() {
86  jQuery(this).parent('span.filter').remove();
87  updateFilters();
88});
89
90jQuery('#order_filters').on('change', 'select', updateFilters);
91
92jQuery('#order_filters .addFilter').click(function() {
93  jQuery(this).prev('span.filter').clone().insertBefore(jQuery(this));
94  jQuery(this).prev('span.filter').children('select').val('');
95  updateFilters();
96});
97
98updateFilters();
99}());
100{/footer_script}
101{/if}
102</fieldset>
103
104<fieldset class="mainConf">
105  <legend>{'Permissions'|translate}</legend>
106  <ul>
107    <li>
108      <label>
109        <input type="checkbox" name="rate" {if ($main.rate)}checked="checked"{/if}>
110        {'Allow rating'|@translate}
111      </label>
112
113      <label id="rate_anonymous" class="no-bold">
114        <input type="checkbox" name="rate_anonymous" {if ($main.rate_anonymous)}checked="checked"{/if}>
115        {'Rating by guests'|@translate}
116      </label>
117    </li>
118
119    <li>
120      <label>
121        <input type="checkbox" name="allow_user_registration" {if ($main.allow_user_registration)}checked="checked"{/if}>
122        {'Allow user registration'|@translate}
123      </label>
124
125      <label id="email_admin_on_new_user" class="no-bold">
126        <input type="checkbox" name="email_admin_on_new_user" {if ($main.email_admin_on_new_user)}checked="checked"{/if}>
127        {'Email admins when a new user registers'|@translate}
128      </label>
129    </li>
130
131    <li>
132      <label>
133        <input type="checkbox" name="allow_user_customization" {if ($main.allow_user_customization)}checked="checked"{/if}>
134        {'Allow user customization'|@translate}
135      </label>
136    </li>
137
138    <li>
139      <label>
140        <input type="checkbox" name="obligatory_user_mail_address" {if ($main.obligatory_user_mail_address)}checked="checked"{/if}>
141        {'Mail address is obligatory for all users'|@translate}
142      </label>
143    </li>
144  </ul>
145
146{footer_script require='jquery'}
147jQuery("#activate_comments").change(function(){
148  if ($(this).is(':checked')) {
149    jQuery("#comments_param_warp").show();
150  } else {
151    jQuery("#comments_param_warp").hide();
152  }
153});
154{/footer_script}
155</fieldset>
156
157<fieldset class="mainConf">
158  <legend>{'Miscellaneous'|translate}</legend>
159  <ul>
160    <li>
161      <label>{'Week starts on'|@translate}
162      {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}</label>
163    </li>
164
165    <li>
166      <strong>{'Save visits in history for'|@translate}</strong>
167
168      <label class="no-bold">
169        <input type="checkbox" name="history_guest" {if ($main.history_guest)}checked="checked"{/if}>
170        {'simple visitors'|@translate}
171      </label>
172
173      <label class="no-bold">
174        <input type="checkbox" name="log" {if ($main.log)}checked="checked"{/if}>
175        {'registered users'|@translate}
176      </label>
177
178      <label class="no-bold">
179        <input type="checkbox" name="history_admin" {if ($main.history_admin)}checked="checked"{/if}>
180        {'administrators'|@translate}
181      </label>
182    </li>
183
184    <li>
185      <label>{'Mail theme'|@translate}</label>
186     
187      <div class="themeBoxes">
188      {foreach from=$main.mail_theme_options item=name key=theme}
189        <div class="themeBox {if $main.mail_theme==$theme}themeDefault{/if}">
190          <label>
191            <div class="themeName">
192              <input type="radio" name="mail_theme" value="{$theme}" {if $main.mail_theme==$theme}checked{/if}>
193              {$name}
194            </div>
195            <div class="themeShot">
196              <img src="{$ROOT_URL}themes/default/template/mail/screenshot-{$theme}.png" width="150"/>
197            </div>
198          </label>
199          <a href="{$ROOT_URL}themes/default/template/mail/screenshot-{$theme}.png">{'Preview'|translate}</a>
200        </div>
201      {/foreach}
202      </div>
203    </li>
204   
205{include file='include/colorbox.inc.tpl'}
206{footer_script require='jquery'}
207jQuery(".themeBoxes a").colorbox();
208
209jQuery("input[name='mail_theme']").change(function() {
210  jQuery("input[name='mail_theme']").parents(".themeBox").removeClass("themeDefault");
211  jQuery(this).parents(".themeBox").addClass("themeDefault");
212});
213{/footer_script}
214  </ul>
215</fieldset>
216{/if}
217
218{if isset($comments)}
219<fieldset id="commentsConf" class="no-border">
220  <legend></legend>
221  <ul>
222    <li>
223      <label>
224        <input type="checkbox" name="activate_comments" id="activate_comments"{if ($comments.activate_comments)}checked="checked"{/if}>
225        {'Activate comments'|@translate}
226      </label>
227    </li>
228  </ul>
229
230  <ul id="comments_param_warp"{if not ($comments.activate_comments)} style="display:none;"{/if}>
231    <li>
232      <label>
233        <input type="checkbox" name="comments_forall" {if ($comments.comments_forall)}checked="checked"{/if}>
234        {'Comments for all'|@translate}
235      </label>
236    </li>
237
238    <li>
239      <label>
240        {'Number of comments per page'|@translate}
241        <input type="text" size="3" maxlength="4" name="nb_comment_page" id="nb_comment_page" value="{$comments.NB_COMMENTS_PAGE}">
242      </label>
243    </li>
244
245    <li>
246      <label>
247        {'Default comments order'|@translate}
248        <select name="comments_order">
249          {html_options options=$comments.comments_order_options selected=$comments.comments_order}
250        </select>
251      </label>
252    </li>
253
254    <li>
255      <label>
256        <input type="checkbox" name="comments_validation" {if ($comments.comments_validation)}checked="checked"{/if}>
257        {'Validation'|@translate}
258      </label>
259    </li>
260
261    <li>
262      <label>
263        <input type="checkbox" name="comments_author_mandatory" {if ($comments.comments_author_mandatory)}checked="checked"{/if}>
264        {'Username is mandatory'|@translate}
265      </label>
266    </li>
267
268    <li>
269      <label>
270        <input type="checkbox" name="comments_email_mandatory" {if ($comments.comments_email_mandatory)}checked="checked"{/if}>
271        {'Email address is mandatory'|@translate}
272      </label>
273    </li>
274
275    <li>
276      <label>
277        <input type="checkbox" name="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
278        {'Allow users to edit their own comments'|@translate}
279      </label>
280    </li>
281
282    <li>
283      <label>
284        <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}>
285        {'Allow users to delete their own comments'|@translate}
286      </label>
287    </li>
288
289    <li id="notifyAdmin">
290      <strong>{'Notify administrators when a comment is'|@translate}</strong>
291
292      <label id="email_admin_on_comment_validation" class="no-bold">
293        <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}> {'pending validation'|@translate}
294      </label>
295
296      <label class="no-bold">
297        <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}> {'added'|@translate}
298      </label>
299
300      <label id="email_admin_on_comment_edition" class="no-bold">
301        <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}> {'modified'|@translate}
302      </label>
303
304      <label id="email_admin_on_comment_deletion" class="no-bold">
305        <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}> {'deleted'|@translate}
306      </label>
307    </li>
308  </ul>
309</fieldset>
310{/if}
311
312{if isset($sizes)}
313
314{footer_script}
315(function(){
316  var labelMaxWidth = "{'Maximum width'|@translate}",
317      labelWidth = "{'Width'|@translate}",
318      labelMaxHeight = "{'Maximum height'|@translate}",
319      labelHeight = "{'Height'|@translate}";
320
321  function toggleResizeFields(size) {
322    var checkbox = jQuery("#original_resize");
323    var needToggle = jQuery("#sizeEdit-original");
324
325    if (jQuery(checkbox).is(':checked')) {
326      needToggle.show();
327    }
328    else {
329      needToggle.hide();
330    }
331  }
332
333  toggleResizeFields("original");
334  jQuery("#original_resize").click(function () {
335    toggleResizeFields("original");
336  });
337
338  jQuery("a[id^='sizeEditOpen-']").click(function(){
339    var sizeName = jQuery(this).attr("id").split("-")[1];
340    jQuery("#sizeEdit-"+sizeName).toggle();
341    jQuery(this).hide();
342                return false;
343  });
344
345  jQuery(".cropToggle").click(function() {
346    var labelBoxWidth = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditWidth');
347    var labelBoxHeight = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditHeight');
348
349    if (jQuery(this).is(':checked')) {
350      jQuery(labelBoxWidth).html(labelWidth);
351      jQuery(labelBoxHeight).html(labelHeight);
352    }
353    else {
354      jQuery(labelBoxWidth).html(labelMaxWidth);
355      jQuery(labelBoxHeight).html(labelMaxHeight);
356    }
357  });
358
359  jQuery("#showDetails").click(function() {
360    jQuery(".sizeDetails").show();
361    jQuery(this).css("visibility", "hidden");
362                return false;
363  });
364}());
365{/footer_script}
366
367{html_style}{literal}
368.sizeEnable {width:50px;}
369.sizeEditForm {margin:0 0 10px 20px;}
370.sizeEdit {display:none;}
371#sizesConf table {margin:0;}
372.showDetails {padding:0;}
373.sizeDetails {display:none;margin-left:10px;}
374.sizeEditOpen {margin-left:10px;}
375{/literal}{/html_style}
376
377<fieldset id="sizesConf">
378  <legend>{'Original Size'|@translate}</legend>
379{if $is_gd}
380  <div>
381    {'Resize after upload disabled due to the use of GD as graphic library'|@translate}
382    <input type="checkbox" name="original_resize" id="original_resize" disabled="disabled" style="visibility: hidden">
383    <input type="hidden" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}">
384    <input type="hidden" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}">
385    <input type="hidden" name="original_resize_quality" value="{$sizes.original_resize_quality}">
386  </div>
387{else}
388  <div>
389    <label for="original_resize">
390      <input type="checkbox" name="original_resize" id="original_resize" {if ($sizes.original_resize)}checked="checked"{/if}>
391      {'Resize after upload'|@translate}
392    </label>
393  </div>
394
395  <table id="sizeEdit-original">
396    <tr>
397      <th>{'Maximum width'|@translate}</th>
398      <td>
399        <input type="text" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}" size="4" maxlength="4"{if isset($ferrors.original_resize_maxwidth)} class="dError"{/if}> {'pixels'|@translate}
400        {if isset($ferrors.original_resize_maxwidth)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxwidth}">!</span>{/if}
401      </td>
402    </tr>
403    <tr>
404      <th>{'Maximum height'|@translate}</th>
405      <td>
406        <input type="text" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}" size="4" maxlength="4"{if isset($ferrors.original_resize_maxheight)} class="dError"{/if}> {'pixels'|@translate}
407        {if isset($ferrors.original_resize_maxheight)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxheight}">!</span>{/if}
408      </td>
409    </tr>
410    <tr>
411      <th>{'Image Quality'|@translate}</th>
412      <td>
413        <input type="text" name="original_resize_quality" value="{$sizes.original_resize_quality}" size="3" maxlength="3"{if isset($ferrors.original_resize_quality)} class="dError"{/if}> %
414        {if isset($ferrors.original_resize_quality)}<span class="dErrorDesc" title="{$ferrors.original_resize_quality}">!</span>{/if}
415      </td>
416    </tr>
417  </table>
418{/if}
419</fieldset>
420
421<fieldset id="multiSizesConf">
422  <legend>{'Multiple Size'|@translate}</legend>
423
424  <div class="showDetails">
425    <a href="#" id="showDetails"{if isset($ferrors)} style="display:none"{/if}>{'show details'|@translate}</a>
426  </div>
427
428  <table style="margin:0">
429  {foreach from=$derivatives item=d key=type}
430    <tr>
431      <td>
432        <label>
433          <span class="sizeEnable">
434    {if $d.must_enable}
435            &#x2714;
436    {else}
437            <input type="checkbox" name="d[{$type}][enabled]" {if $d.enabled}checked="checked"{/if}>
438    {/if}
439          </span>
440          {$type|@translate}
441        </label>
442      </td>
443
444      <td>
445        <span class="sizeDetails"{if isset($ferrors)} style="display:inline"{/if}>{$d.w} x {$d.h} {'pixels'|@translate}{if $d.crop}, {'Crop'|@translate|lower}{/if}</span>
446      </td>
447
448      <td>
449        <span class="sizeDetails"{if isset($ferrors) and !isset($ferrors.$type)} style="display:inline"{/if}>
450          <a href="#" id="sizeEditOpen-{$type}" class="sizeEditOpen">{'edit'|@translate}</a>
451        </span>
452      </td>
453    </tr>
454
455    <tr id="sizeEdit-{$type}" class="sizeEdit" {if isset($ferrors.$type)} style="display:block"{/if}>
456      <td colspan="3">
457        <table class="sizeEditForm">
458    {if !$d.must_square}
459          <tr>
460            <td colspan="2">
461              <label>
462                <input type="checkbox" class="cropToggle" name="d[{$type}][crop]" {if $d.crop}checked="checked"{/if}>
463                {'Crop'|@translate}
464              </label>
465            </td>
466          </tr>
467    {/if}
468
469          <tr>
470            <td class="sizeEditWidth">{if $d.must_square or $d.crop}{'Width'|@translate}{else}{'Maximum width'|@translate}{/if}</td>
471            <td>
472              <input type="text" name="d[{$type}][w]" maxlength="4" size="4" value="{$d.w}"{if isset($ferrors.$type.w)} class="dError"{/if}>
473              {'pixels'|@translate}
474              {if isset($ferrors.$type.w)}<span class="dErrorDesc" title="{$ferrors.$type.w}">!</span>{/if}
475            </td>
476          </tr>
477
478    {if !$d.must_square}
479          <tr>
480            <td class="sizeEditHeight">{if $d.crop}{'Height'|@translate}{else}{'Maximum height'|@translate}{/if}</td>
481            <td>
482              <input type="text" name="d[{$type}][h]" maxlength="4" size="4"  value="{$d.h}"{if isset($ferrors.$type.h)} class="dError"{/if}>
483              {'pixels'|@translate}
484              {if isset($ferrors.$type.h)}<span class="dErrorDesc" title="{$ferrors.$type.h}">!</span>{/if}
485            </td>
486          </tr>
487    {/if}
488          <tr>
489          <td>{'Sharpen'|@translate}</td>
490          <td>
491            <input type="text" name="d[{$type}][sharpen]" maxlength="4" size="4"  value="{$d.sharpen}"{if isset($ferrors.$type.sharpen)} class="dError"{/if}>
492            %
493            {if isset($ferrors.$type.sharpen)}<span class="dErrorDesc" title="{$ferrors.$type.sharpen}">!</span>{/if}
494          </td>
495          </tr>
496        </table> {* #sizeEdit *}
497      </td>
498    </tr>
499  {/foreach}
500  </table>
501
502  <p style="margin:10px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails">
503    {'Image Quality'|@translate}
504    <input type="text" name="resize_quality" value="{$resize_quality}" size="3" maxlength="3"{if isset($ferrors.resize_quality)} class="dError"{/if}> %
505    {if isset($ferrors.resize_quality)}<span class="dErrorDesc" title="{$ferrors.resize_quality}">!</span>{/if}
506  </p>
507  <p style="margin:10px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails">
508    <a href="{$F_ACTION}&action=restore_settings" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'Reset to default values'|@translate}</a>
509  </p>
510
511{if !empty($custom_derivatives)}
512  <fieldset class="sizeDetails">
513    <legend>{'custom'|@translate}</legend>
514    <table style="margin:0">
515    {foreach from=$custom_derivatives item=time key=custom}
516      <tr><td><label><input type="checkbox" name="delete_custom_derivative_{$custom}"> {'Delete'|@translate} {$custom} ({'Last hit'|@translate}: {$time})</label></td></tr>
517    {/foreach}
518    </table>
519  </fieldset>
520{/if}
521
522</fieldset>
523{/if}
524
525{if isset($watermark)}
526
527{footer_script}
528(function(){
529  function onWatermarkChange() {
530    var val = jQuery("#wSelect").val();
531    if (val.length) {
532      jQuery("#wImg").attr('src', '{$ROOT_URL}'+val).show();
533    }
534    else {
535      jQuery("#wImg").hide();
536    }
537  }
538
539  onWatermarkChange();
540
541  jQuery("#wSelect").bind("change", onWatermarkChange);
542
543  if (jQuery("input[name='w[position]']:checked").val() == 'custom') {
544    jQuery("#positionCustomDetails").show();
545  }
546
547  jQuery("input[name='w[position]']").change(function(){
548    if (jQuery(this).val() == 'custom') {
549      jQuery("#positionCustomDetails").show();
550    }
551    else {
552      jQuery("#positionCustomDetails").hide();
553    }
554  });
555
556  jQuery(".addWatermarkOpen").click(function(){
557    jQuery("#addWatermark, #selectWatermark").toggle();
558                return false;
559  });
560}());
561{/footer_script}
562
563<fieldset id="watermarkConf" class="no-border">
564  <legend></legend>
565  <ul>
566    <li>
567      <span id="selectWatermark"{if isset($ferrors.watermarkImage)} style="display:none"{/if}><label>{'Select a file'|@translate}</label>
568      <select name="w[file]" id="wSelect">
569        {html_options options=$watermark_files selected=$watermark.file}
570      </select>
571      {'... or '|@translate}<a href="#" class="addWatermarkOpen">{'add a new watermark'|@translate}</a>
572      <br>
573      <img id="wImg"></img></span>{* #selectWatermark *}
574      <span id="addWatermark"{if isset($ferrors.watermarkImage)} style="display:inline"{/if}>
575      {'add a new watermark'|@translate} {'... or '|@translate}<a href="#" class="addWatermarkOpen">{'Select a file'|@translate}</a>
576      <br>
577      <input type="file" size="60" id="watermarkImage" name="watermarkImage"{if isset($ferrors.watermarkImage)} class="dError"{/if}> (png)
578      {if isset($ferrors.watermarkImage)}<span class="dErrorDesc" title="{$ferrors.watermarkImage|@htmlspecialchars}">!</span>{/if}
579      </span>{* #addWatermark *}
580    </li>
581
582    <li>
583      <label>
584        {'Apply watermark if width is bigger than'|@translate}
585        <input  size="4" maxlength="4" type="text" name="w[minw]" value="{$watermark.minw}"{if isset($ferrors.watermark.minw)} class="dError"{/if}>
586      </label>
587      {'pixels'|@translate}
588    </li>
589
590    <li>
591      <label>
592        {'Apply watermark if height is bigger than'|@translate}
593        <input  size="4" maxlength="4" type="text" name="w[minh]" value="{$watermark.minh}"{if isset($ferrors.watermark.minh)} class="dError"{/if}>
594      </label>
595      {'pixels'|@translate}
596    </li>
597
598    <li>
599      <label>{'Position'|@translate}</label>
600      <br>
601      <div id="watermarkPositionBox">
602        <label class="right">{'top right corner'|@translate} <input name="w[position]" type="radio" value="topright"{if $watermark.position eq 'topright'} checked="checked"{/if}></label>
603        <label><input name="w[position]" type="radio" value="topleft"{if $watermark.position eq 'topleft'} checked="checked"{/if}> {'top left corner'|@translate}</label>
604        <label class="middle"><input name="w[position]" type="radio" value="middle"{if $watermark.position eq 'middle'} checked="checked"{/if}> {'middle'|@translate}</label>
605        <label class="right">{'bottom right corner'|@translate} <input name="w[position]" type="radio" value="bottomright"{if $watermark.position eq 'bottomright'} checked="checked"{/if}></label>
606        <label><input name="w[position]" type="radio" value="bottomleft"{if $watermark.position eq 'bottomleft'} checked="checked"{/if}> {'bottom left corner'|@translate}</label>
607      </div>
608     
609      <label style="display:block;margin-top:10px;font-weight:normal;"><input name="w[position]" type="radio" value="custom"{if $watermark.position eq 'custom'} checked="checked"{/if}> {'custom'|@translate}</label>
610      <div id="positionCustomDetails">
611        <label>{'X Position'|@translate}
612          <input size="3" maxlength="3" type="text" name="w[xpos]" value="{$watermark.xpos}"{if isset($ferrors.watermark.xpos)} class="dError"{/if}>%
613          {if isset($ferrors.watermark.xpos)}<span class="dErrorDesc" title="{$ferrors.watermark.xpos}">!</span>{/if}
614        </label>
615
616        <br>
617        <label>{'Y Position'|@translate}
618          <input size="3" maxlength="3" type="text" name="w[ypos]" value="{$watermark.ypos}"{if isset($ferrors.watermark.ypos)} class="dError"{/if}>%
619          {if isset($ferrors.watermark.ypos)}<span class="dErrorDesc" title="{$ferrors.watermark.ypos}">!</span>{/if}
620        </label>
621
622        <br>
623        <label>{'X Repeat'|@translate}
624          <input size="3" maxlength="3" type="text" name="w[xrepeat]" value="{$watermark.xrepeat}"{if isset($ferrors.watermark.xrepeat)} class="dError"{/if}>
625          {if isset($ferrors.watermark.xrepeat)}<span class="dErrorDesc" title="{$ferrors.watermark.xrepeat}">!</span>{/if}
626        </label>
627      </div>
628    </li>
629
630    <li>
631      <label>{'Opacity'|@translate}</label>
632      <input size="3" maxlength="3" type="text" name="w[opacity]" value="{$watermark.opacity}"{if isset($ferrors.watermark.opacity)} class="dError"{/if}> %
633      {if isset($ferrors.watermark.opacity)}<span class="dErrorDesc" title="{$ferrors.watermark.opacity}">!</span>{/if}
634    </li>
635  </ul>
636</fieldset>
637
638{/if} {* end of watermark section *}
639
640{if isset($display)}
641<fieldset id="indexDisplayConf">
642  <legend>{'Main Page'|@translate}</legend>
643  <ul>
644    <li>
645      <label>
646        <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}>
647        {'Activate icon "%s"'|@translate:('display only recently posted photos'|@translate|@ucfirst)}
648      </label>
649    </li>
650
651    <li>
652      <label>
653        <input type="checkbox" name="index_new_icon" {if ($display.index_new_icon)}checked="checked"{/if}>
654        {'Activate icon "new" next to albums and pictures'|@translate}
655      </label>
656    </li>
657
658    <li>
659      <label>
660        <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}>
661        {'Activate icon "%s"'|@translate:('Sort order'|@translate)}
662      </label>
663    </li>
664
665    <li>
666      <label>
667        <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}>
668        {'Activate icon "%s"'|@translate:('display all photos in all sub-albums'|@translate|@ucfirst)}
669      </label>
670    </li>
671
672    <li>
673      <label>
674        <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}>
675        {'Activate icon "%s"'|@translate:('display a calendar by posted date'|@translate|@ucfirst)}
676      </label>
677    </li>
678
679    <li>
680      <label>
681        <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}>
682        {'Activate icon "%s"'|@translate:('display a calendar by creation date'|@translate|@ucfirst)}
683      </label>
684    </li>
685
686    <li>
687      <label>
688        <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}>
689        {'Activate icon "%s"'|@translate:('slideshow'|@translate|@ucfirst)}
690      </label>
691    </li>
692
693    <li>
694      <label>
695        {'Number of albums per page'|@translate}
696        <input type="text" size="3" maxlength="4" name="nb_categories_page" id="nb_categories_page" value="{$display.NB_CATEGORIES_PAGE}">
697      </label>
698    </li>
699  </ul>
700</fieldset>
701
702<fieldset id="pictureDisplayConf">
703  <legend>{'Photo Page'|@translate}</legend>
704  <ul>
705    <li>
706      <label>
707        <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}>
708        {'Activate icon "%s"'|@translate:('slideshow'|@translate|@ucfirst)}
709      </label>
710    </li>
711
712    <li>
713      <label>
714        <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}>
715        {'Activate icon "%s"'|@translate:('Show file metadata'|@translate)}
716      </label>
717    </li>
718
719    <li>
720      <label>
721        <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}>
722        {'Activate icon "%s"'|@translate:('Download this file'|@translate|@ucfirst)}
723      </label>
724    </li>
725
726    <li>
727      <label>
728        <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}>
729        {'Activate icon "%s"'|@translate:('add this photo to your favorites'|@translate|@ucfirst)}
730      </label>
731    </li>
732
733    <li>
734      <label>
735        <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}>
736        {'Activate Navigation Bar'|@translate}
737      </label>
738    </li>
739
740    <li>
741      <label>
742        <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}>
743        {'Activate Navigation Thumbnails'|@translate}
744      </label>
745    </li>
746
747    <li>
748      <label>
749        <input type="checkbox" name="picture_menu" {if ($display.picture_menu)}checked="checked"{/if}>
750        {'Show menubar'|@translate}
751      </label>
752    </li>
753  </ul>
754</fieldset>
755
756<fieldset id="pictureInfoConf">
757  <legend>{'Photo Properties'|@translate}</legend>
758  <ul>
759    <li>
760      <label>
761        <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}>
762        {'Author'|@translate}
763      </label>
764    </li>
765
766    <li>
767      <label>
768        <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}>
769        {'Created on'|@translate}
770      </label>
771    </li>
772
773    <li>
774      <label>
775        <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}>
776        {'Posted on'|@translate}
777      </label>
778    </li>
779
780    <li>
781      <label>
782        <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}>
783        {'Dimensions'|@translate}
784      </label>
785    </li>
786
787    <li>
788      <label>
789        <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}>
790        {'File'|@translate}
791      </label>
792    </li>
793
794    <li>
795      <label>
796        <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}>
797        {'Filesize'|@translate}
798      </label>
799    </li>
800
801    <li>
802      <label>
803        <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}>
804        {'Tags'|@translate}
805      </label>
806    </li>
807
808    <li>
809      <label>
810        <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}>
811        {'Albums'|@translate}
812      </label>
813    </li>
814
815    <li>
816      <label>
817        <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}>
818        {'Visits'|@translate}
819      </label>
820    </li>
821
822    <li>
823      <label>
824        <input type="checkbox" name="picture_informations[rating_score]" {if ($display.picture_informations.rating_score)}checked="checked"{/if}>
825        {'Rating score'|@translate}
826      </label>
827    </li>
828
829    <li>
830      <label>
831        <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}>
832        {'Who can see this photo?'|@translate} ({'available for administrators only'|@translate})
833      </label>
834    </li>
835  </ul>
836</fieldset>
837{/if}
838
839</div> <!-- configContent -->
840
841{if !isset($default)}
842        <p class="formButtons">
843                <input type="submit" name="submit" value="{'Save Settings'|@translate}">
844        </p>
845</form>
846{/if}
847
848{if isset($default)}
849<div id="configContent">
850{$PROFILE_CONTENT}
851</div>
852{/if}
Note: See TracBrowser for help on using the repository browser.