aboutsummaryrefslogtreecommitdiff
path: root/views/installation/input/checkbox.php
blob: 6fbe251690055200b747f5210ddbffeb26d558c5 (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
<?php
/**
 * Elgg checkbox input
 * Displays a checkbox input tag
 *
 * @uses $var['name']
 * @uses $vars['value']
 * @uses $vars['class']
 */


if (isset($vars['class'])) {
	$id = "class=\"{$vars['class']}\"";
} else {
	$id = '';
}

if (!isset($vars['value'])) {
	$vars['value'] = $vars['name'];
}

?>

<input type="checkbox" <?php echo $class; ?> name="<?php echo $vars['name']; ?>" value="<?php echo $vars['value']; ?>" />