aboutsummaryrefslogtreecommitdiff
path: root/mod/ecml/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/ecml/views')
-rw-r--r--mod/ecml/views/default/ecml/keywords/entity.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/ecml/views/default/ecml/keywords/entity.php b/mod/ecml/views/default/ecml/keywords/entity.php
index 5daa51fe3..619b17e44 100644
--- a/mod/ecml/views/default/ecml/keywords/entity.php
+++ b/mod/ecml/views/default/ecml/keywords/entity.php
@@ -15,8 +15,11 @@ if ($entity = get_entity($guid)) {
echo elgg_view('output/url', array(
'href' => $entity->getURL(),
'title' => $entity->title,
- 'text' => "<img src={$entity->getIcon('tiny')}>" . $entity->title,
- 'class' => "embeded_file link"
+ 'text' => $entity->title,
+ 'class' => "embeded_file link",
+ // abusing the js attribute
+ 'js' => "style=\"background-image:url({$entity->getIcon('tiny')})\""
+
));
} else {
echo elgg_echo('ecml:entity:invalid');