src/utils/Html.php
public static function icon($name, $color = '')
		{
			if (is_bool($name))
			{
				$color = $name ? 'success' : 'danger';
				$name = $name ? 'check' : 'times';
			}
			$class = "icon fa fa-$name";
			$style = '';
			if (preg_match('/(info|success|warning|danger)/', $color))
			{
				$class .= ' text-' . $color;
			}
			else if ($color !== '')
			{
				$style = ' style="color:' .$color. '"';
			}
			return '<i class="' .$class. '" ' .$style. '></i>';
		}
public static function icon($name, $color = '')
		{
			if (is_bool($name))
			{
				$color = $name ? 'success' : 'danger';
				$name = $name ? 'check' : 'times';
			}
			$class = "icon fa fa-$name";
			$style = '';
			if (preg_match('/(info|success|warning|danger)/', $color))
			{
				$class .= ' text-' . $color;
			}
			else if ($color !== '')
			{
				$style = ' style="color:' .$color. '"';
			}
			return '<i class="' .$class. '" ' .$style. '></i>';
		}
public static function icon ( $ name , $ color = '' ) { if ( is_bool ( $ name ) ) { $ color = $ name ? 'success' : 'danger' ; $ name = $ name ? 'check' : 'times' ; } $ class = "icon fa fa-$name" ; $ style = '' ; if ( preg_match ( '/(info|success|warning|danger)/' , $ color ) ) { $ class .= ' text-' . $ color ; } else if ( $ color !== '' ) { $ style = ' style="color:' . $ color . '"' ; } return '<i class="' . $ class . '" ' . $ style . '></i>' ; }
Return a Font Awesome icon

@param   string|bool     $name       A FontAwesome icon name, or a boolean for colored tick/cross
@param   string          $color      An optional colour
@return  string
Return a Font Awesome icon