aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/friends/content.php
blob: 7e3584b1ecb6f2bbe3c185a58c7a4cee537613f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

/**
 * Elgg Friends
 * Friend widget display view
 *
 * @package ElggFriends
 * @subpackage Core
 */


// owner of the widget
$owner = $vars['entity']->getOwnerEntity();

// the number of friends to display
$num = (int) $vars['entity']->num_display;

// get the correct size
$size = $vars['entity']->icon_size;

$html = $owner->listFriends('', $num, array(
	'size' => $size,
	'gallery' => true,
));
if ($html) {
	echo $html;
} else {

}