aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas_header/submenu_template.php
blob: 0210e865fbec3c8c2e15339912e5a2dc16474402 (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 default layout
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 */

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>