delboy1978uk / icon
PHP Class for generating Font Awesome icons.
Installs: 4 076
Dependents: 5
Suggesters: 1
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
README
PHP Class for generating Font Awesome icons. (now using v4.3.0!)
How to use
First use the namespace:
use Del\Icon;
Make sure you are using FontAwesome. Stick this in your <head>
section:
<?= Icon::fontAwesomeHeadCssLink(); ?>
Or you can pass in the version number
<?= Icon::fontAwesomeHeadCssLink('4.7.1'); ?>
That will generate the CSS tag:
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
Simplest use
<?= Icon::UNIVERSITY ;?>
Adding extra classes
<?= Icon::custom(Icon::UNIVERSITY,'fa-5x'); ?>
Adding extra classes, and a space( ) following it
<?= Icon::custom(Icon::UNIVERSITY,'fa-5x',true); ?>