add.php 506 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Elgg add a collection of friends
  4. *
  5. * @package Elgg.Core
  6. * @subpackage Social.Collections
  7. */
  8. // You need to be logged in for this one
  9. elgg_gatekeeper();
  10. $title = elgg_echo('friends:collections:add');
  11. $content = elgg_view_form('friends/collections/add', array(), array(
  12. 'friends' => elgg_get_logged_in_user_entity()->getFriends(array('limit' => 0)),
  13. ));
  14. $body = elgg_view_layout('one_sidebar', array(
  15. 'title' => $title,
  16. 'content' => $content
  17. ));
  18. echo elgg_view_page($title, $body);