From 1a419684ef11e0941710d90411261cf455e5b7b1 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 8 Jul 2008 17:00:15 +0000 Subject: new canvas title git-svn-id: https://code.elgg.org/elgg/trunk@1339 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/title.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'views/default') 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 = "

" . $vars['title'] . "

"; - $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 = "
"; + $display .= "
" . $icon . "
"; + $display .= "
" . $info . "
"; + $display .= "
"; } else { - $info = "

" . $vars['title'] . "

"; //"

" - echo elgg_view_listing($icon, $info); + $info = "

" . $vars['title'] . "

"; + $display = "
"; + $display .= "
" . $info . "
"; + $display .= "
"; } + //print to screen + echo $display; + + + ?> \ No newline at end of file -- cgit v1.2.3