public function css($stylesheet = '', $extension = null, $attributes = array())
	{
		$extension = $extension ?: $this->detectExtensionName();

		$attr = array_merge(array(
			'type'    => 'text/css',
			'media'   => null,
			'attribs' => array()
		), $attributes);

		$asset = new Stylesheet($extension, $stylesheet);

		$asset = $this->isSuperGroupAsset($asset);

		if ($asset->exists())
		{
			if ($asset->isDeclaration())
			{
				\App::get('document')->addStyleDeclaration($asset->contents());
			}
			else
			{
				\App::get('document')->addStyleSheet($asset->link(), $attr['type'], $attr['media'], $attr['attribs']);
			}
		}

		return $this;
	}
public function css($stylesheet = '', $extension = null, $attributes = array())
	{
		$extension = $extension ?: $this->detectExtensionName();

		$attr = array_merge(array(
			'type'    => 'text/css',
			'media'   => null,
			'attribs' => array()
		), $attributes);

		$asset = new Stylesheet($extension, $stylesheet);

		$asset = $this->isSuperGroupAsset($asset);

		if ($asset->exists())
		{
			if ($asset->isDeclaration())
			{
				\App::get('document')->addStyleDeclaration($asset->contents());
			}
			else
			{
				\App::get('document')->addStyleSheet($asset->link(), $attr['type'], $attr['media'], $attr['attribs']);
			}
		}

		return $this;
	}
public function css ( $ stylesheet = '' , $ extension = null , $ attributes = array ( ) ) { $ extension = $ extension ? : $ this -> detectExtensionName ( ) ; $ attr = array_merge ( array ( 'type' => 'text/css' , 'media' => null , 'attribs' => array ( ) ) , $ attributes ) ; $ asset = new Stylesheet ( $ extension , $ stylesheet ) ; $ asset = $ this -> isSuperGroupAsset ( $ asset ) ; if ( $ asset -> exists ( ) ) { if ( $ asset -> isDeclaration ( ) ) { \ App :: get ( 'document' ) -> addStyleDeclaration ( $ asset -> contents ( ) ) ; } else { \ App :: get ( 'document' ) -> addStyleSheet ( $ asset -> link ( ) , $ attr [ 'type' ] , $ attr [ 'media' ] , $ attr [ 'attribs' ] ) ; } } return $ this ; }
Push CSS to the document

@param   string  $stylesheet  Stylesheet or styles to add
@param   string  $extension   Extension name, e.g.: com_example, mod_example, plg_example_test
@param   array   $attributes  Attributes
@return  object
Push CSS to the document