aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/object
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 22:12:56 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 22:12:56 +0000
commitae6e0093ba62cc6e69f6aa41d4f163de52747418 (patch)
tree5552c8037d85ec8a0ede1c6a490097a26ee9be24 /mod/file/views/default/object
parent125dcdd329b3159808c097f02597e908be3ad8d0 (diff)
downloadelgg-ae6e0093ba62cc6e69f6aa41d4f163de52747418.tar.gz
elgg-ae6e0093ba62cc6e69f6aa41d4f163de52747418.tar.bz2
updated the file plugin to use the new icon structure
git-svn-id: http://code.elgg.org/elgg/trunk@8051 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/views/default/object')
-rw-r--r--mod/file/views/default/object/file.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php
index 5fcd2a023..cbe19f3c6 100644
--- a/mod/file/views/default/object/file.php
+++ b/mod/file/views/default/object/file.php
@@ -27,12 +27,7 @@ $owner_link = elgg_view('output/url', array(
));
$author_text = elgg_echo('blog:author_by_line', array($owner_link));
-$file_icon = elgg_view('file/icon', array(
- 'mimetype' => $mime,
- 'thumbnail' => $file->thumbnail,
- 'file_guid' => $file->guid,
- 'size' => 'small'
-));
+$file_icon = elgg_view_entity_icon($file, 'small');
$tags = elgg_view('output/tags', array('tags' => $file->tags));
$date = elgg_view_friendly_time($file->time_created);
@@ -102,7 +97,7 @@ HTML;
} elseif (elgg_in_context('gallery')) {
echo '<div class="file-gallery-item">';
echo "<h3>" . $file->title . "</h3>";
- echo "<a href=\"{$file->getURL()}\"><img src=\"".elgg_get_site_url()."mod/file/thumbnail.php?size=medium&file_guid={$vars['entity']->getGUID()}\" /></a>";
+ echo elgg_view_entity_icon($file, 'medium');
echo "<p class='subtitle'>$owner_link $date</p>";
echo '</div>';
} else {