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;
        }
    }
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;
        }
    }
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 ; } }
Meta! This is so Meta! I mean, MetaTitle!
Meta! This is so Meta! I mean MetaTitle!