aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/tag.php
blob: 8893a18ffa4c2e244a9523eed9c7b7d5571f861d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * Elgg tag input
 *
 * Accepts a single tag value
 *
 * @uses $vars['value'] The default value for the tag
 * @uses $vars['class'] Additional CSS class
 */

if (isset($vars['class'])) {
	$vars['class'] = "elgg-input-tag {$vars['class']}";
} else {
	$vars['class'] = "elgg-input-tag";
}

$defaults = array(
	'value' => '',
	'disabled' => false,
);

$vars = array_merge($defaults, $vars);
?>

<input type="text" <?php echo elgg_format_attributes($vars); ?> />