Retrieve the current page title.

@since  5.0.0
@access public
@return string
505179
public static function current() {

		$title = '';

		if ( is_front_page() ) {
			$title = static::frontPage();

		} elseif ( is_home() || is_singular() ) {
			$title = static::post();

		} elseif ( is_archive() ) {
			$title = static::archive();

		} elseif ( is_search() ) {
			$title = static::search();

		} elseif ( is_404() ) {
			$title = static::error();
		}

		return $title;
	}
962856
public function getTitleName()
    {
        $list = self::getTitlesList();

        return isset($list[$this->title]) ? $list[$this->title] : '';
    }
181924
public function titlePad()
    {
        $out = '';
        if ($this->_title === false) {
            return $out;
        }
        $out .= '<div class="titlepad">';
        $out .= $this->_pageTitle($this->_title, $this->_subTitle);
        if (!empty($this->_actions)) {
            $out .= '<ul class="titlepad-actions">';
            foreach ($this->_actions as $action) {
                $out .= '<li>' . $action . '</li>';
            }
            $out .= '</ul>';
        }
        $out .= '</div>';

        return $out;
    }
584323
protected function getHeaderTitle()
    {
        if ($this->title == '') {
            $header_title = '&nbsp;';
        } else {
            $header_title = $this->show_colon
                ? sprintf(Swat::_('%s:'), $this->title)
                : $this->title;
        }

        return $header_title;
    }
320821
public function Title()
    {
        if (!$this->Title) {
            if ($this->getContextObject()) {
                if ($workflow = $this->contextObj->getWorkflowInstance()) {
                    $this->Title = $workflow->currentAction()->BaseAction()->PageTitle
                        ? $workflow->currentAction()->BaseAction()->PageTitle
                        : $workflow->currentAction()->Title;
                }
            }
        }
        return $this->Title;
    }
1186794
public function current()
    {
        // Getting the first page
        if ($this->currentPage === null) {
            $data = $this->api->searchWithBody($this->body);
            if (isset($data['next_page_token'])) {
                $this->nextPage = $data['next_page_token'];
            }

            return $data;
        }

        // Getting another page
        $body = array_merge($this->body, ['pagetoken' => $this->currentPage]);
        $data = $this->api->searchWithBody($body);
        if (isset($data['next_page_token'])) {
            $this->nextPage = $data['next_page_token'];
        } else {
            $this->nextPage = null;
        }

        return $data;
    }
1367980
public function getTitle(): string
    {
        $metadata = $this->getMetadata();

        if (isset($metadata['Title'])) {
            return is_array($metadata['Title']) ? $metadata['Title'][0] ?? '' : $metadata['Title'];
        }

        return parent::getTitle();
    }
31125
public function title()
    {
        if (in_array($this->type(), [null, 'about:blank'], true)) {
            return $this->determineStatusPhrase($this->status());
        }

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

        return $heading ? $heading : $this->entity->title;
    }
1167798
public function generateContent()
    {
        parent::generateContent();
        $pathArray = $this->currentPageStrategy->getCurrentPagePath();
        $titleString = '';
        foreach ($pathArray as $page) {
            /** @var $page Page */

            $titleString .= ' - ' . (($t = $page->getTitle()) == '_404' ? 'Siden blev ikke fundet' : $t);
        }

        return $titleString;
    }
256467
public function current(): string
    {
        if (!$this->Wp->is_admin) {
            return ''; // Not applicable.
        }
        return !empty($_GET['page'])
            ? $this->c::unslash((string) $_GET['page'])
            : $this->now(); // Fallback on `$pagenow`.
    }
1017115
public function getTitle()
    {
        $crawler = $this->getCrawler();

        $result = $crawler->filter('h1');
        if ($result->count()) {
            return $result->html();
        }
    }
194002
public function getPageTitle($siteTitle = null)
    {
        $title = null;
       
        $title = implode(': ',$this->pageTitle);
                  
        if(!empty($siteTitle) && !empty($title)) {
            $title =  $siteTitle . ' | '.$title ;
        } else {
            $title = $siteTitle;
        }
        
        return '<title>'.$title . '</title>';
    }
469576
public function getTitle()
    {
        $iLang = \OxidEsales\Eshop\Core\Registry::getLang()->getTplLanguage();

        return $this->getInfo("title", $iLang);
    }
1105461
protected function getTitleForLayout()
    {
        if (!empty($this->titleForLayout)) {
            return $this->titleForLayout;
        }

        //Gets the main title setted by the configuration
        $title = getConfigOrFail('main.title');

        //For homepage, it returns only the main title
        if ($this->request->isUrl(['_name' => 'homepage'])) {
            return $title;
        }

        //If exists, it adds the title setted by the controller, as if it has
        //  been set via `$this->View->set()`
        if ($this->get('title')) {
            $title = sprintf('%s - %s', $this->get('title'), $title);
        //Else, if exists, it adds the title setted by the current view, as if
        //  it has been set via `$this->View->Blocks->set()`
        } elseif ($this->fetch('title')) {
            $title = sprintf('%s - %s', $this->fetch('title'), $title);
        }

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

        return $this->title;
    }
1263592
protected function getTitle()
    {
        if (strlen($this->title) <= 5) {
            if ($word = $this->checkIfReservedWordInUrl()) {
                $this->title .= ucfirst($word) . ' ';
            }

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

        return $this->title . ' - Admin | ' . config('app.name');
    }