create.php 303 B

12345678910111213141516
  1. <?php
  2. /**
  3. * Page river view.
  4. */
  5. $item = $vars['item'];
  6. /* @var ElggRiverItem $item */
  7. $object = $item->getObjectEntity();
  8. $excerpt = strip_tags($object->description);
  9. $excerpt = elgg_get_excerpt($excerpt);
  10. echo elgg_view('river/elements/layout', array(
  11. 'item' => $item,
  12. 'message' => $excerpt,
  13. ));