protected function addStyleSheets()
	{
		// Initialize string for .css path
		$path = '';

		// Get .css path if defined in config file
		if ($this->getConfig('assets.paths.css'))
		{
			$path = $this->getConfig('assets.paths.css') . '/';
		}

		foreach ($this->stylesheets as $file => $options)
		{
			// Set default value for median attribute
			$media = 'all';

			// Set default value for conditional comments
			$cond = '';

			// Check in config file if stylesheet is an external resource
			$cdn = $this->getConfig('assets.cdn.'.$file);

			// Initialize string for file's url
			$href = '';

			// No conditional comment
			if (is_string($options) && $options)
			{
				$media = $options;
			}

			// Conditional comments are defined
			elseif(is_array($options))
			{
				// Check if value is not empty
				if (array_key_exists(1, $options) && $options[1])
				{
					// Get value for conditional comments
					$cond = $options[1];
				}

				// Check if value is not empty
				if (array_key_exists(0, $options) && $options[0])
				{
					// Get value for media attribute
					$media = $options[0];
				}
			}

			// Stylesheet is an external resource
			if ($cdn)
			{
				// Get file's url
				$href = $cdn;
			}

			// Stylesheet is a local resources + check if file exists
			elseif (File::exists(public_path($path.$file.'.css')))
			{
				// Get file's url
				$href = asset($path.$file.'.css');
			}

			// Check if url is not empty
			if ($href)
			{
				// Register link tag for this stylesheet
				$this->addOneLink('stylesheet', $href, '', array('media' => $media), $cond);
			}
		}
	}
protected function addStyleSheets()
	{
		// Initialize string for .css path
		$path = '';

		// Get .css path if defined in config file
		if ($this->getConfig('assets.paths.css'))
		{
			$path = $this->getConfig('assets.paths.css') . '/';
		}

		foreach ($this->stylesheets as $file => $options)
		{
			// Set default value for median attribute
			$media = 'all';

			// Set default value for conditional comments
			$cond = '';

			// Check in config file if stylesheet is an external resource
			$cdn = $this->getConfig('assets.cdn.'.$file);

			// Initialize string for file's url
			$href = '';

			// No conditional comment
			if (is_string($options) && $options)
			{
				$media = $options;
			}

			// Conditional comments are defined
			elseif(is_array($options))
			{
				// Check if value is not empty
				if (array_key_exists(1, $options) && $options[1])
				{
					// Get value for conditional comments
					$cond = $options[1];
				}

				// Check if value is not empty
				if (array_key_exists(0, $options) && $options[0])
				{
					// Get value for media attribute
					$media = $options[0];
				}
			}

			// Stylesheet is an external resource
			if ($cdn)
			{
				// Get file's url
				$href = $cdn;
			}

			// Stylesheet is a local resources + check if file exists
			elseif (File::exists(public_path($path.$file.'.css')))
			{
				// Get file's url
				$href = asset($path.$file.'.css');
			}

			// Check if url is not empty
			if ($href)
			{
				// Register link tag for this stylesheet
				$this->addOneLink('stylesheet', $href, '', array('media' => $media), $cond);
			}
		}
	}
protected function addStyleSheets ( ) { // Initialize string for .css path $ path = '' ; // Get .css path if defined in config file if ( $ this -> getConfig ( 'assets.paths.css' ) ) { $ path = $ this -> getConfig ( 'assets.paths.css' ) . '/' ; } foreach ( $ this -> stylesheets as $ file => $ options ) { // Set default value for median attribute $ media = 'all' ; // Set default value for conditional comments $ cond = '' ; // Check in config file if stylesheet is an external resource $ cdn = $ this -> getConfig ( 'assets.cdn.' . $ file ) ; // Initialize string for file's url $ href = '' ; // No conditional comment if ( is_string ( $ options ) && $ options ) { $ media = $ options ; } // Conditional comments are defined elseif ( is_array ( $ options ) ) { // Check if value is not empty if ( array_key_exists ( 1 , $ options ) && $ options [ 1 ] ) { // Get value for conditional comments $ cond = $ options [ 1 ] ; } // Check if value is not empty if ( array_key_exists ( 0 , $ options ) && $ options [ 0 ] ) { // Get value for media attribute $ media = $ options [ 0 ] ; } } // Stylesheet is an external resource if ( $ cdn ) { // Get file's url $ href = $ cdn ; } // Stylesheet is a local resources + check if file exists elseif ( File :: exists ( public_path ( $ path . $ file . '.css' ) ) ) { // Get file's url $ href = asset ( $ path . $ file . '.css' ) ; } // Check if url is not empty if ( $ href ) { // Register link tag for this stylesheet $ this -> addOneLink ( 'stylesheet' , $ href , '' , array ( 'media' => $ media ) , $ cond ) ; } } }
Register link tags for stylesheets.

@return void
Register link tags for stylesheets .