first commit

This commit is contained in:
2026-04-24 15:32:21 +02:00
commit 20d40fead4
5046 changed files with 641038 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
/**
* formatuje tak date posta, żeby zamiast konkretnej daty wyświetlało : wczoraj , przed wczoraj, x dni temu, x tygodni temu, x miesięcy temu, x lat temu
*
* @param $str
* @return unknown_type
*/
function smarty_function_dictionary($param, &$smarty){
$dictionaryArray = Registry::Get("dictionary");
$keyword = $param["keyword"];
unset($param["keyword"]);
return vsprintf($dictionaryArray[$keyword], $param);
}
?>