aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-08 10:55:06 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-08 10:55:06 +0000
commit6b6359d7b6356c2b02e7eba068e025b341ef0844 (patch)
treefa930b17da9d1341c7387435d7ff307586c7ce45 /views/default
parent16a9991203f407d0329b4055905cb6970a6cc687 (diff)
downloadelgg-6b6359d7b6356c2b02e7eba068e025b341ef0844.tar.gz
elgg-6b6359d7b6356c2b02e7eba068e025b341ef0844.tar.bz2
title tweaks
git-svn-id: https://code.elgg.org/elgg/trunk@1333 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/page_elements/title.php18
1 files changed, 10 insertions, 8 deletions
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 = "<h2>Your " . $vars['title'] . "</h2>";
+ }else{
+ $info = "<h2>" . $user_name . "'s " . $vars['title'] . "</h2>";
+ }
$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 "<h2 class=\"page_title\">" . $vars['title'] . "</h2>";
+ $info = "<h2>" . $vars['title'] . "</h2>"; //"<h2 class=\"page_title\">"
+ echo elgg_view_listing($icon, $info);
}
+
?> \ No newline at end of file