blob: 1e6514b4ac81f07af00ce7c74a08b8e0e7fba4d2 (
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 '<span class="elgg-icon elgg-icon-following"></span>';
echo $object_icon;
echo '</div>';
|