Skip to content

Commit

Permalink
remove default icon and add if-then statement to check existence of icon
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Oct 23, 2020
1 parent 846466f commit 62c833c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/src/HTML/Helpers/Icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ abstract class Icons
*
* @since __DEPLOY_VERSION__
*/
public static function icon(string $icon = 'fas fa-default', string $srOnly = '', array $attribs = [])
public static function icon(string $icon = '', string $srOnly = '', array $attribs = [])
{
if ($icon === '')
{
return '';
}

if (isset($attribs['class']))
{
$icon .= ' ' . $attribs['class'];
Expand Down

0 comments on commit 62c833c

Please sign in to comment.