public function MetaTags($includeTitle = true)
    {
        $tags = [];
        $tagsArray = $this->MetaComponents();
        if (!$includeTitle || strtolower($includeTitle) == 'false') {
            unset($tagsArray['title']);
        }

        foreach ($tagsArray as $tagProps) {
            $tag = array_merge([
                'tag' => 'meta',
                'attributes' => [],
                'content' => null,
            ], $tagProps);
            $tags[] = HTML::createTag($tag['tag'], $tag['attributes'], $tag['content']);
        }

        $tagString = implode("\n", $tags);
        if ($this->ExtraMeta) {
            $tagString .= $this->obj('ExtraMeta')->forTemplate();
        }

        $this->extend('MetaTags', $tagString);

        return $tagString;
    }
public function MetaTags($includeTitle = true)
    {
        $tags = [];
        $tagsArray = $this->MetaComponents();
        if (!$includeTitle || strtolower($includeTitle) == 'false') {
            unset($tagsArray['title']);
        }

        foreach ($tagsArray as $tagProps) {
            $tag = array_merge([
                'tag' => 'meta',
                'attributes' => [],
                'content' => null,
            ], $tagProps);
            $tags[] = HTML::createTag($tag['tag'], $tag['attributes'], $tag['content']);
        }

        $tagString = implode("\n", $tags);
        if ($this->ExtraMeta) {
            $tagString .= $this->obj('ExtraMeta')->forTemplate();
        }

        $this->extend('MetaTags', $tagString);

        return $tagString;
    }
public function MetaTags ( $ includeTitle = true ) { $ tags = [ ] ; $ tagsArray = $ this -> MetaComponents ( ) ; if ( ! $ includeTitle || strtolower ( $ includeTitle ) == 'false' ) { unset ( $ tagsArray [ 'title' ] ) ; } foreach ( $ tagsArray as $ tagProps ) { $ tag = array_merge ( [ 'tag' => 'meta' , 'attributes' => [ ] , 'content' => null , ] , $ tagProps ) ; $ tags [ ] = HTML :: createTag ( $ tag [ 'tag' ] , $ tag [ 'attributes' ] , $ tag [ 'content' ] ) ; } $ tagString = implode ( "\n" , $ tags ) ; if ( $ this -> ExtraMeta ) { $ tagString .= $ this -> obj ( 'ExtraMeta' ) -> forTemplate ( ) ; } $ this -> extend ( 'MetaTags' , $ tagString ) ; return $ tagString ; }
Return the title, description, keywords and language metatags.

@param bool $includeTitle Show default <title>-tag, set to false for custom templating
@return string The XHTML metatags
Return the title description keywords and language metatags .