diff options
author | Evan Winslow <evan@elgg.org> | 2011-05-19 15:59:07 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2011-05-19 15:59:07 -0700 |
commit | 1b1908d4c05392d07b0a0af086a567cbc53606ba (patch) | |
tree | d2a484e8a84dd5cb863f1d56ad43fc3f9e7ba3c3 /views/default/input/datetime.php | |
parent | ba3410e1ed5b8a23214b14f0fd0ce8c55c35391d (diff) | |
download | elgg-1b1908d4c05392d07b0a0af086a567cbc53606ba.tar.gz elgg-1b1908d4c05392d07b0a0af086a567cbc53606ba.tar.bz2 |
Cleaned up all the input views
Diffstat (limited to 'views/default/input/datetime.php')
-rw-r--r-- | views/default/input/datetime.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/input/datetime.php b/views/default/input/datetime.php index 61262f234..69e4bd7f7 100644 --- a/views/default/input/datetime.php +++ b/views/default/input/datetime.php @@ -1,6 +1,15 @@ <?php
+$defaults = array(
+ 'class' => 'elgg-input-datetime',
+);
+
+$vars = array_merge($defaults, $vars);
+
if (isset($vars['value']) && is_int($vars['value'])) {
$vars['value'] = date("c", $vars['value']);
}
+
+$vars['type'] = 'datetime';
+
?>
-<input type="datetime" <?php echo elgg_format_attributes($vars); ?> />
+<input <?php echo elgg_format_attributes($vars); ?> />
|