diff options
Diffstat (limited to 'views/default/river/relationship/friend/create.php')
-rw-r--r-- | views/default/river/relationship/friend/create.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/default/river/relationship/friend/create.php b/views/default/river/relationship/friend/create.php new file mode 100644 index 000000000..80c567795 --- /dev/null +++ b/views/default/river/relationship/friend/create.php @@ -0,0 +1,18 @@ +<?php +/** + * Create friend river view + */ +$subject = $vars['item']->getSubjectEntity(); +$object = $vars['item']->getObjectEntity(); + +$object_link = "<a href=\"{$object->getURL()}\">$object->name</a>"; +$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-excerpt">'; +echo $subject_icon; +echo '<span class="elgg-icon elgg-icon-following"></span>'; +echo $object_icon; +echo '</div>'; |