/** * Inject the comments js * * @return $this */ protected function _prepareLayout() { if (($head = $this->getLayout()->getBlock('head')) !== false) { $head->addJs('fishpig/wordpress/comments.js'); } return parent::_prepareLayout(); }
/** * Inject the comments js * * @return $this */ protected function _prepareLayout() { if (self::$_isJsIncluded == false) { self::$_isJsIncluded = true; if (($head = $this->getLayout()->getBlock('head')) !== false) { $head->addJs('fishpig/wordpress/comments.js'); } } return parent::_prepareLayout(); }
/** * Ensure that the post list handle is set (adds the pager) * * @return $this */ protected function _prepareLayout() { $this->getLayout()->getUpdate()->addHandle('wordpress_post_list'); return parent::_prepareLayout(); }