public static function getIcons($group=null)
	{
		$key = $GLOBALS['BOOTSTRAP']['icons']['active'];

		// load icons if not done so far
		if(!isset($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons']))
		{
			if (TL_MODE == 'BE') {
				if (isset($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['stylesheet'])) {
					foreach ((array) $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['stylesheet'] as $stylesheet) {
						$GLOBALS['TL_CSS'][] = $stylesheet;
					}
				}
			}

			$GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'] =
				include TL_ROOT . '/' . $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['path'];
		}

		// get all icons
		if($group === null)
		{
			return $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'];
		}

		// get all icons as flat array
		elseif($group === true)
		{
			if(self::$flatIcons === null) {
				$icons = array();

				foreach ($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'] as $groupIcons)
				{
					$icons = array_merge($icons, $groupIcons);
				}

				self::$flatIcons = $icons;
			}

			return self::$flatIcons;
		}

		return $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'];
	}
public static function getIcons($group=null)
	{
		$key = $GLOBALS['BOOTSTRAP']['icons']['active'];

		// load icons if not done so far
		if(!isset($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons']))
		{
			if (TL_MODE == 'BE') {
				if (isset($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['stylesheet'])) {
					foreach ((array) $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['stylesheet'] as $stylesheet) {
						$GLOBALS['TL_CSS'][] = $stylesheet;
					}
				}
			}

			$GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'] =
				include TL_ROOT . '/' . $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['path'];
		}

		// get all icons
		if($group === null)
		{
			return $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'];
		}

		// get all icons as flat array
		elseif($group === true)
		{
			if(self::$flatIcons === null) {
				$icons = array();

				foreach ($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'] as $groupIcons)
				{
					$icons = array_merge($icons, $groupIcons);
				}

				self::$flatIcons = $icons;
			}

			return self::$flatIcons;
		}

		return $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'];
	}
public static function getIcons ( $ group = null ) { $ key = $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'active' ] ; // load icons if not done so far if ( ! isset ( $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'icons' ] ) ) { if ( TL_MODE == 'BE' ) { if ( isset ( $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'stylesheet' ] ) ) { foreach ( ( array ) $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'stylesheet' ] as $ stylesheet ) { $ GLOBALS [ 'TL_CSS' ] [ ] = $ stylesheet ; } } } $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'icons' ] = include TL_ROOT . '/' . $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'path' ] ; } // get all icons if ( $ group === null ) { return $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'icons' ] ; } // get all icons as flat array elseif ( $ group === true ) { if ( self :: $ flatIcons === null ) { $ icons = array ( ) ; foreach ( $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'icons' ] as $ groupIcons ) { $ icons = array_merge ( $ icons , $ groupIcons ) ; } self :: $ flatIcons = $ icons ; } return self :: $ flatIcons ; } return $ GLOBALS [ 'BOOTSTRAP' ] [ 'icons' ] [ 'sets' ] [ $ key ] [ 'icons' ] ; }
get all icons of a group, as grouped array or as flat array

@param mixed $group string for an icon group, true if a flat array

@return array [group => array]
get all icons of a group as grouped array or as flat array