first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* File: block.change_currency.php
* Type: block
* Name: change_currency
* Purpose: Override active currency for content inside block
* -------------------------------------------------------------
*/
function smarty_block_change_currency($params, $content, Smarty_Internal_Template $template, &$repeat)
{
// Initial call
if ($repeat) {
if (!array_key_exists('currency', $params)) {
user_error('Block change_currency: Missing parameter "currency"');
$params['currency'] = 'CZK';
}
changeCurrency($params['currency']);
}
// Ending call
if (!$repeat) {
changeCurrency();
return $content;
}
}