summaryrefslogtreecommitdiff
path: root/smartyplugins/modifier.bit_long_date.php
diff options
context:
space:
mode:
Diffstat (limited to 'smartyplugins/modifier.bit_long_date.php')
-rw-r--r--smartyplugins/modifier.bit_long_date.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/smartyplugins/modifier.bit_long_date.php b/smartyplugins/modifier.bit_long_date.php
new file mode 100644
index 0000000..4e6a695
--- /dev/null
+++ b/smartyplugins/modifier.bit_long_date.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_date
+ */
+function smarty_modifier_bit_long_date( $pString ) {
+ global $gBitSystem;
+ return smarty_modifier_bit_date_format( $pString, $gBitSystem->get_long_date_format(), '%A %d of %B, %Y' );
+}
+?>