コード例 #1
0
 public function getCmsBlockHtml()
 {
     if (parent::isContentMode()) {
         return Mage::helper('adjnav')->wrapProducts(parent::getCmsBlockHtml());
     }
     return parent::getCmsBlockHtml();
 }
コード例 #2
0
 /**
  * Check if category display mode is "Static Block Only"
  * For anchor category with applied filter Static Block Only mode not allowed
  *
  * @return bool
  */
 public function isContentMode()
 {
     $res = parent::isContentMode();
     $category = $this->getCurrentCategory();
     $filters = Mage::helper('adjnav')->getParams();
     if ($res && $category->getIsAnchor() && sizeof($filters) > 0) {
         $res = false;
     }
     return $res;
 }