{include file='include/autosize.inc.tpl'}

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

{if !isset($default)}
{/if}
{if isset($main)}
  •   {'Week starts on'|@translate} {html_options name="week_starts_on" options=$main.week_starts_on_options selected=$main.week_starts_on_options_selected}
  •   {'Default photos order'|@translate} {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 = {$main.order_field_options|@count}; max_fields--; {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(); }); } jQuery(document).ready(function () { $('.addFilter').click(function() { rel = $(this).attr('rel'); $(this).prev('span.filter').clone().insertBefore($(this)); $(this).prev('span.filter').children('select[name="order_by_field[]"]').val(''); $(this).prev('span.filter').children('select[name="order_by_direction[]"]').val('ASC'); fields++; updateAddFilterLink(); updateRemoveFilterTrigger(); }); updateRemoveFilterTrigger(); updateAddFilterLink(); }); {/literal} {/footer_script} {/if}
{/if} {if isset($history)}
{/if} {if isset($comments)}
{/if}
{if isset($default)} {$PROFILE_CONTENT} {/if} {if isset($display)}
{'Main Page'|@translate}
{'Photo Page'|@translate}
{'Photo Properties'|@translate}
{/if} {if !isset($default)}

{/if}