diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:11:25 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:11:25 +0100 |
commit | 59448d8a9864573c05477a63a6dda404c455fdb6 (patch) | |
tree | 8222848ea99b84a33b07a3113ff63bb07ab46692 /mod/videolist/views/default/widgets/videolist/content.php | |
parent | 4cf4e4d3969ab43978c95f88238547530b01422d (diff) | |
parent | 17d7adcb317d25e37d3091e94b66e3f16de54196 (diff) | |
download | elgg-59448d8a9864573c05477a63a6dda404c455fdb6.tar.gz elgg-59448d8a9864573c05477a63a6dda404c455fdb6.tar.bz2 |
Add 'mod/videolist/' from commit '17d7adcb317d25e37d3091e94b66e3f16de54196'
git-subtree-dir: mod/videolist
git-subtree-mainline: 4cf4e4d3969ab43978c95f88238547530b01422d
git-subtree-split: 17d7adcb317d25e37d3091e94b66e3f16de54196
Diffstat (limited to 'mod/videolist/views/default/widgets/videolist/content.php')
-rw-r--r-- | mod/videolist/views/default/widgets/videolist/content.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/videolist/views/default/widgets/videolist/content.php b/mod/videolist/views/default/widgets/videolist/content.php new file mode 100644 index 000000000..aaf6076a3 --- /dev/null +++ b/mod/videolist/views/default/widgets/videolist/content.php @@ -0,0 +1,32 @@ +<?php +/** + * Elgg video list widget + * + * @package ElggVideolist + */ + +$num = (int) $vars['entity']->videos_num; + +$options = array( + 'type' => 'object', + 'subtype' => 'videolist_item', + 'container_guid' => $vars['entity']->owner_guid, + 'limit' => $num, + 'full_view' => FALSE, + 'pagination' => FALSE, +); +$content = elgg_list_entities($options); + +echo $content; + +if ($content) { + $url = "pages/owner/" . elgg_get_page_owner_entity()->username; + $more_link = elgg_view('output/url', array( + 'href' => $url, + 'text' => elgg_echo('videolist:more'), + 'is_trusted' => true, + )); + echo "<span class=\"elgg-widget-more\">$more_link</span>"; +} else { + echo elgg_echo('videolist:none'); +} |