From 6b6359d7b6356c2b02e7eba068e025b341ef0844 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 8 Jul 2008 10:55:06 +0000 Subject: title tweaks git-svn-id: https://code.elgg.org/elgg/trunk@1333 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/title.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'views/default') diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index 6981286f8..c4248d713 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -15,19 +15,21 @@ $page_owner = page_owner(); $page_owner_user = get_user($page_owner); - - /*if($_SESSION['user']->getGUID() != $page_owner_user->guid){ - $user_name = $page_owner_user->username . "'s"; - } else { - $user_name = elgg_echo('Your'); - }*/ + $user_name = $page_owner_user->username; if($page_owner) { + //if the user is looking at their own stuff, don't display the name + if($_SESSION['user']->getGUID() == $page_owner_user->guid){ + $info = "

Your " . $vars['title'] . "

"; + }else{ + $info = "

" . $user_name . "'s " . $vars['title'] . "

"; + } $icon = elgg_view("profile/icon",array('entity' => $page_owner_user, 'size' => 'small')); - $info = $user_name . " " . $vars['title']; echo elgg_view_listing($icon, $info); } else { - echo "

" . $vars['title'] . "

"; + $info = "

" . $vars['title'] . "

"; //"

" + echo elgg_view_listing($icon, $info); } + ?> \ No newline at end of file -- cgit v1.2.3