Skip to content

Commit

Permalink
Merge pull request #415 from nasirkhan/update
Browse files Browse the repository at this point in the history
Update Helper
  • Loading branch information
nasirkhan authored May 11, 2023
2 parents 662f249 + b247df3 commit 07ad7ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function slug_format($string)
$string = str_replace('\\', '-', $string);
$string = strtolower($string);

$slug_string = $string;
$slug_string = substr($string, 0, 190);

return $slug_string;
}
Expand All @@ -257,17 +257,17 @@ function slug_format($string)
*
* icon
* A short and easy way to show icon fornts
* Default value will be check icon from FontAwesome
* Default value will be check icon from FontAwesome (https://fontawesome.com)
*
* ------------------------------------------------------------------------
*/
if (! function_exists('icon')) {
/**
* Format a string to Slug.
*/
function icon($string = 'fas fa-check')
function icon($string = 'fa-regular fa-circle-check')
{
$return_string = "<i class='".$string."'></i>";
$return_string = "<i class='".$string."'></i>&nbsp;";

return $return_string;
}
Expand Down

0 comments on commit 07ad7ff

Please sign in to comment.