some more mime-type -> icon for filebrowser
This commit is contained in:
parent
0cb0c2b1bf
commit
cafc1b64b0
@ -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
|
* @param string $type
|
||||||
* @return string
|
* @return string
|
||||||
@ -345,15 +345,26 @@ class RedBrowser extends DAV\Browser\Plugin {
|
|||||||
'application/msword' => 'icon-file-text-alt',
|
'application/msword' => 'icon-file-text-alt',
|
||||||
'application/pdf' => 'icon-file-text-alt',
|
'application/pdf' => 'icon-file-text-alt',
|
||||||
'application/vnd.oasis.opendocument.text' => 'icon-file-text-alt',
|
'application/vnd.oasis.opendocument.text' => 'icon-file-text-alt',
|
||||||
|
'application/epub+zip' => 'icon-book',
|
||||||
|
|
||||||
//Spreadsheet
|
//Spreadsheet
|
||||||
'application/vnd.oasis.opendocument.spreadsheet' => 'icon-table',
|
'application/vnd.oasis.opendocument.spreadsheet' => 'icon-table',
|
||||||
|
'application/vnd.ms-excel' => 'icon-table',
|
||||||
|
|
||||||
//Image
|
//Image
|
||||||
'image/jpeg' => 'icon-picture',
|
'image/jpeg' => 'icon-picture',
|
||||||
'image/png' => 'icon-picture',
|
'image/png' => 'icon-picture',
|
||||||
'image/gif' => 'icon-picture',
|
'image/gif' => 'icon-picture',
|
||||||
'image/svg+xml' => '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';
|
$iconFromType = 'icon-file-alt';
|
||||||
|
Reference in New Issue
Block a user