aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist/group_video_header.php
blob: e6d13bca36712582a170c854353b8d2ca683bd7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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 = elgg_get_site_url() . "videolist/browse/". $user->username . "/";
//if the user is a memebr of the group, show find button
if($user->isMember(get_loggedin_user()))
	$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>