aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/title.php
blob: c5eeb9e0eceda79309c0a9ca02e2e713c00df9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Elgg title element
 * @uses $vars['title'] The page title
 */

$page_owner = elgg_get_page_owner_guid();
$page_owner_entity = get_entity($page_owner);

$display = "<h2>" . $vars['title'] . "</h2>";

$submenu = elgg_get_submenu();
if (!empty($submenu)) {
	$submenu = "<ul class='submenu extended'>" . $submenu . "</ul>";
}

if (!empty($submenu)  && $vars['submenu'] == true) {
	// plugins can extend this to add menu options
	$display .= $submenu;
}

echo $display;