aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-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
}