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
338925
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;
    }
932317
public function setTitle($title, $appendDefault = true)
    {
        $this->metatags()->setTitle($title, $appendDefault);
        $this->opengraph()->setTitle($title);
        $this->twitter()->setTitle($title);
        $this->jsonLd()->setTitle($title);

        return $this;
    }
648190
protected function _generateListGroupText($title)
    {
        if (is_array($title)) {
            $text = '';
            if (!empty($title['header'])) {
                $text .= $this->tag('h4', $title['header'], ['class' => 'list-group-item-heading']);
            }
            if (!empty($title['text'])) {
                $text .= $this->para('list-group-item-text', $title['text']);
            }
        } else {
            $text = $title;
        }
        return $text;
    }
1082857
public static function title($title = null)
    {
        if (is_null($title)) {
            $title = config('app.title');
        }

        $tag = static::open('title');
        $tag .= $title;
        $tag .= static::close();

        return $tag;
    }
1363249
public function MetaTitle()
    {
        $mapping = self::$url_handlers;
        if ($action = $this->getRequest()->param('Action')) {
            switch ($mapping[$action]) {
                case 'show' :
                    $news = $this->getNews();
                    if (isset($news)) {
                        $this->Title = $news->Title . ' - ' . $this->Title;
                    }
                    break;
                case 'tag' :
                    $tags = $this->getTag();
                    if (isset($tags)) {
                        $this->Title = $tags->Title . ' - ' . $this->Title;
                    }
                    break;
                case 'tags' :
                    $this->Title = _t('News.ALLTAGS_PAGE', 'All tags - ') . $this->Title;
                    break;
                case 'author' :
                    $this->Title = _t('News.AUTHOR_PAGE', 'Items by ') . ucfirst($this->getRequest()->param('ID')) . ' - ' . $this->Title;
                    break;
                case 'archive' :
                    $this->Title = _t('News.ARCHIVE_PAGE', 'Items per period ') . $this->Title;
                    break;
            }

            return $this->Title;
        }
    }
327272
public function getTitle()
    {
        if (empty($this->title)) {
            $this->title = $this->_xml->children('h', true)->head->children('h', true)->title;
        }

        return $this->title;
    }
77431
public static function plain_page($title, $content, $meta = '') {
        if (function_exists('get_string') && function_exists('get_html_lang')) {
            $htmllang = get_html_lang();
        } else {
            $htmllang = '';
        }

        $footer = '';
        if (MDL_PERF_TEST) {
            $perfinfo = get_performance_info();
            $footer = '<footer>' . $perfinfo['html'] . '</footer>';
        }

        return '<!DOCTYPE html>
<html ' . $htmllang . '>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
'.$meta.'
<title>' . $title . '</title>
</head><body>' . $content . $footer . '</body></html>';
    }
813909
protected function getTitle()
	{
		$title = '';

		if ($this->hidden)
		{
			return $title;
		}

		// Get the label text from the XML element, defaulting to the element name.
		$title = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];
		$title = $this->translateLabel ? $this->getText()->translate($title) : $title;

		return $title;
	}
23716
public function getNodeTranslations($includeOffline = false)
    {
        return $this->nodeTranslations
            ->filter(function (NodeTranslation $entry) use ($includeOffline) {
                if ($includeOffline || $entry->isOnline()) {
                    return true;
                }

                return false;
            }
            );
    }
779133
public function _htmlHeader($title)
    {

        $output = $this->_doctype();
        $output .= '<html lang="en">'."\n";
        $output .= "<head>\n\n";

        $output .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'."\n\n";
        $output .= '<meta name="generator" content="PHPDoctor '.$this->_doclet->version().' (http://peej.github.com/phpdoctor/)">'."\n";
        $output .= '<meta name="when" content="'.gmdate('r').'">'."\n\n";

        $output .= '<link rel="stylesheet" type="text/css" href="'.str_repeat('../', $this->_depth).'stylesheet.css">'."\n";
        $output .= '<link rel="start" href="'.str_repeat('../', $this->_depth).'namespaces.html">'."\n\n";

        $output .= '<title>';
        if ($title) {
            $output .= $title.' ('.$this->_doclet->windowTitle().')';
        } else {
            $output .= $this->_doclet->windowTitle();
        }
        $output .= "</title>\n\n";
        $output .= "</head>\n";

        return $output;

    }
813765
protected function getUnifiedTitle($title)
    {
        $title = mb_strtolower($title, 'utf8');
        $title = preg_replace('/\W+/u', ' ', $title);

        return trim($title);
    }
469576
public function getTitle()
    {
        $iLang = \OxidEsales\Eshop\Core\Registry::getLang()->getTplLanguage();

        return $this->getInfo("title", $iLang);
    }
448205
public function head($include = null)
    {
        if (null === $include) {
            $include = $this->defaults;
        }

        $include = (array) $include;

        $this->process($include);

        return "\n"
            . ( in_array(self::METAS, $include)   ? $this->metas() : '')
            . ( in_array(self::TITLE, $include)   ? $this->title() : '')
            . ( in_array(self::LINKS, $include)   ? $this->links() : '')
            . ( in_array(self::STYLES, $include)  ? $this->styles() : '')
            . ( in_array(self::SCRIPTS, $include) ? $this->scripts() : '')
            ;
    }
1023097
public function getSelectString($includeText = true)
    {
        $statement = "";

        if (!$this->select) {
            return $statement;
        }

        $statement .= $this->getOptionsString(true);

        foreach ($this->select as $column => $alias) {
            $statement .= $column;

            if ($alias) {
                $statement .= " AS " . $alias;
            }

            $statement .= ", ";
        }

        $statement = substr($statement, 0, -2);

        if ($includeText && $statement) {
            $statement = "SELECT " . $statement;
        }

        return $statement;
    }
955636
public function getTitle()
    {
        $title = '';

        /**
         * If there is a title, add it to the returned title
         */
        if (trim($this->title) != '') {
            $title = trim($this->title);
        }
        
        /**
         * If there is a name of the framework instance, add it to 
         * the returned title
         */
        if (trim($this->name) != '') {
            if (trim($title) != '') {
                $title .= $this->delimiter;
            }
            
            $title .= trim($this->name);
        }
        
        /**
         * If the title is empty, return a default title
         */
        if (trim($title) == '') {
            $title = 'zepi Turbo';
        }
        
        return $title;
    }
342146
public function MetaTags($includeTitle = true)
    {
        $tags = [];
        $owner = $this->getOwner();

        if ($includeTitle && strtolower($includeTitle) != 'false') {
            $tags[] = HTML::createTag(
                'title',
                [],
                $owner->obj('Title')->forTemplate()
            );
        }

        $generator = trim(Config::inst()->get(self::class, 'meta_generator'));
        if (!empty($generator)) {
            $tags[] = HTML::createTag('meta', array(
                'name' => 'generator',
                'content' => $generator,
            ));
        }

        $charset = ContentNegotiator::config()->uninherited('encoding');
        $tags[] = HTML::createTag('meta', array(
            'http-equiv' => 'Content-Type',
            'content' => 'text/html; charset=' . $charset,
        ));
        if ($owner->MetaDescription) {
            $tags[] = HTML::createTag('meta', array(
                'name' => 'description',
                'content' => $owner->MetaDescription,
            ));
        }

        if (Permission::check('CMS_ACCESS_CMSMain') && $owner->exists()) {
            $tags[] = HTML::createTag(
                'meta',
                [
                    'name' => 'x-page-id',
                    'content' => $owner->obj('ID')->forTemplate()
                ]
            );
            $tags[] = HTML::createTag(
                'meta',
                [
                    'name' => 'x-cms-edit-link',
                    'content' => $owner->obj('CMSEditLink')->forTemplate()
                ]
            );
        }

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

        $owner->extend('updateMetaTags', $tags);

        return $tags;
    }
752524
public function getTitle()
    {
        if ($this->title === null) {
            $match = [];
            preg_match(self::$REGEX_TITLE, $this->output, $match);
            $this->title = array_key_exists(2, $match) ? trim($match[2]) : '';
        }

        return $this->title;
    }