diff options
Diffstat (limited to 'mod/thewire/views/default/widgets/thewire/content.php')
-rw-r--r-- | mod/thewire/views/default/widgets/thewire/content.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/thewire/views/default/widgets/thewire/content.php b/mod/thewire/views/default/widgets/thewire/content.php new file mode 100644 index 000000000..bed5c140b --- /dev/null +++ b/mod/thewire/views/default/widgets/thewire/content.php @@ -0,0 +1,15 @@ +<?php + +$num = $vars['entity']->num_display; +if (!$num) { + $num = 4; +} + +$content = elgg_list_entities(array('types' => 'object', 'subtypes' => 'thewire', 'container_guid' => $vars['entity']->owner_guid, 'limit' => $num, 'full_view' => FALSE, 'pagination' => FALSE)); + +echo $content; + +if ($content) { + $blogurl = elgg_get_site_url() . "pg/thewire/" . elgg_get_page_owner()->username; + echo "<div class=\"shares_widget_wrapper\"><a href=\"{$blogurl}\">".elgg_echo('thewire:moreposts')."</a></div>"; +} |