|
3 | 3 | *}{foreach from=$field->getAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{* |
4 | 4 | *}{if !$field->checkDependencies()} style="display: none;"{/if}{* |
5 | 5 | *}> |
6 | | - <dt>{if $field->getLabel() !== null}<label for="{$field->getPrefixedId()}">{@$field->getLabel()}</label>{/if}</dt> |
| 6 | + <dt>{if $field->getLabel() !== null}<label for="{$field->getPrefixedId()}">{unsafe:$field->getLabel()}</label>{/if}</dt> |
7 | 7 | <dd> |
8 | 8 | <div class="row rowColGap formGrid"> |
9 | 9 | <dl class="col-xs-12 col-md-10"> |
|
62 | 62 | <select id="{$field->getPrefixedId()}_instructions{literal}{$instructionsId}{/literal}_pip"> |
63 | 63 | <option value="" selected disabled>{lang}wcf.acp.devtools.project.instruction.packageInstallationPlugin{/lang}</option> |
64 | 64 | {foreach from=$packageInstallationPlugins item=packageInstallationPlugin} |
65 | | - <option value="{$packageInstallationPlugin->pluginName}">{@$packageInstallationPlugin->pluginName}</option> |
| 65 | + <option value="{$packageInstallationPlugin->pluginName}">{$packageInstallationPlugin->pluginName}</option> |
66 | 66 | {/foreach} |
67 | 67 | </select> |
68 | 68 | </dd> |
|
82 | 82 | <select id="{$field->getPrefixedId()}_instructions{literal}{$instructionsId}{/literal}_application"> |
83 | 83 | <option value="" selected disabled>{lang}wcf.acp.devtools.project.instruction.application{/lang}</option> |
84 | 84 | {foreach from=$apps item=app} |
85 | | - <option value="{$app->getAbbreviation()}">{@$app->getAbbreviation()}</option> |
| 85 | + <option value="{$app->getAbbreviation()}">{$app->getAbbreviation()}</option> |
86 | 86 | {/foreach} |
87 | 87 | </select> |
88 | 88 | </dd> |
|
129 | 129 | <select name="pip"> |
130 | 130 | <option value="" selected>{lang}wcf.global.noSelection{/lang}</option> |
131 | 131 | {foreach from=$packageInstallationPlugins item=packageInstallationPlugin} |
132 | | - <option value="{$packageInstallationPlugin->pluginName}">{@$packageInstallationPlugin->pluginName}</option> |
| 132 | + <option value="{$packageInstallationPlugin->pluginName}">{$packageInstallationPlugin->pluginName}</option> |
133 | 133 | {/foreach} |
134 | 134 | </select> |
135 | 135 | </dd> |
|
149 | 149 | <select name="application"> |
150 | 150 | <option value="" selected>{lang}wcf.global.noSelection{/lang}</option> |
151 | 151 | {foreach from=$apps item=app} |
152 | | - <option value="{$app->getAbbreviation()}">{@$app->getAbbreviation()}</option> |
| 152 | + <option value="{$app->getAbbreviation()}">{$app->getAbbreviation()}</option> |
153 | 153 | {/foreach} |
154 | 154 | </select> |
155 | 155 | </dd> |
|
201 | 201 | 'wcf.global.form.error.noValidSelection': '{jslang}wcf.global.form.error.noValidSelection{/jslang}' |
202 | 202 | }); |
203 | 203 | |
204 | | - var instructionsTemplate = new Template('{@$instructionsTemplate|encodeJS}'); |
205 | | - var instructionsEditDialogTemplate = new Template('{@$instructionsEditDialogContent|encodeJS}'); |
206 | | - var instructionEditDialogTemplate = new Template('{@$instructionEditDialogContent|encodeJS}'); |
| 204 | + var instructionsTemplate = new Template('{unsafe:$instructionsTemplate|encodeJS}'); |
| 205 | + var instructionsEditDialogTemplate = new Template('{unsafe:$instructionsEditDialogContent|encodeJS}'); |
| 206 | + var instructionEditDialogTemplate = new Template('{unsafe:$instructionEditDialogContent|encodeJS}'); |
207 | 207 | |
208 | 208 | new InstructionsFormField( |
209 | | - '{@$field->getPrefixedId()|encodeJS}', |
| 209 | + '{unsafe:$field->getPrefixedId()|encodeJS}', |
210 | 210 | instructionsTemplate, |
211 | 211 | instructionsEditDialogTemplate, |
212 | 212 | instructionEditDialogTemplate, |
|
223 | 223 | {foreach from=$field->getValidationErrors() item=validationError} |
224 | 224 | {if $validationError->getInformation()[instructions]|isset && $validationError->getInformation()[instructions] === $instructionsKey && !$validationError->getInformation()[instruction]|isset} |
225 | 225 | {if $__instructionsHasError},{/if} |
226 | | - '{@$validationError->getMessage()|encodeJS}' |
| 226 | + '{unsafe:$validationError->getMessage()|encodeJS}' |
227 | 227 | |
228 | 228 | {assign var='__instructionsHasError' value=true} |
229 | 229 | {/if} |
|
242 | 242 | {foreach from=$field->getValidationErrors() item=validationError} |
243 | 243 | {if $validationError->getInformation()[instructions]|isset && $validationError->getInformation()[instructions] === $instructionsKey && $validationError->getInformation()[instruction]|isset && $validationError->getInformation()[instruction] === $instructionKey} |
244 | 244 | {if $__instructionHasError},{/if} |
245 | | - '{@$validationError->getMessage()|encodeJS}' |
| 245 | + '{unsafe:$validationError->getMessage()|encodeJS}' |
246 | 246 | |
247 | 247 | {assign var='__instructionHasError' value=true} |
248 | 248 | {/if} |
|
255 | 255 | {/implode} |
256 | 256 | {/if} |
257 | 257 | ], |
258 | | - type: '{@$instructions[type]}' |
| 258 | + type: '{unsafe:$instructions[type]|encodeJS}' |
259 | 259 | } |
260 | 260 | {/implode} |
261 | 261 | ] |
|
0 commit comments