aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 15:39:15 +0000
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 15:39:15 +0000
commit413a10665f90bc588b07d3e2a5376fa2f387ba09 (patch)
tree6b360a7c62ae27d0576b1371cdc1ee0559087b4b /views/default
parentef868e00b8c0d2226b29690f819613a5a2a8898d (diff)
downloadelgg-413a10665f90bc588b07d3e2a5376fa2f387ba09.tar.gz
elgg-413a10665f90bc588b07d3e2a5376fa2f387ba09.tar.bz2
videolist now displays the correct header
git-svn-id: http://code.elgg.org@6232 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/videolist/group_video_header.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/default/videolist/group_video_header.php b/views/default/videolist/group_video_header.php
new file mode 100644
index 000000000..d3f59b773
--- /dev/null
+++ b/views/default/videolist/group_video_header.php
@@ -0,0 +1,21 @@
+<?php
+/**
+* Page header view, when visiting a group's videos
+**/
+
+$user = page_owner_entity();
+$user_name = elgg_view_title($user->name . "'s " . elgg_echo('videos'));
+$url = $CONFIG->wwwroot . "pg/videolist/browse/". $user->username . "/";
+if(isloggedin())
+ $upload_link = "<a href=\"{$url}\" class='action_button'>" . elgg_echo('videolist:browsemenu') . '</a>';
+else
+ $upload_link = '';
+?>
+<div id="content_header" class="clearfloat">
+ <div class="content_header_title">
+ <?php echo $user_name; ?>
+ </div>
+ <div class="content_header_options">
+ <?php echo $upload_link; ?>
+ </div>
+</div> \ No newline at end of file