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

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

feature 2995 and feature 2997
change organization of configuration page
add theme parameter on GUI
change links color of dark mail theme (pink)
remove main themes css files

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