fa_icon_class() html()
A stored icon class as it is shown: a bare Font Awesome name (fa-star, what icon_select_box() saves) gets the base class fa; any other value is returned as it is. Menus, category items, trees and table2 icon() use it.
html()->fa_icon_class($icon)Options
| Option | Meaning |
|---|---|
$icon | Icon class: fa-star and fa-star fa-fw become fa fa-star...; fa fa-star, fas fa-star, fa-solid fa-star, icon-star, bi bi-star and file names stay. |
Example
fa fa-star Code
$class = html()->fa_icon_class('fa-star');
return '<code>' . _prepare_html($class) . '</code> <i class="' . _prepare_html($class) . '"></i>';See also: html/icon, form/icon_select_box