aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas_header/submenu_template.php
blob: 143b0311e3f3e56cc426fd8cd47c1d9222ae44bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

	if (isset($vars['selected']) && $vars['selected'] == true) {
		$selected = "class=\"selected\"";
	} else {
		$selected = "";
	}
	
	if (isset($vars['onclick']) && $vars['onclick'] == true) {
		$onclick = "onclick=\"javascript:return confirm('". elgg_echo('deleteconfirm') . "')\"";
	} else {
		$onclick = "";
	}

?>
<li <?php echo $selected; ?>><a href="<?php echo $vars['href']; ?>" <?php echo $onclick; ?>><?php echo $vars['label']; ?></a></li>