Render markup for a system icon
It is NOT necessary to specify an icon prefix like “fa-” with the icon name.
Example
// Outputs: "<i class='fa fa-home'></i>"
echo wireIconMarkup('home');
Usage
// basic usage
$string = wireIconMarkup (string $icon);
// usage with all arguments
$string = wireIconMarkup (string $icon, string $class = '');
Arguments
Name | Type(s) | Description |
---|---|---|
icon | string | Icon name (currently a font-awesome icon name, but support for more in future) |
class (optional) | string | Additional attributes for class (example: "fw" for fixed width) |
Return value
string
Functions methods and properties
API reference based on ProcessWire core version 3.0.228