* @copyright Copyright (c) 2017 Magic Toolbox . All rights reserved * @license https://www.magictoolbox.com/license/ */ chdir(dirname(__FILE__).'/../blocklayered'); include(dirname(__FILE__).'/../../config/config.inc.php'); include(dirname(__FILE__).'/../../init.php'); /* NOTE: spike for prestashop validator */ if (false) { $smarty = $GLOBALS['smarty']; } $magic360Instance = Module::getInstanceByName('magic360'); if ($magic360Instance && $magic360Instance->active) { $magic360Tool = $magic360Instance->loadTool(); $magic360Filter = 'parseTemplate'.($magic360Tool->type == 'standard' ? 'Standard' : 'Category'); if ($magic360Instance->isSmarty3) { /* Smarty v3 template engine */ $smarty->registerFilter('output', array($magic360Instance, $magic360Filter)); } else { /* Smarty v2 template engine */ $smarty->register_outputfilter(array($magic360Instance, $magic360Filter)); } if (!isset($GLOBALS['magictoolbox']['filters'])) { $GLOBALS['magictoolbox']['filters'] = array(); } $GLOBALS['magictoolbox']['filters']['magic360'] = $magic360Filter; } include(dirname(__FILE__).'/../blocklayered/blocklayered.php'); Context::getContext()->controller->php_self = 'category'; $blockLayered = new BlockLayered(); echo $blockLayered->ajaxCall();