diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-09 14:50:12 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-09 14:50:12 +0000 |
commit | b54513ab0d697a467cf987301ba696db57bd296b (patch) | |
tree | a25c52d890417d5cc1c1aab7d5d2281c11d5c0ca | |
parent | 075548ff7bc3bb51c21e557bfb3c7d9158d2c865 (diff) | |
download | elgg-b54513ab0d697a467cf987301ba696db57bd296b.tar.gz elgg-b54513ab0d697a467cf987301ba696db57bd296b.tar.bz2 |
Updated embeded object links ui
git-svn-id: http://code.elgg.org/elgg/trunk@6420 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/ecml/views/default/ecml/keywords/entity.php | 7 | ||||
-rw-r--r-- | mod/embed/views/default/embed/css.php | 18 |
2 files changed, 23 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'); diff --git a/mod/embed/views/default/embed/css.php b/mod/embed/views/default/embed/css.php index e0e71eef8..742789589 100644 --- a/mod/embed/views/default/embed/css.php +++ b/mod/embed/views/default/embed/css.php @@ -93,6 +93,24 @@ 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; |