concrete/controllers/single_page/dashboard/system/seo/bulk.php
public function getSiteNameForPage(\Concrete\Core\Page\Page $page)
    {
        static $multilingual;
        static $defaultLocale;

        if (!isset($multilingual)) {
            $multilingual = $this->app->make('multilingual/detector')->isEnabled();
        }
        if ($multilingual) {
            if (!isset($defaultLocale)) {
                $defaultLocale = $this->app->make('config')->get('concrete.locale') ?: Localization::BASE_LOCALE;
            }
            $section = Section::getBySectionOfSite($page);
            if ($section) {
                $locale = $section->getLocale();
            } else {
                $locale = $defaultLocale;
            }
            $siteName = $this->getSiteNameForLocale($locale);
        } else {
            $siteName = $this->app->make('site')->getSite()->getSiteName();
        }

        return $siteName;
    }
public function getSiteNameForPage(\Concrete\Core\Page\Page $page)
    {
        static $multilingual;
        static $defaultLocale;

        if (!isset($multilingual)) {
            $multilingual = $this->app->make('multilingual/detector')->isEnabled();
        }
        if ($multilingual) {
            if (!isset($defaultLocale)) {
                $defaultLocale = $this->app->make('config')->get('concrete.locale') ?: Localization::BASE_LOCALE;
            }
            $section = Section::getBySectionOfSite($page);
            if ($section) {
                $locale = $section->getLocale();
            } else {
                $locale = $defaultLocale;
            }
            $siteName = $this->getSiteNameForLocale($locale);
        } else {
            $siteName = $this->app->make('site')->getSite()->getSiteName();
        }

        return $siteName;
    }
public function getSiteNameForPage ( \ Concrete \ Core \ Page \ Page $ page ) { static $ multilingual ; static $ defaultLocale ; if ( ! isset ( $ multilingual ) ) { $ multilingual = $ this -> app -> make ( 'multilingual/detector' ) -> isEnabled ( ) ; } if ( $ multilingual ) { if ( ! isset ( $ defaultLocale ) ) { $ defaultLocale = $ this -> app -> make ( 'config' ) -> get ( 'concrete.locale' ) ? : Localization :: BASE_LOCALE ; } $ section = Section :: getBySectionOfSite ( $ page ) ; if ( $ section ) { $ locale = $ section -> getLocale ( ) ; } else { $ locale = $ defaultLocale ; } $ siteName = $ this -> getSiteNameForLocale ( $ locale ) ; } else { $ siteName = $ this -> app -> make ( 'site' ) -> getSite ( ) -> getSiteName ( ) ; } return $ siteName ; }
Get the site name localized for a specific page.

@param \Concrete\Core\Page\Page $page

@return string
Get the site name localized for a specific page .