fuel/fuel/core/classes/theme.php
public function get_info($var = null, $default = null, $theme = null)
	{
		// if no theme is given
		if ($theme === null)
		{
			// if no var to search is given return the entire active info array
			if ($var === null)
			{
				return $this->active['info'];
			}

			// find the value in the active theme info
			if (($value = \Arr::get($this->active['info'], $var, null)) !== null)
			{
				return $value;
			}

			// and if not found, check the fallback
			elseif (($value = \Arr::get($this->fallback['info'], $var, null)) !== null)
			{
				return $value;
			}
		}

		// or if we have a specific theme
		else
		{
			// fetch the info from that theme
			$info = $this->load_info($theme);

			// and return the requested value
			return $var === null ? $info : \Arr::get($info, $var, $default);
		}

		// not found, return the given default value
		return $default;
	}
public function get_info($var = null, $default = null, $theme = null)
	{
		// if no theme is given
		if ($theme === null)
		{
			// if no var to search is given return the entire active info array
			if ($var === null)
			{
				return $this->active['info'];
			}

			// find the value in the active theme info
			if (($value = \Arr::get($this->active['info'], $var, null)) !== null)
			{
				return $value;
			}

			// and if not found, check the fallback
			elseif (($value = \Arr::get($this->fallback['info'], $var, null)) !== null)
			{
				return $value;
			}
		}

		// or if we have a specific theme
		else
		{
			// fetch the info from that theme
			$info = $this->load_info($theme);

			// and return the requested value
			return $var === null ? $info : \Arr::get($info, $var, $default);
		}

		// not found, return the given default value
		return $default;
	}
public function get_info ( $ var = null , $ default = null , $ theme = null ) { // if no theme is given if ( $ theme === null ) { // if no var to search is given return the entire active info array if ( $ var === null ) { return $ this -> active [ 'info' ] ; } // find the value in the active theme info if ( ( $ value = \ Arr :: get ( $ this -> active [ 'info' ] , $ var , null ) ) !== null ) { return $ value ; } // and if not found, check the fallback elseif ( ( $ value = \ Arr :: get ( $ this -> fallback [ 'info' ] , $ var , null ) ) !== null ) { return $ value ; } } // or if we have a specific theme else { // fetch the info from that theme $ info = $ this -> load_info ( $ theme ) ; // and return the requested value return $ var === null ? $ info : \ Arr :: get ( $ info , $ var , $ default ) ; } // not found, return the given default value return $ default ; }
Get a value from the info array

@return  mixed
Get a value from the info array