From 2b74ad2a779fc787644eb42ac4c0d072e3ae2c46 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 24 Jul 2008 15:48:42 +0000 Subject: Introducing the (still issue-packed) friend picker. git-svn-id: https://code.elgg.org/elgg/trunk@1511 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/collection.php | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 views/default/friends/collection.php (limited to 'views/default/friends/collection.php') diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php new file mode 100644 index 000000000..4d08e5b06 --- /dev/null +++ b/views/default/friends/collection.php @@ -0,0 +1,45 @@ +entities)) { + $count = sizeof($vars['collection']->entities); + } else { + $count = 0; + } + + echo "
  • "; + + //as collections are private, check that the logged in user is the owner + if($coll->owner_guid == $_SESSION['user']->getGUID()) + echo ""; + echo $coll->name; + echo " ({$count})

    "; + + // Ben - this is where the friends picker view needs to go + if($members = $vars['collection']->entities){ + echo elgg_view('friends/picker',array('entities' => $members)); + } + + // close friends_picker div and the accordian list item + echo "
  • "; + +?> \ No newline at end of file -- cgit v1.2.3