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

Last change on this file since 23029 was 23029, checked in by rvelices, 11 years ago

feature 2916 Replace raphael with symbol fonts
I added more icons than before (I think it's better as we can find links faster but that's arguable ...)

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