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:
@@ -0,0 +1,22 @@
|
||||
{**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*}
|
||||
{if isset($CE_PAGE_NOT_FOUND)}
|
||||
{$ce_layout=$layout}
|
||||
{elseif file_exists("{$smarty.const._PS_THEME_DIR_}templates/errors/404.tpl")}
|
||||
{$ce_layout='[1]errors/404.tpl'}
|
||||
{elseif $smarty.const._PARENT_THEME_NAME_}
|
||||
{$ce_layout='parent:errors/404.tpl'}
|
||||
{/if}
|
||||
|
||||
{extends $ce_layout}
|
||||
|
||||
{if isset($CE_PAGE_NOT_FOUND)}
|
||||
{block name='content'}
|
||||
<section id="content">{$CE_PAGE_NOT_FOUND|cefilter}</section>
|
||||
{/block}
|
||||
{/if}
|
||||
@@ -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;
|
||||
@@ -0,0 +1,37 @@
|
||||
{**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*}
|
||||
{$lang = Context::getContext()->language}
|
||||
<!doctype html>
|
||||
<html lang="{$lang->iso_code}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
{if isset($ce_content)}
|
||||
<title>{$ce_content->title}</title>{$content = $ce_content->content|strip_tags|trim|strip}
|
||||
<meta name="description" content="{$content}">
|
||||
{/if}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{if !empty($favicon)}
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="{$smarty.const._PS_IMG_}{$favicon}?{$favicon_update_time}">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{$smarty.const._PS_IMG_}{$favicon}?{$favicon_update_time}">
|
||||
{/if}
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
</style>
|
||||
<script>
|
||||
var baseDir = {json_encode($smarty.const.__PS_BASE_URI__)|cefilter};
|
||||
</script>
|
||||
<!--CE-JS-->
|
||||
</head>
|
||||
<body id="maintenance" class="{if $lang->is_rtl}lang-rtl {/if}lang-{$lang->iso_code} page-maintenance">
|
||||
<main>
|
||||
{$HOOK_MAINTENANCE|cefilter}
|
||||
</main>
|
||||
<!--CE-JS-->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user