1 {capture assign='pageTitle'}{lang}wcf.user.option.category.settings.{$category}{/lang} - {lang}wcf.user.menu.settings{/lang}{/capture}
3 {capture assign='contentTitle'}{lang}wcf.user.menu.settings{/lang}: {lang}wcf.user.option.category.settings.{$category}{/lang}{/capture}
5 {include file='userMenuSidebar'}
7 {include file='header' __disableAds=true __sidebarLeftHasMenu=true}
9 {include file='shared_formError'}
12 <woltlab-core-notice type="success">{lang}wcf.global.success.edit{/lang}</woltlab-core-notice>
15 <form method="post" action="{$formAction}">
16 {if $category == 'general'}
17 {if $availableLanguages|count > 1}
18 <section class="section" id="section_language">
19 <h2 class="sectionTitle">{lang}wcf.user.language{/lang}</h2>
22 <dt><label>{lang}wcf.user.language.description{/lang}</label></dt>
23 <dd id="languageIDContainer">
24 <script data-relocate="true">
25 require(['WoltLabSuite/Core/Language/Chooser'], ({ init }) => {
27 {implode from=$availableLanguages item=language}
28 '{@$language->languageID}': {
29 iconPath: '{@$language->getIconPath()|encodeJS}',
30 languageName: '{@$language|encodeJS}'
35 init('languageIDContainer', 'languageID', {@$languageID}, languages);
39 <select name="languageID" id="languageID">
40 {foreach from=$availableLanguages item=language}
41 <option value="{$language->languageID}"{if $language->languageID == $languageID} selected{/if}>{$language}</option>
50 <dt><label>{lang}wcf.user.visibleLanguages{/lang}</label></dt>
53 {foreach from=$availableContentLanguages item=language}
54 <label><input name="contentLanguageIDs[]" type="checkbox" value="{$language->languageID}"{if $language->languageID|in_array:$contentLanguageIDs} checked{/if}> {$language}</label>
57 <small>{lang}wcf.user.visibleLanguages.description{/lang}</small></dd>
61 {event name='languageFields'}
65 <section class="section" id="section_style">
66 <h2 class="sectionTitle">{lang}wcf.user.styles{/lang}</h2>
68 {if $availableStyles|count > 1}
70 <dt><label for="styleID">{lang}wcf.user.style{/lang}</label></dt>
72 <select id="styleID" name="styleID">
73 <option value="0">{lang}wcf.global.defaultValue{/lang}</option>
74 {foreach from=$availableStyles item=style}
75 <option value="{$style->styleID}"{if $style->styleID == $styleID} selected{/if}>{$style->styleName}</option>
78 <small>{lang}wcf.user.style.description{/lang}</small>
84 <dt><label for="colorScheme">{lang}wcf.user.style.colorScheme{/lang}</label></dt>
86 <select id="colorScheme" name="colorScheme">
87 <option value="system"{if $colorScheme === 'system'} selected{/if}>{lang}wcf.style.setColorScheme.system{/lang}</option>
88 <option value="light"{if $colorScheme === 'light'} selected{/if}>{lang}wcf.style.setColorScheme.light{/lang}</option>
89 <option value="dark"{if $colorScheme === 'dark'} selected{/if}>{lang}wcf.style.setColorScheme.dark{/lang}</option>
91 <small>{lang}wcf.user.style.colorScheme.description{/lang}</small>
95 {event name='styleFields'}
98 {if MODULE_TROPHY && $__wcf->getSession()->getPermission('user.profile.trophy.maxUserSpecialTrophies') > 0 && $availableTrophies|count}
99 <section class="section" id="section_trophy">
100 <h2 class="sectionTitle">{lang}wcf.user.trophy.trophies{/lang}</h2>
101 <dl{if $errorField == 'specialTrophies'} class="formError"{/if}>
102 <dt>{lang}wcf.user.trophy.specialTrophies{/lang}</dt>
104 <ul class="specialTrophyList">
105 {if $__wcf->getSession()->getPermission('user.profile.trophy.maxUserSpecialTrophies') == 1}
106 {foreach from=$availableTrophies item=trophy}
107 <li><label><input type="radio" name="specialTrophies[]" value="{$trophy->getObjectID()}"{if $trophy->getObjectID()|in_array:$specialTrophies} checked{/if}> {@$trophy->renderTrophy(32)} <span>{$trophy->getTitle()}</span></label></li>
110 {foreach from=$availableTrophies item=trophy}
111 <li><label><input type="checkbox" name="specialTrophies[]" value="{$trophy->getObjectID()}"{if $trophy->getObjectID()|in_array:$specialTrophies} checked{/if}> {@$trophy->renderTrophy(32)} <span>{$trophy->getTitle()}</span></label></li>
115 {if $errorField == 'specialTrophies'}
116 <small class="innerError">
117 {lang}wcf.user.trophy.specialTrophies.error.{$errorType}{/lang}
120 <small>{lang}wcf.user.trophy.specialTrophies.description{/lang}</small>
124 {event name='trophyFields'}
129 {if !$optionTree|empty}
130 {foreach from=$optionTree[0][categories][0][categories] item=optionCategory}
131 <section class="section" id="optionCategory_{@$optionCategory[object]->categoryName}">
132 <h2 class="sectionTitle">{lang}wcf.user.option.category.{@$optionCategory[object]->categoryName}{/lang}</h2>
134 {include file='userProfileOptionFieldList' options=$optionCategory[options] langPrefix='wcf.user.option.'}
139 {event name='sections'}
141 <div class="formSubmit">
142 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
143 {if $category != 'general'}<input type="hidden" name="category" value="{$category}">{/if}
148 <script data-relocate="true">
150 new WCF.Option.Handler();
154 {include file='footer' __disableAds=true}