aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/file/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/views/default/file/file.php')
-rw-r--r--mod/file/views/default/file/file.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/file/views/default/file/file.php b/mod/file/views/default/file/file.php
new file mode 100644
index 000000000..1b2beae53
--- /dev/null
+++ b/mod/file/views/default/file/file.php
@@ -0,0 +1,36 @@
+<?php
+ /**
+ * Elgg file browser.
+ * File renderer.
+ *
+ * @package ElggFile
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ global $CONFIG;
+
+ $tags = $vars['tags'];
+ $title = $vars['title'];
+ $desc = $vars['description'];
+
+?>
+<div class="file">
+ <table width="100%">
+ <tr>
+ <td valign="top">
+ <div class="file_icon">
+ </div>
+ </td>
+ <td valign="top">
+ <div class="title"><?php echo $title; ?></div>
+ <div class="description"><?php echo $desc; ?></div>
+ <div class="tags"><?php
+ foreach ($tags as $tag)
+ echo "<a href=\"" . $CONFIG->wwwroot . "pg/file/". $_SESSION['user']->username . "/world/?tag=$tag\">$tag</a> ";
+ ?></div>
+ </td>
+ </tr>
+ </table>
+</div>