closed_membership.php 497 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Display message about closed membership
  4. *
  5. * @package ElggGroups
  6. */
  7. $group = elgg_get_page_owner_entity();
  8. echo "<p class='mtm'>";
  9. echo elgg_echo("groups:closedgroup");
  10. if (elgg_is_logged_in()) {
  11. echo " " . elgg_echo("groups:closedgroup:request");
  12. }
  13. echo "</p>";
  14. if (!empty($group) && ($group instanceof ElggGroup)) {
  15. if (!$group->isPublicMembership() && ($group->profile_widgets == "yes")) {
  16. $vars["entity"] = $group;
  17. echo elgg_view("groups/profile/widgets", $vars);
  18. }
  19. }