FEATURE: style file manager

This commit is contained in:
Michal Kváček
2016-08-23 23:07:44 +02:00
parent f744ca81ca
commit 0a6528a845
10 changed files with 300 additions and 5 deletions
+4 -4
View File
@@ -27,20 +27,20 @@ class FileManager
return '<img src="' . $url . '" alt="' . $file->description . '" />';
break;
case 'text':
return '<i class="fa fa-file-text-o"></i>';
return '<i class="fa fa-2x fa-file-text-o"></i>';
break;
case 'application':
switch ($subtype) {
case 'pdf':
return '<i class="fa fa-file-pdf-o"></i>';
return '<i class="fa fa-2x fa-file-pdf-o"></i>';
break;
default:
return '<i class="fa fa-newspaper-o"></i>';
return '<i class="fa fa-2x fa-newspaper-o"></i>';
break;
}
break;
default:
return '<i class="fa fa-question"></i>';
return '<i class="fa fa-2x fa-question"></i>';
break;
}
}