19 lines
784 B
PHP
19 lines
784 B
PHP
<?php
|
|
$data = [
|
|
'lang' => (string) $modx->getOption('cultureKey'),
|
|
'close' => $modx->lexicon('ls_close'),
|
|
'name' => $modx->lexicon('ls_err_name'),
|
|
'phone' => $modx->lexicon('ls_err_phone'),
|
|
'age' => $modx->lexicon('ls_err_age'),
|
|
'consent' => $modx->lexicon('ls_err_consent'),
|
|
'guard' => $modx->lexicon('ls_err_guard'),
|
|
'limit' => $modx->lexicon('ls_err_limit'),
|
|
'network' => $modx->lexicon('ls_err_network'),
|
|
'docs' => [
|
|
$modx->makeUrl((int) $modx->getOption('ls_privacy_id'), '', '', 'full'),
|
|
$modx->makeUrl((int) $modx->getOption('ls_consent_id'), '', '', 'full'),
|
|
],
|
|
];
|
|
|
|
return '<script type="application/json" data-ui>' . json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG) . '</script>';
|