Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=load_time}
{if $data > 1.6}
<span class="danger">{round($data * 1000)}</span>
{elseif $data > 0.8}
<span class="warning">{round($data * 1000)}</span>
{else}
<span class="success">{sprintf('%01.3f', $data * 1000)}</span>
{/if}
ms
{/function}

View File

@@ -0,0 +1,17 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=memory}
{$data = round($data / 1048576, 2)}
{if $data > 3}
<span class="danger">{$data|string_format:"%0.2f"}</span>
{elseif $data > 1}
<span class="warning">{$data|string_format:"%0.2f"}</span>
{elseif round($data, 2) > 0}
<span class="success">{$data|string_format:"%0.2f"}</span>
{else}
<span class="success">-</span>
{/if}
Mb
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=mysql_version}
{if version_compare($version, '5.6') < 0}
<span class="danger">{$data} (Upgrade strongly recommended)</span>
{elseif version_compare($version, '5.7') < 0}
<span class="warning">{$data} (Consider upgrading)</span>
{else}
<span class="success">{$data} (OK)</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=objectmodel}
{if $data > 50}
<span class="danger">{$data}</span>
{elseif $data > 10}
<span class="warning">{$data}</span>
{else}
<span class="success">{$data}</span>
{/if}
{/function}

View File

@@ -0,0 +1,16 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=peak_memory}
{$data = round($data / 1048576, 2)}
{if $data > 16}
<span class="danger">{$data|string_format:"%0.1f"}</span>
{elseif $data > 12}
<span class="warning">{$data|string_format:"%0.1f"}</span>
{else}
<span class="success">{$data|string_format:"%0.1f"}</span>
{/if}
Mb
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=php_version}
{if version_compare($version, '8.1') <= 0}
<span class="danger">{$data} (Upgrade strongly recommended)</span>
{elseif version_compare($version, '8.2') <= 0}
<span class="warning">{$data} (Consider upgrading)</span>
{else}
<span class="success">{$data} (OK)</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=rows_browsed}
{if $data > 400}
<span class="danger">{$data} rows browsed</span>
{elseif $data > 100}
<span class="warning">{$data} rows browsed</span>
{else}
<span class="success">{$data} rows browsed</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=sql_queries}
{if $data > 150}
<span class="danger">{$data} queries</span>
{elseif $data > 100}
<span class="warning">{$data} queries</span>
{else}
<span class="success">{$data} queries</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=table}
{if $data > 30}
<span class="danger">{$data}</span>
{elseif $data > 20}
<span class="warning">{$data}</span>
{else}
<span class="success">{$data}</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=time}
{if $data > 4}
<span class="danger">{$data}</span>
{elseif $data > 2}
<span class="warning">{$data}</span>
{else}
<span class="success">{$data}</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=total_queries}
{if $data >= 100}
<span class="danger">{$data}</span>
{elseif $data >= 50}
<span class="warning">{$data}</span>
{else}
<span class="success">{$data}</span>
{/if}
{/function}

View File

@@ -0,0 +1,13 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
{function name=total_querying_time}
{if $data >= 100}
<span class="danger">{$data}</span>
{elseif $data >= 50}
<span class="warning">{$data}</span>
{else}
<span class="success">{$data}</span>
{/if}
{/function}