aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/title.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/page_elements/title.php')
-rw-r--r--views/default/page_elements/title.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php
index 611bc0aa3..5d3ac5a96 100644
--- a/views/default/page_elements/title.php
+++ b/views/default/page_elements/title.php
@@ -16,14 +16,24 @@
$page_owner = page_owner();
$page_owner_user = get_user($page_owner);
- if($page_owner) {
+ if($page_owner && $page_owner_user->guid != $_SESSION['user']->getGUID()) {
$info = "<h2>" . $vars['title'] . "</h2>";
- $icon = elgg_view("profile/icon",array('entity' => $page_owner_user, 'size' => 'small'));
- echo elgg_view_listing($icon, $info);
+ $icon = elgg_view("profile/icon",array('entity' => $page_owner_user, 'size' => 'tiny'));
+ $display = "<div id=\"canvas_header\">";
+ $display .= "<div id=\"canvas_header_icon\">" . $icon . "</div>";
+ $display .= "<div id=\"canvas_header_content\">" . $info . "</div>";
+ $display .= "</div>";
} else {
- $info = "<h2>" . $vars['title'] . "</h2>"; //"<h2 class=\"page_title\">"
- echo elgg_view_listing($icon, $info);
+ $info = "<h2>" . $vars['title'] . "</h2>";
+ $display = "<div id=\"canvas_header\">";
+ $display .= "<div id=\"canvas_header_content\">" . $info . "</div>";
+ $display .= "</div>";
}
+ //print to screen
+ echo $display;
+
+
+
?> \ No newline at end of file