aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/title.php
blob: 5eb628976ef043399839acbc202bea4a57ed5736 (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 = 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;