{* $Id$ *}
{ticket}
{if $prefs.feature_theme_control eq y} {button _text="{tr}Theme Control{/tr}" href="tiki-theme_control.php" _class="btn-sm btn-link tikihelp" _icon_name="file-image-o"} {/if} {if $prefs.feature_editcss eq 'y' and $tiki_p_create_css eq 'y'} {button _text="{tr}Edit CSS{/tr}" _class="btn-sm" href="tiki-edit_css.php"} {/if} {include file='admin/include_apply_top.tpl'}
{tabset name="admin_look"} {tab name="{tr}Theme{/tr}"}
{tr}Main theme{/tr}
{preference name=theme}
{preference name=theme_custom_url}
{preference name=theme_option} {preference name=theme_option_includes_main} {preference name=theme_navbar_color_variant} {preference name=theme_navbar_fixed_topbar_offset}
{if $thumbfile} {tr}Theme Screenshot{/tr} {else} {icon name="image"} {/if}
{preference name=change_theme}
{preference name=available_themes}
{* Fixed width is the first decision to make, so it needs to be visibly on the first tab. But its logical place is in the "layout" tab. So we we put it twice. But its not possible to "just" put it twice, hence following hack. If this hack is required in more places, we can add an opton to "preference" plugin *}
{jq} $('input[name=dummy_feature_fixed_width]').click(function(){ /* get value of dummy_feature_fixed_width */ var dummy = $(this).is(":checked"); /* Synchronize with dummy checkbox and trigger display of child option */ $('input[name=feature_fixed_width]').prop('checked', dummy).change(); }); $('input[name=feature_fixed_width]').click(function(){ /* get value of feature_fixed_width */ var real = $(this).is(":checked"); /* Synchronize with dummy checkbox display */ $('input[name=dummy_feature_fixed_width]').prop('checked', real); }); {/jq} {preference name=useGroupTheme}
{tr}Admin theme{/tr}
{preference name=theme_unified_admin_backend} {preference name=theme_admin} {preference name=theme_option_admin} {preference name=theme_navbar_color_variant_admin}

{tr}Other{/tr} {preference name=theme_iconset} {if $prefs.javascript_enabled eq 'n' or $prefs.feature_jquery eq 'n'} {* TODO I don't see where this is used in in admin/include_look.php *} {/if}
{if $prefs.feature_jquery_ui eq 'y'} {preference name=feature_jquery_ui_theme} {/if}
{preference name=feature_theme_control}
{preference name=feature_theme_control_savesession} {preference name=feature_theme_control_parentcategory} {preference name=feature_theme_control_autocategorize}

{tr}Theme Preferences{/tr}
{foreach key=theme item=preferences from=$themePrefs}
{tr}{{$theme|escape|ucfirst}}{/tr} {foreach $preferences as $pref} {preference name="{$pref|escape}"} {/foreach}
{foreachelse} {tr}No theme preferences found.{/tr} {/foreach}

{/tab} {tab name="{tr}Layout{/tr}"}
{tr}General layout{/tr} {preference name=feature_fixed_width}
{preference name=layout_fixed_width}
{preference name=site_layout} {preference name=site_layout_per_object} {tr}Admin pages layout{/tr} ({tr}Admin theme must be selected first{/tr}) {preference name=site_layout_admin}
{tr}Logo and Title{/tr} {preference name=feature_sitelogo}
{tr}Logo{/tr} {preference name=sitelogo_src} {preference name=sitelogo_icon} {preference name=sitelogo_bgcolor} {preference name=sitelogo_title} {preference name=sitelogo_alt}
{tr}Title{/tr} {preference name=sitetitle} {preference name=sitesubtitle}

{tr}Module zone visibility{/tr} {preference name=module_zones_top} {preference name=module_zones_topbar} {preference name=module_zones_pagetop} {preference name=feature_left_column} {preference name=feature_right_column} {preference name=module_zones_pagebottom} {preference name=module_zones_bottom}
{preference name=module_file} {preference name=module_zone_available_extra}

{tr}Site report bar{/tr} {preference name=feature_site_report} {preference name=feature_site_report_email}

{/tab} {if $prefs.site_layout eq 'classic'} {tab name="{tr}Shadow layer{/tr}"}
{tr}Shadow layer{/tr} {preference name=feature_layoutshadows}
{preference name=main_shadow_start} {preference name=main_shadow_end} {preference name=header_shadow_start} {preference name=header_shadow_end} {preference name=middle_shadow_start} {preference name=middle_shadow_end} {preference name=center_shadow_start} {preference name=center_shadow_end} {preference name=footer_shadow_start} {preference name=footer_shadow_end} {preference name=box_shadow_start} {preference name=box_shadow_end}

{/tab} {/if} {tab name="{tr}Pagination{/tr}"}
{tr}Pagination{/tr} {preference name=nextprev_pagination} {preference name=direct_pagination}
{preference name=direct_pagination_max_middle_links} {preference name=direct_pagination_max_ending_links}
{preference name=pagination_firstlast} {preference name=pagination_fastmove_links} {preference name=pagination_hide_if_one_page} {preference name=pagination_icons} {tr}Limits{/tr} {preference name=user_selector_threshold} {preference name=maxRecords} {preference name=tiki_object_selector_threshold} {preference name=tiki_object_selector_searchfield} {preference name=comments_per_page}
{/tab} {tab name="{tr}UI Effects{/tr}"}
{tr}Standard UI effects{/tr} {preference name=jquery_effect} {preference name=jquery_effect_speed} {preference name=jquery_effect_direction}
{tr}Tab UI effects{/tr} {preference name=jquery_effect_tabs} {preference name=jquery_effect_tabs_speed} {preference name=jquery_effect_tabs_direction}

{tr}Other{/tr}
{preference name=feature_shadowbox} {preference name=allowImageLazyLoad}
{preference name=jquery_colorbox_theme}
{preference name=feature_jscalendar} {preference name=wiki_heading_links} {preference name=feature_equal_height_rows_js} {preference name=feature_conditional_formatting} {preference name=jquery_ui_modals_draggable} {preference name=jquery_ui_modals_resizable}

{/tab} {tab name="{tr}Customization{/tr}"}
{tr}Custom codes{/tr} {preference name="header_custom_css" syntax="css"} {preference name="header_custom_less" syntax="css"} {preference name=feature_custom_html_head_content syntax="htmlmixed"} {preference name=feature_endbody_code syntax="tiki"} {preference name=site_google_analytics_account} {preference name="header_custom_js" syntax="javascript"} {preference name="layout_add_body_group_class"} {preference name=categories_add_class_to_body_tag}

{tr}Editing{/tr} {preference name=theme_customizer} {preference name=feature_editcss} {preference name=feature_view_tpl} {if $prefs.feature_view_tpl eq 'y'}
{button href="tiki-edit_templates.php" _text="{tr}View Templates{/tr}"}
{/if} {preference name=feature_edit_templates} {if $prefs.feature_edit_templates eq 'y'}
{button href="tiki-edit_templates.php" _text="{tr}Edit Templates{/tr}"}
{/if}

{/tab} {tab name="{tr}Miscellaneous{/tr}"}
{tr}Tabs{/tr} {preference name=feature_tabs}
{preference name=layout_tabs_optional}

{tr}Favicons{/tr} {preference name=site_favicon_enable}

{tr}Responsive images{/tr} {preference name=image_responsive_class}

{tr}Context menus{/tr} ({tr}currently used in file galleries only{/tr}) {preference name=use_context_menu_icon} {preference name=use_context_menu_text}

{tr}Separators{/tr} {preference name=site_crumb_seper} {preference name=site_nav_seper}

{tr}Smarty templates (TPL files){/tr} {preference name=log_tpl} {preference name=smarty_compilation} {preference name=smarty_cache_perms} {preference name=categories_used_in_tpl} {preference name=feature_html_head_base_tag}
{/tab} {/tabset} {include file='admin/include_apply_bottom.tpl'}