diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-08 17:00:15 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-08 17:00:15 +0000 |
commit | 1a419684ef11e0941710d90411261cf455e5b7b1 (patch) | |
tree | fb07c9cab417246ebabecc1a7f4cbee0e3e6576b /views/default/page_elements/title.php | |
parent | d5fdd96bd04e16d27f99c41958487ac1061ba74e (diff) | |
download | elgg-1a419684ef11e0941710d90411261cf455e5b7b1.tar.gz elgg-1a419684ef11e0941710d90411261cf455e5b7b1.tar.bz2 |
new canvas title
git-svn-id: https://code.elgg.org/elgg/trunk@1339 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/title.php')
-rw-r--r-- | views/default/page_elements/title.php | 20 |
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 |