aboutsummaryrefslogtreecommitdiff
path: root/views/default/livestream
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
commit059badecbc0be895c6165430e5096a9ab653027e (patch)
tree6fd90dce93b43371366c4792622af5f73cb55075 /views/default/livestream
downloadelgg-059badecbc0be895c6165430e5096a9ab653027e.tar.gz
elgg-059badecbc0be895c6165430e5096a9ab653027e.tar.bz2
Squashed 'mod/livestream/' content from commit 89d1f38
git-subtree-dir: mod/livestream git-subtree-split: 89d1f3877f241f34e3ed3baad3c9ee9a4fee79e7
Diffstat (limited to 'views/default/livestream')
-rwxr-xr-xviews/default/livestream/groupprofile_livestream.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/views/default/livestream/groupprofile_livestream.php b/views/default/livestream/groupprofile_livestream.php
new file mode 100755
index 000000000..6cb8378a9
--- /dev/null
+++ b/views/default/livestream/groupprofile_livestream.php
@@ -0,0 +1,32 @@
+<?php
+$page_owner = elgg_get_page_owner_entity();
+
+$options = array(
+ 'type' => 'object',
+ 'subtype' => 'livestream',
+ 'container_guid' => elgg_get_page_owner_guid(),
+ 'limit' => 6,
+ 'full_view' => false,
+ 'pagination' => false,
+);
+
+
+$content = elgg_list_entities($options);
+$new_link = elgg_view('output/url', array(
+ 'href' => $CONFIG->wwwroot.'livestream/'.$page_owner->username.'/new/',
+ 'text' => elgg_echo('livestream:new_item'),
+));
+$viewall_link = elgg_view('output/url', array(
+ 'href' => $CONFIG->wwwroot . "livestream/" . $page_owner->username,
+ 'text' => elgg_echo('livestream:viewall'),
+));
+
+echo elgg_view('groups/profile/module', array(
+ 'title' => elgg_echo('livestream:group'),
+ 'content' => $content,
+ 'add_link' => $new_link,
+ 'all_link' => $viewall_link
+));
+
+
+?>