/** * Retrieve a string indicating the number of comments * * @param Fishpig_Wordpress_Model_Post $post * @return string */ public function getCommentCountString(Fishpig_Wordpress_Model_Post $post) { if ($post->getCommentCount() == 0) { return $this->__('No Comments'); } else { if ($post->getCommentCount() > 1) { return $this->__('%s Comments', $post->getCommentCount()); } } return $this->__('1 Comment'); }