public static function generateIcon($icon, $class=null)
	{
		$key = $GLOBALS['BOOTSTRAP']['icons']['active'];

		return sprintf(
			$GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['template'],
			$icon . ($class == null ? '' : ' ' . $class)
		);
	}
public static function generateIcon($icon, $class=null)
	{
		$key = $GLOBALS['BOOTSTRAP']['icons']['active'];

		return sprintf(
			$GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['template'],
			$icon . ($class == null ? '' : ' ' . $class)
		);
	}
public static function generateIcon ( $ icon , $ class = null ) { $ key = $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'active' ] ; return sprintf ( $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'template' ] , $ icon . ( $ class == null ? '' : ' ' . $ class ) ) ; }
generates code for an icon

@param string $icon
@param string|null $class extra css class

@return string
generates code for an icon