aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default/object
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-16 12:09:44 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-16 12:09:44 +0000
commitd146923c93e58d604c44869238f406c714669826 (patch)
tree33adcb7184cd89ac4e85b48a2e2407a22a67e930 /mod/embed/views/default/object
parent484de1047d5d095ea92937f867df7ad2526e564a (diff)
downloadelgg-d146923c93e58d604c44869238f406c714669826.tar.gz
elgg-d146923c93e58d604c44869238f406c714669826.tar.bz2
Updated Embed mod to new UI.
git-svn-id: http://code.elgg.org/elgg/trunk@5415 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/embed/views/default/object')
-rw-r--r--mod/embed/views/default/object/default/embed.php4
-rw-r--r--mod/embed/views/default/object/file/embed.php1
-rw-r--r--mod/embed/views/default/object/file/embedlist.php14
3 files changed, 6 insertions, 13 deletions
diff --git a/mod/embed/views/default/object/default/embed.php b/mod/embed/views/default/object/default/embed.php
index c97dbd48a..6f698a157 100644
--- a/mod/embed/views/default/object/default/embed.php
+++ b/mod/embed/views/default/object/default/embed.php
@@ -1,9 +1,5 @@
<?php
-
if ($vars['entity'] instanceof ElggObject) {
-
echo '<a href="'. $vars['entity']->getURL() .'">' . $vars['entity']->title . '</a>';
-
}
-
?> \ No newline at end of file
diff --git a/mod/embed/views/default/object/file/embed.php b/mod/embed/views/default/object/file/embed.php
index 01f3904ac..b93c46e5e 100644
--- a/mod/embed/views/default/object/file/embed.php
+++ b/mod/embed/views/default/object/file/embed.php
@@ -1,5 +1,4 @@
<?php
-
$mime = $vars['entity']->mimetype;
if (elgg_view_exists('file/specialcontent/' . $mime)) {
diff --git a/mod/embed/views/default/object/file/embedlist.php b/mod/embed/views/default/object/file/embedlist.php
index 71e84f265..345e69b4b 100644
--- a/mod/embed/views/default/object/file/embedlist.php
+++ b/mod/embed/views/default/object/file/embedlist.php
@@ -1,19 +1,17 @@
<?php
-
$file = $vars['entity'];
$friendlytime = friendly_time($vars['entity']->time_created);
- $info = "<p> <a href=\"{$file->getURL()}\">{$file->title}</a></p>";
- $info .= "<p class=\"owner_timestamp\">{$friendlytime}";
+ $info = "<p class='entity_title'> <a href=\"{$file->getURL()}\">{$file->title}</a></p>";
+ $info .= "<p class='entity_subtext'>{$friendlytime}";
$icon = "<a href=\"{$file->getURL()}\">" . elgg_view("file/icon", array("mimetype" => $file->mimetype, 'thumbnail' => $file->thumbnail, 'file_guid' => $file->guid, 'size' => 'small')) . "</a>";
-
?>
-<div id="embedFile<?php echo $file->guid; ?>">
- <div class="search_listing">
- <div class="search_listing_icon">
+<div id="embed_entity_<?php echo $file->guid; ?>">
+ <div class="entity_listing clearfloat">
+ <div class="entity_listing_icon">
<?php echo $icon; ?>
</div>
- <div class="search_listing_info">
+ <div class="entity_listing_info">
<?php echo $info; ?>
</div>
</div>