*/ class Fishpig_Wordpress_Block_Feed_Home extends Fishpig_Wordpress_Block_Feed_Abstract { /** * Retrieve a collection of posts for the feed * * @return Fishpig_Wordpress_Model_Mysql4_Post_Collection */ public function getPosts() { $collection = Mage::getResourceModel('wordpress/post_collection') ->addIsPublishedFilter() ->setOrderByPostDate() ->setPageSize(Mage::helper('wordpress')->getWpOption('posts_per_rss', 10)); return $collection; } /** * Retrieve the feed URL * * @return string */ public function getFeedUrl() { return Mage::helper('wordpress')->getUrl('feed'); } /** * Determine whether to display the excerpt or full content * * @return bool */ public function displayExceprt() { return Mage::helper('wordpress')->getWpOption('rss_use_excerpt'); } }