Skip to content

Commit

Permalink
add icon trash to mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Aug 24, 2020
1 parent 34d0100 commit 62a5d2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions layouts/joomla/icon/iconclass.php
Expand Up @@ -12,7 +12,12 @@
// Convert icomoon to fa
$icon = $displayData['icon'];

if(strpos($icon, 'fa-') == true || strpos($icon, 'icon-') == true){
if(strpos($icon, 'fa-') !== false)
{
$icon = 'fas ' . $icon;
}
elseif(strpos($icon, 'icon-') !== false)
{
$icon = $icon;
}
elseif ($icon === 'archive' || $icon === 'folder-close' || $icon === 'folder-folder-2' || $icon === 'folder-minus' || $icon === 'folder-plus-2' || $icon === 'folder-remove' || $icon === 'drawer-2')
Expand Down Expand Up @@ -67,7 +72,7 @@
{
$icon = 'fas fa-compress';
}
elseif ($icon === 'purge')
elseif ($icon === 'purge' || $icon === 'trash')
{
$icon = 'fas fa-trash';
}
Expand Down

0 comments on commit 62a5d2e

Please sign in to comment.