create.php 510 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Blog river view.
  4. */
  5. $object = $vars["item"]->getObjectEntity();
  6. $excerpt = $object->excerpt ? $object->excerpt : $object->description;
  7. $excerpt = elgg_get_excerpt($excerpt);
  8. if ($object->icontime) {
  9. $message = "<div class='blog-tools-river-item clearfix'>";
  10. $message .= elgg_view_entity_icon($object, "small");
  11. $message .= $excerpt;
  12. $message .= "</div>";
  13. } else {
  14. $message = $excerpt;
  15. }
  16. echo elgg_view("river/elements/layout", array(
  17. "item" => $vars["item"],
  18. "message" => $message
  19. ));