public function _toHtml() { if (!$this->_brandHelper->getConfig('general_settings/enable')) { return; } $carousel_layout = $this->getConfig('carousel_layout'); if ($carousel_layout == 'owl_carousel') { $this->setTemplate('widget/brand_list_owl.phtml'); } else { $this->setTemplate('widget/brand_list_bootstrap.phtml'); } if (($template = $this->getConfig('template')) != '') { $this->setTemplate($template); } return parent::_toHtml(); }