/** * 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; }
/** * 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; }