diff options
Diffstat (limited to 'smartyplugins/modifier.bit_long_datetime.php')
| -rw-r--r-- | smartyplugins/modifier.bit_long_datetime.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/smartyplugins/modifier.bit_long_datetime.php b/smartyplugins/modifier.bit_long_datetime.php new file mode 100644 index 0000000..8c13747 --- /dev/null +++ b/smartyplugins/modifier.bit_long_datetime.php @@ -0,0 +1,21 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + +/** + * required setup + */ +global $gBitSmarty; +require_once $gBitSmarty->_get_plugin_filepath( 'modifier', 'bit_date_format' ); + +/** + * smarty_modifier_bit_long_datetime + */ +function smarty_modifier_bit_long_datetime( $pString ) { + global $gBitSystem; + return smarty_modifier_bit_date_format( $pString, $gBitSystem->get_long_datetime_format(), '%A %d of %B, %Y (%H:%M:%S %Z)' ); +} +?> |
