{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(){ // counters for displaying of addFilter link var fields = {$main.order_by|@count}, max_fields = Math.ceil({$main.order_by_options|@count}/2); function updateAddFilterLink() { if (fields >= max_fields) { jQuery('.addFilter').css('display', 'none'); } else { jQuery('.addFilter').css('display', ''); } } function updateRemoveFilterTrigger() { jQuery(".removeFilter").click(function() { jQuery(this).parent('span.filter').remove(); fields--; updateAddFilterLink(); }); jQuery(".removeFilter").css('display', ''); jQuery(".filter:first .removeFilter").css('display', 'none'); } jQuery('.addFilter').click(function() { jQuery(this).prev('span.filter').clone().insertBefore($(this)); jQuery(this).prev('span.filter').children('select[name="order_by[]"]').val(''); fields++; updateRemoveFilterTrigger(); updateAddFilterLink(); }); updateRemoveFilterTrigger(); updateAddFilterLink(); }()); {/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)}
{$PROFILE_CONTENT}
{/if}