Commit | Line | Data |
---|---|---|
3e93caf9 | 1 | {capture assign='pageTitle'}{lang}wcf.user.option.category.settings.{$category}{/lang} - {lang}wcf.user.menu.settings{/lang}{/capture} |
320f4a6d | 2 | |
3e93caf9 | 3 | {capture assign='contentTitle'}{lang}wcf.user.menu.settings{/lang}: {lang}wcf.user.option.category.settings.{$category}{/lang}{/capture} |
320f4a6d MW |
4 | |
5 | {include file='userMenuSidebar'} | |
6 | ||
95961bdf | 7 | {include file='header'} |
320f4a6d | 8 | |
77329f86 AE |
9 | {include file='formError'} |
10 | ||
320f4a6d MW |
11 | {if $success|isset} |
12 | <p class="success">{lang}wcf.global.success.edit{/lang}</p> | |
13 | {/if} | |
14 | ||
320f4a6d | 15 | <form method="post" action="{link controller='Settings'}{/link}"> |
95961bdf MW |
16 | {if $category == 'general'} |
17 | {if $availableLanguages|count > 1} | |
18 | <section class="section"> | |
19 | <h2 class="sectionTitle">{lang}wcf.user.language{/lang}</h2> | |
20 | ||
21 | <dl> | |
22 | <dt><label>{lang}wcf.user.language{/lang}</label></dt> | |
23 | <dd id="languageIDContainer"> | |
24 | <script data-relocate="true"> | |
25 | //<![CDATA[ | |
26 | $(function() { | |
27 | var $languages = { | |
28 | {implode from=$availableLanguages item=language} | |
29 | '{@$language->languageID}': { | |
30 | iconPath: '{@$language->getIconPath()}', | |
31 | languageName: '{$language}' | |
32 | } | |
33 | {/implode} | |
34 | }; | |
35 | ||
36 | new WCF.Language.Chooser('languageIDContainer', 'languageID', {@$languageID}, $languages); | |
37 | }); | |
38 | //]]> | |
39 | </script> | |
40 | <noscript> | |
41 | <select name="languageID" id="languageID"> | |
42 | {foreach from=$availableLanguages item=language} | |
43 | <option value="{@$language->languageID}"{if $language->languageID == $languageID} selected="selected"{/if}>{$language}</option> | |
edf7add2 MW |
44 | {/foreach} |
45 | </select> | |
95961bdf MW |
46 | </noscript> |
47 | </dd> | |
48 | </dl> | |
49 | ||
50 | {hascontent} | |
51 | <dl> | |
52 | <dt><label>{lang}wcf.user.visibleLanguages{/lang}</label></dt> | |
53 | <dd class="floated"> | |
54 | {content} | |
55 | {foreach from=$availableContentLanguages item=language} | |
56 | <label><input name="contentLanguageIDs[]" type="checkbox" value="{@$language->languageID}"{if $language->languageID|in_array:$contentLanguageIDs} checked="checked"{/if} /> {$language}</label> | |
57 | {/foreach} | |
58 | {/content} | |
59 | <small>{lang}wcf.user.visibleLanguages.description{/lang}</small></dd> | |
edf7add2 | 60 | </dl> |
95961bdf MW |
61 | {/hascontent} |
62 | ||
63 | {event name='languageFields'} | |
64 | </section> | |
320f4a6d MW |
65 | {/if} |
66 | ||
95961bdf MW |
67 | {if $availableStyles|count > 1} |
68 | <section class="section"> | |
69 | <h2 class="sectionTitle">{lang}wcf.user.style{/lang}</h2> | |
70 | ||
71 | <dl> | |
72 | <dt><label for="styleID">{lang}wcf.user.style{/lang}</label></dt> | |
73 | <dd> | |
74 | <select id="styleID" name="styleID"> | |
75 | <option value="0">{lang}wcf.global.defaultValue{/lang}</option> | |
76 | {foreach from=$availableStyles item=style} | |
77 | <option value="{@$style->styleID}"{if $style->styleID == $styleID} selected="selected"{/if}>{$style->styleName}</option> | |
78 | {/foreach} | |
79 | </select> | |
80 | <small>{lang}wcf.user.style.description{/lang}</small> | |
81 | </dd> | |
82 | </dl> | |
83 | ||
84 | {event name='styleFields'} | |
85 | </section> | |
31484d86 | 86 | {/if} |
95961bdf MW |
87 | {/if} |
88 | ||
89 | {if !$optionTree|empty} | |
90 | {foreach from=$optionTree[0][categories][0][categories] item=optionCategory} | |
91 | <section class="section"> | |
92 | <h2 class="sectionTitle">{lang}wcf.user.option.category.{@$optionCategory[object]->categoryName}{/lang}</h2> | |
93 | ||
94 | {include file='userProfileOptionFieldList' options=$optionCategory[options] langPrefix='wcf.user.option.'} | |
95 | </section> | |
96 | {/foreach} | |
97 | {/if} | |
98 | ||
99 | {event name='sections'} | |
320f4a6d MW |
100 | |
101 | <div class="formSubmit"> | |
102 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
103 | {if $category != 'general'}<input type="hidden" name="category" value="{$category}" />{/if} | |
77329f86 | 104 | {@SECURITY_TOKEN_INPUT_TAG} |
320f4a6d MW |
105 | </div> |
106 | </form> | |
107 | ||
3e93caf9 MW |
108 | <script data-relocate="true"> |
109 | //<![CDATA[ | |
110 | $(function() { | |
111 | new WCF.Option.Handler(); | |
112 | }); | |
113 | //]]> | |
114 | </script> | |
320f4a6d | 115 | |
3e93caf9 | 116 | {include file='footer'} |