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: modifier
* Name: date_format
* Purpose: format datestamps via strftime
* Input: string: input date string
* format: strftime format for output
* default_date: default date if $string is empty
* -------------------------------------------------------------
*/
function smarty_modifier_timestamp_format($string, $format = '%b %e, %Y', $default_date = null)
{
if ($string != '') {
return strftime($format, $string);
} elseif (isset($default_date) && $default_date != '') {
return strftime($format, $default_date);
} else {
return;
}
}
/* vim: set expandtab: */