This function takes into account the ActionLinksMode
configuration setting and wraps the image tag in a span tag.
public static getIcon ( string $icon, string $alternate = '', boolean $force_text = false, boolean $menu_icon = false, string $control_param = 'ActionLinksMode' ) : string | ||
$icon | string | name of icon file |
$alternate | string | alternate text |
$force_text | boolean | whether to force alternate text to be displayed |
$menu_icon | boolean | whether this icon is for the menu bar or not |
$control_param | string | which directive controls the display |
return | string | an html snippet |