summaryrefslogtreecommitdiff
path: root/smartyplugins/function.showdate.php
diff options
context:
space:
mode:
Diffstat (limited to 'smartyplugins/function.showdate.php')
-rw-r--r--smartyplugins/function.showdate.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/smartyplugins/function.showdate.php b/smartyplugins/function.showdate.php
new file mode 100644
index 0000000..e11c7af
--- /dev/null
+++ b/smartyplugins/function.showdate.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+/**
+ * smarty_function_showdate
+ */
+function smarty_function_showdate($params, &$gBitSmarty)
+{
+
+ extract($params);
+ // Param = zone
+
+ if (empty($mode)) {
+ $gBitSmarty->trigger_error("assign: missing 'mode' parameter");
+ return;
+ }
+ print(date($mode));
+}
+
+/* vim: set expandtab: */
+
+?>