/** * Renders the block (returns HTML) * * @return string HTML **/ public function render() { $tpl = eZTemplate::factory(); $tpl->setVariable( 'articles', $this->getSolrArticles() ); $blockResult = $tpl->fetch( 'design:presenters/block/congressreport.tpl' ); eZTemplate::resetInstance(); return $blockResult; }
/** * Renders the block (returns HTML) * * @return string HTML **/ public function render() { $tpl = eZTemplate::factory(); $page = $this->fetchStaticPage(); $tpl->setVariable( 'core_content', str_replace( '/bundles/static-data/', '/esibuild/static/', $page->attribute('core_content') ) ); $renderResult = $tpl->fetch( 'design:presenters/block/content.tpl' ); eZTemplate::resetInstance(); return $renderResult; }
/** * @return eZTemplate */ public function tpl() { if(is_null($this->_tpl)) { eZTemplate::resetInstance(); $this->_tpl = eZTemplate::factory(); if (SolrSafeOperatorHelper::featureIsActive('showMedicalNewsDemo') && SolrSafeOperatorHelper::feature('ShowMedicalNewsDemo', 'showDemo')){ $showMedicalNewsDemo = true; }else { $showMedicalNewsDemo = false; } $this->_tpl->setVariable('showMedicalNewsDemo',$showMedicalNewsDemo); $this->_tpl->setVariable('language' , LocaleTool::languageISO639Code()); $this->_tpl->setVariable('application_class' , get_class($this) ); $this->_tpl->setVariable('view_parameters' , $this->_params['UserParameters']); $this->_tpl->setVariable('cluster_identifier', ClusterTool::clusterIdentifier()); $this->_tpl->setVariable('application_url' , $this->applicationName()); $this->_tpl->setVariable('consult' , $this->isConsult); $this->_tpl->setVariable('httpcontext' , array( 'host' => ContextTool::instance()->domain(), )); $environment = new MMEnvironment(); $this->_tpl->setVariable('environment' , $environment->env); $applicationLocalized = CacheApplicationTool::buildLocalizedApplication($this->applicationName()); if (empty($applicationLocalized)) $this->_tpl->setVariable('application_name' , $this->applicationName()); else { $applicationIdentifier = $applicationLocalized->applicationObject->attribute('identifier'); $this->_tpl->setVariable('application_name' , $applicationIdentifier ); $this->_tpl->setVariable('current_localized' , $applicationLocalized ); $this->_tpl->setVariable('current_application' , $applicationLocalized->applicationObject ); } } return $this->_tpl; }
/** * Renders the block (returns HTML) * * @return string HTML **/ public function render() { $tpl = eZTemplate::factory(); $tpl->setVariable( 'articles', $this->getSolrArticles() ); $tpl->setVariable( 'additional_classes', $this->additionalClasses() ); $tpl->setVariable( 'app', $this->applicationObject ); $tpl->setVariable( 'app_localized', $this->applicationLocalized ); $tpl->setVariable( 'app_url_alias', $this->appUrlAlias() ); $tpl->setVariable( 'cluster_identifier', ClusterTool::clusterIdentifier() ); $tpl->setVariable( 'include_app_name', SolrSafeOperatorHelper::clusterIni( 'HomePageSettings', 'ShowApplicationInMoreLink', 'merck.ini' ) ); $tpl->setVariable( 'nb_articles', $this->nbArticles ); $tpl->setVariable( 'publisher_logo', $this->publisherLogo() ); $tpl->setVariable( 'view_mode', $this->viewMode() ); $tpl->setVariable( 'application_url', SolrSafeOperatorHelper::getApplicationUrl($this->applicationObject->attribute('identifier')) ); $tpl->setVariable( 'with_feed', $this->_application->resultHandler->withFeed ); $blockResult = $tpl->fetch( 'design:presenters/block/applist.tpl' ); eZTemplate::resetInstance(); return $blockResult; }