aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-06 18:03:31 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-06 18:03:31 +0000
commitdaba1a5186a8b414b07a606b76b4792b92bcf8a8 (patch)
tree88d555dd9bed1aad27cbeef24ce2dd94a21a5b6c /views/default/page_elements
parent5d6ccb016b4d918e97d5b26cfdc2b42d8c80d8be (diff)
downloadelgg-daba1a5186a8b414b07a606b76b4792b92bcf8a8.tar.gz
elgg-daba1a5186a8b414b07a606b76b4792b92bcf8a8.tar.bz2
title block tweaked
git-svn-id: https://code.elgg.org/elgg/trunk@1740 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/title.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php
index 8264573b1..fd5ccba06 100644
--- a/views/default/page_elements/title.php
+++ b/views/default/page_elements/title.php
@@ -21,12 +21,20 @@
if($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID()) {
$info = "<h2>" . $vars['title'] . "</h2>";
- $display = "<div id=\"owner_block_content\">" . $info . "</div>";
+ if($page_owner_user instanceOf ElggGroup) {
+ $display = "<div id=\"content_area_group_title\">" . $info . "</div>";
+ } else {
+ $display = "<div id=\"content_area_user_title\">" . $info . "</div>";
+ }
if (!empty($submenu) && $vars['submenu'] == true)
$display .= "<div id=\"owner_block_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
} else {
$info = "<h2>" . $vars['title'] . "</h2>";
- $display .= "<div id=\"owner_block_content\">" . $info . "</div>";
+ if($page_owner_user instanceOf ElggGroup) {
+ $display = "<div id=\"content_area_group_title\">" . $info . "</div>";
+ } else {
+ $display = "<div id=\"content_area_user_title\">" . $info . "</div>";
+ }
if (!empty($submenu) && $vars['submenu'] == true)
$display .= "<div id=\"owner_block_submenu\">" . $submenu . "</div>"; // plugins can extend this to add menu options
}