Esempio n. 1
0
<?php

/**
 * Product:     Layered Navigation Pro for Enterprise Edition - 16/08/12
 * Package:     AdjustWare_Nav_10.4.9_10.0.0_557110
 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN
 * Generated:   2013-04-22 06:59:44
 * File path:   app/code/local/AdjustWare/Nav/Block/Homepage.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) {
    ZCDimqpgBahemrDZ('c63e6c94c1b2516841f4aaffa5d6f00b');
    // wrapper for product list on home page
    class AdjustWare_Nav_Block_Homepage extends AdjustWare_Nav_Block_List
    {
        protected function _prepareLayout()
        {
            $staticBlock = $this->getLayout()->createBlock('cms/block', 'adj_nav_homepage')->setBlockId('adj_nav_homepage');
            if ($staticBlock) {
                $this->insert($staticBlock);
            }
            $productsBlock = $this->getLayout()->createBlock('catalog/product_list', 'product_list')->setTemplate('catalog/product/list.phtml');
            //@todo  check gift registry compatibility
            if ($productsBlock) {
                $this->insert($productsBlock);
            }
            return parent::_prepareLayout();
        }
        protected function _toHtml()
        {
            $hlp = Mage::helper('adjnav');
<?php

/**
 * Product:     Layered Navigation Pro for Enterprise Edition - 16/08/12
 * Package:     AdjustWare_Nav_10.4.9_10.0.0_557110
 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN
 * Generated:   2013-04-22 06:59:44
 * File path:   app/code/local/AdjustWare/Nav/Model/Catalog/Layer/Filter/Categorysearch.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) {
    ZCDimqpgBahemrDZ('58b4f61ca877005fd028941e332ea581');
    class AdjustWare_Nav_Model_Catalog_Layer_Filter_Categorysearch extends Mage_Catalog_Model_Layer_Filter_Category
    {
        protected function _getItemsData()
        {
            if (!isset($queryStr)) {
                $queryStr = '';
            }
            $key = $this->getLayer()->getStateKey() . '_SEARCH_SUBCATEGORIES';
            $key .= Mage::helper('adjnav')->getCacheKey('cat');
            $data = $this->getLayer()->getAggregator()->getCacheData($key);
            if (Mage::helper('adjnav')->isSolrEnabled()) {
                if (version_compare(Mage::getVersion(), '1.12.0.0', '>=')) {
                    $facets = $this->getLayer()->getProductCollection()->getFacetedData('category_ids');
                } else {
                    $facets = $this->getLayer()->getProductCollection()->getFacetedData('categories');
                }
            }
            if ($data === null) {
                $category = $this->getCategory();