protected function addTwitter()
	{
		// Get value for title tag
		$title = $this->renderTitle();

		// Get value of description
		$description = ($this->description) ? $this->description : $this->getConfig('description');

		// Get Default values in config file
		$image = $this->getConfig('twitter.image');
		$site = $this->getConfig('twitter.site');
		$creator = $this->getConfig('twitter.creator');

		// Check if option is active
		if ($this->getConfig('twitter.active'))
		{
			// Register default tag but don't override a value set manually
			if (!array_key_exists('twitter:card', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:card', 'summary');
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:title', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:title', $title);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:description', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:description', $description);
			}

			// Don't override a value set manually + check if file exists
			if (File::isFile(public_path($image)) && !array_key_exists('twitter:image:src', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:image:src', $image);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:site', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:site', $site);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:creator', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:creator', $creator);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:url', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:url', URL::current());
			}
		}

		// Option is inactive
		else
		{
			$this->killTwitter();
		}
	}
protected function addTwitter()
	{
		// Get value for title tag
		$title = $this->renderTitle();

		// Get value of description
		$description = ($this->description) ? $this->description : $this->getConfig('description');

		// Get Default values in config file
		$image = $this->getConfig('twitter.image');
		$site = $this->getConfig('twitter.site');
		$creator = $this->getConfig('twitter.creator');

		// Check if option is active
		if ($this->getConfig('twitter.active'))
		{
			// Register default tag but don't override a value set manually
			if (!array_key_exists('twitter:card', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:card', 'summary');
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:title', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:title', $title);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:description', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:description', $description);
			}

			// Don't override a value set manually + check if file exists
			if (File::isFile(public_path($image)) && !array_key_exists('twitter:image:src', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:image:src', $image);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:site', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:site', $site);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:creator', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:creator', $creator);
			}

			// Don't override a value set manually
			if (!array_key_exists('twitter:url', $this->meta['name']))
			{
				$this->addOneMeta('name', 'twitter:url', URL::current());
			}
		}

		// Option is inactive
		else
		{
			$this->killTwitter();
		}
	}
protected function addTwitter ( ) { // Get value for title tag $ title = $ this -> renderTitle ( ) ; // Get value of description $ description = ( $ this -> description ) ? $ this -> description : $ this -> getConfig ( 'description' ) ; // Get Default values in config file $ image = $ this -> getConfig ( 'twitter.image' ) ; $ site = $ this -> getConfig ( 'twitter.site' ) ; $ creator = $ this -> getConfig ( 'twitter.creator' ) ; // Check if option is active if ( $ this -> getConfig ( 'twitter.active' ) ) { // Register default tag but don't override a value set manually if ( ! array_key_exists ( 'twitter:card' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:card' , 'summary' ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'twitter:title' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:title' , $ title ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'twitter:description' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:description' , $ description ) ; } // Don't override a value set manually + check if file exists if ( File :: isFile ( public_path ( $ image ) ) && ! array_key_exists ( 'twitter:image:src' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:image:src' , $ image ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'twitter:site' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:site' , $ site ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'twitter:creator' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:creator' , $ creator ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'twitter:url' , $ this -> meta [ 'name' ] ) ) { $ this -> addOneMeta ( 'name' , 'twitter:url' , URL :: current ( ) ) ; } } // Option is inactive else { $ this -> killTwitter ( ) ; } }
Register Twitter Card meta tags.

@return void
Register Twitter Card meta tags .