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');
margin:10px 0 5px 0;
}
+/* embeded content links */
+.embeded_file.link img {
+ height:18px;
+ width:auto;
+ margin-right:4px;
+ position:relative;
+ top:4px;
+}
+.embeded_file.link {
+ display: inline;
+ margin-right: 5px;
+
+ background-repeat:no-repeat;
+ -webkit-background-size: 12px 16px;
+ -moz-background-size: 12px 16px;
+ padding-left:14px;
+}
+
/* modal tabs */
#embed_media_tabs {
margin:10px 0 0 10px;