Esempio n. 1
0
 /**
  * Setup the comments block
  *
  */
 protected function _beforeToHtml()
 {
     if ($commentsBlock = $this->getCommentsBlock()) {
         $commentsBlock->setPost($this->getPost());
     }
     return parent::_beforeToHtml();
 }
Esempio n. 2
0
	/**
	 * 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();
	}
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('wordpress/post/view/comment/form.phtml');
 }