-<input type="color" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+ 'class' => 'elgg-input-color',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'color';\r
+\r
+?>\r
+\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
<?php\r
+$defaults = array(\r
+ 'class' => 'elgg-input-datetime-local',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
if (isset($vars['value']) && is_int($vars['value'])) {\r
$vars['value'] = date("Y-m-d\TH:i:s", $vars['value']);\r
}\r
+\r
+$vars['type'] = 'datetime-local';\r
?>\r
-<input type="datetime-local" <?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
<?php\r
+$defaults = array(\r
+ 'class' => 'elgg-input-datetime',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
if (isset($vars['value']) && is_int($vars['value'])) {\r
$vars['value'] = date("c", $vars['value']);\r
}\r
+\r
+$vars['type'] = 'datetime';\r
+\r
?>\r
-<input type="datetime" <?php echo elgg_format_attributes($vars); ?> />\r
+<input <?php echo elgg_format_attributes($vars); ?> />\r
-<input type="email" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+ 'class' => 'elgg-input-email',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'email';\r
+\r
+?>\r
+\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
-<input type="image" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+ 'class' => 'elgg-input-image',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'image';\r
+\r
+?>\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
<?php\r
+$defaults = array(\r
+ 'class' => 'elgg-input-month',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
if (isset($vars['value']) && is_int($vars['value'])) {\r
$vars['value'] = date("Y-m", $vars['value']);\r
}\r
+\r
+$vars['type'] = 'month';\r
+\r
?>\r
\r
-<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
-<input type="number" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
+<?php \r
+$defaults = array(\r
+ 'class' => 'elgg-input-number',\r
+);\r
+\r
+$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'number';\r
+\r
+?>\r
+<input <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file
<?php\r
\r
$defaults = array(\r
-\r
+ 'class' => 'elgg-input-range',\r
);\r
\r
$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'range';\r
+\r
?>\r
\r
-<input type="range" <?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
<?php\r
\r
$defaults = array(\r
- 'placeholder' => elgg_echo('placeholder:search'),\r
+ 'class' => 'elgg-input-search',\r
);\r
\r
$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'search';\r
+\r
?>\r
\r
-<input type="search" <?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
<?php\r
$defaults = array(\r
- 'placeholder' => elgg_echo('placeholder:tel'),\r
+ 'class' => 'elgg-input-tel',\r
);\r
\r
$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'tel';\r
+\r
?>\r
\r
-<input type="tel" <?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
<?php\r
\r
$defaults = array(\r
- 'placeholder' => elgg_echo('placeholder:time'),\r
+ 'class' => 'elgg-input-time',\r
);\r
\r
$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'time';\r
+\r
?>\r
\r
-<input type="time" <?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
<?php\r
\r
$defaults = array(\r
- 'placeholder' => elgg_echo('placeholder:url'),\r
+ 'class' => 'elgg-input-url',\r
);\r
\r
$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'url';\r
+\r
?>\r
\r
-<input type="url" <?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
<?php\r
\r
-$defauts = array(\r
- 'placeholder' => elgg_echo('placeholder:week'),\r
+$defaults = array(\r
+ 'class' => 'elgg-input-week',\r
);\r
\r
$vars = array_merge($defaults, $vars);\r
+\r
+$vars['type'] = 'week';\r
+\r
?>\r
\r
-<input type="week" <?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