/** * Executes parent::render(), assigns template name and returns it * * @return string */ public function render() { parent::render(); if ($sTpl = $this->getViewParameter("sWidgetType")) { $sTemplateName = 'widget/' . basename($sTpl) . '/categorylist.tpl'; if ($this->getConfig()->getTemplatePath($sTemplateName, $this->isAdmin())) { $this->_sThisTemplate = $sTemplateName; } } return $this->_sThisTemplate; }
/** * Executes parent::render(). * Returns name of template file to render. * * @return string $this->_sThisTemplate current template file name */ public function render() { /** @var toxidCurl $toxid */ $toxid = oxRegistry::get('toxidCurl'); if (!$toxid->getInitialized()) { $toxid->init(oxNew('Toxid_Curl_Smarty_Parser')); } $cmsSnippet = $toxid->getCmsSnippet('content', true, 'toxid-teaser'); parent::render(); $this->_aViewData['content'] = $cmsSnippet; return $this->_sThisTemplate; }
/** * Renders template based on widget type or just use directly passed path of template * * @return string */ public function render() { parent::render(); $sWidgetType = $this->getViewParameter('sWidgetType'); $sListType = $this->getViewParameter('sListType'); if ($sWidgetType && $sListType) { $this->_sTemplate = "widget/" . $sWidgetType . "/" . $sListType . ".tpl"; } $sForceTemplate = $this->getViewParameter('oxwtemplate'); if ($sForceTemplate) { $this->_sTemplate = $sForceTemplate; } return $this->_sTemplate; }
/** * Executes parent::render(). Check if need to hide cookie note. * Returns name of template file to render. * * @return string current template file name */ public function render() { parent::render(); return $this->_sThisTemplate; }
/** * Executes parent::render(). * Returns name of template file to render. * * @return string $this->_sThisTemplate current template file name */ public function render() { $oProduct = $this->getProduct(); parent::render(); $oCategory = oxNew('oxCategory'); // if category parameter is not found, use category from product $sCatId = $this->getViewParameter("cnid"); if (!$sCatId && $oProduct->getCategory()) { $oCategory = $oProduct->getCategory(); } else { $oCategory->load($sCatId); } $this->_setSortingParameters(); $this->setActiveCategory($oCategory); /** * @var $oLocator oxLocator */ $oLocator = oxNew('oxLocator', $this->getListType()); $oLocator->setLocatorData($oProduct, $this); return $this->_sThisTemplate; }