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,31 @@
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: get_slider
* Purpose: get a slider of known name or id
* -------------------------------------------------------------
*/
/**
* @param array $params
* @param Smarty $smarty
*
* @return array
*/
function smarty_function_get_datetime($params, &$smarty)
{
$assign = null;
$value = 'now';
extract($params);
$ret = new DateTime($value);
if (!empty($assign)) {
$smarty->assign($assign, $ret);
} else {
return $ret;
}
}