public static function generatePageTitle($page_title, $p = null)
    {
        if (!is_array($page_title)) {
            $page_title = [$page_title];
        }

        $page_title = array_reverse($page_title);

        if ($p > 1) {
            $page_title[0] .= ' (' . sprintf(__('Page'), self::numberFormat($p)) . ')';
        }

        $crumbs = implode(__('Title separator'), $page_title);

        return $crumbs;
    }
public static function generatePageTitle($page_title, $p = null)
    {
        if (!is_array($page_title)) {
            $page_title = [$page_title];
        }

        $page_title = array_reverse($page_title);

        if ($p > 1) {
            $page_title[0] .= ' (' . sprintf(__('Page'), self::numberFormat($p)) . ')';
        }

        $crumbs = implode(__('Title separator'), $page_title);

        return $crumbs;
    }
public static function generatePageTitle ( $ page_title , $ p = null ) { if ( ! is_array ( $ page_title ) ) { $ page_title = [ $ page_title ] ; } $ page_title = array_reverse ( $ page_title ) ; if ( $ p > 1 ) { $ page_title [ 0 ] .= ' (' . sprintf ( __ ( 'Page' ) , self :: numberFormat ( $ p ) ) . ')' ; } $ crumbs = implode ( __ ( 'Title separator' ) , $ page_title ) ; return $ crumbs ; }
Generate browser's title
@param $page_title
@param null $p
@return string
Generate browser s title