Initial commit: is_themecore out of the box v4.1.3
This commit is contained in:
35
is_themecore/controllers/front/ajaxTheme.php
Normal file
35
is_themecore/controllers/front/ajaxTheme.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Oksydan\Module\IsThemeCore\Core\ListingDisplay\ThemeListDisplay;
|
||||
|
||||
class Is_themecoreAjaxThemeModuleFrontController extends ModuleFrontController
|
||||
{
|
||||
public $displayType;
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
$this->displayType = Tools::getValue('displayType');
|
||||
}
|
||||
|
||||
public function initContent()
|
||||
{
|
||||
parent::initContent();
|
||||
|
||||
$themeDisplay = new ThemeListDisplay();
|
||||
|
||||
if ($this->displayType) {
|
||||
$themeDisplay->setDisplay($this->displayType);
|
||||
$this->ajaxRender(json_encode([
|
||||
'hasError' => false,
|
||||
'success' => true,
|
||||
]));
|
||||
} else {
|
||||
$this->ajaxRender(json_encode([
|
||||
'hasError' => true,
|
||||
'success' => false,
|
||||
]));
|
||||
}
|
||||
}
|
||||
}
|
||||
11
is_themecore/controllers/front/index.php
Normal file
11
is_themecore/controllers/front/index.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
11
is_themecore/controllers/index.php
Normal file
11
is_themecore/controllers/index.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user