From 185424b4637c1cbe6af88a7cca181f80f4080909 Mon Sep 17 00:00:00 2001 From: Sergiu Bivol Date: Sat, 5 Jun 2021 01:26:11 +0100 Subject: [PATCH] Set icons for more file extensions --- tinyfilemanager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index a7c5ec6..e49a83d 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -2681,6 +2681,7 @@ function fm_get_file_icon_class($path) case 'cpp': case 'cs': case 'py': + case 'rs': case 'map': case 'lock': case 'dtd': @@ -2699,11 +2700,13 @@ function fm_get_file_icon_class($path) case 'scss': $img = 'fa fa-css3'; break; + case 'bz2': case 'zip': case 'rar': case 'gz': case 'tar': case '7z': + case 'xz': $img = 'fa fa-file-archive-o'; break; case 'php': @@ -2741,6 +2744,7 @@ function fm_get_file_icon_class($path) case 'm3u8': case 'pls': case 'cue': + case 'xspf': $img = 'fa fa-headphones'; break; case 'avi': @@ -2772,6 +2776,7 @@ function fm_get_file_icon_class($path) $img = 'fa fa-file-text-o'; break; case 'bak': + case 'swp': $img = 'fa fa-clipboard'; break; case 'doc':