Add Creative Elements templates and update index files
- Introduced new templates for catalog, checkout, contact, and error pages. - Implemented caching headers and redirection in index.php files across various directories. - Enhanced product and layout templates for better integration with Creative Elements. - Added backoffice header styles and scripts for improved UI/UX in the admin panel.
This commit is contained in:
28
modules/creativeelements/override/classes/CMSCategory.php
Normal file
28
modules/creativeelements/override/classes/CMSCategory.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
defined('_PS_VERSION_') or die;
|
||||
|
||||
class CMSCategory extends CMSCategoryCore
|
||||
{
|
||||
const CE_OVERRIDE = true;
|
||||
|
||||
public function __construct($id = null, $idLang = null)
|
||||
{
|
||||
parent::__construct($id, $idLang);
|
||||
|
||||
$ctrl = Context::getContext()->controller;
|
||||
if ($ctrl instanceof CmsController && !CmsController::$initialized && !$this->active && Tools::getIsset('id_employee') && Tools::getIsset('adtoken')) {
|
||||
$tab = 'AdminCmsContent';
|
||||
if (Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) Tools::getValue('id_employee')) == Tools::getValue('adtoken')) {
|
||||
$this->active = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
modules/creativeelements/override/classes/Category.php
Normal file
28
modules/creativeelements/override/classes/Category.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
defined('_PS_VERSION_') or die;
|
||||
|
||||
class Category extends CategoryCore
|
||||
{
|
||||
const CE_OVERRIDE = true;
|
||||
|
||||
public function __construct($idCategory = null, $idLang = null, $idShop = null)
|
||||
{
|
||||
parent::__construct($idCategory, $idLang, $idShop);
|
||||
|
||||
$ctrl = Context::getContext()->controller;
|
||||
if ($ctrl instanceof CategoryController && !CategoryController::$initialized && !$this->active && Tools::getIsset('id_employee') && Tools::getIsset('adtoken')) {
|
||||
$tab = 'AdminCategories';
|
||||
if (Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) Tools::getValue('id_employee')) == Tools::getValue('adtoken')) {
|
||||
$this->active = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
modules/creativeelements/override/classes/Manufacturer.php
Normal file
28
modules/creativeelements/override/classes/Manufacturer.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
defined('_PS_VERSION_') or die;
|
||||
|
||||
class Manufacturer extends ManufacturerCore
|
||||
{
|
||||
const CE_OVERRIDE = true;
|
||||
|
||||
public function __construct($id = null, $idLang = null)
|
||||
{
|
||||
parent::__construct($id, $idLang);
|
||||
|
||||
$ctrl = Context::getContext()->controller;
|
||||
if ($ctrl instanceof ManufacturerController && !ManufacturerController::$initialized && !$this->active && Tools::getIsset('id_employee') && Tools::getIsset('adtoken')) {
|
||||
$tab = 'AdminManufacturers';
|
||||
if (Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) Tools::getValue('id_employee')) == Tools::getValue('adtoken')) {
|
||||
$this->active = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
modules/creativeelements/override/classes/Supplier.php
Normal file
28
modules/creativeelements/override/classes/Supplier.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
defined('_PS_VERSION_') or die;
|
||||
|
||||
class Supplier extends SupplierCore
|
||||
{
|
||||
const CE_OVERRIDE = true;
|
||||
|
||||
public function __construct($id = null, $idLang = null)
|
||||
{
|
||||
parent::__construct($id, $idLang);
|
||||
|
||||
$ctrl = Context::getContext()->controller;
|
||||
if ($ctrl instanceof SupplierController && !SupplierController::$initialized && !$this->active && Tools::getIsset('id_employee') && Tools::getIsset('adtoken')) {
|
||||
$tab = 'AdminSuppliers';
|
||||
if (Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) Tools::getValue('id_employee')) == Tools::getValue('adtoken')) {
|
||||
$this->active = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
modules/creativeelements/override/classes/index.php
Normal file
8
modules/creativeelements/override/classes/index.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
header('Expires: Thu, 28 Feb 2019 00:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../../../../');
|
||||
die;
|
||||
16
modules/creativeelements/override/index.php
Normal file
16
modules/creativeelements/override/index.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
header('Expires: Thu, 28 Feb 2019 00:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Location: ../../../');
|
||||
die;
|
||||
Reference in New Issue
Block a user