From: Marcel Werk Date: Thu, 23 May 2013 20:23:55 +0000 (+0200) Subject: Small optimizations X-Git-Tag: 2.0.0_Beta_1~76 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edf7add2117b50474650ce02be757018db4d7fd3;p=GitHub%2FWoltLab%2FWCF.git Small optimizations --- diff --git a/com.woltlab.wcf/template/settings.tpl b/com.woltlab.wcf/template/settings.tpl index d1e709250a..1031376469 100644 --- a/com.woltlab.wcf/template/settings.tpl +++ b/com.woltlab.wcf/template/settings.tpl @@ -36,72 +36,76 @@
{if $category == 'general'} -
- {lang}wcf.user.language{/lang} - -
-
-
- - -
-
- - {hascontent} + {if $availableLanguages|count > 1} +
+ {lang}wcf.user.language{/lang} +
-
-
- {content} - {foreach from=$availableContentLanguages item=language} - - {/foreach} - {/content} - {lang}wcf.user.visibleLanguages.description{/lang}
+
+
+ + +
- {/hascontent} - - {event name='languageFields'} -
+ + {hascontent} +
+
+
+ {content} + {foreach from=$availableContentLanguages item=language} + + {/foreach} + {/content} + {lang}wcf.user.visibleLanguages.description{/lang}
+
+ {/hascontent} + + {event name='languageFields'} +
+ {/if} -
- {lang}wcf.user.style{/lang} - -
-
-
- - {lang}wcf.user.style.description{/lang} -
-
- - {event name='styleFields'} -
+ {if $availableStyles|count > 1} +
+ {lang}wcf.user.style{/lang} + +
+
+
+ + {lang}wcf.user.style.description{/lang} +
+
+ + {event name='styleFields'} +
+ {/if} {/if} {foreach from=$optionTree[0][categories][0][categories] item=optionCategory} diff --git a/com.woltlab.wcf/template/userPanel.tpl b/com.woltlab.wcf/template/userPanel.tpl index eece29c197..5247a34b3b 100644 --- a/com.woltlab.wcf/template/userPanel.tpl +++ b/com.woltlab.wcf/template/userPanel.tpl @@ -147,30 +147,31 @@ {/if} - -
  • - -
  • + //]]> + + + {/if} {/if} {if !$__hideUserMenu|isset}