51 lines
1.7 KiB
PHP
51 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* 2005-2017 Magic Toolbox
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is licenced under the Software License Agreement.
|
|
* With the purchase or the installation of the software in your application
|
|
* you accept the licence agreement.
|
|
*
|
|
* You must not modify, adapt or create derivative works of this source code
|
|
*
|
|
* @author Magic Toolbox <support@magictoolbox.com>
|
|
* @copyright Copyright (c) 2017 Magic Toolbox <support@magictoolbox.com>. 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();
|