From 29606e1ecc874452f4d047a25e07755fcb7d7ac4 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Wed, 19 Dec 2012 16:14:31 -0500 Subject: Refs #3907. Changed river icons to tiny size if used within a widget. --- views/default/river/elements/image.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'views/default/river/elements') diff --git a/views/default/river/elements/image.php b/views/default/river/elements/image.php index 9caa44b36..6f6aeae65 100644 --- a/views/default/river/elements/image.php +++ b/views/default/river/elements/image.php @@ -9,4 +9,8 @@ $subject = $vars['item']->getSubjectEntity(); -echo elgg_view_entity_icon($subject, 'small'); +if (elgg_in_context('widgets')) { + echo elgg_view_entity_icon($subject, 'tiny'); +} else { + echo elgg_view_entity_icon($subject, 'small'); +} -- cgit v1.2.3