aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/relationship/friend/create.php
blob: 5392105d684860c488a1592ba8d096cc0fe460c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Create friend river view
 */
$subject = $vars['item']->getSubjectEntity();
$object = $vars['item']->getObjectEntity();

$params = array(
	'href' => $object->getURL(),
	'text' => $object->name,
);
$object_link = elgg_view('output/url', $params);
$subject_icon = elgg_view("profile/icon", array('entity' => $subject, 'size' => 'tiny'));
$object_icon = elgg_view("profile/icon", array('entity' => $object, 'size' => 'tiny'));

echo elgg_echo("friends:river:add", array($object_link));

echo '<div class="elgg-river-content clearfix">';
echo $subject_icon;
echo elgg_view_icon('following');
echo $object_icon;
echo '</div>';