aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/elements/image.php
blob: 6f6aeae656e9060076913790e20421bd4292936d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Elgg river image
 *
 * Displayed next to the body of each river item
 *
 * @uses $vars['item']
 */

$subject = $vars['item']->getSubjectEntity();

if (elgg_in_context('widgets')) {
	echo elgg_view_entity_icon($subject, 'tiny');
} else {
	echo elgg_view_entity_icon($subject, 'small');
}