aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/month.php
blob: c99b3f34ce954d9f246a1437f612ba285966a4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 <?php echo elgg_format_attributes($vars); ?> />