-<div class="userNotice">
+{capture assign='__userNotice'}
{if OFFLINE && $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')}
<div class="warning">
<p><strong>{lang}wcf.page.offline{/lang}</strong></p>
<p class="info">{lang}wcf.global.availableUpdates{/lang}</p>
{/if}
- <noscript>
- <p class="warning">{lang}wcf.page.javascriptDisabled{/lang}</p>
- </noscript>
-
{if $__wcf->user->activationCode && REGISTER_ACTIVATION_METHOD == 1 && $templateName != 'registerActivation'}
<p class="warning">{lang}wcf.user.register.needActivation{/lang}</p>
{/if}
{hascontent}
- {content}
- {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
- <p 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>
- {/foreach}
- {/content}
+ {content}
+ {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
+ <p 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>
+ {/foreach}
+ {/content}
<script data-relocate="true">
require(['WoltLab/WCF/Controller/Notice/Dismiss'], function(ControllerNoticeDismiss) {
{/hascontent}
{event name='userNotice'}
-</div>
+{/capture}
+
+{if $__userNotice|trim}
+ <div class="userNotice">
+ {@$__userNotice}
+ </div>
+{/if}
}
}
+.javascriptDisabledWarning {
+ background-color: $wcfStatusErrorBackground;
+ border-top: 1px solid $wcfStatusErrorBorder;
+ bottom: 0;
+ color: $wcfStatusErrorText;
+ left: 0;
+ padding: 10px 20px;
+ position: fixed;
+ right: 0;
+ text-align: center;
+}
+
/* inline infos */
/* TODO: use other colors */
.innerInfo {