aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-12-19 16:14:31 -0500
committerBrett Profitt <brett.profitt@gmail.com>2012-12-19 16:14:31 -0500
commit29606e1ecc874452f4d047a25e07755fcb7d7ac4 (patch)
treec1e9a637e83a3de1a0d63a29b54546c87045e2b4 /views
parentbccc976f079590f0c989484a0a6237dc4a1b8615 (diff)
downloadelgg-29606e1ecc874452f4d047a25e07755fcb7d7ac4.tar.gz
elgg-29606e1ecc874452f4d047a25e07755fcb7d7ac4.tar.bz2
Refs #3907. Changed river icons to tiny size if used within a widget.
Diffstat (limited to 'views')
-rw-r--r--views/default/river/elements/image.php6
1 files changed, 5 insertions, 1 deletions
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');
+}