@@ 60-71 (lines=12) @@ | ||
57 | ||
58 | $sidebar = file_get_type_cloud($page_owner_guid, $friends); |
|
59 | ||
60 | if ($friends && elgg_instanceof($owner, 'user')) { |
|
61 | // elgg_does not support getting objects that belong to an entity's friends |
|
62 | // @todo yes it does - with elgg_get_entities_from_relationship() |
|
63 | $friend_entities = $owner->getFriends(array('limit' => 0)); |
|
64 | if ($friend_entities) { |
|
65 | $friend_guids = array(); |
|
66 | foreach ($friend_entities as $friend) { |
|
67 | $friend_guids[] = $friend->getGUID(); |
|
68 | } |
|
69 | } |
|
70 | $page_owner_guid = $friend_guids; |
|
71 | } |
|
72 | ||
73 | $limit = elgg_get_config('default_limit'); |
|
74 | if ($listtype == "gallery") { |
@@ 251-262 (lines=12) @@ | ||
248 | $container_guids = $container_guid; |
|
249 | $container = get_entity($container_guid); |
|
250 | ||
251 | if ($friends && $container) { |
|
252 | // tags interface does not support pulling tags on friends' content so |
|
253 | // we need to grab all friends |
|
254 | $friend_entities = $container->getFriends(array('limit' => 0)); |
|
255 | if ($friend_entities) { |
|
256 | $friend_guids = array(); |
|
257 | foreach ($friend_entities as $friend) { |
|
258 | $friend_guids[] = $friend->getGUID(); |
|
259 | } |
|
260 | } |
|
261 | $container_guids = $friend_guids; |
|
262 | } |
|
263 | ||
264 | elgg_register_tag_metadata_name('simpletype'); |
|
265 | $options = array( |