示例#1
0
 protected function _beforeToHtml()
 {
     if (!$this->getTemplate()) {
         if ($this->getAFPBlockTypeData('layout') == AW_Featured_Model_Representations_Slider_Layouts::LAYOUT_HORIZONTAL) {
             $this->setTemplate('aw_featured/slider/horizontal.phtml');
         } else {
             $this->setTemplate('aw_featured/slider/vertical.phtml');
         }
     }
     return parent::_beforeToHtml();
 }
示例#2
0
 protected function _beforeToHtml()
 {
     $this->setTemplate('aw_featured/grid/grid.phtml');
     return parent::_beforeToHtml();
 }