create.php 503 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Create friend river view
  4. */
  5. $item = $vars['item'];
  6. /* @var ElggRiverItem $item */
  7. $subject = $item->getSubjectEntity();
  8. $object = $item->getObjectEntity();
  9. $subject_icon = elgg_view_entity_icon($subject, 'tiny');
  10. $object_icon = elgg_view_entity_icon($object, 'tiny');
  11. echo elgg_view('river/elements/layout', array(
  12. 'item' => $item,
  13. 'attachments' => $subject_icon . elgg_view_icon('arrow-right') . $object_icon,
  14. // truthy value to bypass responses rendering
  15. 'responses' => ' ',
  16. ));