]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updated embeded object links ui
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 9 Jun 2010 14:50:12 +0000 (14:50 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 9 Jun 2010 14:50:12 +0000 (14:50 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6420 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/ecml/views/default/ecml/keywords/entity.php
mod/embed/views/default/embed/css.php

index 5daa51fe345650aac097ea2d650535665d0ad4fb..619b17e44f00427da85c390f54060a831efc2a90 100644 (file)
@@ -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');
index e0e71eef8fcf50219a2d0e8ad2fd4b8cfef80da8..7427895891df104e91609b5581d22d007467c523 100644 (file)
        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;