public function getIcon()
    {
        $icon   = self::ICON_NO_NEW;
        $append = false;

        if ($this->locked) {
            $icon = self::ICON_LOCKED;
            $append = true;
        } elseif ($this->pinned) {
            $icon = self::ICON_PINNED;
            $append = true;
        } elseif ($this->posts >= Podium::getInstance()->podiumConfig->get('hot_minimum')) {
            $icon = self::ICON_HOT;
            $append = true;
        }
        if ($this->userView) {
            if ($this->new_post_at > $this->userView->new_last_seen) {
                if (!$append) {
                    $icon = self::ICON_NEW;
                }
            } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                if (!$append) {
                    $icon = self::ICON_NEW;
                }
            }
        } else {
            if (!$append) {
                $icon = self::ICON_NEW;
            }
        }
        return $icon;
    }
public function getIcon()
    {
        $icon   = self::ICON_NO_NEW;
        $append = false;

        if ($this->locked) {
            $icon = self::ICON_LOCKED;
            $append = true;
        } elseif ($this->pinned) {
            $icon = self::ICON_PINNED;
            $append = true;
        } elseif ($this->posts >= Podium::getInstance()->podiumConfig->get('hot_minimum')) {
            $icon = self::ICON_HOT;
            $append = true;
        }
        if ($this->userView) {
            if ($this->new_post_at > $this->userView->new_last_seen) {
                if (!$append) {
                    $icon = self::ICON_NEW;
                }
            } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                if (!$append) {
                    $icon = self::ICON_NEW;
                }
            }
        } else {
            if (!$append) {
                $icon = self::ICON_NEW;
            }
        }
        return $icon;
    }
public function getIcon ( ) { $ icon = self :: ICON_NO_NEW ; $ append = false ; if ( $ this -> locked ) { $ icon = self :: ICON_LOCKED ; $ append = true ; } elseif ( $ this -> pinned ) { $ icon = self :: ICON_PINNED ; $ append = true ; } elseif ( $ this -> posts >= Podium :: getInstance ( ) -> podiumConfig -> get ( 'hot_minimum' ) ) { $ icon = self :: ICON_HOT ; $ append = true ; } if ( $ this -> userView ) { if ( $ this -> new_post_at > $ this -> userView -> new_last_seen ) { if ( ! $ append ) { $ icon = self :: ICON_NEW ; } } elseif ( $ this -> edited_post_at > $ this -> userView -> edited_last_seen ) { if ( ! $ append ) { $ icon = self :: ICON_NEW ; } } } else { if ( ! $ append ) { $ icon = self :: ICON_NEW ; } } return $ icon ; }
Returns proper icon for thread.
@return string
Returns proper icon for thread .