aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/embed/item/gallery.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed/views/default/embed/item/gallery.php')
-rw-r--r--mod/embed/views/default/embed/item/gallery.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/embed/views/default/embed/item/gallery.php b/mod/embed/views/default/embed/item/gallery.php
index a302412f6..09cab3cef 100644
--- a/mod/embed/views/default/embed/item/gallery.php
+++ b/mod/embed/views/default/embed/item/gallery.php
@@ -16,6 +16,7 @@ $item = $vars['item'];
$section = $vars['section'];
$target = $vars['target'];
$ecml_keyword = (isset($vars['ecml_enabled']) && isset($vars['ecml_keyword'])) ? $vars['ecml_keyword'] : NULL;
+$icon_size = $vars['icon_size'];
// @todo add entity checking.
@@ -31,7 +32,7 @@ if ($ecml_keyword) {
$embed_code = "[$ecml_keyword guid={$item->getGUID()}]";
} else {
// fallback to inserting a hard link to the object with its icon
- $icon = "<img src=\"{$item->getIcon('medium')}\" />" . htmlentities($title, ENT_QUOTES, 'UTF-8');
+ $icon = "<img src=\"{$item->getIcon($icon_size)}\" />" . htmlentities($title, ENT_QUOTES, 'UTF-8');
$embed_code = elgg_view('output/url', array(
'href' => $item->getURL(),
@@ -41,7 +42,7 @@ if ($ecml_keyword) {
));
}
-$icon = "<img src=\"{$item->getIcon('medium')}\" />";
+$icon = "<img src=\"{$item->getIcon($icon_size)}\" />";
$info = htmlentities($title, ENT_QUOTES, 'UTF-8');
$listing = elgg_view('entities/gallery_listing', array('icon' => $icon, 'info' => $info));