PHP Class WPDKGlyphIcons

Author: =undo= ([email protected])
Inheritance: extends WPDKObject
Show file Open project: wpxtreme/wpdk Class Usage Examples

Public Properties

Property Type Description
$__version string Override version

Public Methods

Method Description
display ( string $glypho, string $size = '', string $color = '', string $tag = 'i' ) : string Display the HTML markup for glyph icon
html ( string $glypho, string $size = '', string $color = '', string $tag = 'i' ) : string Return the HTML markup for glyph icon
init ( ) : WPDKGlyphIcons Return a singleton instance of WPDKGlyphIcons class

Private Methods

Method Description
__construct ( ) : WPDKGlyphIcons Create an instance of WPDKGlyphIcons class

Method Details

display() public static method

Display the HTML markup for glyph icon
public static display ( string $glypho, string $size = '', string $color = '', string $tag = 'i' ) : string
$glypho string Glyph icon code
$size string Optional. Size styles, eg: 16px
$color string Optional. Color style, eg: #c00
$tag string Optional. HTML tag, default 'i'.
return string

html() public static method

Return the HTML markup for glyph icon
public static html ( string $glypho, string $size = '', string $color = '', string $tag = 'i' ) : string
$glypho string Glyph icon code
$size string Optional. Size styles, eg: 16px
$color string Optional. Color style, eg: #c00
$tag string Optional. HTML tag, default 'i'.
return string

init() public static method

Return a singleton instance of WPDKGlyphIcons class
public static init ( ) : WPDKGlyphIcons
return WPDKGlyphIcons

Property Details

$__version public property

Override version
public string $__version
return string