From: Alexander Ebert Date: Fri, 11 Jul 2014 16:04:37 +0000 (+0200) Subject: Fixed display of empty settings tab X-Git-Tag: 2.1.0_Alpha_1~580 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3235176feb51c0005dca67cb3a69fb5a16565b30;p=GitHub%2FWoltLab%2FWCF.git Fixed display of empty settings tab --- diff --git a/com.woltlab.wcf/templates/messageFormSettingsInline.tpl b/com.woltlab.wcf/templates/messageFormSettingsInline.tpl index 8cb52cda61..60874c5999 100644 --- a/com.woltlab.wcf/templates/messageFormSettingsInline.tpl +++ b/com.woltlab.wcf/templates/messageFormSettingsInline.tpl @@ -1,55 +1,42 @@ -
- {event name='beforeSettings'} - -
- {if $__wcf->getSession()->getPermission('user.message.canUseBBCodes')} -
-
- - {lang}wcf.message.settings.preParse.description{/lang} -
- {/if} - {if MODULE_SMILEY && $__wcf->getSession()->getPermission('user.message.canUseSmilies')} -
-
- - {lang}wcf.message.settings.enableSmilies.description{/lang} -
- {/if} - {if $__wcf->getSession()->getPermission('user.message.canUseBBCodes')} -
-
- - {lang}wcf.message.settings.enableBBCodes.description{/lang} -
- {/if} - - {event name='settings'} -
- - {event name='afterSettings'} -
- + +{/hascontent} diff --git a/com.woltlab.wcf/templates/messageFormTabsInline.tpl b/com.woltlab.wcf/templates/messageFormTabsInline.tpl index b426f8e971..0b25d9ef30 100644 --- a/com.woltlab.wcf/templates/messageFormTabsInline.tpl +++ b/com.woltlab.wcf/templates/messageFormTabsInline.tpl @@ -1,12 +1,16 @@ {assign var=smileyCategories value=$__wcf->getSmileyCache()->getCategories()} {if !$permissionCanUseSmilies|isset}{assign var=permissionCanUseSmilies value='user.message.canUseSmilies'}{/if} {if !$wysiwygContainerID|isset}{assign var=wysiwygContainerID value='text'}{/if} + +{capture assign='__messageFormSettingsInlineContent'}{include file='messageFormSettingsInline'}{/capture} +{assign var='__messageFormSettingsInlineContent' value=$__messageFormSettingsInlineContent|trim} +
@@ -14,7 +18,7 @@ {if MODULE_SMILEY && $__wcf->getSession()->getPermission($permissionCanUseSmilies) && $smileyCategories|count}{include file='messageFormSmilies'}{/if} {if MODULE_ATTACHMENT && !$attachmentHandler|empty && $attachmentHandler->canUpload()}{include file='messageFormAttachments'}{/if} - {include file='messageFormSettingsInline'} + {if $__messageFormSettingsInlineContent}{@$__messageFormSettingsInlineContent}{/if} {event name='tabMenuContents'}