aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/object
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 22:53:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 22:53:36 +0000
commitd325c3c77f7931ceba6babd8741febf4f33151f0 (patch)
tree01ea2918e29be7734672e985909775fb5ba7d4a9 /mod/file/views/default/object
parent22d64456008cd8d2aaab35f6d8005cc112d93567 (diff)
downloadelgg-d325c3c77f7931ceba6babd8741febf4f33151f0.tar.gz
elgg-d325c3c77f7931ceba6babd8741febf4f33151f0.tar.bz2
added gallery css for the file plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7782 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/views/default/object')
-rw-r--r--mod/file/views/default/object/file.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php
index 166ab9cd3..1d3aa7140 100644
--- a/mod/file/views/default/object/file.php
+++ b/mod/file/views/default/object/file.php
@@ -65,7 +65,7 @@ if (elgg_in_context('widgets')) {
$metadata = '';
}
-if ($full) {
+if ($full && !elgg_in_context('gallery')) {
$extra = '';
if (elgg_view_exists("file/specialcontent/$mime")) {
@@ -103,6 +103,12 @@ $file_info
</div>
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 "<p class='subtitle'>$owner_link $date</p>";
+ echo '</div>';
} else {
// brief view