Initial commit: is_themecore out of the box v4.1.3

This commit is contained in:
Isabelle Anno
2025-11-19 13:17:30 +01:00
committed by Isabelle
commit 5d80babd5a
333 changed files with 33026 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<h3 class="card-header">
<i class="material-icons">{{ icon|default('settings') }}</i> {{ header }}
</h3>

View 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;

View 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;

View 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;

View File

@ -0,0 +1,27 @@
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% block content %}
<div class="row mt-n5">
<div class="col-lg-6 mt-5">
{% include '@Modules/is_themecore/views/templates/back/components/organisms/form.html.twig' with {
'form': general_form,
'form_id': 'settings_general_form',
'form_action': path('is_themecore_module_settings_general_save'),
'card_header': 'General' | trans({}, 'Modules.isthemecore.Admin'),
'cancel_path': 'is_themecore_module_settings'
} %}
</div>
<div class="col-lg-6 mt-5">
{% include '@Modules/is_themecore/views/templates/back/components/organisms/form.html.twig' with {
'form': webp_form,
'form_id': 'settings_webp_form',
'form_action': path('is_themecore_module_settings_webp_save'),
'card_header': 'Webp' | trans({}, 'Modules.isthemecore.Admin'),
'icon_header': 'image',
'cancel_path': 'is_themecore_module_settings'
} %}
</div>
</div>
{% endblock %}

View 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;

View File

@ -0,0 +1,28 @@
{# PrestaShop made some modifications to the way forms are displayed to work well with PrestaShop in order to benefit from those you need to use ui kit as theme#}
{% form_theme form '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% block form_id %}
{{ form_start(form, {attr : {class: 'form', id: form_id}, action: form_action }) }}
<div class="card">
{% include '@Modules/is_themecore/views/templates/back/components/atoms/card-header.html.twig'
with {
'header': card_header,
'icon': icon_header|default('settings')
}
%}
<div class="card-block">
<div class="card-text">
{{ form_widget(form) }}
</div>
</div>
<div class="card-footer">
<div class="d-flex justify-content-end">
<button class="btn btn-primary float-right" id="save-button">
{{ 'Save'|trans({}, 'Admin.Actions') }}
</button>
</div>
</div>
</div>
{{ form_end(form) }}
{% endblock %}

View 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;

View 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;

View 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;

View 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;

View 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;

View 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;

View 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;

View 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;

View File

@ -0,0 +1,38 @@
{include file="module:is_themecore/views/templates/hook/og-data.tpl"}
{include file="module:is_themecore/views/templates/hook/twitter-data.tpl"}
{foreach $jsonData as $jsonElem}
{if $jsonElem|trim}
<script type="application/ld+json">
{$jsonElem nofilter}
</script>
{/if}
{/foreach}
{if $loadPartytown && $partytownScript && $partytownScriptUri}
<script>
if (typeof window.partytown === 'undefined') {
window.partytown = {};
}
window.partytown.forward = [];
window.partytown.lib = {$partytownScriptUri};
{if isset($debugPartytown) && $debugPartytown}
window.partytown.debug = true;
window.partytown.logScriptExecution = true;
window.partytown.logCalls = true;
window.partytown.logGetters = true;
window.partytown.logSetters = true;
window.partytown.logImageRequests = true;
window.partytown.logScriptExecution = true;
window.partytown.logScriptExecution = true;
window.partytown.logSendBeaconRequests = true;
{/if}
</script>
<script>
{$partytownScript nofilter}
</script>
{/if}

View File

@ -0,0 +1,34 @@
<meta property="og:title" content="{$page.meta.title}"/>
{if !empty($page.meta.description)}
<meta property="og:description" content="{$page.meta.description}"/>
{/if}
<meta property="og:type" content="website"/>
<meta property="og:url" content="{$urls.current_url}"/>
<meta property="og:site_name" content="{$shop.name}"/>
{if isset($product) && $page.page_name == 'product'}
<meta property="og:type" content="product"/>
{if $product.images|count > 0}
{foreach from=$product.images item=p_img name="p_img_list"}
<meta property="og:image" content="{$p_img.large.url}"/>
{/foreach}
<meta property="og:image:height" content="{$p_img.large.height}"/>
<meta property="og:image:width" content="{$p_img.large.width}"/>
{/if}
{if $product.show_price}
<meta property="product:price:amount" content="{$product.price_amount}" />
<meta property="product:price:currency" content="{$currency.iso_code}" />
{if $product.has_discount}
<meta property="product:price:standard_amount" content="{$product.regular_price_amount}" />
{/if}
{/if}
{if !empty($product_manufacturer) && $product_manufacturer->name}
<meta property="product:brand" content="{$product_manufacturer->name|escape:'html':'UTF-8'}" />
{/if}
<meta property="og:availability" content="{if $product.quantity_all_versions > 0 || $product.allow_oosp > 0}instock{else}out of stock{/if}" />
{elseif $page.page_name === 'category' && isset($category) && !empty($category.image.large.url)}
<meta property="og:image" content="{$category.image.large.url}"/>
{else}
<meta property="og:image" content="{$shop.logo}"/>
{/if}

View File

@ -0,0 +1,25 @@
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="{$page.meta.title}"/>
{if !empty($page.meta.description)}
<meta property="twitter:description" content="{$page.meta.description}"/>
{/if}
<meta property="twitter:site" content="{$shop.name}"/>
<meta property="twitter:creator" content="{$shop.name}"/>
<meta property="twitter:domain" content="{$urls.current_url}"/>
{if isset($product) && $page.page_name == 'product' && !empty($product.default_image)}
<meta property="twitter:image" content="{$product.default_image.large.url}"/>
{if !empty($page.meta.description)}
<meta property="twitter:image:alt" content="{$page.meta.description}"/>
{/if}
{elseif $page.page_name === 'category' && isset($category) && !empty($category.image.large.url)}
<meta property="twitter:image" content="{$category.image.large.url}"/>
{if !empty($page.meta.description)}
<meta property="twitter:image:alt" content="{$page.meta.description}"/>
{/if}
{else}
<meta property="twitter:image" content="{$shop.logo}"/>
{if !empty($page.meta.description)}
<meta property="twitter:image:alt" content="{$page.meta.description}"/>
{/if}
{/if}

View 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;