* @copyright 2012-2019 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class ModuleFrontControllerMEP extends ModuleFrontController { public function setTemplate($template, $params = array(), $locale = null) { if (version_compare(_PS_VERSION_, '1.7.0.0', '>=')) { SmartyMEP::registerSmartyFunctions(); $this->context->smarty->assign(array( 'template_path' => $this->getTemplatePath('front/'.$template), 'navigationPipe' => '>', 'use_taxes' => (int)Configuration::get('PS_TAX') )); $template = 'module:'.$this->module->name.'/views/templates/front/base_17.tpl'; } $this->context->smarty->assign( array( 'is_17' => version_compare(_PS_VERSION_, '1.7.0.0', '>=') ) ); parent::setTemplate($template, $params, $locale); } }