{footer_script} (function(){ var targets = { 'input[name="rate"]' : '#rate_anonymous', 'input[name="allow_user_registration"]' : '#email_admin_on_new_user', 'input[name="comments_validation"]' : '#email_admin_on_comment_validation', 'input[name="user_can_edit_comment"]' : '#email_admin_on_comment_edition', 'input[name="user_can_delete_comment"]' : '#email_admin_on_comment_deletion', }; for (selector in targets) { var target = targets[selector]; jQuery(target).toggle(jQuery(selector).is(':checked')); (function(target){ jQuery(selector).on('change', function() { jQuery(target).toggle($(this).is(':checked')); }); })(target); }; }()); {/footer_script}

{'Piwigo configuration'|@translate} {$TABSHEET_TITLE}

{if !isset($default)}
{/if}
{if isset($main)}
{'Basic settings'|translate}


  • {foreach from=$main.order_by item=order} {'delete'|@translate} {/foreach} {if !isset($ORDER_BY_IS_CUSTOM)} {'Add a criteria'|@translate} {else} {'You can\'t define a default photo order because you have a custom setting in your local configuration.'|@translate} {/if}
{if !isset($ORDER_BY_IS_CUSTOM)} {footer_script require='jquery'} (function(){ var max_fields = Math.ceil({$main.order_by_options|@count}/2); function updateFilters() { var $selects = jQuery('#order_filters select'); jQuery('#order_filters .addFilter').toggle($selects.length <= max_fields); jQuery('#order_filters .removeFilter').css('display', '').filter(':first').css('display', 'none'); $selects.find('option').removeAttr('disabled'); $selects.each(function() { $selects.not(this).find('option[value="'+ jQuery(this).val() +'"]').attr('disabled', 'disabled'); }); } jQuery('#order_filters').on('click', '.removeFilter', function() { jQuery(this).parent('span.filter').remove(); updateFilters(); }); jQuery('#order_filters').on('change', 'select', updateFilters); jQuery('#order_filters .addFilter').click(function() { jQuery(this).prev('span.filter').clone().insertBefore(jQuery(this)); jQuery(this).prev('span.filter').children('select').val(''); updateFilters(); }); updateFilters(); }()); {/footer_script} {/if}
{'Permissions'|translate}
{footer_script require='jquery'} jQuery("#activate_comments").change(function(){ if ($(this).is(':checked')) { jQuery("#comments_param_warp").show(); } else { jQuery("#comments_param_warp").hide(); } }); {/footer_script}
{'Miscellaneous'|translate}
  • {'Save visits in history for'|@translate}
  • {foreach from=$main.mail_theme_options item=name key=theme} {/foreach}
  • {include file='include/colorbox.inc.tpl'} {footer_script require='jquery'} jQuery(".themeBoxes a").colorbox(); jQuery("input[name='mail_theme']").change(function() { jQuery("input[name='mail_theme']").parents(".themeBox").removeClass("themeDefault"); jQuery(this).parents(".themeBox").addClass("themeDefault"); }); {/footer_script}
{/if} {if isset($comments)}
{/if} {if isset($sizes)} {footer_script} (function(){ var labelMaxWidth = "{'Maximum width'|@translate}", labelWidth = "{'Width'|@translate}", labelMaxHeight = "{'Maximum height'|@translate}", labelHeight = "{'Height'|@translate}"; function toggleResizeFields(size) { var checkbox = jQuery("#original_resize"); var needToggle = jQuery("#sizeEdit-original"); if (jQuery(checkbox).is(':checked')) { needToggle.show(); } else { needToggle.hide(); } } toggleResizeFields("original"); jQuery("#original_resize").click(function () { toggleResizeFields("original"); }); jQuery("a[id^='sizeEditOpen-']").click(function(){ var sizeName = jQuery(this).attr("id").split("-")[1]; jQuery("#sizeEdit-"+sizeName).toggle(); jQuery(this).hide(); return false; }); jQuery(".cropToggle").click(function() { var labelBoxWidth = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditWidth'); var labelBoxHeight = jQuery(this).parents('table.sizeEditForm').find('td.sizeEditHeight'); if (jQuery(this).is(':checked')) { jQuery(labelBoxWidth).html(labelWidth); jQuery(labelBoxHeight).html(labelHeight); } else { jQuery(labelBoxWidth).html(labelMaxWidth); jQuery(labelBoxHeight).html(labelMaxHeight); } }); jQuery("#showDetails").click(function() { jQuery(".sizeDetails").show(); jQuery(this).css("visibility", "hidden"); return false; }); }()); {/footer_script} {html_style}{literal} .sizeEnable {width:50px;} .sizeEditForm {margin:0 0 10px 20px;} .sizeEdit {display:none;} #sizesConf table {margin:0;} .showDetails {padding:0;} .sizeDetails {display:none;margin-left:10px;} .sizeEditOpen {margin-left:10px;} {/literal}{/html_style}
{'Original Size'|@translate} {if $is_gd}
{'Resize after upload disabled due to the use of GD as graphic library'|@translate}
{else}
{'Maximum width'|@translate} {'pixels'|@translate} {if isset($ferrors.original_resize_maxwidth)}!{/if}
{'Maximum height'|@translate} {'pixels'|@translate} {if isset($ferrors.original_resize_maxheight)}!{/if}
{'Image Quality'|@translate} % {if isset($ferrors.original_resize_quality)}!{/if}
{/if}
{'Multiple Size'|@translate} {foreach from=$derivatives item=d key=type} {/foreach}
{$d.w} x {$d.h} {'pixels'|@translate}{if $d.crop}, {'Crop'|@translate|lower}{/if} {'edit'|@translate}
{if !$d.must_square} {/if} {if !$d.must_square} {/if}
{if $d.must_square or $d.crop}{'Width'|@translate}{else}{'Maximum width'|@translate}{/if} {'pixels'|@translate} {if isset($ferrors.$type.w)}!{/if}
{if $d.crop}{'Height'|@translate}{else}{'Maximum height'|@translate}{/if} {'pixels'|@translate} {if isset($ferrors.$type.h)}!{/if}
{'Sharpen'|@translate} % {if isset($ferrors.$type.sharpen)}!{/if}
{* #sizeEdit *}

{'Image Quality'|@translate} % {if isset($ferrors.resize_quality)}!{/if}

{'Reset to default values'|@translate}

{if !empty($custom_derivatives)}
{'custom'|@translate} {foreach from=$custom_derivatives item=time key=custom} {/foreach}
{/if}
{/if} {if isset($watermark)} {footer_script} (function(){ function onWatermarkChange() { var val = jQuery("#wSelect").val(); if (val.length) { jQuery("#wImg").attr('src', '{$ROOT_URL}'+val).show(); } else { jQuery("#wImg").hide(); } } onWatermarkChange(); jQuery("#wSelect").bind("change", onWatermarkChange); if (jQuery("input[name='w[position]']:checked").val() == 'custom') { jQuery("#positionCustomDetails").show(); } jQuery("input[name='w[position]']").change(function(){ if (jQuery(this).val() == 'custom') { jQuery("#positionCustomDetails").show(); } else { jQuery("#positionCustomDetails").hide(); } }); jQuery(".addWatermarkOpen").click(function(){ jQuery("#addWatermark, #selectWatermark").toggle(); return false; }); }()); {/footer_script}
  • {* #selectWatermark *} {'add a new watermark'|@translate} {'... or '|@translate}{'Select a file'|@translate}
    (png) {if isset($ferrors.watermarkImage)}!{/if}
    {* #addWatermark *}
  • {'pixels'|@translate}
  • {'pixels'|@translate}



  • % {if isset($ferrors.watermark.opacity)}!{/if}
{/if} {* end of watermark section *} {if isset($display)}
{'Main Page'|@translate}
{'Photo Page'|@translate}
{'Photo Properties'|@translate}
{/if}
{if !isset($default)}

{/if} {if isset($default)}
{if $GUEST_USERNAME!='guest'}
{'The settings for the guest are from the %s user'|@translate:$GUEST_USERNAME}
{/if}
{'Preferences'|@translate}
  • {'Expand all albums'|@translate} {html_radios name='expand' options=$radio_options selected=$GUEST_EXPAND}
  • {if $GUEST_ACTIVATE_COMMENTS}
  • {'Show number of comments'|@translate} {html_radios name='show_nb_comments' options=$radio_options selected=$GUEST_NB_COMMENTS}
  • {/if}
  • {'Show number of hits'|@translate} {html_radios name='show_nb_hits' options=$radio_options selected=$GUEST_NB_HITS}

{/if}