Пример #1
0
	function _toHtml() { 		 
		if( !$this->_show || !$this->getConfig('show') ) return;
		$theme = ($this->getConfig('theme')!="") ? $this->getConfig('theme') : "default";
		// check the source used ?
	 	$this->__renderSlideShowImagegroup();
		$this->assign('config', $this->_config);
		$this->setTemplate($this->_config['template']);				
        return parent::_toHtml();
	}
Пример #2
0
 /**
  * Rendering block content
  *
  * @return string
  */
 function _toHtml()
 {
     /*Verify*/
     if (!$this->_show || !$this->getConfig('show')) {
         return;
     }
     $theme = $this->getConfig('theme') != "" ? $this->getConfig('theme') : "default";
     $list = $this->getListProducts();
     $items = $list->getItems();
     $this->assign('items', $items);
     $theme = $this->getConfig('theme') != "" ? $this->getConfig('theme') : "default";
     $this->_config['template'] = 'lof/slider/' . $theme . '/list_products.phtml';
     // render html
     $this->assign('config', $this->_config);
     $this->setTemplate($this->_config['template']);
     return parent::_toHtml();
 }
Пример #3
0
 function _toHtml()
 {
     if (!$this->_show || !$this->getConfig('show')) {
         return;
     }
     $theme = $this->getConfig('theme') != "" ? $this->getConfig('theme') : "default";
     // check the source used ?
     if ($this->getConfig('source') == 'file') {
         $this->__renderSlideShowImagegroup();
     } else {
         $this->__renderSlideShowImages();
         $this->_config['template'] = 'lof/slider/' . $theme . '/list.phtml';
     }
     // render html
     $this->assign('config', $this->_config);
     $this->setTemplate($this->_config['template']);
     return parent::_toHtml();
 }