RitaHelper::getPageTitle()

@param mixed $siteTitle
@return
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>';
    }
591400
public function extractTitle($content, $retrieveTitle = false) {
		if ($retrieveTitle) {
			
		} else {
			if ($this->isImage($content)) {
				return 'Image: ' . basename($content);
			}
			
			if ($this->isWebpage($content)) {
				return 'Website: ' . basename($content);
			}
			
			return DBField::create_field('Text', $content)->LimitWordCount(5, '');
		}
	}
691207
public function getUrlTrackPageView($documentTitle = '')
    {
        $url = $this->getRequest($this->idSite);
        if (strlen($documentTitle) > 0) {
            $url .= '&action_name=' . urlencode($documentTitle);
        }

        return $url;
    }
650369
public function getTitle($title)
    {
        return sprintf($this->style['title'], $this->fitText($this->window->getWidth(), $title));
    }
690264
protected function applySitetitleToPagetitle($sitetitle, $title)
    {
        $pageTitleGlue    = ':';
        $glueSpacerBefore = '';
        $glueSpacerAfter  = '';

        $ret = $title;

        // Overwrite sitetitle with the one from ts-setup (if available)
        if (!empty($this->tsSetupSeo['pageTitle.']['sitetitle'])) {
            $sitetitle = $this->tsSetupSeo['pageTitle.']['sitetitle'];
        }

        // Apply stdWrap after
        if (!empty($this->stdWrapList['sitetitle.'])) {
            $sitetitle = $this->cObj->stdWrap($sitetitle, $this->stdWrapList['sitetitle.']);
        }


        if (isset($this->tsSetupSeo['pageTitle.']['sitetitleGlue'])) {
            $pageTitleGlue = $this->tsSetupSeo['pageTitle.']['sitetitleGlue'];
        }

        if (!empty($this->tsSetupSeo['pageTitle.']['sitetitleGlueSpaceBefore'])) {
            $glueSpacerBefore = ' ';
        }

        if (!empty($this->tsSetupSeo['pageTitle.']['sitetitleGlueSpaceAfter'])) {
            $glueSpacerAfter = ' ';
        }

        $sitetitlePosition = 0;
        if (isset($this->tsSetupSeo['pageTitle.']['sitetitlePosition'])) {
            $sitetitlePosition = (int)$this->tsSetupSeo['pageTitle.']['sitetitlePosition'];
        } elseif (isset($this->tsSetup['config.']['pageTitleFirst'])) {
            $sitetitlePosition = (int)$this->tsSetup['config.']['pageTitleFirst'];
        }

        // add overall pagetitle from template/ts-setup
        if ($sitetitlePosition) {
            // suffix
            $ret .= $glueSpacerBefore . $pageTitleGlue . $glueSpacerAfter . $sitetitle;

            return $ret;
        } else {
            // prefix (default)
            $ret = $sitetitle . $glueSpacerBefore . $pageTitleGlue . $glueSpacerAfter . $ret;

            return $ret;
        }
    }
1346108
public function pageHeader($title)
    {
        if (is_category()) {
            return single_cat_title('', false);
        } elseif (is_tag()) {
            return single_cat_title('', false);
        } elseif (is_author()) {
            $title = '<span class="vcard">' . get_the_author() . '</span>';
        } elseif (is_year()) {
            return get_the_date(_x('Y', 'yearly archives date format'));
        } elseif (is_month()) {
            return get_the_date(_x('F Y', 'monthly archives date format'));
        } elseif (is_day()) {
            return get_the_date(_x('F j, Y', 'daily archives date format'));
        } elseif (is_post_type_archive()) {
            return post_type_archive_title('', false);
        }
        return $title;
    }
1312319
private function getTitle(): string {
        $openGraph = $this->article()->getOpenGraph();

        // Rely on OpenGraph in case we have the data
        if (isset($openGraph['title'])) {
            return $this->cleanTitle($openGraph['title']);
        }

        $nodes = $this->getNodesByLowercasePropertyValue($this->article()->getDoc(), 'meta', 'name', 'headline');
        if ($nodes->count()) {
            return $this->cleanTitle($nodes->first()->attr('content'));
        }

        $nodes = $this->article()->getDoc()->find('html > head > title');
        if ($nodes->count()) {
            return $this->cleanTitle(Helper::textNormalise($nodes->first()->text()));
        }

        return '';
    }
822882
public function getTitle()
    {
        if (!$this->title) {
            $this->title = DocumentationHelper::clean_page_name($this->key);
        }

        return $this->title;
    }
458114
public function getTitle()
    {
        $title = array();
        $row = $this->getPage();
        if (!$row) {
            return null;
        }
        do {
            if ($row->name != '' && $row->name != 'Home') {
                $title[] = $row->name;
            }
        } while ($row = $row->getParentPage());
        return implode(' - ', $title);
    }
1108883
public function set_pagetitle($title)
    {
        if ($this->config->get('devel_mode') && !empty($_SESSION['username'])) {
            $name = $_SESSION['username'];
        }
        else {
            $name = $this->config->get('product_name');
        }

        $this->command('set_pagetitle', empty($name) ? $title : $name . ' :: ' . $title);
    }
184822
public function getTitleText()
    {
        if ($this->UseLevelTitle && ($page = $this->getCurrentPage(Page::class))) {
            return $page->MenuTitle;
        }
        
        return parent::getTitleText();
    }
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'));
    }
1114726
function getTreeTitle() {
		$title = $this->Title;
		if (!$title) {
			$title = $this->Name;
		}

		$treeTitle = sprintf(
			"<span class=\"jstree-pageicon\"></span><span class=\"item\">%s</span>",
			Convert::raw2xml(str_replace(array("\n","\r"),"", $title))
		);
		return $treeTitle;
	}
1264909
public function generate($pageTitle)
    {
        return [
            Shopgate_Helper_Redirect_TagsGenerator::SITE_PARAMETER_SITENAME       => $this->getSiteName(),
            Shopgate_Helper_Redirect_TagsGenerator::SITE_PARAMETER_DESKTOP_URL    => $this->getShopUrl(),
            Shopgate_Helper_Redirect_TagsGenerator::SITE_PARAMETER_MOBILE_WEB_URL => $this->getMobileUrl(),
            Shopgate_Helper_Redirect_TagsGenerator::SITE_PARAMETER_TITLE          => $pageTitle
        ];
    }
1054391
public function getActiveSiteTheme($siteId)
    {
        $qb = $this->getEntityManager()->createQueryBuilder();
        /** @var $query \Doctrine\ORM\Query */

        $query = $qb->select('e, t')
            ->from($this->_entity, 'e')
            ->innerJoin('e.themeId', 't')
            ->where('e.siteId = :id')
            ->andWhere('e.isActive = 1')
            ->setMaxResults(1)
            ->setParameter('id', $siteId)
            ->getQuery();

        /** @var $result \PageBuilder\Entity\Join\SiteTheme */
        $result = $query->getOneOrNullResult(AbstractQuery::HYDRATE_OBJECT);
        if ($result) {
            return $result->getThemeId();
        } else {
            return $result;
        }
    }
1183851
public function getTitle($page = NULL, $action = NULL) {
    $plugin = $this->customerPagesManager->createInstance($this->customerPagesPlugin);
    $page_id = $plugin->getPageId();
    $pages = $plugin->getPages();
    $page_config = $pages[$page_id];
    $title = isset($page_config['title']) ? $page_config['title'] : $page_id;

    if ($action == 'edit' && isset($page_config['edit_title'])) {
      $title = $page_config['edit_title'];
    }

    if (!$page) {
      $title = $this->t('Account');
    }

    return $title;
  }
713362
protected function getPage(
        Site $site,
        $pageName,
        $pageType
    ) {
        if (empty($site) || !$site->getSiteId()) {
            return null;
        }

        /* Get the Page for display */
        $page = $this->findPage->__invoke(
            $site->getSiteId(),
            $pageName,
            $pageType
        );

        return $page;
    }