From 3235176feb51c0005dca67cb3a69fb5a16565b30 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 11 Jul 2014 18:04:37 +0200 Subject: [PATCH] Fixed display of empty settings tab --- .../templates/messageFormSettingsInline.tpl | 89 ++++++++----------- .../templates/messageFormTabsInline.tpl | 8 +- 2 files changed, 44 insertions(+), 53 deletions(-) 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'}
-- 2.20.1