From 855be2a2b44463da3c9405c25fa1f84848a164fb Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 30 Jul 2008 12:05:03 +0000 Subject: Added friends collections members list git-svn-id: https://code.elgg.org/elgg/trunk@1595 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/collection.php | 3 ++- views/default/friends/picker.php | 6 +++++- views/default/friends/tablelist.php | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php index a9f2a392f..d069bd996 100644 --- a/views/default/friends/collection.php +++ b/views/default/friends/collection.php @@ -37,7 +37,8 @@ // individual collection panels if($friends = $vars['collection']->entities){ $members = $vars['collection']->members; - echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members)); + $content = elgg_view('friends/tablelist',array('entities' => $members)); + echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members, 'content' => $content)); } // close friends_picker div and the accordian list item diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php index 9f522ca29..e7a2745ec 100644 --- a/views/default/friends/picker.php +++ b/views/default/friends/picker.php @@ -58,7 +58,11 @@
- +
    diff --git a/views/default/friends/tablelist.php b/views/default/friends/tablelist.php index 716e1cb35..a304e8fda 100644 --- a/views/default/friends/tablelist.php +++ b/views/default/friends/tablelist.php @@ -24,7 +24,8 @@ $column = 0; foreach($vars['entities'] as $entity) { - + if (!($entity instanceof ElggEntity)) $entity = get_entity($entity); + if ($entity) { ?> @@ -54,7 +55,7 @@ \ No newline at end of file -- cgit v1.2.3