/** * Setup the comments block * */ protected function _beforeToHtml() { if ($commentsBlock = $this->getCommentsBlock()) { $commentsBlock->setPost($this->getPost()); } return parent::_beforeToHtml(); }
/** * Setup the pager and comments form blocks * */ protected function _beforeToHtml() { if ($pagerBlock = $this->getPagerBlock()) { $pagerBlock->setCollection($this->getComments()); } if ($commentsFormBlock = $this->getCommentFormBlock()) { $commentsFormBlock->setPost($this->getPost()); } parent::_beforeToHtml(); }
protected function _beforeToHtml() { if ($this->helper('wordpress')->isPluginEnabled('comment-reply-notification')) { if ($options = Mage::helper('wordpress')->getWpOption('commentreplynotification')) { $options = unserialize($options); if (isset($options['mail_notify'])) { if (in_array($options['mail_notify'], array('parent_check', 'parent_uncheck'))) { $this->setCommentReplyNotificationEnabled(true); if ($options['mail_notify'] === 'parent_check') { $this->setCommentReplyNotificationOptInChecked(true); } } } } } return parent::_beforeToHtml(); }