/**
  * 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();
 }
Пример #2
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();
 }
Пример #3
0
 /**
  * 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();
 }