Extension:PhpTags Widgets/FontAwesome

From Linux Web Expert

FontAwesome

gives you scalable vector icons that can instantly be customized — size, color, drop shadow Home page

Demo

// class FA is alias of class FontAwesome
class FontAwesome extend GenericWidget {

    /* Constants */
    const FontAwesomeIcon any_icon_name ;
// where any_icon_name is any FontAwesome icon name
// in names you should use symbol '_' instead of symbol '-'
// for example you should use FA::camera_retro instead of wrong FA::camera-retro
}

class FontAwesomeIcon extend GenericWidget {

    /* Read-only properties */
    public FontAwesomeIcon lg
    public FontAwesomeIcon _2x
    public FontAwesomeIcon _3x
    public FontAwesomeIcon _4x
    public FontAwesomeIcon _5x
    public FontAwesomeIcon fw
    public FontAwesomeIcon li
    public FontAwesomeIcon border
    public FontAwesomeIcon spin
    public FontAwesomeIcon rotate_90
    public FontAwesomeIcon rotate_180
    public FontAwesomeIcon rotate_270
    public FontAwesomeIcon flip_horizontal
    public FontAwesomeIcon flip_vertical
    public FontAwesomeIcon inverse

    /* methods */
    public __construct ( string $icon_name, array $properties = null )
    public array getIcons( void )

}

// The functions fa() and fontawesome() are aliases of FontAwesomeIcon::__construct()
FontAwesomeIcon fontawesome ( string $icon_name, array $properties = null )