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
示例#1
0
 /**
  * Return the HTML markup to display the delete row button.
  *
  * @brief Button delete row
  *
  * @return string
  */
 private function buttonDelete()
 {
     WPDKHTML::startCompress();
     ?>
 <button class="wpdk-dt-delete-row">
     <?php 
     WPDKGlyphIcons::display(WPDKGlyphIcons::MINUS_SQUARED);
     ?>
     </button>
 <?php 
     return WPDKHTML::endHTMLCompress();
 }