Transition from icon symbols to icon images

This commit is contained in:
Daniel Brendel
2025-07-15 02:55:55 +02:00
parent 312cb10fa5
commit ca2f220e58
24 changed files with 119 additions and 62 deletions

View File

@@ -570,4 +570,17 @@ class UtilsModule {
return $purifier->purify($html);
}
/**
* @param $icon
* @return string
*/
public static function iconAsset($icon)
{
if ((is_string($icon)) && (file_exists(public_path() . '/img/' . $icon))) {
return asset('img/' . $icon);
}
return asset('img/nolocicon.jpg');
}
}