Use <div> for notices that contain html
authorMarcel Werk <burntime@woltlab.com>
Fri, 13 Jan 2017 11:53:45 +0000 (12:53 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 13 Jan 2017 11:53:58 +0000 (12:53 +0100)
com.woltlab.wcf/templates/userNotice.tpl

index 3a70bea18855a9aa97161af68a89d87d2bd63658..ecce0bb42aca458d4d5ff72d0070260ac1dcb810 100644 (file)
@@ -2,7 +2,7 @@
        {if OFFLINE && $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')}
                <div class="warning">
                        <p><strong>{lang}wcf.page.offline{/lang}</strong></p>
-                       <p>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|newlineToBreak}{/if}</p>
+                       <div>{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE|language}{else}{@OFFLINE_MESSAGE|language|newlineToBreak}{/if}</div>
                </div>
        {/if}
        
        {hascontent}
                {content}
                        {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
-                               <p class="{$notice->cssClassName} notice{if $notice->isDismissible} noticeDismissible active{/if}">
+                               <div class="{$notice->cssClassName} notice{if $notice->isDismissible} noticeDismissible active{/if}">
                                        {if $notice->isDismissible}
                                                <span class="icon icon16 fa-times pointer jsDismissNoticeButton jsTooltip" data-object-id="{$notice->noticeID}" title="{lang}wcf.notice.button.dismiss{/lang}"></span>
                                        {/if}
                                        
                                        {@$notice}
-                               </p>
+                               </div>
                        {/foreach}
                {/content}