aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 10:38:58 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-25 10:38:58 +0000
commitfe92806395c64a796d623fcce6c4122e6c3ee64f (patch)
treee6ce8d35285d1dc697e05aeb5bc01e9f99f91ab5
parentade4aa4ab6508a128a18f4c9996e0f125e112355 (diff)
downloadelgg-fe92806395c64a796d623fcce6c4122e6c3ee64f.tar.gz
elgg-fe92806395c64a796d623fcce6c4122e6c3ee64f.tar.bz2
content header added for use when viewing another user
git-svn-id: http://code.elgg.org/elgg/trunk@6201 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/page_elements/content_header_member.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/default/page_elements/content_header_member.php b/views/default/page_elements/content_header_member.php
new file mode 100644
index 000000000..25e71cf2b
--- /dev/null
+++ b/views/default/page_elements/content_header_member.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * When looking at a users blog, bookmarks, video etc only show
+ * the users name and the tool you are viewing
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ */
+
+$page_owner = page_owner_entity();
+$name = page_owner_entity()->name;
+
+// get the object type
+$type = $vars['type'];
+
+$title = elgg_echo($type);
+$title = '<div class="content_header_title">' . $name . "'s " . $type . '</div>';
+?>
+
+<div id="content_header" class="clearfloat">
+ <?php echo $title; ?>
+</div>
+