This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,21 @@
<script>
{foreach from=$x13webp_js_variables item=value key=k}
{if !empty($k) && is_string($k)}
{if is_bool($value)}
var {$k} = {$value|var_export:true};
{elseif is_int($value)}
var {$k} = {$value|intval};
{elseif is_float($value)}
var {$k} = {$value|floatval|replace:',':'.'};
{elseif is_string($value)}
var {$k} = '{$value|strval}';
{elseif is_array($value) || is_object($value)}
var {$k} = {$value|json_encode};
{elseif is_null($value)}
var {$k} = null;
{else}
var {$k} = '{$value|@addcslashes:'\''}';
{/if}
{/if}
{/foreach}
</script>