aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/file
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-15 13:35:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-15 13:35:37 +0000
commit1a08a1f4a273737afb508c781d5f39cef021a273 (patch)
tree7b4c1766c7b6d0f1e492e467dccb19869f39445a /mod/file/views/default/file
parentef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 (diff)
downloadelgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.gz
elgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.bz2
Moving some stuff into the plugins repo, where it belongs.
git-svn-id: https://code.elgg.org/elgg/trunk@646 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/views/default/file')
-rw-r--r--mod/file/views/default/file/file.php40
-rw-r--r--mod/file/views/default/file/footer.php29
-rw-r--r--mod/file/views/default/file/icon.php23
-rw-r--r--mod/file/views/default/file/upload.php25
4 files changed, 0 insertions, 117 deletions
diff --git a/mod/file/views/default/file/file.php b/mod/file/views/default/file/file.php
deleted file mode 100644
index d2efa1b0c..000000000
--- a/mod/file/views/default/file/file.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
- /**
- * Elgg file browser.
- * File renderer.
- *
- * @package ElggFile
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $file_guid = $vars['file_guid'];
- $tags = $vars['tags'];
- $title = $vars['title'];
- $desc = $vars['description'];
-
- $mime = $vars['mimetype'];
-
-?>
-<div class="file">
- <table width="100%">
- <tr>
- <td valign="top" width="100">
- <div class="file_icon">
- <a href="<?php echo $vars['url']; ?>action/file/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_view("file/icon", array("mimetype" => $mime)); ?></a>
- </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>
diff --git a/mod/file/views/default/file/footer.php b/mod/file/views/default/file/footer.php
deleted file mode 100644
index 149c87e5a..000000000
--- a/mod/file/views/default/file/footer.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
- /**
- * Elgg file browser footer
- *
- * @package ElggFile
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $limit = $vars['limit'];
- $offset = $vars['offset'];
- $url = $_SERVER['request_uri'];
-?>
-<div id="navbar">
- <table width="100%">
- <tr>
- <td>
- <div id="prev"><?php if ($offset>0) { ?><a href="<?php echo "$url?offset=" . ($offset-$limit); ?>">Prev</a><?php } ?>
- </div>
- </td>
- <td align="right">
- <div id="next">
- <a href="<?php echo "$url?offset=" . ($offset+$limit); ?>">Next</a>
- </div>
- </td>
- </tr>
- </table>
-</div> \ No newline at end of file
diff --git a/mod/file/views/default/file/icon.php b/mod/file/views/default/file/icon.php
deleted file mode 100644
index 266a60a47..000000000
--- a/mod/file/views/default/file/icon.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
- /**
- * Elgg file icons.
- * Displays an icon, depending on its mime type, for a file.
- * Optionally you can specify a size.
- *
- * @package ElggFile
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
-
- $mime = $vars['mimetype'];
-
- $width = $vars['width'];
- $height = $vars['height'];
-
- if (!$width) $width = 100;
- if (!$height) $height = 100;
-
- echo $mime;
-?> \ No newline at end of file
diff --git a/mod/file/views/default/file/upload.php b/mod/file/views/default/file/upload.php
deleted file mode 100644
index d318b85a3..000000000
--- a/mod/file/views/default/file/upload.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
- /**
- * Elgg file browser uploader
- *
- * @package ElggFile
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
-?>
-<form action="<?php echo $vars['url']; ?>action/file/upload" enctype="multipart/form-data" method="post">
-
- <table>
- <tr><td><?php echo elgg_echo("file:file");?>:</td><td><div id="file"><input type="file" name="upload" /></div></td></tr>
- <tr><td><?php echo elgg_echo("file:title");?>:</td><td><div id="title"><input type="text" name="title" size="49" /></div></td></tr>
- <tr><td valign="top"><?php echo elgg_echo("file:desc");?>:</td><td><div id="description"><textarea name="description" cols="50" rows="10"></textarea></div></td></tr>
- <tr><td valign="top"><?php echo elgg_echo("file:tags");?>:</td><td><div id="tags"><textarea name="tags" cols="50"></textarea></div></td></tr>
- </table>
-
- <input type="submit" name="Upload" value="Upload" />
-
-</form> \ No newline at end of file