diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-08 00:55:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-08 00:55:39 +0000 |
commit | ca5c2911327cdbffb5bee1d44d1f673025fcdbce (patch) | |
tree | 364f26a2ed327013dbfd1e018ba93adab26c4182 /views/default/layout/elements/title.php | |
parent | ec1e46e01818b8226d651dd589f373d75f9f8411 (diff) | |
download | elgg-ca5c2911327cdbffb5bee1d44d1f673025fcdbce.tar.gz elgg-ca5c2911327cdbffb5bee1d44d1f673025fcdbce.tar.bz2 |
moved a few elements to layout from page
git-svn-id: http://code.elgg.org/elgg/trunk@7556 36083f99-b078-4883-b0ff-0f9b5a30f544
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 |