{footer_script}{literal} jQuery(document).ready(function(){ jQuery("#activate_comments").change(function(){ if ($(this).is(':checked')) { jQuery("#comments_param_warp").show(); } else { jQuery("#comments_param_warp").hide(); } }); 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).bind('change', function() { jQuery(target).toggle($(this).is(':checked')); }); })(target); }; }); {/literal}{/footer_script}

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

{if !isset($default)}
{/if}
{if isset($main)}


  • {foreach from=$main.order_by item=order} {'delete'|@translate} {/foreach} {if !$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 !$ORDER_BY_IS_CUSTOM} {footer_script require='jquery'} // counters for displaying of addFilter link fields = {$main.order_by|@count}; max_fields = Math.ceil({$main.order_by_options|@count}/2); {literal} function updateAddFilterLink() { if (fields >= max_fields) { $('.addFilter').css('display', 'none'); } else { $('.addFilter').css('display', ''); } } function updateRemoveFilterTrigger() { $(".removeFilter").click(function () { $(this).parent('span.filter').remove(); fields--; updateAddFilterLink(); }); $(".removeFilter").css('display', ''); $(".filter:first .removeFilter").css('display', 'none'); } jQuery(document).ready(function () { $('.addFilter').click(function() { $(this).prev('span.filter').clone().insertBefore($(this)); $(this).prev('span.filter').children('select[name="order_by[]"]').val(''); fields++; updateRemoveFilterTrigger(); updateAddFilterLink(); }); updateRemoveFilterTrigger(); updateAddFilterLink(); }); {/literal} {/footer_script} {/if}
  • {'Save visits in history for'|@translate}
{/if} {if isset($comments)}
{/if} {if isset($sizes)} {footer_script}{literal} jQuery(document).ready(function(){ function toggleResizeFields(prefix) { var checkbox = jQuery("#"+prefix+"_resize"); var needToggle = jQuery("input[name^="+prefix+"_]").not(checkbox).parents('tr'); if (jQuery(checkbox).is(':checked')) { needToggle.show(); } else { needToggle.hide(); } } toggleResizeFields("original"); jQuery("#original_resize").click(function () {toggleResizeFields("original")}); }); {/literal}{/footer_script}
{'Original Size'|@translate}
{'Maximum Width'|@translate} {'pixels'|@translate}
{'Maximum Height'|@translate} {'pixels'|@translate}
{'Image Quality'|@translate} %
{/if} {if isset($display)}
{'Main Page'|@translate}
{'Photo Page'|@translate}
{'Photo Properties'|@translate}
{/if} {if !isset($default)}

{/if}
{if isset($default)} {$PROFILE_CONTENT} {/if}