aboutsummaryrefslogtreecommitdiff
path: root/mod/livestream/views/default/object/livestream.php
blob: ea500aa102af5353846acfd248e362e37d496a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
$item = livestream_get($vars['entity']->guid);


//foreach($data as $x => $item){
	$src = $item->src;
	
	$owner = livestream_get_owner($item);
	
	/* the following html code raises this funny notice
	 * 
	 * NOTICE: SELECT e.* from elgg_users_entity u join elgg_entities e on e.guid=u.guid where 
	 * 
	 * u.username='com.fluendo.player.Cortado.class' 
	 * 
	 * and ( (e.access_id = -2\n\t\t\tAND e.owner_guid 
	 * IN (\n\t\t\t\tSELECT guid_one FROM 
	 * elgg_entity_relationships\n\t\t\t\tWHERE relationship='friend' AND guid_two=6\n\t\t\t)) 
	 * OR  (e.access_id IN (2,1,4,5,6)\n\t\t\tOR (e.owner_guid = 6)\n\t\t\tOR 
	 * (\n\t\t\t\te.access_id = 0\n\t\t\t\tAND e.owner_guid = 6\n\t\t\t)\n\t\t) 
	 * and e.enabled='yes')  results cached, referer: 
	 * http://localhost/lorea/elgg/livestream/alice
	 * 
	 * */
	
	$player = "<a href=\"".$CONFIG->wwwroot."livestream/".$owner->username."/view/".$item->guid."\">".$item->title."</a>";
	
	$row = "
	<div class=\"contentWrapper\">
	$player
	</div>
	";

	
	echo elgg_echo($row);
//}

?>