image.php 347 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Elgg river image
  4. *
  5. * Displayed next to the body of each river item
  6. *
  7. * @uses $vars['item']
  8. */
  9. $item = $vars['item'];
  10. /* @var ElggRiverItem $item */
  11. $subject = $item->getSubjectEntity();
  12. if (elgg_in_context('widgets')) {
  13. echo elgg_view_entity_icon($subject, 'tiny');
  14. } else {
  15. echo elgg_view_entity_icon($subject, 'small');
  16. }