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,26 @@
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: get_payment_method
* Purpose: get a class representing payment method
* -------------------------------------------------------------
*/
function smarty_function_get_payment_method($params, &$smarty)
{
$name = false;
extract($params);
$payment = Payment::getClass($name);
if (!$payment) {
echo "Neexistující platebni metoda '{$name}'";
}
if (!empty($assign)) {
$smarty->assign($assign, $payment);
}
}