aboutsummaryrefslogtreecommitdiffstats
path: root/include/RedDAV
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-12-27 14:28:02 +0100
committermarijus <mario@mariovavti.com>2014-12-27 14:28:02 +0100
commitcafc1b64b04a2947059292ab02129d34ffa7c279 (patch)
treefd6738d79a53f9660c1f0b89efc5c515cac08c2c /include/RedDAV
parent0cb0c2b1bfe22cb0fa983361a2f74d6b0fe6a596 (diff)
downloadvolse-hubzilla-cafc1b64b04a2947059292ab02129d34ffa7c279.tar.gz
volse-hubzilla-cafc1b64b04a2947059292ab02129d34ffa7c279.tar.bz2
volse-hubzilla-cafc1b64b04a2947059292ab02129d34ffa7c279.zip
some more mime-type -> icon for filebrowser
Diffstat (limited to 'include/RedDAV')
-rw-r--r--include/RedDAV/RedBrowser.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php
index 6b0c77014..d07f60083 100644
--- a/include/RedDAV/RedBrowser.php
+++ b/include/RedDAV/RedBrowser.php
@@ -328,7 +328,7 @@ class RedBrowser extends DAV\Browser\Plugin {
}
/**
- * @brief returns icon name for use with e.g. font-awesome based on filetype
+ * @brief returns icon name for use with e.g. font-awesome based on mime-type
*
* @param string $type
* @return string
@@ -345,15 +345,26 @@ class RedBrowser extends DAV\Browser\Plugin {
'application/msword' => 'icon-file-text-alt',
'application/pdf' => 'icon-file-text-alt',
'application/vnd.oasis.opendocument.text' => 'icon-file-text-alt',
+ 'application/epub+zip' => 'icon-book',
//Spreadsheet
- 'application/vnd.oasis.opendocument.spreadsheet' => 'icon-table',
+ 'application/vnd.oasis.opendocument.spreadsheet' => 'icon-table',
+ 'application/vnd.ms-excel' => 'icon-table',
//Image
'image/jpeg' => 'icon-picture',
'image/png' => 'icon-picture',
'image/gif' => 'icon-picture',
'image/svg+xml' => 'icon-picture',
+
+ //Archive
+ 'application/zip' => 'icon-archive',
+ 'application/x-rar-compressed' => 'icon-archive',
+
+ //Audio
+ 'audio/mpeg' => 'icon-music',
+ 'audio/wav' => 'icon-music',
+ 'application/ogg' => 'icon-music',
);
$iconFromType = 'icon-file-alt';