aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/date.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/date.php')
-rw-r--r--views/default/input/date.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/views/default/input/date.php b/views/default/input/date.php
index 62014cb92..c408ea3a7 100644
--- a/views/default/input/date.php
+++ b/views/default/input/date.php
@@ -1,14 +1,6 @@
<?php
-$defaults = array(
- 'placeholder' => elgg_echo('placeholder:date'), //'yyyy-mm-dd',
-);
-
-$overrides = array(
- 'type' => 'date',
-);
-
if (isset($vars['value']) && is_int($vars['value'])) {
$vars['value'] = date("Y-m-d", $vars['value']);
}
-
-echo elgg_view('html/input', array_merge($defaults, $vars, $overrides)); \ No newline at end of file
+?>
+<input type="date" <?php echo html5_get_html_attributes($vars); ?> />