Lettersail: online English school for kids on MODX 3 (templates, chunks, snippets, plugins, scripts)
This commit is contained in:
commit
3799cf8de5
96 files changed
+4423
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?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>';
|
||||
Reference in new issue
Block a user