public function display($file, $template, $cacheId = null, $compileId = null) { require_once dirname(__FILE__) . '../../../../modules/designerpreview/defines.inc.php'; // turn off cache for PS base theme & preview - troubles with include files, capture, assign smarty variables in php //if (isPreviewTheme()) $cacheId = null; return parent::display($file, $template, $cacheId, $compileId); }
public function display($file, $template, $cache_id = null, $compile_id = null) { $result = parent::display($file, $template, $cache_id, $compile_id); $ip = Configuration::get('witm_config'); $ip_array = explode(',', $ip); if (!in_array(Tools::getRemoteAddr(), $ip_array) && !in_array('*', $ip_array)) { return $result; } return '<div class="div_infos_tpl"><span class="infos_tpl">TPL<span class="file_template">FILE : ' . $file . '<br/>TEMPLATE : ' . $template . '</span></span>' . $result . '</div>'; }