feat(main): Add base theme: This is the falcon theme out of the box.
This commit is contained in:
BIN
modules/.DS_Store
vendored
Normal file
BIN
modules/.DS_Store
vendored
Normal file
Binary file not shown.
@ -0,0 +1,38 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{if $elements}
|
||||
<div id="block-reassurance">
|
||||
<ul>
|
||||
{foreach from=$elements item=element}
|
||||
<li>
|
||||
<div class="block-reassurance-item">
|
||||
<img src="{$element.image}" alt="{$element.text}">
|
||||
<span class="h6">{$element.text}</span>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
133
modules/contactform/views/templates/widget/contactform.tpl
Normal file
133
modules/contactform/views/templates/widget/contactform.tpl
Normal file
@ -0,0 +1,133 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<section class="contact-form">
|
||||
<form class="card mb-4" action="{$urls.pages.contact}" method="post" {if $contact.allow_file_upload}enctype="multipart/form-data"{/if}>
|
||||
|
||||
<div class="card-header">
|
||||
<p class="h4 card-title mb-0">
|
||||
{l s='Contact us' d='Shop.Theme.Global'}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
{if $notifications}
|
||||
<div class="col-12 alert {if $notifications.nw_error}alert-danger{else}alert-success{/if}">
|
||||
<ul>
|
||||
{foreach $notifications.messages as $notif}
|
||||
<li>{$notif}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !$notifications || $notifications.nw_error}
|
||||
<section class="form-fields">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-control-label">{l s='Subject' d='Shop.Forms.Labels'}</label>
|
||||
<select name="id_contact" class="custom-select">
|
||||
{foreach from=$contact.contacts item=contact_elt}
|
||||
<option value="{$contact_elt.id_contact}">{$contact_elt.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-control-label">{l s='Email address' d='Shop.Forms.Labels'}</label>
|
||||
<input
|
||||
class="form-control"
|
||||
name="from"
|
||||
type="email"
|
||||
value="{$contact.email}"
|
||||
placeholder="{l s='your@email.com' d='Shop.Forms.Help'}"
|
||||
>
|
||||
</div>
|
||||
|
||||
{if $contact.orders}
|
||||
<div class="form-group">
|
||||
<label class="form-control-label">{l s='Order reference' d='Shop.Forms.Labels'}</label>
|
||||
<select name="id_order" class="custom-select">
|
||||
<option value="">{l s='Select reference' d='Shop.Forms.Help'}</option>
|
||||
{foreach from=$contact.orders item=order}
|
||||
<option value="{$order.id_order}">{$order.reference}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
{l s='optional' d='Shop.Forms.Help'}
|
||||
</small>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $contact.allow_file_upload}
|
||||
<div class="form-group">
|
||||
<label class="form-control-label">{l s='Attachment' d='Shop.Forms.Labels'}</label>
|
||||
|
||||
<div class="custom-file">
|
||||
<input name="fileUpload" type="file" class="custom-file-input" id="fileUpload">
|
||||
<label class="custom-file-label" for="fileUpload">{l s='Choose file' d='Shop.Theme.Actions'}</label>
|
||||
</div>
|
||||
<small class="form-text text-muted">
|
||||
{l s='optional' d='Shop.Forms.Help'}
|
||||
</small>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-control-label">{l s='Message' d='Shop.Forms.Labels'}</label>
|
||||
<textarea
|
||||
class="form-control"
|
||||
name="message"
|
||||
placeholder="{l s='How can we help?' d='Shop.Forms.Help'}"
|
||||
rows="5"
|
||||
>{if $contact.message}{$contact.message}{/if}</textarea>
|
||||
</div>
|
||||
|
||||
{if isset($id_module)}
|
||||
<div class="form-group">
|
||||
{hook h='displayGDPRConsent' id_module=$id_module}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</section>
|
||||
|
||||
<footer class="form-footer text-right">
|
||||
<style>
|
||||
input[name=url] {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<input type="text" name="url" value=""/>
|
||||
<input type="hidden" name="token" value="{$token}" />
|
||||
<input class="btn btn-primary d-none d-md-inline-block" type="submit" name="submitMessage" value="{l s='Send' d='Shop.Theme.Actions'}">
|
||||
<input class="btn btn-primary btn-block d-block d-md-none" type="submit" name="submitMessage" value="{l s='Send' d='Shop.Theme.Actions'}">
|
||||
</footer>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</section>
|
||||
34
modules/productcomments/index.php
Normal file
34
modules/productcomments/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
34
modules/productcomments/views/css/index.php
Normal file
34
modules/productcomments/views/css/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
1
modules/productcomments/views/css/productcomments.css
Normal file
1
modules/productcomments/views/css/productcomments.css
Normal file
@ -0,0 +1 @@
|
||||
/* EMPTY */
|
||||
34
modules/productcomments/views/img/index.php
Normal file
34
modules/productcomments/views/img/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
BIN
modules/productcomments/views/img/small_stars.png
Normal file
BIN
modules/productcomments/views/img/small_stars.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
3
modules/productcomments/views/img/star_active.svg
Normal file
3
modules/productcomments/views/img/star_active.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1060" height="1024" viewBox="0 0 1060 1024">
|
||||
<path fill="#f49d72" d="M529.829 0l163.657 337.371 366.629 53.943-265.143 262.4 62.629 370.286-327.771-174.629-327.771 174.629 62.629-370.286-265.143-262.4 366.171-53.943z"></path>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 294 B |
3
modules/productcomments/views/img/star_gray.svg
Normal file
3
modules/productcomments/views/img/star_gray.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1060" height="1024" viewBox="0 0 1060 1024">
|
||||
<path fill="#cacaca" d="M529.829 0l163.657 337.371 366.629 53.943-265.143 262.4 62.629 370.286-327.771-174.629-327.771 174.629 62.629-370.286-265.143-262.4 366.171-53.943z"></path>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 294 B |
BIN
modules/productcomments/views/img/stars.png
Normal file
BIN
modules/productcomments/views/img/stars.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
34
modules/productcomments/views/index.php
Normal file
34
modules/productcomments/views/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
34
modules/productcomments/views/js/index.php
Normal file
34
modules/productcomments/views/js/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
164
modules/productcomments/views/js/jquery.rating.plugin.js
Normal file
164
modules/productcomments/views/js/jquery.rating.plugin.js
Normal file
@ -0,0 +1,164 @@
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
jQuery.fn.rating = function(generalOptions) {
|
||||
const $ratings = $(this);
|
||||
|
||||
$ratings.each(function initRating() {
|
||||
const $ratingComponent = $(this);
|
||||
var options = generalOptions ? generalOptions : {};
|
||||
const ratingAddedClass = 'js-rating-added';
|
||||
if (!options.grade && $ratingComponent.data('grade')) {
|
||||
options.grade = $ratingComponent.data('grade');
|
||||
}
|
||||
if (!options.min && $ratingComponent.data('min')) {
|
||||
options.min = $ratingComponent.data('min');
|
||||
}
|
||||
if (!options.max && $ratingComponent.data('max')) {
|
||||
options.max = $ratingComponent.data('max');
|
||||
}
|
||||
if (!options.input && $ratingComponent.data('input')) {
|
||||
options.input = $ratingComponent.data('input');
|
||||
}
|
||||
var componentOptions = jQuery.extend({
|
||||
grade: null,
|
||||
input: null,
|
||||
min: 1,
|
||||
max: 5,
|
||||
starWidth: 20
|
||||
}, options);
|
||||
|
||||
if ($ratingComponent.hasClass(ratingAddedClass)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const minValue = Math.min(componentOptions.min, componentOptions.max);
|
||||
const maxValue = Math.max(componentOptions.min, componentOptions.max);
|
||||
const ratingValue = Math.min(Math.max(minValue, componentOptions.grade), maxValue);
|
||||
|
||||
$ratingComponent.html('');
|
||||
$ratingComponent.append('<div class="star-content star-empty clearfix"></div>');
|
||||
$ratingComponent.append('<div class="star-content star-full clearfix"></div>');
|
||||
|
||||
const emptyStars = $('.star-empty', this);
|
||||
const fullStars = $('.star-full', this);
|
||||
const emptyStar = $('<div class="star"></div>');
|
||||
const fullStar = $('<div class="star-on"></div>');
|
||||
|
||||
var ratingInput;
|
||||
if (componentOptions.input) {
|
||||
ratingInput = $('<input type="number" name="'+componentOptions.input+'" id="'+componentOptions.input+'" />');
|
||||
ratingInput.val(ratingValue);
|
||||
ratingInput.css('display', 'none');
|
||||
ratingInput.change(displayInteractiveGrade);
|
||||
$ratingComponent.append(ratingInput);
|
||||
initInteractiveGrade();
|
||||
} else {
|
||||
displayGrade(ratingValue);
|
||||
}
|
||||
|
||||
function initInteractiveGrade() {
|
||||
emptyStars.html('');
|
||||
fullStars.html('');
|
||||
var newStar;
|
||||
for (var i = minValue; i <= maxValue; ++i) {
|
||||
newStar = emptyStar.clone();
|
||||
newStar.data('grade', i);
|
||||
newStar.hover(function overStar() {
|
||||
var overIndex = $('.star', fullStars).index($(this));
|
||||
$('.star', fullStars).each(function overStars() {
|
||||
$(this).removeClass('star-on');
|
||||
var starIndex = $('.star', fullStars).index($(this));
|
||||
if (starIndex <= overIndex) {
|
||||
$(this).addClass('star-hover');
|
||||
} else {
|
||||
$(this).removeClass('star-hover');
|
||||
}
|
||||
});
|
||||
});
|
||||
newStar.click(function selectGrade() {
|
||||
var selectedGrade = $(this).data('grade');
|
||||
ratingInput.val(selectedGrade);
|
||||
});
|
||||
fullStars.append(newStar);
|
||||
}
|
||||
|
||||
fullStars.hover(function(){}, displayInteractiveGrade);
|
||||
displayInteractiveGrade();
|
||||
}
|
||||
|
||||
function displayInteractiveGrade() {
|
||||
$('.star', fullStars).each(function displayStar() {
|
||||
var starValue = $(this).data('grade');
|
||||
$(this).removeClass('star-hover');
|
||||
if (starValue <= ratingInput.val()) {
|
||||
$(this).addClass('star-on');
|
||||
} else {
|
||||
$(this).removeClass('star-on');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function displayGrade(grade) {
|
||||
emptyStars.html('');
|
||||
fullStars.html('');
|
||||
var newStar;
|
||||
for (var i = minValue; i <= maxValue; ++i) {
|
||||
if (i <= Math.floor(grade)) {
|
||||
newStar = emptyStar.clone();
|
||||
newStar.css('visibility', 'hidden');
|
||||
emptyStars.append(newStar);
|
||||
fullStars.append(fullStar.clone());
|
||||
} else if (i > Math.ceil(grade)) {
|
||||
newStar = emptyStar.clone();
|
||||
emptyStars.append(newStar.clone());
|
||||
} else {
|
||||
//This the partial star composed of
|
||||
// - one invisible partial empty star
|
||||
// - one visible partial empty star (remaining part)
|
||||
// - one visible partial full star
|
||||
var fullWidth = (grade - i + 1) * componentOptions.starWidth;
|
||||
var emptyWidth = componentOptions.starWidth - fullWidth;
|
||||
newStar = emptyStar.clone();
|
||||
newStar.css('visibility', 'hidden');
|
||||
newStar.css('width', fullWidth);
|
||||
emptyStars.append(newStar);
|
||||
|
||||
newStar = emptyStar.clone();
|
||||
newStar.css('width', emptyWidth);
|
||||
newStar.css('background-position', '0px -'+fullWidth+'px');
|
||||
newStar.css('background-position', '-'+fullWidth+'px 0px');
|
||||
newStar.css('marginLeft', 0);
|
||||
emptyStars.append(newStar);
|
||||
|
||||
fullStar.css('width', fullWidth);
|
||||
fullStars.append(fullStar.clone());
|
||||
}
|
||||
|
||||
$ratingComponent.addClass(ratingAddedClass);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
171
modules/productcomments/views/js/list-comments.js
Normal file
171
modules/productcomments/views/js/list-comments.js
Normal file
@ -0,0 +1,171 @@
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
jQuery(document).ready(function () {
|
||||
const $ = jQuery;
|
||||
const commentsList = $('#product-comments-list');
|
||||
const emptyProductComment = $('#empty-product-comment');
|
||||
const commentsListUrl = commentsList.data('list-comments-url');
|
||||
const updateCommentUsefulnessUrl = commentsList.data('update-comment-usefulness-url');
|
||||
const reportCommentUrl = commentsList.data('report-comment-url');
|
||||
const commentPrototype = commentsList.data('comment-item-prototype');
|
||||
|
||||
emptyProductComment.hide();
|
||||
$('.comments-note .grade-stars').rating();
|
||||
|
||||
prestashop.on('updatedProduct', function() {
|
||||
$('.product-comments-additional-info .grade-stars').rating();
|
||||
})
|
||||
|
||||
document.addEventListener('updateRating', function() {
|
||||
$('.comments-note .grade-stars').rating();
|
||||
});
|
||||
|
||||
const updateCommentPostErrorModal = $('#update-comment-usefulness-post-error');
|
||||
|
||||
const confirmAbuseModal = $('#report-comment-confirmation');
|
||||
const reportCommentPostErrorModal = $('#report-comment-post-error');
|
||||
const reportCommentPostedModal = $('#report-comment-posted');
|
||||
|
||||
function showUpdatePostCommentErrorModal(errorMessage) {
|
||||
$('#update-comment-usefulness-post-error-message').html(errorMessage);
|
||||
updateCommentPostErrorModal.modal('show');
|
||||
}
|
||||
|
||||
function showReportCommentErrorModal(errorMessage) {
|
||||
$('#report-comment-post-error-message').html(errorMessage);
|
||||
reportCommentPostErrorModal.modal('show');
|
||||
}
|
||||
|
||||
function paginateComments(page) {
|
||||
$.get(commentsListUrl, {page: page}, function(jsonResponse) {
|
||||
if (jsonResponse.comments && jsonResponse.comments.length > 0) {
|
||||
populateComments(jsonResponse.comments);
|
||||
if (jsonResponse.comments_nb > jsonResponse.comments_per_page) {
|
||||
$('#product-comments-list-pagination').pagination({
|
||||
currentPage: page,
|
||||
items: jsonResponse.comments_nb,
|
||||
itemsOnPage: jsonResponse.comments_per_page,
|
||||
cssStyle: '',
|
||||
prevText: '<i class="material-icons font-reset align-middle">chevron_left</i>',
|
||||
nextText: '<i class="material-icons font-reset align-middle">chevron_right</i>',
|
||||
useAnchors: false,
|
||||
displayedPages: 2,
|
||||
onPageClick: paginateComments
|
||||
});
|
||||
} else {
|
||||
$('#product-comments-list-pagination').hide();
|
||||
}
|
||||
} else {
|
||||
commentsList.html('');
|
||||
emptyProductComment.show();
|
||||
commentsList.append(emptyProductComment);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function populateComments(comments) {
|
||||
commentsList.html('');
|
||||
comments.forEach(addComment);
|
||||
}
|
||||
|
||||
function addComment(comment) {
|
||||
var commentTemplate = commentPrototype;
|
||||
var customerName = comment.customer_name;
|
||||
if (!customerName) {
|
||||
customerName = comment.firstname+' '+comment.lastname;
|
||||
}
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_ID@/, comment.id_product_comment);
|
||||
commentTemplate = commentTemplate.replace(/@PRODUCT_ID@/, comment.id_product);
|
||||
commentTemplate = commentTemplate.replace(/@CUSTOMER_NAME@/, customerName);
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_DATE@/, comment.date_add);
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_TITLE@/, comment.title);
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_COMMENT@/, comment.content);
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_USEFUL_ADVICES@/, comment.usefulness);
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_NOT_USEFUL_ADVICES@/, (comment.total_usefulness - comment.usefulness));
|
||||
commentTemplate = commentTemplate.replace(/@COMMENT_TOTAL_ADVICES@/, comment.total_usefulness);
|
||||
|
||||
const $comment = $(commentTemplate);
|
||||
$('.grade-stars', $comment).rating({
|
||||
grade: comment.grade
|
||||
});
|
||||
$('.js-useful-review', $comment).click(function(e) {
|
||||
e.preventDefault();
|
||||
updateCommentUsefulness($comment, comment.id_product_comment, 1);
|
||||
});
|
||||
$('.js-not-useful-review', $comment).click(function(e) {
|
||||
e.preventDefault();
|
||||
updateCommentUsefulness($comment, comment.id_product_comment, 0);
|
||||
});
|
||||
$('.js-report-abuse', $comment).click(function(e) {
|
||||
e.preventDefault();
|
||||
confirmCommentAbuse(comment.id_product_comment);
|
||||
});
|
||||
|
||||
commentsList.append($comment);
|
||||
}
|
||||
|
||||
function updateCommentUsefulness($comment, commentId, usefulness) {
|
||||
$.post(updateCommentUsefulnessUrl, {id_product_comment: commentId, usefulness: usefulness}, function(jsonData){
|
||||
if (jsonData) {
|
||||
if (jsonData.success) {
|
||||
$('.js-useful-review-value', $comment).html(jsonData.usefulness);
|
||||
$('.js-not-useful-review-value', $comment).html(jsonData.total_usefulness - jsonData.usefulness);
|
||||
} else {
|
||||
const decodedErrorMessage = $("<div/>").html(jsonData.error).text();
|
||||
showUpdatePostCommentErrorModal(decodedErrorMessage);
|
||||
}
|
||||
} else {
|
||||
showUpdatePostCommentErrorModal(productCommentUpdatePostErrorMessage);
|
||||
}
|
||||
}).fail(function() {
|
||||
showUpdatePostCommentErrorModal(productCommentUpdatePostErrorMessage);
|
||||
});
|
||||
}
|
||||
|
||||
function confirmCommentAbuse(commentId) {
|
||||
confirmAbuseModal.modal('show');
|
||||
confirmAbuseModal.one('modal:confirm', function(event, confirm) {
|
||||
if (!confirm) {
|
||||
return;
|
||||
}
|
||||
$.post(reportCommentUrl, {id_product_comment: commentId}, function(jsonData){
|
||||
if (jsonData) {
|
||||
if (jsonData.success) {
|
||||
reportCommentPostedModal.modal('show');
|
||||
} else {
|
||||
showReportCommentErrorModal(jsonData.error);
|
||||
}
|
||||
} else {
|
||||
showReportCommentErrorModal(productCommentAbuseReportErrorMessage);
|
||||
}
|
||||
}).fail(function() {
|
||||
showReportCommentErrorModal(productCommentAbuseReportErrorMessage);
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
paginateComments(1);
|
||||
});
|
||||
129
modules/productcomments/views/js/post-comment.js
Normal file
129
modules/productcomments/views/js/post-comment.js
Normal file
@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
jQuery(document).ready(function () {
|
||||
const $ = jQuery;
|
||||
$('body').on('click', '.js-post-product-comment', function (event) {
|
||||
event.preventDefault();
|
||||
showPostCommentModal();
|
||||
});
|
||||
|
||||
const postCommentModal = $('#post-product-comment-modal');
|
||||
postCommentModal.on('hidden.bs.modal', function () {
|
||||
postCommentModal.modal('hide');
|
||||
clearPostCommentForm();
|
||||
});
|
||||
|
||||
const commentPostedModal = $('#product-comment-posted-modal');
|
||||
const commentPostErrorModal = $('#product-comment-post-error');
|
||||
|
||||
function showPostCommentModal() {
|
||||
commentPostedModal.modal('hide');
|
||||
commentPostErrorModal.modal('hide');
|
||||
postCommentModal.modal('show');
|
||||
}
|
||||
|
||||
function showCommentPostedModal() {
|
||||
postCommentModal.modal('hide');
|
||||
commentPostErrorModal.modal('hide');
|
||||
clearPostCommentForm();
|
||||
commentPostedModal.modal('show');
|
||||
}
|
||||
|
||||
function showPostErrorModal(errorMessage) {
|
||||
postCommentModal.modal('hide');
|
||||
commentPostedModal.modal('hide');
|
||||
clearPostCommentForm();
|
||||
$('#product-comment-post-error-message').html(errorMessage);
|
||||
commentPostErrorModal.modal('show');
|
||||
}
|
||||
|
||||
function clearPostCommentForm() {
|
||||
$('#post-product-comment-form input[type="text"]').val('');
|
||||
$('#post-product-comment-form input[type="text"]').removeClass('vis-invalid');
|
||||
$('#post-product-comment-form textarea').val('');
|
||||
$('#post-product-comment-form textarea').removeClass('is-invalid');
|
||||
$('#post-product-comment-form .criterion-rating input').val(3).change();
|
||||
}
|
||||
|
||||
function initCommentModal() {
|
||||
$('#post-product-comment-modal .grade-stars').rating();
|
||||
$('body').on('click', '.js-post-product-comment', function (event) {
|
||||
event.preventDefault();
|
||||
showPostCommentModal();
|
||||
});
|
||||
|
||||
$('#post-product-comment-form').submit(submitCommentForm);
|
||||
}
|
||||
|
||||
function submitCommentForm(event) {
|
||||
event.preventDefault();
|
||||
var formData = $(this).serializeArray();
|
||||
if (!validateFormData(formData)) {
|
||||
return;
|
||||
}
|
||||
$.post($(this).attr('action'), $(this).serialize(), function(jsonData) {
|
||||
if (jsonData) {
|
||||
if (jsonData.success) {
|
||||
clearPostCommentForm();
|
||||
showCommentPostedModal();
|
||||
} else {
|
||||
if (jsonData.errors) {
|
||||
var errorList = '<ul>';
|
||||
for (var i = 0; i < jsonData.errors.length; ++i) {
|
||||
errorList += '<li>' + jsonData.errors[i] + '</li>';
|
||||
}
|
||||
errorList += '</ul>';
|
||||
showPostErrorModal(errorList);
|
||||
} else {
|
||||
const decodedErrorMessage = $("<div/>").html(jsonData.error).text();
|
||||
showPostErrorModal(decodedErrorMessage);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
showPostErrorModal(productCommentPostErrorMessage);
|
||||
}
|
||||
}).fail(function() {
|
||||
showPostErrorModal(productCommentPostErrorMessage);
|
||||
});
|
||||
}
|
||||
|
||||
function validateFormData(formData) {
|
||||
var isValid = true;
|
||||
formData.forEach(function(formField) {
|
||||
const fieldSelector = '#post-product-comment-form [name="'+formField.name+'"]';
|
||||
if (!formField.value) {
|
||||
$(fieldSelector).addClass('is-invalid');
|
||||
isValid = false;
|
||||
} else {
|
||||
$(fieldSelector).removeClass('is-invalid');
|
||||
}
|
||||
});
|
||||
|
||||
return isValid;
|
||||
}
|
||||
|
||||
initCommentModal();
|
||||
});
|
||||
151
modules/productcomments/views/js/productListingComments.js
Normal file
151
modules/productcomments/views/js/productListingComments.js
Normal file
@ -0,0 +1,151 @@
|
||||
/**
|
||||
* 2007-2019 PrestaShop SA and Contributors
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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 and Contributors
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
productListingComments.init();
|
||||
productListingComments.load();
|
||||
});
|
||||
|
||||
|
||||
var productListingComments = (function () {
|
||||
|
||||
var data = {
|
||||
productIDs: [],
|
||||
commentsLoadingInProgress: false,
|
||||
ajaxIDsLimit: 50,
|
||||
ajaxUrl: ''
|
||||
}
|
||||
|
||||
var DOMStrings = {
|
||||
productListReviewsContainer: '.product-list-reviews',
|
||||
productListReviewsNumberOfComments: '.comments-nb',
|
||||
productListReviewsStarsContainer: '.grade-stars',
|
||||
productContainer: '.js-product-miniature'
|
||||
};
|
||||
|
||||
var DOMClasses = {
|
||||
inProgress: 'reviews-loading',
|
||||
reviewsLoaded: 'reviews-loaded',
|
||||
hasReviews: 'has-reviews'
|
||||
};
|
||||
|
||||
function setEvents() {
|
||||
prestashop.on('updatedProductList', function() {
|
||||
addProductsIDs();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function setAjaxUrl() {
|
||||
if (data.ajaxUrl !== '')
|
||||
return;
|
||||
|
||||
var url = $(DOMStrings.productListReviewsContainer).first().data('url');
|
||||
data.ajaxUrl = url;
|
||||
}
|
||||
|
||||
function getNewProductsReviewsElements() {
|
||||
var $productListReviews = $(DOMStrings.productContainer)
|
||||
.not('.' + DOMClasses.reviewsLoaded + ', .' + DOMClasses.inProgress)
|
||||
.addClass(DOMClasses.inProgress)
|
||||
.find(DOMStrings.productListReviewsContainer);
|
||||
|
||||
return $productListReviews;
|
||||
}
|
||||
|
||||
function addProductsIDs() {
|
||||
|
||||
var $productsList = getNewProductsReviewsElements(),
|
||||
seenIds = {};
|
||||
|
||||
$productsList.each(function () {
|
||||
var id = $(this).data('id');
|
||||
seenIds[id] = true;
|
||||
});
|
||||
|
||||
|
||||
var IDsArray = Object.keys(seenIds);
|
||||
var prevDataIDs = data.productIDs.splice(0);
|
||||
data.productIDs = prevDataIDs.concat(IDsArray);
|
||||
|
||||
if (!data.commentsLoadingInProgress) {
|
||||
loadProductsData();
|
||||
}
|
||||
}
|
||||
|
||||
function loadProductsData() {
|
||||
if (data.productIDs.length === 0)
|
||||
return;
|
||||
|
||||
data.commentsLoadingInProgress = true;
|
||||
|
||||
var dataIDsCopy = data.productIDs.slice(0);
|
||||
selectedProductIDs = dataIDsCopy.splice(0, data.ajaxIDsLimit);
|
||||
|
||||
|
||||
$.get(data.ajaxUrl, { id_products: selectedProductIDs }, function (jsonData) {
|
||||
if (jsonData) {
|
||||
$.each(jsonData.products, function(i, elem) {
|
||||
var productData = elem;
|
||||
var $productsReviewsContainer = $('.product-list-reviews[data-id="' + productData.id_product + '"]');
|
||||
|
||||
$productsReviewsContainer.each(function () {
|
||||
var $self = $(this);
|
||||
|
||||
if (productData.comments_nb > 0) {
|
||||
$self.find(DOMStrings.productListReviewsStarsContainer).rating({ grade: productData.average_grade, starWidth: 16 });
|
||||
$self.find(DOMStrings.productListReviewsNumberOfComments).text('(' + productData.comments_nb + ')');
|
||||
$self.closest(DOMStrings.productContainer).addClass(DOMClasses.hasReviews);
|
||||
$self.css('visibility', 'visible');
|
||||
}
|
||||
|
||||
$self.closest(DOMStrings.productContainer).addClass(DOMClasses.reviewsLoaded);
|
||||
$self.closest(DOMStrings.productContainer).removeClass(DOMClasses.inProgress);
|
||||
|
||||
});
|
||||
data.productIDs.shift();
|
||||
});
|
||||
|
||||
data.commentsLoadingInProgress = false;
|
||||
if (data.productIDs.length > 0) {
|
||||
loadProductsData();
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
load: function () {
|
||||
addProductsIDs();
|
||||
},
|
||||
init: function () {
|
||||
setAjaxUrl();
|
||||
setEvents();
|
||||
}
|
||||
}
|
||||
})();
|
||||
58
modules/productcomments/views/templates/hook/alert-modal.tpl
Normal file
58
modules/productcomments/views/templates/hook/alert-modal.tpl
Normal file
@ -0,0 +1,58 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{assign var='icon' value=$icon|default:'check_circle'}
|
||||
{assign var='modal_message' value=$modal_message|default:''}
|
||||
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const alertModal = $('#{$modal_id}');
|
||||
alertModal.on('hidden.bs.modal', function () {
|
||||
alertModal.modal('hide');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="{$modal_id}" class="modal fade product-comment-modal" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="h5 modal-title">
|
||||
{$modal_title}
|
||||
</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="{$modal_id}-message">
|
||||
{$modal_message}
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary btn-text" data-dismiss="modal" aria-label="{l s='OK' d='Modules.Productcomments.Shop'}">
|
||||
{l s='OK' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,30 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{if $nb_comments != 0}
|
||||
<div class="comments-note">
|
||||
<div class="grade-stars" data-grade="{$grade}"></div>
|
||||
</div>
|
||||
{/if}
|
||||
@ -0,0 +1,69 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{assign var='icon' value=$icon|default:'check_circle'}
|
||||
{assign var='modal_message' value=$modal_message|default:''}
|
||||
|
||||
<script type="text/javascript">
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const confirmModal = $('#{$modal_id}');
|
||||
confirmModal.on('hidden.bs.modal', function () {
|
||||
confirmModal.modal('hide');
|
||||
confirmModal.trigger('modal:confirm', false);
|
||||
});
|
||||
|
||||
$('.confirm-button', confirmModal).click(function() {
|
||||
confirmModal.trigger('modal:confirm', true);
|
||||
});
|
||||
$('.refuse-button', confirmModal).click(function() {
|
||||
confirmModal.trigger('modal:confirm', false);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="{$modal_id}" class="modal fade product-comment-modal" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title h5">
|
||||
{$modal_title}
|
||||
</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="{$modal_id}-message">
|
||||
{$modal_message}
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary confirm-button btn-block" data-dismiss="modal" aria-label="{l s='Yes' d='Modules.Productcomments.Shop'}">
|
||||
{l s='Yes' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
<button type="button" class="btn btn-text refuse-button btn-block" data-dismiss="modal" aria-label="{l s='No' d='Modules.Productcomments.Shop'}">
|
||||
{l s='No' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,37 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div id="empty-product-comment" class="product-comment-list-item">
|
||||
{if $post_allowed}
|
||||
<div class="text-center">
|
||||
<button class="btn btn-primary js-post-product-comment">
|
||||
<i class="material-icons btn-icon mr-1">edit</i>
|
||||
{l s='Be the first to write your review' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
</div>
|
||||
{else}
|
||||
{l s='No customer reviews for the moment.' d='Modules.Productcomments.Shop'}
|
||||
{/if}
|
||||
</div>
|
||||
34
modules/productcomments/views/templates/hook/index.php
Normal file
34
modules/productcomments/views/templates/hook/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
@ -0,0 +1,105 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
var productCommentPostErrorMessage = '{l s='Sorry, your review cannot be posted.' d='Modules.Productcomments.Shop' js=1}';
|
||||
</script>
|
||||
|
||||
<div id="post-product-comment-modal" class="modal fade product-comment-modal" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title h5">{l s='Write your review' d='Modules.Productcomments.Shop'}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form id="post-product-comment-form" action="{$post_comment_url nofilter}" method="POST">
|
||||
<div class="modal-body">
|
||||
{if $criterions|@count > 0}
|
||||
<ul id="criterions_list">
|
||||
{foreach from=$criterions item='criterion'}
|
||||
<li>
|
||||
<div class="criterion-rating d-flex">
|
||||
<label class="mb-0 mr-1">{$criterion.name|escape:'html':'UTF-8'}:</label>
|
||||
<div
|
||||
class="grade-stars"
|
||||
data-grade="3"
|
||||
data-input="criterion[{$criterion.id_product_comment_criterion}]">
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
<div class="form-group">
|
||||
<label for="comment_title" class="form-label required">{l s='Title' d='Modules.Productcomments.Shop'}</label>
|
||||
<input class="form-control" id="comment_title" name="comment_title" type="text" value=""/>
|
||||
</div>
|
||||
|
||||
{if !$logged}
|
||||
<div class="form-group">
|
||||
<label class="form-label required" for="customer_name">{l s='Your name' d='Modules.Productcomments.Shop'}</label>
|
||||
<input class="form-control" id="customer_name" name="customer_name" type="text" value=""/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label required" for="comment_content">{l s='Review' d='Modules.Productcomments.Shop'}</label>
|
||||
<textarea class="form-control" rows="4" id="comment_content" name="comment_content"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
{l s='Send' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
<button type="button" class="btn btn-text btn-block" data-dismiss="modal" aria-label="{l s='Cancel' d='Modules.Productcomments.Shop'}">
|
||||
{l s='Cancel' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{* Comment posted modal *}
|
||||
{if $moderation_active}
|
||||
{assign var='comment_posted_message' value={l s='Your comment has been submitted and will be available once approved by a moderator.' d='Modules.Productcomments.Shop'}}
|
||||
{else}
|
||||
{assign var='comment_posted_message' value={l s='Your comment has been added!' d='Modules.Productcomments.Shop'}}
|
||||
{/if}
|
||||
{include file='module:productcomments/views/templates/hook/alert-modal.tpl'
|
||||
modal_id='product-comment-posted-modal'
|
||||
modal_title={l s='Review sent' d='Modules.Productcomments.Shop'}
|
||||
modal_message=$comment_posted_message
|
||||
}
|
||||
|
||||
{* Comment post error modal *}
|
||||
{include file='module:productcomments/views/templates/hook/alert-modal.tpl'
|
||||
modal_id='product-comment-post-error'
|
||||
modal_title={l s='Your review cannot be sent' d='Modules.Productcomments.Shop'}
|
||||
icon='error'
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{if $nb_comments != 0}
|
||||
<script type="text/javascript">
|
||||
const $ = jQuery;
|
||||
$('#product-quickview-{$product.id}').insertAfter($('.quickview #product-description-short'));
|
||||
$('#product-quickview-{$product.id} .grade-stars').rating({ grade: {$average_grade} });
|
||||
$('#product-quickview-{$product.id} .comments-nb').html('({$nb_comments})');
|
||||
</script>
|
||||
|
||||
<div id="product-quickview-{$product.id}" class="product-quickview-review">
|
||||
<div class="grade-stars"></div>
|
||||
<div class="comments-nb"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
@ -0,0 +1,47 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{if $nb_comments != 0 || $post_allowed}
|
||||
<div class="product-comments-additional-info d-flex align-items-center">
|
||||
{if $nb_comments == 0}
|
||||
{if $post_allowed}
|
||||
<button class="btn btn-text js-post-product-comment">
|
||||
<i class="material-icons btn-icon">edit</i>
|
||||
{l s='Write your review' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
{/if}
|
||||
{else}
|
||||
{include file='module:productcomments/views/templates/hook/average-grade-stars.tpl' grade=$average_grade}
|
||||
<div class="additional-links">
|
||||
{if $post_allowed}
|
||||
<a class="btn btn-text js-post-product-comment ml-2" href="#product-comments-list-header">
|
||||
<i class="material-icons btn-icon">edit</i>
|
||||
{l s='Write your review' d='Modules.Productcomments.Shop'}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
@ -0,0 +1,61 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="product-comment-list-item pb-4 mb-4 border-bottom" data-product-comment-id="@COMMENT_ID@" data-product-id="@PRODUCT_ID@">
|
||||
<div class="d-flex mb-2 align-items-center">
|
||||
<div class="font-weight-bold">
|
||||
@CUSTOMER_NAME@
|
||||
</div>
|
||||
{* <div class="text-muted font-sm ml-2">
|
||||
@COMMENT_DATE@
|
||||
</div> *}
|
||||
<div class="grade-stars flex-shrink-0 flex-grow-0 ml-auto"></div>
|
||||
</div>
|
||||
|
||||
<div class="comment-content">
|
||||
<p class="h5 mb-3">@COMMENT_TITLE@</p>
|
||||
<p class="font-sm">@COMMENT_COMMENT@</p>
|
||||
<div class="d-flex">
|
||||
{if $usefulness_enabled}
|
||||
<div class="mr-2">
|
||||
<a href="#" role="button" class="btn btn-text btn-sm d-inline-flex align-items-center font-lg js-useful-review">
|
||||
<i class="material-icons text-reset font-reset thumb_up"></i>
|
||||
<span class="js-useful-review-value font-sm ml-1">@COMMENT_USEFUL_ADVICES@</span>
|
||||
</a>
|
||||
<a href="#" role="button" class="btn btn-text btn-sm d-inline-flex align-items-center font-lg js-not-useful-review">
|
||||
<i class="material-icons text-reset font-reset thumb_down"></i>
|
||||
<span class="js-not-useful-review-value font-sm ml-1">@COMMENT_NOT_USEFUL_ADVICES@</span>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="ml-auto">
|
||||
<a href="#" role="button" class="btn btn-text btn-sm d-inline-flex align-items-center font-lg js-report-abuse" title="{l s='Report abuse' d='Modules.Productcomments.Shop'}">
|
||||
<i class="material-icons text-reset font-reset outlined_flag"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,91 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
var productCommentUpdatePostErrorMessage = '{l|escape:'javascript' s='Sorry, your review appreciation cannot be sent.' d='Modules.Productcomments.Shop'}';
|
||||
var productCommentAbuseReportErrorMessage = '{l|escape:'javascript' s='Sorry, your abuse report cannot be sent.' d='Modules.Productcomments.Shop'}';
|
||||
</script>
|
||||
|
||||
<div class="mb-4">
|
||||
<div class="d-flex my-4" id="product-comments-list-header">
|
||||
<div class="comments-nb h3 d-flex align-items-center mr-3 mb-0">
|
||||
<i class="material-icons mr-2">chat</i>
|
||||
{l s='Comments' d='Modules.Productcomments.Shop'} ({$nb_comments})
|
||||
</div>
|
||||
<div class="ml-auto">
|
||||
{include file='module:productcomments/views/templates/hook/average-grade-stars.tpl' grade=$average_grade}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='module:productcomments/views/templates/hook/product-comment-item-prototype.tpl' assign="comment_prototype"}
|
||||
{include file='module:productcomments/views/templates/hook/empty-product-comment.tpl'}
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12"
|
||||
id="product-comments-list"
|
||||
data-list-comments-url="{$list_comments_url nofilter}"
|
||||
data-update-comment-usefulness-url="{$update_comment_usefulness_url nofilter}"
|
||||
data-report-comment-url="{$report_comment_url nofilter}"
|
||||
data-comment-item-prototype="{$comment_prototype}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex-column flex-sm-row d-flex align-items-center" id="product-comments-list-footer">
|
||||
<div id="product-comments-list-pagination" class="comments-pagination ml-sm-auto order-sm-1"></div>
|
||||
{if $post_allowed && $nb_comments != 0}
|
||||
<div class="my-sm-2 mt-3">
|
||||
<button class="btn btn-primary js-post-product-comment">
|
||||
<i class="material-icons btn-icon mr-1">edit</i>
|
||||
{l s='Write your review' d='Modules.Productcomments.Shop'}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{* Appreciation post error modal *}
|
||||
{include file='module:productcomments/views/templates/hook/alert-modal.tpl'
|
||||
modal_id='update-comment-usefulness-post-error'
|
||||
modal_title={l s='Your review appreciation cannot be sent' d='Modules.Productcomments.Shop'}
|
||||
}
|
||||
|
||||
{* Confirm report modal *}
|
||||
{include file='module:productcomments/views/templates/hook/confirm-modal.tpl'
|
||||
modal_id='report-comment-confirmation'
|
||||
modal_title={l s='Report comment' d='Modules.Productcomments.Shop'}
|
||||
modal_message={l s='Are you sure that you want to report this comment?' d='Modules.Productcomments.Shop'}
|
||||
}
|
||||
|
||||
{* Report comment posted modal *}
|
||||
{include file='module:productcomments/views/templates/hook/alert-modal.tpl'
|
||||
modal_id='report-comment-posted'
|
||||
modal_title={l s='Report sent' d='Modules.Productcomments.Shop'}
|
||||
modal_message={l s='Your report has been submitted and will be considered by a moderator.' d='Modules.Productcomments.Shop'}
|
||||
}
|
||||
|
||||
{* Report abuse error modal *}
|
||||
{include file='module:productcomments/views/templates/hook/alert-modal.tpl'
|
||||
modal_id='report-comment-post-error'
|
||||
modal_title={l s='Your report cannot be sent' d='Modules.Productcomments.Shop'}
|
||||
}
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{* Javascript is used to display each product grade, this allows every rating to be udpated as soon as they change *}
|
||||
|
||||
<div class="product-list-reviews" data-id="{$product.id}" data-url="{$product_comment_grade_url nofilter}">
|
||||
<div class="grade-stars small-stars"></div>
|
||||
</div>
|
||||
34
modules/productcomments/views/templates/index.php
Normal file
34
modules/productcomments/views/templates/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
35
modules/ps_advertising/index.php
Normal file
35
modules/ps_advertising/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
28
modules/ps_advertising/ps_advertising.tpl
Normal file
28
modules/ps_advertising/ps_advertising.tpl
Normal file
@ -0,0 +1,28 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="advertising-block">
|
||||
<a href="{$adv_link}" title="{$adv_title}"><img src="{$image}" alt="{$adv_title}" title="{$adv_title}"/></a>
|
||||
</div>
|
||||
33
modules/ps_banner/ps_banner.tpl
Normal file
33
modules/ps_banner/ps_banner.tpl
Normal file
@ -0,0 +1,33 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<a class="banner" href="{$banner_link}" title="{$banner_desc}">
|
||||
{if isset($banner_img)}
|
||||
{images_block webpEnabled=$webpEnabled}
|
||||
<img src="{$banner_img}" alt="{$banner_desc}" title="{$banner_desc}" class="img-fluid">
|
||||
{/images_block}
|
||||
{else}
|
||||
<span>{$banner_desc}</span>
|
||||
{/if}
|
||||
</a>
|
||||
35
modules/ps_bestsellers/views/index.php
Normal file
35
modules/ps_bestsellers/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_bestsellers/views/templates/hook/index.php
Normal file
35
modules/ps_bestsellers/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,36 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/featured-products.tpl"}
|
||||
|
||||
{block name='featured_products_title'}
|
||||
{l s='Best Sellers' d='Shop.Theme.Catalog'}
|
||||
{/block}
|
||||
|
||||
{block name='featured_products_footer'}
|
||||
<a class="btn btn-secondary" href="{$allBestSellers}">
|
||||
{l s='All best sellers' d='Shop.Theme.Catalog'}
|
||||
</a>
|
||||
{/block}
|
||||
35
modules/ps_bestsellers/views/templates/index.php
Normal file
35
modules/ps_bestsellers/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_brandlist/views/index.php
Normal file
35
modules/ps_brandlist/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,46 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="brands-sort dropdown">
|
||||
<button
|
||||
class="btn-unstyle select-title"
|
||||
rel="nofollow"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
{l s='All brands' d='Shop.Theme.Catalog'}
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
{foreach from=$brands item=brand}
|
||||
<a
|
||||
rel="nofollow"
|
||||
href="{$brand['link']}"
|
||||
class="select-list js-search-link"
|
||||
>
|
||||
{$brand['name']}
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,34 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
{foreach from=$brands item=brand name=brand_list}
|
||||
{if $smarty.foreach.brand_list.iteration <= $text_list_nb}
|
||||
<a class="list-group-item list-group-item-action" href="{$brand['link']}" title="{$brand['name']}">
|
||||
{$brand['name']}
|
||||
</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
35
modules/ps_brandlist/views/templates/_partials/index.php
Normal file
35
modules/ps_brandlist/views/templates/_partials/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_brandlist/views/templates/hook/index.php
Normal file
35
modules/ps_brandlist/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
43
modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl
Normal file
43
modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl
Normal file
@ -0,0 +1,43 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/left-column-list-group.tpl"}
|
||||
|
||||
{if $brands}
|
||||
{block name='list_group_extra_class'}mb-md-3 d-none d-md-block{/block}
|
||||
|
||||
{block name='list_group_title'}
|
||||
{if $display_link_brand}<a href="{$page_link}" class="text-reset" title="{l s='Brands' d='Shop.Theme.Catalog'}">{/if}
|
||||
{l s='Brands' d='Shop.Theme.Catalog'}
|
||||
{if $display_link_brand}</a>{/if}
|
||||
{/block}
|
||||
|
||||
{block name='list_group_body'}
|
||||
{include file="module:ps_brandlist/views/templates/_partials/$brand_display_type.tpl" brands=$brands}
|
||||
{/block}
|
||||
|
||||
{else}
|
||||
{block name='list_group'}{/block}
|
||||
{/if}
|
||||
35
modules/ps_brandlist/views/templates/index.php
Normal file
35
modules/ps_brandlist/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_categoryproducts/views/index.php
Normal file
35
modules/ps_categoryproducts/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_categoryproducts/views/templates/hook/index.php
Normal file
35
modules/ps_categoryproducts/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,34 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/featured-products.tpl"}
|
||||
|
||||
{block name='featured_products_title'}
|
||||
{if $products|@count == 1}
|
||||
{l s='%s other product in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'}
|
||||
{else}
|
||||
{l s='%s other products in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'}
|
||||
{/if}
|
||||
{/block}
|
||||
35
modules/ps_categoryproducts/views/templates/index.php
Normal file
35
modules/ps_categoryproducts/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,72 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{function name="categories" nodes=[] depth=0}
|
||||
{strip}
|
||||
{if $nodes|count}
|
||||
<div class="list-group list-group-flush list-group-collapse">
|
||||
{foreach from=$nodes item=node}
|
||||
|
||||
{if $node.children}
|
||||
<div class="list-group-item list-group-item-action-dropdown">
|
||||
<a href="{$node.link}" class="stretched-link text-reset list-group-item-action-dropdown-link">
|
||||
{$node.name}
|
||||
</a>
|
||||
<a href="#exCollapsingNavbar{$node.id}" class="icon-collapse list-group-item-collapse text-reset" data-toggle="collapse">
|
||||
<i class="material-icons d-block"></i>
|
||||
</a>
|
||||
</div>
|
||||
{else}
|
||||
<a href="{$node.link}" class="list-group-item list-group-item-action">
|
||||
{$node.name}
|
||||
</a>
|
||||
{/if}
|
||||
{if $node.children}
|
||||
<div class="collapse" id="exCollapsingNavbar{$node.id}">
|
||||
{categories nodes=$node.children depth=$depth+1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/strip}
|
||||
{/function}
|
||||
|
||||
{extends file="components/left-column-list-group.tpl"}
|
||||
{if $categories.children}
|
||||
{block name='list_group_extra_class'}mb-md-3 d-none d-md-block{/block}
|
||||
|
||||
{block name='list_group_title'}
|
||||
{l s='Categories' d='Shop.Theme.Catalog'}
|
||||
{/block}
|
||||
|
||||
{block name='list_group_body'}
|
||||
{categories nodes=$categories.children}
|
||||
{/block}
|
||||
|
||||
{else}
|
||||
{block name='list_group'}{/block}
|
||||
{/if}
|
||||
|
||||
42
modules/ps_contactinfo/nav.tpl
Normal file
42
modules/ps_contactinfo/nav.tpl
Normal file
@ -0,0 +1,42 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<div id="_desktop_contact_link" class="col">
|
||||
<div id="contact-link">
|
||||
{if $contact_infos.phone}
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l
|
||||
s='Call us: [1]%phone%[/1]'
|
||||
sprintf=[
|
||||
'[1]' => "<a href='tel:{$contact_infos['phone']|replace:' ':''}'>",
|
||||
'[/1]' => '</a>',
|
||||
'%phone%' => $contact_infos.phone
|
||||
]
|
||||
d='Shop.Theme.Global'
|
||||
}
|
||||
{else}
|
||||
<a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
58
modules/ps_contactinfo/ps_contactinfo-rich.tpl
Normal file
58
modules/ps_contactinfo/ps_contactinfo-rich.tpl
Normal file
@ -0,0 +1,58 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="contact-rich mb-4">
|
||||
<h4>{l s='Store information' d='Shop.Theme.Global'}</h4>
|
||||
<div class="block">
|
||||
<div class="data">{$contact_infos.address.formatted nofilter}</div>
|
||||
</div>
|
||||
{if $contact_infos.phone}
|
||||
<hr/>
|
||||
<div class="block">
|
||||
<div class="data">
|
||||
{l s='Call us:' d='Shop.Theme.Global'}<br/>
|
||||
<a href="tel:{$contact_infos.phone}">{$contact_infos.phone}</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $contact_infos.fax}
|
||||
<hr/>
|
||||
<div class="block">
|
||||
<div class="data">
|
||||
{l s='Fax:' d='Shop.Theme.Global'}<br/>
|
||||
{$contact_infos.fax}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $contact_infos.email && $display_email}
|
||||
<hr/>
|
||||
<div class="block">
|
||||
<div class="data email">
|
||||
{l s='Email us:' d='Shop.Theme.Global'}<br/>
|
||||
</div>
|
||||
<a href="mailto:{$contact_infos.email}">{$contact_infos.email}</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
68
modules/ps_contactinfo/ps_contactinfo.tpl
Normal file
68
modules/ps_contactinfo/ps_contactinfo.tpl
Normal file
@ -0,0 +1,68 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="col-md-3 col-12 mb-lg-4">
|
||||
|
||||
<div class="d-flex align-items-center mb-3 justify-content-between position-relative">
|
||||
<span class="h4 mb-0">{l s='Store information' d='Shop.Theme.Global'}</span>
|
||||
<a href="#footer_contact_list" class="icon-collapse stretched-link text-reset d-block d-md-none" data-toggle="collapse">
|
||||
<i class="material-icons d-block"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="collapse d-md-block" id="footer_contact_list">
|
||||
{$contact_infos.address.formatted nofilter}
|
||||
{if $contact_infos.phone}
|
||||
<br>
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l s='Call us: [1]%phone%[/1]'
|
||||
sprintf=[
|
||||
'[1]' => "<a href='tel:{$contact_infos['phone']|replace:' ':''}'>",
|
||||
'[/1]' => '</a>',
|
||||
'%phone%' => $contact_infos.phone
|
||||
]
|
||||
d='Shop.Theme.Global'
|
||||
}
|
||||
{/if}
|
||||
{if $contact_infos.fax}
|
||||
<br>
|
||||
{* [1][/1] is for a HTML tag. *}
|
||||
{l
|
||||
s='Fax: [1]%fax%[/1]'
|
||||
sprintf=[
|
||||
'[1]' => '<span>',
|
||||
'[/1]' => '</span>',
|
||||
'%fax%' => $contact_infos.fax
|
||||
]
|
||||
d='Shop.Theme.Global'
|
||||
}
|
||||
{/if}
|
||||
{if $contact_infos.email && $display_email}
|
||||
<br>
|
||||
{mailto address=$contact_infos.email encode="javascript"}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
35
modules/ps_crossselling/views/index.php
Normal file
35
modules/ps_crossselling/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_crossselling/views/templates/hook/index.php
Normal file
35
modules/ps_crossselling/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,31 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/featured-products.tpl"}
|
||||
|
||||
{block name='featured_products_title'}
|
||||
{l s='Customers who bought this product also bought:' d='Shop.Theme.Catalog'}
|
||||
{/block}
|
||||
|
||||
35
modules/ps_crossselling/views/templates/index.php
Normal file
35
modules/ps_crossselling/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
32
modules/ps_currencyselector/ps_currencyselector.tpl
Normal file
32
modules/ps_currencyselector/ps_currencyselector.tpl
Normal file
@ -0,0 +1,32 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div id="_desktop_currency_selector" class="col-auto flex-grow-0 flex-shrink-0">
|
||||
<select class="js-select-link custom-select" aria-labelledby="currency-selector-label">
|
||||
{foreach from=$currencies item=currency}
|
||||
<option value="{$currency.url}"{if $currency.current} selected{/if}>{$currency.iso_code}{if $currency.sign !== $currency.iso_code} {$currency.sign}{/if}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
89
modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl
Normal file
89
modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl
Normal file
@ -0,0 +1,89 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div id="block_myaccount_infos" class="col-md-3 col-12 mb-lg-4">
|
||||
|
||||
<div class="d-flex align-items-center mb-3 justify-content-between position-relative">
|
||||
<span class="h4 mb-0">{l s='Your account' d='Shop.Theme.Customeraccount'}</span>
|
||||
<a href="#footer_account_list" class="icon-collapse stretched-link text-reset d-block d-md-none" data-toggle="collapse">
|
||||
<i class="material-icons d-block"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="collapse d-md-block" id="footer_account_list">
|
||||
<ul class="links-list">
|
||||
{if $customer.is_logged}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.identity}" title="{l s='Information' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Information' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{if $customer.addresses|count}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.addresses}" title="{l s='Addresses' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Addresses' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{else}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.address}" title="{l s='Add first address' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Add first address' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if !$configuration.is_catalog}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.history}" title="{l s='Orders' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Orders' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if !$configuration.is_catalog}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.order_slip}" title="{l s='Credit slips' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Credit slips' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $configuration.voucher_enabled && !$configuration.is_catalog}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.discount}" title="{l s='Vouchers' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Vouchers' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $configuration.return_enabled && !$configuration.is_catalog}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.order_follow}" title="{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{/if}
|
||||
{hook h='displayMyAccountBlock'}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.actions.logout}" title="{l s='Log me out' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Sign out' d='Shop.Theme.Actions'}</a>
|
||||
</li>
|
||||
{else}
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.guest_tracking}" title="{l s='Order tracking' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Order tracking' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.my_account}" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Sign in' d='Shop.Theme.Actions'}</a>
|
||||
</li>
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{$urls.pages.register}" title="{l s='Create account' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Create account' d='Shop.Theme.Customeraccount'}</a>
|
||||
</li>
|
||||
{hook h='displayMyAccountBlock'}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
40
modules/ps_customersignin/ps_customersignin.tpl
Normal file
40
modules/ps_customersignin/ps_customersignin.tpl
Normal file
@ -0,0 +1,40 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<div class="col flex-grow-0 header-top__block header-top__block--user">
|
||||
<a
|
||||
class="header-top__link"
|
||||
rel="nofollow"
|
||||
href="{$urls.pages.authentication}?back={$urls.current_url|urlencode}"
|
||||
{if $logged}
|
||||
title="{l s='View my customer account' d='Shop.Theme.Customeraccount'}"
|
||||
{else}
|
||||
title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}"
|
||||
{/if}
|
||||
>
|
||||
<div class="header-top__icon-container">
|
||||
<span class="header-top__icon material-icons">person</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
34
modules/ps_emailalerts/js/index.php
Normal file
34
modules/ps_emailalerts/js/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-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;
|
||||
124
modules/ps_emailalerts/js/mailalerts.js
Normal file
124
modules/ps_emailalerts/js/mailalerts.js
Normal file
@ -0,0 +1,124 @@
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#email-alert-modal').on('hidden.bs.modal', function() {
|
||||
resetForm();
|
||||
clearAlert();
|
||||
})
|
||||
|
||||
$(document).on('click', '.js-mailalert-submit', function(e) {
|
||||
e.preventDefault();
|
||||
addNotification(e);
|
||||
});
|
||||
|
||||
$('.js-remove-email-alert').on('click', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var $self = $(this);
|
||||
var ids = $self.attr('rel').replace('js-id-emailalerts-', '');
|
||||
ids = ids.split('-');
|
||||
var id_product_mail_alert = ids[0];
|
||||
var id_product_attribute_mail_alert = ids[1];
|
||||
var $parent = $self.closest('.js-mailalert-product-miniature');
|
||||
|
||||
$.ajax({
|
||||
url: $self.data('url'),
|
||||
type: "POST",
|
||||
data: {
|
||||
'id_product': id_product_mail_alert,
|
||||
'id_product_attribute': id_product_attribute_mail_alert
|
||||
},
|
||||
success: function(result)
|
||||
{
|
||||
if (result == '0')
|
||||
{
|
||||
$parent.fadeOut("normal", function()
|
||||
{
|
||||
$parent.remove();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function resetForm() {
|
||||
$('.js-mailalert-email').val('');
|
||||
$('.js-mailalert [name=psgdpr_consent_checkbox]').prop('checked', false);
|
||||
}
|
||||
|
||||
function addNotification(e) {
|
||||
var $idInputs = $('.js-mailalert-id-input');
|
||||
var $emailInput = $('.js-mailalert-email');
|
||||
var $btn = $(e.currentTarget);
|
||||
var $modal = $('#email-alert-modal');
|
||||
|
||||
$btn.attr('disabled', true);
|
||||
|
||||
clearAlert();
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: $('.js-mailalert').data('url'),
|
||||
data: 'id_product=' + $idInputs[0].value + '&id_product_attribute=' + $idInputs[1].value + '&customer_email=' + $emailInput.val(),
|
||||
success: function (resp) {
|
||||
resp = JSON.parse(resp);
|
||||
var alertType = resp.error ? 'danger' : 'success';
|
||||
|
||||
setAlert(resp.message, alertType);
|
||||
|
||||
|
||||
if (resp.error) {
|
||||
$btn.removeAttr('disabled');
|
||||
} else {
|
||||
setTimeout(function() {
|
||||
$modal.modal('hide');
|
||||
$('.js-mailalert-modal-btn').hide();
|
||||
}, 2500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setAlert(message, type) {
|
||||
var $alertBox = $('.js-mailalert-alert-box');
|
||||
var $alert = $('<div>').addClass('alert');
|
||||
|
||||
if (type == 'success') {
|
||||
$alert.addClass('alert-success');
|
||||
} else if (type == 'danger') {
|
||||
$alert.addClass('alert-danger');
|
||||
}
|
||||
|
||||
$alert.text(message);
|
||||
|
||||
$alertBox.html($alert)
|
||||
}
|
||||
|
||||
function clearAlert() {
|
||||
$('.js-mailalert-alert-box').html('');
|
||||
}
|
||||
});
|
||||
35
modules/ps_emailalerts/views/index.php
Normal file
35
modules/ps_emailalerts/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
34
modules/ps_emailalerts/views/templates/front/index.php
Normal file
34
modules/ps_emailalerts/views/templates/front/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-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;
|
||||
@ -0,0 +1,49 @@
|
||||
{*
|
||||
* 2007-2016 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="card overflow-hidden">
|
||||
<div class="row no-gutters flex-nowrap align-items-center">
|
||||
<div class="col-auto">
|
||||
<a href="{$mailAlert.link}">
|
||||
<img src="{$mailAlert.cover_url}" alt=""/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col p-2">
|
||||
<p class="h6 mb-1">
|
||||
{$mailAlert.name}
|
||||
</p>
|
||||
<span class="font-size-sm">{$mailAlert.attributes_small}</span>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<a href="#"
|
||||
title="{l s='Remove mail alert' d='Modules.Mailalerts.Shop'}"
|
||||
class="js-remove-email-alert btn btn-link"
|
||||
rel="js-id-emailalerts-{$mailAlert.id_product|intval}-{$mailAlert.id_product_attribute|intval}"
|
||||
data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'remove']}">
|
||||
<i class="material-icons">delete</i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,43 @@
|
||||
{*
|
||||
* 2007-2016 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{extends file='customer/page.tpl'}
|
||||
|
||||
{block name='page_title'}
|
||||
{l s='My alerts' d='Modules.Emailalerts.Shop'}
|
||||
{/block}
|
||||
|
||||
{block name='page_content'}
|
||||
{if $mailAlerts}
|
||||
<ul class="row">
|
||||
{foreach from=$mailAlerts item=mailAlert}
|
||||
<li class="col-xl-6 col-12 mb-3 js-mailalert-product-miniature">
|
||||
{include 'module:ps_emailalerts/views/templates/front/mailalerts-account-line.tpl' mailAlert=$mailAlert}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='No mail alerts yet.' d='Modules.Emailalerts.Shop'}</p>
|
||||
{/if}
|
||||
{/block}
|
||||
34
modules/ps_emailalerts/views/templates/hook/index.php
Normal file
34
modules/ps_emailalerts/views/templates/hook/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
@ -0,0 +1,30 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<li class="links-list__elem">
|
||||
<a class="links-list__link" href="{url entity='module' name='ps_emailalerts' controller='account'}" title="{l s='My alerts' d='Shop.Theme.Catalog'}">
|
||||
{l s='My alerts' d='Shop.Theme.Catalog'}
|
||||
</a>
|
||||
</li>
|
||||
32
modules/ps_emailalerts/views/templates/hook/my-account.tpl
Normal file
32
modules/ps_emailalerts/views/templates/hook/my-account.tpl
Normal file
@ -0,0 +1,32 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<a class="col-lg-4 col-md-6 col-sm-6 col-12" id="emailsalerts"
|
||||
href="{url entity='module' name='ps_emailalerts' controller='account'}" title="{l s='My alerts' d='Shop.Theme.Catalog'}">
|
||||
<span class="link-item">
|
||||
<i class="material-icons">announcement</i>
|
||||
{l s='My alerts' d='Shop.Theme.Catalog'}
|
||||
</span>
|
||||
</a>
|
||||
@ -0,0 +1,56 @@
|
||||
{extends file='components/modal.tpl'}
|
||||
|
||||
{block name='modal_extra_attribues'}id="email-alert-modal"{/block}
|
||||
|
||||
{block name='modal_content'}
|
||||
<div class="modal-content js-mailalert" data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}">
|
||||
{block name='modal_header'}
|
||||
<div class="modal-header {block name='modal_header_extra_class'}{/block}">
|
||||
{block name='modal_title'}
|
||||
<h5 class="modal-title">{l s='Notify me when available' d='Modules.Emailalerts.Shop'}</h5>
|
||||
{/block}
|
||||
{block name='modal_close'}
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='modal_body'}
|
||||
<div class="modal-body {block name='modal_body_extra_class'}{/block}">
|
||||
<div class="js-mailalert-alert-box"></div>
|
||||
<p>
|
||||
{l s='Sign up and get notification when product will be available again.' d='Shop.Theme.Catalog'}
|
||||
</p>
|
||||
<div class="form-group">
|
||||
<input
|
||||
class="form-control js-mailalert-email"
|
||||
type="email"
|
||||
placeholder="{l s='your@email.com' d='Modules.Emailalerts.Shop'}"
|
||||
|
||||
{if !empty($customer.email)}
|
||||
value="{$customer.email}"
|
||||
{/if}
|
||||
|
||||
{if $customer.is_logged && !$customer.is_guest}
|
||||
readonly
|
||||
{/if}
|
||||
/>
|
||||
</div>
|
||||
{if isset($id_module)}
|
||||
{hook h='displayGDPRConsent' id_module=$id_module}
|
||||
{/if}
|
||||
<input class="js-mailalert-id-input" type="hidden" value="{$id_product}"/>
|
||||
<input class="js-mailalert-id-input" type="hidden" value="{$id_product_attribute}"/>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='modal_footer'}
|
||||
<div class="modal-footer {block name='modal_footer_extra_class'}{/block}">
|
||||
<button class="btn btn-primary btn-block js-mailalert-submit" type="submit">
|
||||
{l s='Send' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
30
modules/ps_emailalerts/views/templates/hook/product.tpl
Normal file
30
modules/ps_emailalerts/views/templates/hook/product.tpl
Normal file
@ -0,0 +1,30 @@
|
||||
{*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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/afl-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-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<a href="#" rel="nofollow" data-toggle="modal" data-target="#email-alert-modal" class="btn btn-primary js-mailalert-modal-btn">
|
||||
{l s='Notify me when available' d='Modules.Emailalerts.Shop'}
|
||||
</a>
|
||||
|
||||
{include file="module:ps_emailalerts/views/templates/hook/product-modal.tpl"}
|
||||
34
modules/ps_emailalerts/views/templates/index.php
Normal file
34
modules/ps_emailalerts/views/templates/index.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
@ -0,0 +1,67 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="block_newsletter" id="blockEmailSubscription_{$hookName}">
|
||||
<form action="{$urls.current_url}#blockEmailSubscription_{$hookName}" method="post">
|
||||
<div class="row">
|
||||
<p id="block-newsletter-label" class="col-12">{l s='Get our latest news and special sales' d='Shop.Theme.Global'}</p>
|
||||
<div class="col-12 mb-1">
|
||||
<input
|
||||
class="btn btn-primary float-right"
|
||||
name="submitNewsletter"
|
||||
type="submit"
|
||||
value="{l s='OK' d='Shop.Theme.Actions'}"
|
||||
>
|
||||
<div class="input-wrapper">
|
||||
<input
|
||||
name="email"
|
||||
type="email"
|
||||
value="{$value}"
|
||||
class="form-control"
|
||||
placeholder="{l s='Your email address' d='Shop.Forms.Labels'}"
|
||||
aria-labelledby="block-newsletter-label"
|
||||
>
|
||||
</div>
|
||||
<input type="hidden" name="blockHookName" value="{$hookName}" />
|
||||
<input type="hidden" name="action" value="0">
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
{if !empty($conditions)}
|
||||
<p>{$conditions}</p>
|
||||
{/if}
|
||||
{if $msg}
|
||||
<p class="alert {if $nw_error}alert-danger{else}alert-success{/if}">
|
||||
{$msg}
|
||||
</p>
|
||||
{/if}
|
||||
{hook h='displayNewsletterRegistration'}
|
||||
{if isset($id_module)}
|
||||
{hook h='displayGDPRConsent' id_module=$id_module}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -0,0 +1,74 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="block_newsletter col-lg-8 col-md-12 col-sm-12" id="blockEmailSubscription_{$hookName}">
|
||||
<div class="row">
|
||||
<p id="block-newsletter-label" class="col-md-5 col-12">{l s='Get our latest news and special sales' d='Shop.Theme.Global'}</p>
|
||||
<div class="col-md-7 col-12">
|
||||
<form action="{$urls.current_url}#blockEmailSubscription_{$hookName}" method="post">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="input-group js-parent-focus">
|
||||
<input
|
||||
name="email"
|
||||
type="email"
|
||||
value="{$value}"
|
||||
class="form-control js-child-focus"
|
||||
placeholder="{l s='Your email address' d='Shop.Forms.Labels'}"
|
||||
aria-labelledby="block-newsletter-label"
|
||||
required
|
||||
>
|
||||
<div class="input-group-append">
|
||||
<input
|
||||
class="btn btn-primary"
|
||||
name="submitNewsletter"
|
||||
type="submit"
|
||||
value="{l s='Subscribe' d='Shop.Theme.Actions'}"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="blockHookName" value="{$hookName}" />
|
||||
<input type="hidden" name="action" value="0">
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
{if $conditions}
|
||||
<small class="form-text text-muted">{$conditions nofilter}</small>
|
||||
{/if}
|
||||
{if $msg}
|
||||
<p class="alert {if $nw_error}alert-danger{else}alert-success{/if}">
|
||||
{$msg}
|
||||
</p>
|
||||
{/if}
|
||||
{hook h='displayNewsletterRegistration'}
|
||||
{if isset($id_module)}
|
||||
{hook h='displayGDPRConsent' id_module=$id_module}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
36
modules/ps_facetedsearch/ps_facetedsearch.tpl
Normal file
36
modules/ps_facetedsearch/ps_facetedsearch.tpl
Normal file
@ -0,0 +1,36 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{if isset($listing.rendered_facets)}
|
||||
<div id="search_filters_wrapper" class="hidden-sm-down">
|
||||
<div id="search_filter_controls" class="hidden-md-up">
|
||||
<span id="_mobile_search_filters_clear_all"></span>
|
||||
<button class="btn btn-secondary ok">
|
||||
<i class="material-icons rtl-no-flip"></i>
|
||||
{l s='OK' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{$listing.rendered_facets nofilter}
|
||||
</div>
|
||||
{/if}
|
||||
@ -0,0 +1,48 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<section id="js-active-search-filters">
|
||||
{if $activeFilters|count}
|
||||
<div class="card mb-3">
|
||||
<div class="card-header">
|
||||
{block name='active_filters_title'}
|
||||
<p class="h5 card-title mb-0">{l s='Active filters' d='Shop.Theme.Global'}</p>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul class="row m-n1">
|
||||
{foreach from=$activeFilters item="filter"}
|
||||
{block name='active_filters_item'}
|
||||
<li class="col flex-grow-0 flex-shrink-0 p-1">
|
||||
<a class="text-nowrap btn btn-outline-secondary btn-sm js-search-link d-flex align-items-center" href="{$filter.nextEncodedFacetsURL}" rel="nofollow">
|
||||
{l s='%1$s:' d='Shop.Theme.Catalog' sprintf=[$filter.facetLabel]} {$filter.label} <i class="material-icons font-reset ml-1 align-middle"></i>
|
||||
</a>
|
||||
</li>
|
||||
{/block}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
@ -0,0 +1,174 @@
|
||||
{**
|
||||
* 2007-2019 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div id="_desktop_filters">
|
||||
{if isset($displayedFacets) && $displayedFacets|count}
|
||||
<div id="search_filters" class="js-search-filters search-filters card mb-md-3">
|
||||
<div class="card-header d-none d-md-block">
|
||||
{block name='facets_title'}
|
||||
<p class="card-title h5 mb-0">{l s='Filter By' d='Shop.Theme.Actions'}</p>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
{block name='facets_clearall_button'}
|
||||
{if $activeFilters|count}
|
||||
<div class="clear-all-wrapper card-body">
|
||||
<button data-search-url="{$clear_all_link}"
|
||||
class="btn btn-sm btn-block btn-outline-secondary btn-sm js-search-filters-clear-all">
|
||||
<i class="material-icons font-reset mr-1 align-middle"></i>
|
||||
{l s='Clear all' d='Shop.Theme.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{foreach from=$displayedFacets item="facet"}
|
||||
|
||||
{assign var=_expand_id value=10|mt_rand:100000}
|
||||
{assign var=_collapse value=true}
|
||||
{foreach from=$facet.filters item="filter"}
|
||||
{if $filter.active}{assign var=_collapse value=false}{/if}
|
||||
{/foreach}
|
||||
<section class="search-filters__block list-group-item">
|
||||
<div class="search-filters__header d-flex justify-content-between align-items-center mb-0 h5 position-relative">
|
||||
<span class="search-filters__title mb-0">{$facet.label}</span>
|
||||
{if $facet.widgetType != 'slider'}
|
||||
<a href="#facet_{$_expand_id}" class="icon-collapse stretched-link text-reset d-block" data-toggle="collapse"
|
||||
{if !$_collapse} aria-expanded="true" {/if}>
|
||||
<span class="material-icons"></span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if in_array($facet.widgetType, ['radio', 'checkbox'])}
|
||||
{block name='facet_item_other'}
|
||||
<div id="facet_{$_expand_id}" class="search-filters__collapse collapse{if !$_collapse} show{/if}">
|
||||
{foreach from=$facet.filters key=filter_key item="filter"}
|
||||
{if !$filter.displayed}
|
||||
{continue}
|
||||
{/if}
|
||||
<div class="py-1 {if $filter@first}pt-2{/if}">
|
||||
<div
|
||||
class="custom-control custom-{if $facet.multipleSelectionAllowed}checkbox{if isset($filter.properties.color) || isset($filter.properties.texture)}-color{/if}{else}radio{/if}">
|
||||
<input id="facet_input_{$_expand_id}_{$filter_key}" data-search-url="{$filter.nextEncodedFacetsURL}"
|
||||
type="{if $facet.multipleSelectionAllowed}checkbox{else}radio{/if}" class="custom-control-input"
|
||||
{if $filter.active } checked{/if}>
|
||||
<label for="facet_input_{$_expand_id}_{$filter_key}" {if isset($filter.properties.color)}
|
||||
class="custom-control-label custom-control-label-{if Tools::getBrightness($filter.properties.color) > 128}dark{else}bright{/if}"
|
||||
{else} class="custom-control-label"
|
||||
{/if}>
|
||||
{if isset($filter.properties.color)}
|
||||
<span class="custom-control-input-color" style="background-color:{$filter.properties.color}"></span>
|
||||
{elseif isset($filter.properties.texture)}
|
||||
<span class="custom-control-input-color texture"
|
||||
style="background-image:url({$filter.properties.texture})"></span>
|
||||
{/if}
|
||||
{$filter.label}
|
||||
{*{if $filter.magnitude and $show_quantities}*}
|
||||
{*<span class="magnitude">({$filter.magnitude})</span>*}
|
||||
{*{/if}*}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{elseif $facet.widgetType == 'dropdown'}
|
||||
{block name='facet_item_dropdown'}
|
||||
<div id="facet_{$_expand_id}" class="search-filters__collapse collapse{if !$_collapse} show{/if}">
|
||||
<div class="py-1 {if $filter@first}pt-2{/if}">
|
||||
<select class="custom-select" data-action="search-select">
|
||||
{if $_collapse}
|
||||
<option value="">---</option>
|
||||
{/if}
|
||||
{foreach from=$facet.filters item="filter"}
|
||||
<option data-href="{$filter.nextEncodedFacetsURL}" {if $filter.active} selected="selected" {/if}>
|
||||
{$filter.label}
|
||||
{if $filter.magnitude and $show_quantities}
|
||||
({$filter.magnitude})
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{elseif $facet.widgetType == 'slider'}
|
||||
{block name='facet_item_slider'}
|
||||
{foreach from=$facet.filters item="filter"}
|
||||
|
||||
<div class="py-1 {if $filter@first}pt-2{/if}">
|
||||
<div id="facet_{$_expand_id}" class="search-filters__slider">
|
||||
<div class="js-input-range-slider-container">
|
||||
<div class="js-range-slider mt-1" data-slider-min="{$facet.properties.min}"
|
||||
data-slider-max="{$facet.properties.max}" data-slider-id="{$_expand_id}"
|
||||
data-slider-values="{$filter.value|@json_encode}" data-slider-unit="{$facet.properties.unit}"
|
||||
data-slider-label="{$facet.label}"
|
||||
data-slider-specifications="{$facet.properties.specifications|@json_encode}"
|
||||
data-slider-encoded-url="{$filter.nextEncodedFacetsURL}" id="slider-range_{$_expand_id}"></div>
|
||||
<div class="d-flex mt-3 mx-n2">
|
||||
<div class="px-2 search-filters__input-group">
|
||||
<input
|
||||
class="js-input-range-slider form-control form-control-sm text-center search-filters__input"
|
||||
type="text"
|
||||
{if $facet.filters.0.value}
|
||||
value="{$facet.filters.0.value.0}"
|
||||
{else}
|
||||
value="{$facet.properties.min}"
|
||||
{/if}
|
||||
data-unit="{$facet.properties.unit}"
|
||||
data-action="range-from"
|
||||
>
|
||||
</div>
|
||||
<div class="px-2 ml-auto search-filters__input-group">
|
||||
<input
|
||||
class="js-input-range-slider form-control form-control-sm text-center search-filters__input"
|
||||
type="text"
|
||||
{if $facet.filters.0.value}
|
||||
value="{$facet.filters.0.value.1}"
|
||||
{else}
|
||||
value="{$facet.properties.max}"
|
||||
{/if}
|
||||
data-unit="{$facet.properties.unit}"
|
||||
data-action="range-to"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/block}
|
||||
{/if}
|
||||
</section>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
@ -0,0 +1,36 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/featured-products.tpl"}
|
||||
|
||||
{block name='featured_products_title'}
|
||||
{l s='Popular Products' d='Shop.Theme.Catalog'}
|
||||
{/block}
|
||||
|
||||
{block name='featured_products_footer'}
|
||||
<a class="btn btn-secondary" href="{$allProductsLink}">
|
||||
{l s='All products' d='Shop.Theme.Catalog'}
|
||||
</a>
|
||||
{/block}
|
||||
59
modules/ps_imageslider/views/templates/hook/slider.tpl
Normal file
59
modules/ps_imageslider/views/templates/hook/slider.tpl
Normal file
@ -0,0 +1,59 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{if $homeslider.slides}
|
||||
<div id="carousel" data-ride="carousel" class="carousel slide" data-interval="{$homeslider.speed}" data-wrap="{(string)$homeslider.wrap}" data-pause="{$homeslider.pause}" data-touch="true">
|
||||
<ol class="carousel-indicators">
|
||||
{foreach from=$homeslider.slides item=slide key=idxSlide name='homeslider'}
|
||||
<li data-target="#carousel" data-slide-to="{$idxSlide}"{if $idxSlide == 0} class="active"{/if}></li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
<ul class="carousel-inner" role="listbox">
|
||||
{foreach from=$homeslider.slides item=slide name='homeslider'}
|
||||
<li class="carousel-item {if $smarty.foreach.homeslider.first}active{/if}" role="option" aria-hidden="{if $smarty.foreach.homeslider.first}false{else}true{/if}">
|
||||
<a href="{$slide.url}">
|
||||
<figure>
|
||||
<img src="{$slide.image_url}" alt="{$slide.legend|escape}" loading="lazy">
|
||||
{if $slide.title || $slide.description}
|
||||
<figcaption class="caption">
|
||||
<h2 class="display-1 text-uppercase">{$slide.title}</h2>
|
||||
<div class="caption-description">{$slide.description nofilter}</div>
|
||||
</figcaption>
|
||||
{/if}
|
||||
</figure>
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<div class="direction" aria-label="{l s='Carousel buttons' d='Shop.Theme.Global'}">
|
||||
<a class="left carousel-control" href="#carousel" role="button" data-slide="prev" aria-label="{l s='Previous' d='Shop.Theme.Global'}">
|
||||
{l s='Previous' d='Shop.Theme.Global'}
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel" role="button" data-slide="next" aria-label="{l s='Next' d='Shop.Theme.Global'}">
|
||||
{l s='Next' d='Shop.Theme.Global'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
31
modules/ps_languageselector/ps_languageselector.tpl
Normal file
31
modules/ps_languageselector/ps_languageselector.tpl
Normal file
@ -0,0 +1,31 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<div id="_desktop_language_selector" class="col-auto flex-grow-0 flex-shrink-0">
|
||||
<select class="js-select-link custom-select" aria-labelledby="language-selector-label">
|
||||
{foreach from=$languages item=language}
|
||||
<option value="{url entity='language' id=$language.id_lang}"{if $language.id_lang == $current_language.id_lang} selected{/if} data-iso-code="{$language.iso_code}">{$language.name_simple}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
@ -0,0 +1,44 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="col-md-2 links wrapper">
|
||||
<h3 class="hidden-sm-down">{l s='Information' d='Modules.Legalcompliance.Shop'}</h3>
|
||||
<div class="title clearfix hidden-md-up" data-target="#footer_eu_about_us_list" data-toggle="collapse">
|
||||
<span class="h3">{l s='Information' d='Modules.Legalcompliance.Shop'}</span>
|
||||
<span class="float-right">
|
||||
<span class="navbar-toggler collapse-icons">
|
||||
<i class="add">add</i>
|
||||
<i class="remove">remove</i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<ul class="collapse" id="footer_eu_about_us_list">
|
||||
{foreach from=$cms_links item=cms_link}
|
||||
<li>
|
||||
<a href="{$cms_link.link}" class="cms-page-link" title="{$cms_link.description|default:''}" id="{$cms_link.id}"> {$cms_link.title} </a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
@ -0,0 +1,28 @@
|
||||
{foreach $linkBlocks as $linkBlock}
|
||||
<div class="mb-4">
|
||||
{assign var=_expand_id value=10|mt_rand:100000}
|
||||
<div class="d-flex align-items-center mb-3 justify-content-between position-relative">
|
||||
<span class="h4 mb-0">{$linkBlock.title}</span>
|
||||
<a href="#footer_sub_menu_{$_expand_id}" class="icon-collapse stretched-link text-reset d-block d-md-none" data-toggle="collapse">
|
||||
<i class="material-icons d-block"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div id="footer_sub_menu_{$_expand_id}" class="collapse d-md-block">
|
||||
<ul class="links-list">
|
||||
{foreach $linkBlock.links as $link}
|
||||
<li class="links-list__elem">
|
||||
<a
|
||||
id="{$link.id}-{$linkBlock.id}"
|
||||
class="{$link.class} links-list__link"
|
||||
href="{$link.url}"
|
||||
title="{$link.description}"
|
||||
{if !empty($link.target)} target="{$link.target}" {/if}
|
||||
>
|
||||
{$link.title}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
53
modules/ps_linklist/views/templates/hook/linkblock.tpl
Normal file
53
modules/ps_linklist/views/templates/hook/linkblock.tpl
Normal file
@ -0,0 +1,53 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{foreach $linkBlocks as $linkBlock}
|
||||
<div class="col-md-3 col-12 mb-lg-4">
|
||||
{assign var=_expand_id value=10|mt_rand:100000}
|
||||
<div class="d-flex align-items-center mb-3 justify-content-between position-relative">
|
||||
<span class="h4 mb-0">{$linkBlock.title}</span>
|
||||
<a href="#footer_sub_menu_{$_expand_id}" class="icon-collapse stretched-link text-reset d-block d-md-none" data-toggle="collapse">
|
||||
<i class="material-icons d-block"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div id="footer_sub_menu_{$_expand_id}" class="collapse d-md-block">
|
||||
<ul class="links-list">
|
||||
{foreach $linkBlock.links as $link}
|
||||
<li class="links-list__elem">
|
||||
<a
|
||||
id="{$link.id}-{$linkBlock.id}"
|
||||
class="{$link.class} links-list__link"
|
||||
href="{$link.url}"
|
||||
title="{$link.description}"
|
||||
{if !empty($link.target)} target="{$link.target}" {/if}
|
||||
>
|
||||
{$link.title}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
54
modules/ps_mainmenu/ps_mainmenu.tpl
Normal file
54
modules/ps_mainmenu/ps_mainmenu.tpl
Normal file
@ -0,0 +1,54 @@
|
||||
{assign var=_counter value=0}
|
||||
{function name="menu" nodes=[] depth=0 parent=null}
|
||||
{if $nodes|count}
|
||||
<ul {if $depth === 0}class="main-menu__dropdown js-main-menu h-100" role="navigation"{else} class="main-menu__list main-menu__list--{$depth}"{/if} data-depth="{$depth}">
|
||||
{foreach from=$nodes item=node}
|
||||
{if $node.children|count}
|
||||
{assign var=_expand_id value=10|mt_rand:100000}
|
||||
{/if}
|
||||
<li class="h-100 main-menu__item--{$depth} {$node.type} main-menu__item {if $depth === 0}main-menu__item--top{else}main-menu__item--sub{/if}{if $node.current} main-menu__item--current{/if}"
|
||||
id="{$node.page_identifier}" {if $node.children|count}aria-haspopup="true" aria-expanded="false"
|
||||
aria-owns="top_sub_menu_{$_expand_id}" aria-controls="top_sub_menu_{$_expand_id}"{/if}>
|
||||
{assign var=_counter value=$_counter+1}
|
||||
|
||||
{if $node.children|count}
|
||||
<div class="main-menu__item-header">
|
||||
{/if}
|
||||
<a
|
||||
class="d-md-flex w-100 h-100 main-menu__item-link {if $depth === 0}main-menu__item-link--top{else}main-menu__item-link--sub main-menu__item-link--{$depth}{/if} {if $node.children|count}main-menu__item-link--hassubmenu{else}main-menu__item-link--nosubmenu{/if}"
|
||||
href="{$node.url}" data-depth="{$depth}"
|
||||
{if $node.open_in_new_window} target="_blank" {/if}
|
||||
>
|
||||
<span class="align-self-center">{$node.label}</span>
|
||||
</a>
|
||||
{if $node.children|count}
|
||||
{* Cannot use page identifier as we can have the same page several times *}
|
||||
{assign var=_expand_id value=10|mt_rand:100000}
|
||||
<span class="d-block d-md-none">
|
||||
<span data-target="#top_sub_menu_{$_expand_id}" data-toggle="collapse"
|
||||
class="d-block navbar-toggler icon-collapse">
|
||||
<i class="material-icons"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $node.children|count}
|
||||
<div class="{if $depth === 0}main-menu__sub {/if} collapse d-md-block" data-collapse-hide-mobile
|
||||
id="top_sub_menu_{$_expand_id}" role="group" aria-labelledby="{$node.page_identifier}"
|
||||
aria-expanded="false" aria-hidden="true">
|
||||
<div {if $depth === 0}class="menu-sub__content"{/if}>
|
||||
{menu nodes=$node.children depth=$node.depth parent=$node}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/function}
|
||||
|
||||
<div class="d-none d-md-block col-12 header-top__block header-top__block--menu mt-1">
|
||||
<div class="main-menu" id="_desktop_top_menu">
|
||||
{menu nodes=$menu.children}
|
||||
</div>
|
||||
</div>
|
||||
35
modules/ps_newproducts/views/index.php
Normal file
35
modules/ps_newproducts/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_newproducts/views/templates/hook/index.php
Normal file
35
modules/ps_newproducts/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,36 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/featured-products.tpl"}
|
||||
|
||||
{block name='featured_products_title'}
|
||||
{l s='New products' d='Shop.Theme.Catalog'}
|
||||
{/block}
|
||||
|
||||
{block name='featured_products_footer'}
|
||||
<a class="btn btn-secondary" href="{$allNewProductsLink}">
|
||||
{l s='All products' d='Shop.Theme.Catalog'}
|
||||
</a>
|
||||
{/block}
|
||||
35
modules/ps_newproducts/views/templates/index.php
Normal file
35
modules/ps_newproducts/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_productinfo/views/index.php
Normal file
35
modules/ps_productinfo/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_productinfo/views/templates/hook/index.php
Normal file
35
modules/ps_productinfo/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,43 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
<div class="js-productinfo mt-1">
|
||||
{if isset($vars_nb_people)}
|
||||
<p>
|
||||
{if $vars_nb_people['%nb_people%'] == 1}
|
||||
{l s='1 person is currently watching this product.' d='Shop.Theme.Catalog'}
|
||||
{else}
|
||||
{l s='%nb_people% people are currently watching this product.' sprintf=$vars_nb_people d='Shop.Theme.Catalog'}
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{if isset($vars_date_last_order)}
|
||||
<p>{l s='Last time this product was bought: %date_last_order%' sprintf=$vars_date_last_order d='Shop.Theme.Catalog'}</p>
|
||||
{/if}
|
||||
|
||||
{if isset($vars_date_last_cart)}
|
||||
<p>{l s='Last time this product was added to a cart: %date_last_cart%' sprintf=$vars_date_last_cart d='Shop.Theme.Catalog'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
35
modules/ps_productinfo/views/templates/index.php
Normal file
35
modules/ps_productinfo/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_rssfeed/views/index.php
Normal file
35
modules/ps_rssfeed/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_rssfeed/views/templates/hook/index.php
Normal file
35
modules/ps_rssfeed/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
39
modules/ps_rssfeed/views/templates/hook/ps_rssfeed.tpl
Normal file
39
modules/ps_rssfeed/views/templates/hook/ps_rssfeed.tpl
Normal file
@ -0,0 +1,39 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<div class="block-contact col-md-2 links wrapper">
|
||||
<h3 class="h3 hidden-sm-down">{$title}</h3>
|
||||
<div>
|
||||
{if $rss_links}
|
||||
<ul>
|
||||
{foreach from=$rss_links item='rss_link'}
|
||||
<li><a href="{$rss_link['link']}" title="{$rss_link['title']}" target="_blank">{$rss_link['title']}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<p>{l s='No RSS feed added' d='Shop.Theme.Catalog'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
35
modules/ps_rssfeed/views/templates/index.php
Normal file
35
modules/ps_rssfeed/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
@ -0,0 +1,49 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{block name='social_sharing'}
|
||||
{if $social_share_links}
|
||||
<div class="social-sharing my-3">
|
||||
<p class="h6">{l s='Share' d='Shop.Theme.Actions'}</p>
|
||||
<ul class="mb-0 row">
|
||||
{foreach from=$social_share_links item='social_share_link'}
|
||||
<li class="col flex-grow-0 flex-shrink-0 mb-2">
|
||||
<a
|
||||
href="{$social_share_link.url}"
|
||||
title="{$social_share_link.label}"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="btn btn-light p-2 rounded-circle btn-lg">
|
||||
<span class="icon icon-{$social_share_link.class} d-block"></span>
|
||||
<div class="sr-only">
|
||||
{$social_share_link.label}
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
41
modules/ps_socialfollow/ps_socialfollow.tpl
Normal file
41
modules/ps_socialfollow/ps_socialfollow.tpl
Normal file
@ -0,0 +1,41 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{block name='block_social'}
|
||||
<div class="block-social col-lg-4 col-md-12 col-sm-12">
|
||||
<ul class="mb-0 row">
|
||||
{foreach from=$social_links item='social_link'}
|
||||
<li class="col flex-grow-0 flex-shrink-0 mb-2">
|
||||
<a href="{$social_link.url}" rel="noopener noreferrer" title="{$social_link.label}" target="_blank" class="btn btn-light p-2 rounded-circle btn-lg">
|
||||
<span class="icon icon-{$social_link.class} d-block"></span>
|
||||
<div class="sr-only">
|
||||
{$social_link.label}
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/block}
|
||||
35
modules/ps_specials/views/index.php
Normal file
35
modules/ps_specials/views/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
35
modules/ps_specials/views/templates/hook/index.php
Normal file
35
modules/ps_specials/views/templates/hook/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
36
modules/ps_specials/views/templates/hook/ps_specials.tpl
Normal file
36
modules/ps_specials/views/templates/hook/ps_specials.tpl
Normal file
@ -0,0 +1,36 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{extends file="components/featured-products.tpl"}
|
||||
|
||||
{block name='featured_products_title'}
|
||||
{l s='On sale' d='Shop.Theme.Catalog'}
|
||||
{/block}
|
||||
|
||||
{block name='featured_products_footer'}
|
||||
<a class="btn btn-secondary" href="{$allSpecialProductsLink}">
|
||||
{l s='All sale products' d='Shop.Theme.Catalog'}
|
||||
</a>
|
||||
{/block}
|
||||
35
modules/ps_specials/views/templates/index.php
Normal file
35
modules/ps_specials/views/templates/index.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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 https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
|
||||
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;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user