Beispiel #1
0
 /**
  * Return template of New arrivals widget. It depends on widget type:
  * SIDEBAR/CENTER and so on.
  *
  * @return string
  */
 protected function getTemplate()
 {
     $template = parent::getTemplate();
     if ($template == $this->getDefaultTemplate() && self::WIDGET_TYPE_SIDEBAR == $this->getParam(self::PARAM_WIDGET_TYPE)) {
         $template = self::TEMPLATE_SIDEBAR;
     }
     return $template;
 }
Beispiel #2
0
 /**
  * Return template of Bestseller widget. It depends on widget type:
  * SIDEBAR/CENTER and so on.
  *
  * @return string
  */
 protected function getTemplate()
 {
     $template = parent::getTemplate();
     if ($template == $this->getDefaultTemplate() && self::WIDGET_TYPE_SIDEBAR == $this->getParam(self::PARAM_WIDGET_TYPE)) {
         $template = 'common/sidebar_box.tpl';
     }
     return $template;
 }