This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
<?
/*
* Smarty plugin
* -------------------------------------------------------------
* File: function.url.php
* Type: function
* Name: link
* Purpose: zwraca sformatowany url
* -------------------------------------------------------------
*/
function smarty_function_url($param, &$smarty)
{
if(isset($param['label'])) {
$label = $param['label'];
} else {
$label = null;
}
if(isset($param['_BASE_URL_'])){
$baseUrl = $param['_BASE_URL_'];
unset($param['_BASE_URL_']);
return Router::GenerateUrl($label, $param, $baseUrl);
}
return Router::GenerateUrl($label, $param);
}
?>