public function getDescription()
    {
        $description = Yii::t('podium/view', 'No New Posts');
        $append = false;

        if ($this->locked) {
            $description = Yii::t('podium/view', 'Locked Thread');
            $append = true;
        } elseif ($this->pinned) {
            $description = Yii::t('podium/view', 'Pinned Thread');
            $append = true;
        } elseif ($this->posts >= Podium::getInstance()->podiumConfig->get('hot_minimum')) {
            $description = Yii::t('podium/view', 'Hot Thread');
            $append = true;
        }
        if ($this->userView) {
            if ($this->new_post_at > $this->userView->new_last_seen) {
                if (!$append) {
                    $description = Yii::t('podium/view', 'New Posts');
                } else {
                    $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
                }
            } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                if (!$append) {
                    $description = Yii::t('podium/view', 'Edited Posts');
                } else {
                    $description = ' (' . Yii::t('podium/view', 'Edited Posts') . ')';
                }
            }
        } else {
            if (!$append) {
                $description = Yii::t('podium/view', 'New Posts');
            } else {
                $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
            }
        }
        return $description;
    }
public function getDescription()
    {
        $description = Yii::t('podium/view', 'No New Posts');
        $append = false;

        if ($this->locked) {
            $description = Yii::t('podium/view', 'Locked Thread');
            $append = true;
        } elseif ($this->pinned) {
            $description = Yii::t('podium/view', 'Pinned Thread');
            $append = true;
        } elseif ($this->posts >= Podium::getInstance()->podiumConfig->get('hot_minimum')) {
            $description = Yii::t('podium/view', 'Hot Thread');
            $append = true;
        }
        if ($this->userView) {
            if ($this->new_post_at > $this->userView->new_last_seen) {
                if (!$append) {
                    $description = Yii::t('podium/view', 'New Posts');
                } else {
                    $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
                }
            } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                if (!$append) {
                    $description = Yii::t('podium/view', 'Edited Posts');
                } else {
                    $description = ' (' . Yii::t('podium/view', 'Edited Posts') . ')';
                }
            }
        } else {
            if (!$append) {
                $description = Yii::t('podium/view', 'New Posts');
            } else {
                $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
            }
        }
        return $description;
    }
public function getDescription ( ) { $ description = Yii :: t ( 'podium/view' , 'No New Posts' ) ; $ append = false ; if ( $ this -> locked ) { $ description = Yii :: t ( 'podium/view' , 'Locked Thread' ) ; $ append = true ; } elseif ( $ this -> pinned ) { $ description = Yii :: t ( 'podium/view' , 'Pinned Thread' ) ; $ append = true ; } elseif ( $ this -> posts >= Podium :: getInstance ( ) -> podiumConfig -> get ( 'hot_minimum' ) ) { $ description = Yii :: t ( 'podium/view' , 'Hot Thread' ) ; $ append = true ; } if ( $ this -> userView ) { if ( $ this -> new_post_at > $ this -> userView -> new_last_seen ) { if ( ! $ append ) { $ description = Yii :: t ( 'podium/view' , 'New Posts' ) ; } else { $ description .= ' (' . Yii :: t ( 'podium/view' , 'New Posts' ) . ')' ; } } elseif ( $ this -> edited_post_at > $ this -> userView -> edited_last_seen ) { if ( ! $ append ) { $ description = Yii :: t ( 'podium/view' , 'Edited Posts' ) ; } else { $ description = ' (' . Yii :: t ( 'podium/view' , 'Edited Posts' ) . ')' ; } } } else { if ( ! $ append ) { $ description = Yii :: t ( 'podium/view' , 'New Posts' ) ; } else { $ description .= ' (' . Yii :: t ( 'podium/view' , 'New Posts' ) . ')' ; } } return $ description ; }
Returns proper description for thread.
@return string
Returns proper description for thread .