aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/month.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/month.php')
-rw-r--r--views/default/input/month.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/input/month.php b/views/default/input/month.php
index 4eaf91048..c99b3f34c 100644
--- a/views/default/input/month.php
+++ b/views/default/input/month.php
@@ -1,7 +1,16 @@
<?php
+$defaults = array(
+ 'class' => 'elgg-input-month',
+);
+
+$vars = array_merge($defaults, $vars);
+
if (isset($vars['value']) && is_int($vars['value'])) {
$vars['value'] = date("Y-m", $vars['value']);
}
+
+$vars['type'] = 'month';
+
?>
-<input type="month" <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file
+<input <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file