public function getCmsBlockHtml() { if (parent::isContentMode()) { return Mage::helper('adjnav')->wrapProducts(parent::getCmsBlockHtml()); } return parent::getCmsBlockHtml(); }
/** * 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; }