Esempio n. 1
0
 /**
  * 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();
 }
 /**
  * Retrieve the comment form action
  *
  * @return string
  */
 public function getCommentFormAction()
 {
     return parent::getCommentFormAction() . '?is_page=1';
 }