Change download icon for file type

Phoca Download - download manager
Marioverehrer
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 May 2014, 20:04

Change download icon for file type

Post by Marioverehrer »

Hello community,

my question is if there is an option to set a download icon for a file type which isn't assigned to one by default. In my case I wanted to assign an icon for my mid-files. It would even be enough if I could assign the icon for mp3-files to my mid-files.

Thanks in advance,

Marioverehrer
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change download icon for file type

Post by Jan »

Hi, added to feature request list.

To customize it now, go to:
administrator\components\com_phocadownload\libraries\phocadownload\file\file.php

see the public static function getMimeTypeIcon( ... method

and change from:

Code: Select all

case 'ogg':
case 'mp3':
case 'wav':
$icon = 'audio';
break;
to:

Code: Select all

case 'ogg':
case 'mp3':
case 'wav':
case 'mid':
$icon = 'audio';
break;
Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change download icon for file type

Post by Jan »

Added in 3.0.5

Jan
If you find Phoca extensions useful, please support the project
Post Reply