|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html |
3 | | - dir="{@$__wcf->getLanguage()->getPageDirection()}" |
| 3 | + dir="{$__wcf->getLanguage()->getPageDirection()}" |
4 | 4 | lang="{$__wcf->getLanguage()->getBcp47()}" |
5 | 5 | data-color-scheme="{$__wcf->getStyleHandler()->getColorScheme()}" |
6 | 6 | > |
7 | 7 | <head> |
8 | 8 | <meta charset="utf-8"> |
9 | 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
10 | 10 | <meta name="robots" content="noindex"> |
11 | | - <title>{if $pageTitle|isset}{@$pageTitle|language} - {/if}{jslang}wcf.global.acp{/jslang}{if PACKAGE_ID} - {PAGE_TITLE|phrase}{/if}</title> |
| 11 | + <title>{if $pageTitle|isset}{unsafe:$pageTitle|language} - {/if}{jslang}wcf.global.acp{/jslang}{if PACKAGE_ID} - {PAGE_TITLE|phrase}{/if}</title> |
12 | 12 |
|
13 | 13 | {* work-around for Microsoft Edge that sometimes does not apply this style, if it was set via an external stylesheet *} |
14 | 14 | <style>ol, ul { list-style: none; }</style> |
15 | 15 |
|
16 | 16 | <!-- Stylesheets --> |
17 | | - {@$__wcf->getStyleHandler()->getStylesheet(true)} |
| 17 | + {unsafe:$__wcf->getStyleHandler()->getStylesheet(true)} |
18 | 18 | {event name='stylesheets'} |
19 | 19 |
|
20 | 20 | <!-- Icons --> |
|
48 | 48 | <meta name="timezone" content="{$__wcf->user->getTimeZone()->getName()}"> |
49 | 49 |
|
50 | 50 | <script data-eager="true"> |
51 | | - var WCF_PATH = '{@$__wcf->getPath()}'; |
52 | | - var WSC_API_URL = '{@$__wcf->getPath()}acp/'; |
| 51 | + var WCF_PATH = '{unsafe:$__wcf->getPath()|encodeJS}'; |
| 52 | + var WSC_API_URL = '{unsafe:$__wcf->getPath()|encodeJS}acp/'; |
53 | 53 | var WSC_RPC_API_URL = '{link controller="Api" forceFrontend=true id="rpc"}{/link}'; |
54 | 54 | {* The SECURITY_TOKEN is defined in wcf.globalHelper.js *} |
55 | | - var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID}; |
| 55 | + var LANGUAGE_ID = {$__wcf->getLanguage()->languageID}; |
56 | 56 | var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if}; |
57 | | - var TIME_NOW = {@TIME_NOW}; |
58 | | - var LAST_UPDATE_TIME = {@LAST_UPDATE_TIME}; |
| 57 | + var TIME_NOW = {TIME_NOW}; |
| 58 | + var LAST_UPDATE_TIME = {LAST_UPDATE_TIME}; |
59 | 59 | var ENABLE_DEBUG_MODE = {if ENABLE_DEBUG_MODE}true{else}false{/if}; |
60 | 60 | var ENABLE_PRODUCTION_DEBUG_MODE = {if ENABLE_PRODUCTION_DEBUG_MODE}true{else}false{/if}; |
61 | 61 | var ENABLE_DEVELOPER_TOOLS = {if ENABLE_DEVELOPER_TOOLS}true{else}false{/if}; |
|
65 | 65 | var COMPILER_TARGET_DEFAULT = true; |
66 | 66 | </script> |
67 | 67 |
|
68 | | - <script data-eager="true" src="{$__wcf->getPath()}js/WoltLabSuite/WebComponent.min.js?v={@LAST_UPDATE_TIME}"></script> |
| 68 | + <script data-eager="true" src="{$__wcf->getPath()}js/WoltLabSuite/WebComponent.min.js?v={LAST_UPDATE_TIME}"></script> |
69 | 69 | <script data-eager="true" src="{$phrasePreloader->getUrl($__wcf->language)}"></script> |
70 | 70 |
|
71 | 71 | {js application='wcf' file='require' bundle='WoltLabSuite.Core' core='true'} |
|
75 | 75 | {js application='wcf' file='3rdParty/tslib' bundle='WoltLabSuite.Core' core='true'} |
76 | 76 | <script> |
77 | 77 | requirejs.config({ |
78 | | - baseUrl: '{@$__wcf->getPath()}js', |
79 | | - urlArgs: 't={@LAST_UPDATE_TIME}' |
| 78 | + baseUrl: '{unsafe:$__wcf->getPath()|encodeJS}js', |
| 79 | + urlArgs: 't={LAST_UPDATE_TIME}' |
80 | 80 | {hascontent} |
81 | 81 | , paths: { |
82 | 82 | {content}{event name='requirePaths'}{/content} |
|
94 | 94 | }); |
95 | 95 | |
96 | 96 | User.init( |
97 | | - {@$__wcf->user->userID}, |
98 | | - {if $__wcf->user->userID}'{@$__wcf->user->username|encodeJS}'{else}''{/if}, |
99 | | - {if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}'{else}''{/if} |
| 97 | + {$__wcf->user->userID}, |
| 98 | + {if $__wcf->user->userID}'{unsafe:$__wcf->user->username|encodeJS}'{else}''{/if}, |
| 99 | + {if $__wcf->user->userID}'{unsafe:$__wcf->user->getLink()|encodeJS}'{else}''{/if} |
100 | 100 | ); |
101 | 101 | |
102 | 102 | AcpBootstrap.setup({ |
|
126 | 126 | define.amd = __require_define_amd; |
127 | 127 | $.holdReady(true); |
128 | 128 | WCF.User.init( |
129 | | - {@$__wcf->user->userID}, |
130 | | - {if $__wcf->user->userID}'{@$__wcf->user->username|encodeJS}'{else}''{/if} |
| 129 | + {$__wcf->user->userID}, |
| 130 | + {if $__wcf->user->userID}'{unsafe:$__wcf->user->username|encodeJS}'{else}''{/if} |
131 | 131 | ); |
132 | 132 | </script> |
133 | 133 | {js application='wcf' file='WCF.Message' bundle='WCF.Combined'} |
|
165 | 165 | {event name='javascriptInclude'} |
166 | 166 |
|
167 | 167 | {if !$headContent|empty} |
168 | | - {@$headContent} |
| 168 | + {unsafe:$headContent} |
169 | 169 | {/if} |
170 | 170 | </head> |
171 | 171 |
|
|
0 commit comments