コード例 #1
0
ファイル: Tab.php プロジェクト: TusharKDonda/maruti
 public function _toHtml()
 {
     if (!$this->getConfig('show')) {
         return;
     }
     $pretext = $this->getConfig('productlist_pretext');
     $cms_block_id = $this->getConfig('cmsblock');
     $cms = "";
     if ($cms_block_id) {
         $cms = Mage::getSingleton('core/layout')->createBlock('cms/block')->setBlockId($cms_block_id)->toHtml();
     }
     if ($cms) {
         $this->assign('productlist_pretext', $cms);
     } elseif ($pretext) {
         $pretext = html_entity_decode(base64_decode($pretext));
         $this->setData('productlist_pretext', $pretext);
     }
     return parent::_toHtml();
 }
コード例 #2
0
ファイル: Gridwidget.php プロジェクト: TusharKDonda/maruti
 /**
  * Prepare collection with new products
  *
  * @return Mage_Core_Block_Abstract
  */
 protected function _beforeToHtml()
 {
     $this->setProductCollection($this->_getProductCollection());
     return parent::_beforeToHtml();
 }
コード例 #3
0
ファイル: Carousel.php プロジェクト: TusharKDonda/maruti
 public function _toHtml()
 {
     if (!$this->getConfig('show')) {
         return;
     }
     return parent::_toHtml();
 }