diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-28 16:29:04 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-28 16:29:04 +0000 |
commit | 78009be67115417ec28fceb4733fe182d532fe70 (patch) | |
tree | e72b298a35bcbed76f87fc0e2527ab88b582e0a8 /views/default/output | |
parent | 8295f6d46d0d29ec7bb63d6de4c6c19cad43964a (diff) | |
download | elgg-78009be67115417ec28fceb4733fe182d532fe70.tar.gz elgg-78009be67115417ec28fceb4733fe182d532fe70.tar.bz2 |
Calendar popup input for dates
git-svn-id: https://code.elgg.org/elgg/trunk@546 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output')
-rw-r--r-- | views/default/output/calendar.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/views/default/output/calendar.php b/views/default/output/calendar.php new file mode 100644 index 000000000..0c94086bb --- /dev/null +++ b/views/default/output/calendar.php @@ -0,0 +1,24 @@ +<?php +
+ /**
+ * Elgg calendar output
+ * Displays a calendar output field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ *
+ */
+ + if (is_int($vars['value'])) { + echo date("F j, Y", $vars['value']); + } else { + echo $vars['value']; + } + +?>
\ No newline at end of file |