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

Last change on this file since 15551 was 15551, checked in by rvelices, 12 years ago

multisize - avoid php warning for rotation_angle; better error logging; javascript avoid navigation to empty # anchor

  • Property svn:eol-style set to LF
File size: 26.7 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="user_can_edit_comment" {if ($comments.user_can_edit_comment)}checked="checked"{/if}>
234        {'Allow users to edit their own comments'|@translate}
235      </label>
236    </li>
237    <li>
238      <label>
239        <input type="checkbox" name="user_can_delete_comment" {if ($comments.user_can_delete_comment)}checked="checked"{/if}>
240        {'Allow users to delete their own comments'|@translate}
241      </label>
242    </li>
243
244    <li id="notifyAdmin">
245      <strong>{'Notify administrators when a comment is'|@translate}</strong>
246
247      <label id="email_admin_on_comment_validation">
248        <input type="checkbox" name="email_admin_on_comment_validation" {if ($comments.email_admin_on_comment_validation)}checked="checked"{/if}> {'pending validation'|@translate}
249      </label>
250
251      <label>
252        <input type="checkbox" name="email_admin_on_comment" {if ($comments.email_admin_on_comment)}checked="checked"{/if}> {'added'|@translate}
253      </label>
254
255      <label id="email_admin_on_comment_edition">
256        <input type="checkbox" name="email_admin_on_comment_edition" {if ($comments.email_admin_on_comment_edition)}checked="checked"{/if}> {'modified'|@translate}
257      </label>
258
259      <label id="email_admin_on_comment_deletion">
260        <input type="checkbox" name="email_admin_on_comment_deletion" {if ($comments.email_admin_on_comment_deletion)}checked="checked"{/if}> {'deleted'|@translate}
261      </label>
262    </li>
263  </ul>
264</fieldset>
265{/if}
266
267{if isset($sizes)}
268
269{footer_script}
270var labelMaxWidth = "{'Maximum Width'|@translate}";
271var labelWidth = "{'Width'|@translate}";
272
273var labelMaxHeight = "{'Maximum Height'|@translate}";
274var labelHeight = "{'Height'|@translate}";
275{literal}
276jQuery(document).ready(function(){
277  function toggleResizeFields(size) {
278    var checkbox = jQuery("#original_resize");
279    var needToggle = jQuery("#sizeEdit-original");
280
281    if (jQuery(checkbox).is(':checked')) {
282      needToggle.show();
283    }
284    else {
285      needToggle.hide();
286    }
287  }
288
289  toggleResizeFields("original");
290  jQuery("#original_resize").click(function () {toggleResizeFields("original")});
291
292  jQuery("a[id^='sizeEditOpen-']").click(function(){
293    var sizeName = jQuery(this).attr("id").split("-")[1];
294    jQuery("#sizeEdit-"+sizeName).toggle();
295    jQuery(this).hide();
296                return false;
297  });
298
299  jQuery(".cropToggle").click(function() {
300    var labelBoxWidth = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditWidth');
301    var labelBoxHeight = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditHeight');
302
303    if (jQuery(this).is(':checked')) {
304      jQuery(labelBoxWidth).html(labelWidth);
305      jQuery(labelBoxHeight).html(labelHeight);
306    }
307    else {
308      jQuery(labelBoxWidth).html(labelMaxWidth);
309      jQuery(labelBoxHeight).html(labelMaxHeight);
310    }
311  });
312
313  jQuery("#showDetails").click(function() {
314    jQuery(".sizeDetails").show();
315    jQuery(this).css("visibility", "hidden");
316                return false;
317  });
318
319});
320{/literal}{/footer_script}
321
322{html_style}{literal}
323.sizeEnable {width:50px;}
324.sizeEditForm {margin:0 0 10px 20px;}
325.sizeEdit {display:none;}
326#sizesConf table {margin:0;}
327.showDetails {padding:0;}
328.sizeDetails {display:none;margin-left:10px;}
329.sizeEditOpen {margin-left:10px;}
330{/literal}{/html_style}
331
332<fieldset id="sizesConf">
333  <legend>{'Original Size'|@translate}</legend>
334
335  <div>
336    <label for="original_resize">
337      <input type="checkbox" name="original_resize" id="original_resize" {if ($sizes.original_resize)}checked="checked"{/if}>
338      {'Resize after upload'|@translate}
339    </label>
340  </div>
341
342  <table id="sizeEdit-original">
343    <tr>
344      <th>{'Maximum Width'|@translate}</th>
345      <td>
346        <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}
347        {if isset($ferrors.original_resize_maxwidth)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxwidth}">!</span>{/if}
348      </td>
349    </tr>
350    <tr>
351      <th>{'Maximum Height'|@translate}</th>
352      <td>
353        <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}
354        {if isset($ferrors.original_resize_maxheight)}<span class="dErrorDesc" title="{$ferrors.original_resize_maxheight}">!</span>{/if}
355      </td>
356    </tr>
357    <tr>
358      <th>{'Image Quality'|@translate}</th>
359      <td>
360        <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}> %
361        {if isset($ferrors.original_resize_quality)}<span class="dErrorDesc" title="{$ferrors.original_resize_quality}">!</span>{/if}
362      </td>
363    </tr>
364  </table>
365
366</fieldset>
367
368<fieldset id="multiSizesConf">
369  <legend>{'Multiple Size'|@translate}</legend>
370
371<div class="showDetails">
372  <a href="#" id="showDetails"{if $show_details or isset($ferrors)} style="display:none"{/if}>{'show details'|@translate}</a>
373</div>
374
375<table style="margin:0">
376{foreach from=$derivatives item=d key=type}
377  <tr>
378    <td>
379      <label>
380        <span class="sizeEnable">
381  {if $d.must_enable}
382          &#x2714;
383  {else}
384          <input type="checkbox" name="d[{$type}][enabled]" {if $d.enabled}checked="checked"{/if}>
385  {/if}
386        </span>
387        {$type|@translate}
388      </label>
389    </td>
390
391    <td>
392      <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>
393    </td>
394
395    <td>
396      <span class="sizeDetails"{if isset($ferrors) and !isset($ferrors.$type)} style="display:inline"{/if}>
397        <a href="#" id="sizeEditOpen-{$type}" class="sizeEditOpen">{'edit'|@translate}</a>
398      </span>
399    </td>
400  </tr>
401
402  <tr id="sizeEdit-{$type}" class="sizeEdit" {if isset($ferrors.$type)} style="display:block"{/if}>
403    <td colspan="3">
404      <table class="sizeEditForm">
405  {if !$d.must_square}
406        <tr>
407          <td colspan="2">
408            <label>
409              <input type="checkbox" class="cropToggle" name="d[{$type}][crop]" {if $d.crop}checked="checked"{/if}>
410              {'Crop'|@translate}
411            </label>
412          </td>
413        </tr>
414  {/if}
415
416        <tr>
417          <td class="sizeEditWidth">{if $d.must_square or $d.crop}{'Width'|@translate}{else}{'Maximum Width'|@translate}{/if}</td>
418          <td>
419            <input type="text" name="d[{$type}][w]" maxlength="4" size="4" value="{$d.w}"{if isset($ferrors.$type.w)} class="dError"{/if}>
420            {'pixels'|@translate}
421            {if isset($ferrors.$type.w)}<span class="dErrorDesc" title="{$ferrors.$type.w}">!</span>{/if}
422          </td>
423        </tr>
424
425  {if !$d.must_square}
426        <tr>
427          <td class="sizeEditHeight">{if $d.crop}{'Height'|@translate}{else}{'Maximum Height'|@translate}{/if}</td>
428          <td>
429            <input type="text" name="d[{$type}][h]" maxlength="4" size="4"  value="{$d.h}"{if isset($ferrors.$type.h)} class="dError"{/if}>
430            {'pixels'|@translate}
431            {if isset($ferrors.$type.h)}<span class="dErrorDesc" title="{$ferrors.$type.h}">!</span>{/if}
432          </td>
433        </tr>
434  {/if}
435                                <tr>
436                                <td>{'Sharpen'|@translate}</td>
437                                <td>
438                                        <input type="text" name="d[{$type}][sharpen]" maxlength="4" size="4"  value="{$d.sharpen}"{if isset($ferrors.$type.sharpen)} class="dError"{/if}>
439                                        %
440                                        {if isset($ferrors.$type.sharpen)}<span class="dErrorDesc" title="{$ferrors.$type.sharpen}">!</span>{/if}
441                                </td>
442                                </tr>
443      </table> {* #sizeEdit *}
444    </td>
445  </tr>
446{/foreach}
447</table>
448
449<p style="margin:10px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails">
450  {'Image Quality'|@translate}
451  <input type="text" name="resize_quality" value="{$resize_quality}" size="3" maxlength="3"{if isset($ferrors.resize_quality)} class="dError"{/if}> %
452  {if isset($ferrors.resize_quality)}<span class="dErrorDesc" title="{$ferrors.resize_quality}">!</span>{/if}
453</p>
454<p style="margin:10px 0 0 0;{if isset($ferrors)} display:block;{/if}" class="sizeDetails">
455  <a href="{$F_ACTION}&action=restore_settings" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'Reset to default values'|@translate}</a>
456</p>
457</fieldset>
458{/if}
459
460{if isset($watermark)}
461
462{footer_script}{literal}
463jQuery(document).ready(function() {
464
465  function onWatermarkChange() {
466    var val = jQuery("#wSelect").val();
467    if (val.length) {
468      jQuery("#wImg").attr('src', {/literal}'{$ROOT_URL}'{literal}+val).show();
469    }
470    else {
471      jQuery("#wImg").hide();
472    }
473  }
474
475  onWatermarkChange();
476
477  jQuery("#wSelect").bind("change", onWatermarkChange);
478
479  if (jQuery("input[name='w[position]']:checked").val() == 'custom') {
480    jQuery("#positionCustomDetails").show();
481  }
482
483  jQuery("input[name='w[position]']").change(function(){
484    if (jQuery(this).val() == 'custom') {
485      jQuery("#positionCustomDetails").show();
486    }
487    else {
488      jQuery("#positionCustomDetails").hide();
489    }
490  });
491
492  jQuery(".addWatermarkOpen").click(function(){
493    jQuery("#addWatermark, #selectWatermark").toggle();
494                return false;
495  });
496});
497{/literal}{/footer_script}
498
499<fieldset id="watermarkConf">
500  <legend></legend>
501  <ul>
502    <li>
503      <span id="selectWatermark"{if isset($ferrors.watermarkImage)} style="display:none"{/if}><label>{'Select a file'|@translate}</label>
504      <select name="w[file]" id="wSelect">
505        {html_options options=$watermark_files selected=$watermark.file}
506      </select>
507      {'... or '|@translate}<a href="#" class="addWatermarkOpen">{'add a new watermark'|@translate}</a>
508      <br><img id="wImg"></img></span>{* #selectWatermark *}
509      <span id="addWatermark"{if isset($ferrors.watermarkImage)} style="display:inline"{/if}>
510      {'add a new watermark'|@translate} {'... or '|@translate}<a href="#" class="addWatermarkOpen">{'Select a file'|@translate}</a>
511      <br><input type="file" size="60" id="watermarkImage" name="watermarkImage"{if isset($ferrors.watermarkImage)} class="dError"{/if}> (png)
512      {if isset($ferrors.watermarkImage)}<span class="dErrorDesc" title="{$ferrors.watermarkImage}">!</span>{/if}
513      </span>{* #addWatermark *}
514    </li>
515
516    <li>
517      <label>
518        {'Apply watermark if width is bigger than'|@translate}
519        <input  size="4" maxlength="4" type="text" name="w[minw]" value="{$watermark.minw}"{if isset($ferrors.watermark.minw)} class="dError"{/if}>
520      </label>
521      {'pixels'|@translate}
522    </li>
523
524    <li>
525      <label>
526        {'Apply watermark if height is bigger than'|@translate}
527        <input  size="4" maxlength="4" type="text" name="w[minh]" value="{$watermark.minh}"{if isset($ferrors.watermark.minh)} class="dError"{/if}>
528      </label>
529      {'pixels'|@translate}
530    </li>
531
532    <li>
533      <label>{'Position'|@translate}</label>
534      <br>
535      <div id="watermarkPositionBox">
536        <label class="right">{'top right corner'|@translate} <input name="w[position]" type="radio" value="topright"{if $watermark.position eq 'topright'} checked="checked"{/if}></label>
537        <label><input name="w[position]" type="radio" value="topleft"{if $watermark.position eq 'topleft'} checked="checked"{/if}> {'top left corner'|@translate}</label>
538        <label class="middle"><input name="w[position]" type="radio" value="middle"{if $watermark.position eq 'middle'} checked="checked"{/if}> {'middle'|@translate}</label>
539        <label class="right">{'bottom right corner'|@translate} <input name="w[position]" type="radio" value="bottomright"{if $watermark.position eq 'bottomright'} checked="checked"{/if}></label>
540        <label><input name="w[position]" type="radio" value="bottomleft"{if $watermark.position eq 'bottomleft'} checked="checked"{/if}> {'bottom left corner'|@translate}</label>
541      </div>
542      <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>
543      <div id="positionCustomDetails">
544        <label>{'X Position'|@translate}
545          <input size="3" maxlength="3" type="text" name="w[xpos]" value="{$watermark.xpos}"{if isset($ferrors.watermark.xpos)} class="dError"{/if}>%
546          {if isset($ferrors.watermark.xpos)}<span class="dErrorDesc" title="{$ferrors.watermark.xpos}">!</span>{/if}
547        </label>
548
549        <br>
550        <label>{'Y Position'|@translate}
551          <input size="3" maxlength="3" type="text" name="w[ypos]" value="{$watermark.ypos}"{if isset($ferrors.watermark.ypos)} class="dError"{/if}>%
552          {if isset($ferrors.watermark.ypos)}<span class="dErrorDesc" title="{$ferrors.watermark.ypos}">!</span>{/if}
553        </label>
554
555        <br>
556        <label>{'X Repeat'|@translate}
557          <input size="3" maxlength="3" type="text" name="w[xrepeat]" value="{$watermark.xrepeat}"{if isset($ferrors.watermark.xrepeat)} class="dError"{/if}>
558          {if isset($ferrors.watermark.xrepeat)}<span class="dErrorDesc" title="{$ferrors.watermark.xrepeat}">!</span>{/if}
559        </label>
560      </div>
561    </li>
562
563    <li>
564      <label>{'Opacity'|@translate}</label>
565      <input size="3" maxlength="3" type="text" name="w[opacity]" value="{$watermark.opacity}"{if isset($ferrors.watermark.opacity)} class="dError"{/if}> %
566      {if isset($ferrors.watermark.opacity)}<span class="dErrorDesc" title="{$ferrors.watermark.opacity}">!</span>{/if}
567    </li>
568  </ul>
569</fieldset>
570
571{/if} {* end of watermark section *}
572
573{if isset($display)}
574<fieldset id="indexDisplayConf">
575  <legend>{'Main Page'|@translate}</legend>
576  <ul>
577    <li>
578      <label>
579        <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}>
580        {'display only recently posted photos'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
581      </label>
582    </li>   
583   
584    <li>
585      <label>
586        <input type="checkbox" name="index_new_icon" {if ($display.index_new_icon)}checked="checked"{/if}>
587        {'Activate icon "new" next to albums and pictures'|@translate}
588      </label>
589    </li>
590
591    <li>
592      <label>
593        <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}>
594        {'Sort order'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}
595      </label>
596    </li>
597
598    <li>
599      <label>
600        <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}>
601        {'display all photos in all sub-albums'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
602      </label>
603    </li>
604
605    <li>
606      <label>
607        <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}>
608        {'display a calendar by posted date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
609      </label>
610    </li>
611
612    <li>
613      <label>
614        <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}>
615        {'display a calendar by creation date'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
616      </label>
617    </li>
618
619    <li>
620      <label>
621        <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}>
622        {'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
623      </label>
624    </li>
625  </ul>
626</fieldset>
627
628<fieldset id="pictureDisplayConf">
629  <legend>{'Photo Page'|@translate}</legend>
630  <ul>
631    <li>
632      <label>
633        <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}>
634        {'slideshow'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
635      </label>
636    </li>
637
638    <li>
639      <label>
640        <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}>
641        {'Show file metadata'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}
642      </label>
643    </li>
644
645    <li>
646      <label>
647        <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}>
648        {'Download this file'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
649      </label>
650    </li>
651
652    <li>
653      <label>
654        <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}>
655        {'add this photo to your favorites'|@translate|@ucfirst|@string_format:$pwg->l10n('Activate icon "%s"')}
656      </label>
657    </li>
658
659    <li>
660      <label>
661        <input type="checkbox" name="picture_navigation_icons" {if ($display.picture_navigation_icons)}checked="checked"{/if}>
662        {'Activate Navigation Bar'|@translate}
663      </label>
664    </li>
665
666    <li>
667      <label>
668        <input type="checkbox" name="picture_navigation_thumb" {if ($display.picture_navigation_thumb)}checked="checked"{/if}>
669        {'Activate Navigation Thumbnails'|@translate}
670      </label>
671    </li>
672   
673    <li>
674      <label>
675        <input type="checkbox" name="picture_menu" {if ($display.picture_menu)}checked="checked"{/if}>
676        {'Show menubar'|@translate}
677      </label>
678    </li>
679  </ul>
680</fieldset>
681
682<fieldset id="pictureInfoConf">
683  <legend>{'Photo Properties'|@translate}</legend>
684  <ul>
685    <li>
686      <label>
687        <input type="checkbox" name="picture_informations[author]" {if ($display.picture_informations.author)}checked="checked"{/if}>
688        {'Author'|@translate}
689      </label>
690    </li>
691
692    <li>
693      <label>
694        <input type="checkbox" name="picture_informations[created_on]" {if ($display.picture_informations.created_on)}checked="checked"{/if}>
695        {'Created on'|@translate}
696      </label>
697    </li>
698
699    <li>
700      <label>
701        <input type="checkbox" name="picture_informations[posted_on]" {if ($display.picture_informations.posted_on)}checked="checked"{/if}>
702        {'Posted on'|@translate}
703      </label>
704    </li>
705
706    <li>
707      <label>
708        <input type="checkbox" name="picture_informations[dimensions]" {if ($display.picture_informations.dimensions)}checked="checked"{/if}>
709        {'Dimensions'|@translate}
710      </label>
711    </li>
712
713    <li>
714      <label>
715        <input type="checkbox" name="picture_informations[file]" {if ($display.picture_informations.file)}checked="checked"{/if}>
716        {'File'|@translate}
717      </label>
718    </li>
719
720    <li>
721      <label>
722        <input type="checkbox" name="picture_informations[filesize]" {if ($display.picture_informations.filesize)}checked="checked"{/if}>
723        {'Filesize'|@translate}
724      </label>
725    </li>
726
727    <li>
728      <label>
729        <input type="checkbox" name="picture_informations[tags]" {if ($display.picture_informations.tags)}checked="checked"{/if}>
730        {'Tags'|@translate}
731      </label>
732    </li>
733
734    <li>
735      <label>
736        <input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}>
737        {'Albums'|@translate}
738      </label>
739    </li>
740
741    <li>
742      <label>
743        <input type="checkbox" name="picture_informations[visits]" {if ($display.picture_informations.visits)}checked="checked"{/if}>
744        {'Visits'|@translate}
745      </label>
746    </li>
747
748    <li>
749      <label>
750        <input type="checkbox" name="picture_informations[rating_score]" {if ($display.picture_informations.rating_score)}checked="checked"{/if}>
751        {'Rating score'|@translate}
752      </label>
753    </li>
754
755    <li>
756      <label>
757        <input type="checkbox" name="picture_informations[privacy_level]" {if ($display.picture_informations.privacy_level)}checked="checked"{/if}>
758        {'Who can see this photo?'|@translate} ({'available for administrators only'|@translate})
759      </label>
760    </li>
761  </ul>
762</fieldset>
763{/if}
764
765{if !isset($default)}
766        <p class="formButtons">
767                <input type="submit" name="submit" value="{'Save Settings'|@translate}">
768        </p>
769</form>
770{/if}
771
772</div> <!-- configContent -->
773
774{if isset($default)}
775{$PROFILE_CONTENT}
776{/if}
Note: See TracBrowser for help on using the repository browser.