first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,119 @@
{**
* 2017-2019 Zemez
*
* JX Compare Product
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<div id="modal-compare" class="modal fade{if isset($products) && $products} with-products modal-close-outside{else} modal-close-inside{/if}" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog{if isset($products) && $products} modal-lg{else} modal-sm{/if}" role="document">
<div class="modal-content">
<button type="button" class="close linearicons-cross2" data-dismiss="modal" aria-label="Close" aria-hidden="true"></button>
<div class="modal-content-compare">
{if isset($products) && $products}
<div id="compare-products">
<div class="empty-element">
<div></div>
</div>
{foreach from=$products item='product'}
<div class="compare-product-element" data-id-product="{$product.info.id_product}">
{block name='product_thumbnail'}
<div class="product-thumbnail mb-2">
<a href="{$product.info.url}">
<img
class="img-fluid"
src="{$product.info.cover.bySize.home_default.url}"
alt="{if !empty($product.info.cover.legend)}{$product.info.cover.legend}{else}{$product.info.name|truncate:30:'...'}{/if}"
data-full-size-image-url="{$product.info.cover.large.url}"
>
<a href="#" class="js-compare-button close-product" data-action="remove-product" data-id-product="{$product.info.id_product}"><span class="linearicons-cross2" aria-hidden="true"></span></a>
</a>
{block name='product_flags'}
<ul class="product-flags d-none">
{foreach from=$product.info.flags item=flag}
<li class="product-flag {$flag.type}">{$flag.label}</li>
{/foreach}
</ul>
{/block}
</div>
{/block}
<div class="p-1">
{block name='product_name'}
<h1 class="product-title" itemprop="name"><a href="{$product.info.url}">{$product.info.name|truncate:25:'...'}</a></h1>
{/block}
{block name='product_price_and_shipping'}
{if $product.info.show_price}
<div class="product-price-sm">
{if $product.info.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
<span class="regular-price">{$product.info.regular_price}</span>
{if $product.info.discount_type === 'percentage'}
<span class="discount-product discount-percentage">{$product.info.discount_percentage}</span>
{/if}
{/if}
{hook h='displayProductPriceBlock' product=$product type="before_price"}
<span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
<span itemprop="price" class="price">{$product.info.price}</span>
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
{hook h='displayProductPriceBlock' product=$product type='weight'}
</div>
{/if}
{/block}
</div>
</div>
{/foreach}
</div>
{if $features_fields_value}
<div id="compare-features">
<div class="features-toggle"><span>{l s='Features'}</span><i class="fa fa-caret-right" aria-hidden="true"></i></div>
{foreach from=$features_fields_value[$product.info.id_product] key=name item='value'}
<div class="compare-features-row">
<div class="compare-features-title">{$name}</div>
{foreach from=$products item='product'}
<div class="compare-features-item compare-product-element"
data-id-product="{$product.info.id_product}">{if $features_fields_value[$product.info.id_product][$name]}{$features_fields_value[$product.info.id_product][$name]}{else}-{/if}</div>
{/foreach}
</div>
{/foreach}
{if !(isset($configuration.is_catalog) && $configuration.is_catalog)}
<div class="compare-features-row">
<div class="compare-features-title"></div>
{foreach from=$products item='product'}
<div class="compare-features-item compare-product-element" data-id-product="{$product.info.id_product}">
<a itemprop="url" class="customize btn btn-sm btn-default my-2" href="{$product.info.url}" title="{l s='Customize' d='Shop.Theme.Actions'}">
<span>{l s='More' d='Shop.Theme.Actions'}</span>
</a>
</div>
{/foreach}
</div>
{/if}
</div>
{/if}
{else}
<div class="modal-body"><p class="no-products m-0">{l s='No products to compare'}</p></div>
{/if}
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,29 @@
{**
* 2017-2019 Zemez
*
* JX Compare Product
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<li class="compare-product-element" data-id-product="{$product.info.id_product}">
<div class="product-thumbnail">
<img class="img-fluid" src="{$product.info.cover.small.url}" alt="{$product.info.cover.legend}" />
<a href="#" class="js-compare-button close-product" data-action="remove-product" data-id-product="{$product.info.id_product}"><span aria-hidden="true">&times;</span></a>
</div>
</li>

View File

@@ -0,0 +1,36 @@
{*
* 2017-2019 Zemez
*
* JX Compare Product
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{if isset($products) && $products}
{foreach from=$products item=product name=product}
<li class="compare-product-element" data-id-product="{$product.info.id_product}">
<div class="product-thumbnail">
<img class="img-fluid" src="{$product.info.cover.small.url}" alt="{$product.info.cover.legend}" />
<a href="#" class="js-compare-button close-product" data-action="remove-product" data-id-product="{$product.info.id_product}"><span aria-hidden="true">&times;</span></a>
</div>
</li>
{/foreach}
{else}
<li class="no-products">{l s='No products to compare' mod="tmcompareproduct"}</li>
{/if}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2016 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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,37 @@
{*
* 2017-2019 Zemez
*
* JX Compare Product
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<section id="compare-footer" data-refresh-url="{$jxcompareproduct_url}" data-compare-max="{$jxcompareproduct_max}" data-empty-text="{l s='No products to compare' mod='jxcompareproduct'}"
data-max-alert-message="{l s='Only' mod='jxcompareproduct'} {$jxcompareproduct_max} {l s="products can be compared" mod='jxcompareproduct'}">
<span class="compare-footer-grover">
<i class="linearicons-repeat" aria-hidden="true"></i>
<span class="compare-counter"></span>
</span>
<div class="compare-inner">
<ul id="compare-list-footer"></ul>
<div class="buttons">
<a class="compare-products" title="{l s="Compare" mod="jxcompareproduct"}" href="#">{l s='Compare now' mod='jxcompareproduct'}</a>
<a class="compare-clear" title="{l s="Clear compare" mod="jxcompareproduct"}" href="#">{l s='Remove all' mod='jxcompareproduct'}</a>
</div>
</div>
</section>

View File

@@ -0,0 +1,32 @@
{**
* 2017-2019 Zemez
*
* JX Compare Product
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<div class="compare-header"
data-refresh-url="{$jxcompareproduct_url}"
data-compare-max="{$jxcompareproduct_max}"
data-empty-text="{l s='No products to compare' mod='jxcompareproduct'}"
data-max-alert-message="{l s='Only' mod='jxcompareproduct'} {$jxcompareproduct_max} {l s="products can be compared" mod='jxcompareproduct'}">
<a href="#" class="compare-products">
<i class="linearicons-repeat" aria-hidden="true"></i>
<span>{l s="Compare" mod="jxcompareproduct"}(</span><span class="compare-counter"></span><span>)</span>
</a>
</div>

View File

@@ -0,0 +1,27 @@
{**
* 2017-2019 Zemez
*
* JX Compare Product
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<a class="js-compare-button compare-button" href="#" data-id-product="{$id_product}" data-action="add-product" title="{l s='Add to Compare' mod='jxcompareproduct'}">
<i class="linearicons-repeat" aria-hidden="true"></i>
<span>{l s="Add to compare" mod="jxcompareproduct"}</span>
</a>

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2019 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
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;