content.php 683 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Elgg file widget view
  4. *
  5. * @package ElggFile
  6. */
  7. $num = $vars['entity']->num_display;
  8. $options = array(
  9. 'type' => 'group',
  10. 'relationship' => 'member',
  11. 'relationship_guid' => $vars['entity']->owner_guid,
  12. 'limit' => $num,
  13. 'full_view' => FALSE,
  14. 'pagination' => FALSE,
  15. );
  16. $content = elgg_list_entities_from_relationship($options);
  17. echo $content;
  18. if ($content) {
  19. $url = "groups/member/" . elgg_get_page_owner_entity()->username;
  20. $more_link = elgg_view('output/url', array(
  21. 'href' => $url,
  22. 'text' => elgg_echo('groups:more'),
  23. 'is_trusted' => true,
  24. ));
  25. echo "<span class=\"elgg-widget-more\">$more_link</span>";
  26. } else {
  27. echo elgg_echo('groups:none');
  28. }