aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-07 18:08:26 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-07 18:08:26 +0000
commita4485fb40bd54de062a173a2095f912e5b7bd6d8 (patch)
tree3be71689d80e6aa9d3d8b5386aa857864e405678 /views/default
parentbd885b0d4c4ec64b4157ba3f1f53cc317c1062a9 (diff)
downloadelgg-a4485fb40bd54de062a173a2095f912e5b7bd6d8.tar.gz
elgg-a4485fb40bd54de062a173a2095f912e5b7bd6d8.tar.bz2
changes to the title view
git-svn-id: https://code.elgg.org/elgg/trunk@1322 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/page_elements/title.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php
index df21df4e4..4c904b036 100644
--- a/views/default/page_elements/title.php
+++ b/views/default/page_elements/title.php
@@ -13,6 +13,21 @@
* @uses $vars['title'] The page title
*/
-?>
+ $page_owner = page_owner();
+ $page_owner_user = get_user($page_owner);
-<h2 class="page_title"><?php echo $vars['title']; ?></h2> \ No newline at end of file
+ if($_SESSION['user']->getGUID() != $page_owner_user->guid){
+ $user_name = $page_owner_user->username . "'s";
+ } else {
+ $user_name = elgg_echo('Your');
+ }
+
+ if($page_owner) {
+ $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>";
+ }
+
+?> \ No newline at end of file