diff options
Diffstat (limited to 'views/default/layout/elements/title.php')
-rw-r--r-- | views/default/layout/elements/title.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/views/default/layout/elements/title.php b/views/default/layout/elements/title.php new file mode 100644 index 000000000..c5eeb9e0e --- /dev/null +++ b/views/default/layout/elements/title.php @@ -0,0 +1,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;
\ No newline at end of file |