Add X13 WebP module for image conversion to next-generation formats

- Implemented the main module class with essential properties and methods.
- Added translation support for various user interface strings.
- Created XML configuration file for module versioning.
- Ensured compatibility with different PHP versions and PrestaShop versions.
This commit is contained in:
2025-10-16 21:30:24 +02:00
parent d220e35c31
commit 3b29a79921
235 changed files with 40220 additions and 189 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>