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,24 @@
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: get_slider
* Purpose: get a slider of known name or id
* -------------------------------------------------------------
*/
function smarty_function_get_news($params, &$smarty)
{
$default = [
'count' => 5,
'section' => 'Novinky',
'section_id' => 2,
];
$params = array_merge($default, $params);
$smarty->loadPlugin('Smarty_function_get_articles');
return smarty_function_get_articles($params, $smarty);
}