Page title

@return string
336147
public function getTitle()
    {
        if ($this->getNewsletterStatus() == 4 || !$this->getNewsletterStatus()) {
            $sConstant = 'STAY_INFORMED';
        } elseif ($this->getNewsletterStatus() == 1) {
            $sConstant = 'MESSAGE_THANKYOU_FOR_SUBSCRIBING_NEWSLETTERS';
        } elseif ($this->getNewsletterStatus() == 2) {
            $sConstant = 'MESSAGE_NEWSLETTER_CONGRATULATIONS';
        } elseif ($this->getNewsletterStatus() == 3) {
            $sConstant = 'SUCCESS';
        }

        return \OxidEsales\Eshop\Core\Registry::getLang()->translateString($sConstant, \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage(), false);
    }
589008
public function getPageTitle()
    {
        $page = $GLOBALS['TSFE'];

        if ($page->indexedDocTitle) {
            $pageTitle = $page->indexedDocTitle;
        } elseif ($page->altPageTitle) {
            $pageTitle = $page->altPageTitle;
        } else {
            $pageTitle = $page->page['title'];
        }

        return $pageTitle;
    }
527440
protected function _getSiteTitleLink()
    {
        $action = $this->_action();

        $link = $action->getConfig('scaffold.site_title_link');
        if (empty($link)) {
            $link = '';
        }

        return $link;
    }
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;
    }
153742
protected function renderTitle()
    {
        // Render page title
        if( $this->pageTitle != null )
        {
            $title = mb_convert_encoding( $this->pageTitle, $this->getCharset(), 'auto' );

            $domQuery = $this->qp->find( "title" );
            if( $domQuery->count() <= 0 )
            {
                trigger_error( 'title tag not found in page', E_USER_WARNING );
            }
            else
            {
                $domQuery->append( $title );
            }
        }
    }
473423
protected function _getPageTitle()
    {
        $action = $this->_action();

        $title = $action->getConfig('scaffold.page_title');
        if (!empty($title)) {
            return $title;
        }

        $scope = $action->getConfig('scope');

        $request = $this->_request();
        $actionName = Inflector::humanize(Inflector::underscore($request->getParam('action')));
        $controllerName = $this->_controllerName();

        if ($scope === 'table') {
            if ($actionName === 'Index') {
                return $controllerName;
            }

            return sprintf('%s %s', $controllerName, $actionName);
        }

        $primaryKeyValue = $this->_primaryKeyValue();
        if ($primaryKeyValue === null) {
            return sprintf('%s %s', $actionName, $controllerName);
        }

        $displayFieldValue = $this->_displayFieldValue();
        if ($displayFieldValue === null || $this->_table()->getDisplayField() == $this->_table()->getPrimaryKey()) {
            return sprintf('%s %s #%s', $actionName, $controllerName, $primaryKeyValue);
        }

        return sprintf('%s %s #%s: %s', $actionName, $controllerName, $primaryKeyValue, $displayFieldValue);
    }
829933
public function getTitle()
    {
        $title = '';

        $titleComment = $this->getTitleComment();
        if (preg_match('/^\s*#+\s*(.+)/', $titleComment, $matches)) {
            $title = $matches[1];
        } elseif (self::isReferenceNumeric($this->getReference())) {
            return $this->getReference();
        } else {
            $reference = $this->getReferenceParts();
            return end($reference);
        }

        return $title;
    }
1235575
public function getPageTitle()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('title', 0);

        if ($node) {
            return $node->innertext;
        }
    }
1367387
public function title()
    {
        $heading = null;
        if (session()->has('active_menu')) {
            $heading = session('active_menu')->param('page_heading');
        }

        return $heading ? $heading : $this->entity->title;
    }
617715
public function getTitle()
    {
        if (!isset($this->title) || !$this->title) {
            return Str::title(str_replace('_', ' ', snake_case(preg_replace('/'.static::CLASS_SUFFIX.'$/', '', static::shortName()))));
        }

        return $this->title;
    }
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;
        }
    }
951990
protected function getTitle()
    {
        $navigation = array_reverse($this->urlParentPages);
        $this->title = strlen($this->title) > 5 ? $this->title . ' - ' : '';

        foreach ($navigation as $key => $nav) {
            $this->title .= $nav['title'] . ($key + 1 < count($navigation) ? ' - ' : '');
        }

        return trim($this->title . (strlen($this->title) < 2 ? '' : ' | ') . config('app.name'));
    }
184822
public function getTitleText()
    {
        if ($this->UseLevelTitle && ($page = $this->getCurrentPage(Page::class))) {
            return $page->MenuTitle;
        }
        
        return parent::getTitleText();
    }
1374767
protected function _getTitle()
    {
        $templates = Configure::read('Notifier.templates');

        if (array_key_exists($this->_properties['template'], $templates)) {
            $template = $templates[$this->_properties['template']];

            $vars = json_decode($this->_properties['vars'], true);

            return Text::insert($template['title'], $vars);
        }
        return '';
    }
1302509
protected function renderTitle()
    {
        $items   = array();
        $title   = \CHtml::tag('h1', array(), \CHtml::link($this->title, $this->titleUrl, $this->titleOptions));
        $items[] = \CHtml::tag('li', array('class' => 'name'), $title);
        $items[] = \CHtml::tag(
            'li',
            array('class' => 'toggle-topbar menu-icon'),
            \CHtml::link('<span>Menu</span>', '#')
        );
        return \CHtml::tag('ul', array('class' => 'title-area'), implode("\n", $items));
    }
1208595
public function getTitleUrlAttribute()
    {
        $name = $this->attributes['title'] . ' ( ' . $this->attributes['url'] . ' )';
        if ($this->parent) {
            $name .= " - {$this->parent->title}";
        }

        return $name;
    }
1102021
protected function fetchTitle()
    {
        try
        {
            $this->fetchOption('title', true);
        }
        catch (OptionRequiredException $e)
        {
            // no title was set manually
            if (null !== $this->simpleContentPage)
            {
                $this->title = $this->simpleContentPage->getTitle();
            }
            else
            {
                $this->title = $this->simplePageName;
            }
        }
        
        return $this;
    }