<?php 
 $lexItems = ['form.internal_error', 'form.error', 'cart.size_not_selected'];

 $lex = [];
 foreach ($lexItems as $lexKey) {
 $lex[$lexKey] = __($lexKey);
 }
 ?>

<script>
 const _token = "<?php echo \htmlentities(Volnix\CSRF\CSRF::getToken('_token')??'', ENT_QUOTES, 'UTF-8', false); ?>";
 const lang = "<?php echo \htmlentities(getLang()??'', ENT_QUOTES, 'UTF-8', false); ?>";
 const langSlug = "<?php echo \htmlentities(getLang('slug')??'', ENT_QUOTES, 'UTF-8', false); ?>";
 const lex = <?php echo json_encode($lex, 15, 512); ?>;
 const pageId = <?php echo \htmlentities($res->id??'', ENT_QUOTES, 'UTF-8', false); ?>;
 const pageUri = '<?php echo \htmlentities($res->uri??'', ENT_QUOTES, 'UTF-8', false); ?>';
</script>

<?php echo resParameter('codeFooter', 'home'); ?>

