aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/relationship/friend/create.php
blob: 4fbd7b01a4aa1f0754410e8bff98f37a0734fa5b (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_entity_icon($subject, 'tiny');
$object_icon = elgg_view_entity_icon($object, '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>';