feat(main): Add base theme: This is the falcon theme out of the box.
This is falcon v3.1.2
This commit is contained in:
@ -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>
|
||||
@ -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
falcon/modules/productcomments/views/templates/index.php
Normal file
34
falcon/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;
|
||||
Reference in New Issue
Block a user