list.php 622 B

123456789101112131415161718192021222324
  1. <?php
  2. $page_owner = elgg_get_page_owner_entity();
  3. $title = elgg_echo('au_subgroups:subgroups');
  4. elgg_set_context('au_subgroups');
  5. // set up breadcrumb navigation
  6. au_subgroups_parent_breadcrumbs($page_owner);
  7. elgg_push_breadcrumb($page_owner->name, $page_owner->getURL());
  8. elgg_push_breadcrumb(elgg_echo('au_subgroups:subgroups'));
  9. $content = au_subgroups_list_subgroups($page_owner, 10, true);
  10. if (!$content) {
  11. $content = elgg_echo('au_subgroups:nogroups');
  12. }
  13. $body = elgg_view_layout('content', array(
  14. 'title' => $title,
  15. 'content' => $content,
  16. 'filter' => false
  17. ));
  18. echo elgg_view_page($title, $body);