first commit
This commit is contained in:
28
modules/blockwishlist/views/index.php
Normal file
28
modules/blockwishlist/views/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @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;
|
||||
54
modules/blockwishlist/views/templates/admin/home.html.twig
Normal file
54
modules/blockwishlist/views/templates/admin/home.html.twig
Normal file
@@ -0,0 +1,54 @@
|
||||
{#**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*#}
|
||||
{% extends '@PrestaShop/Admin/layout.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{{ form_start(configurationForm) }}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xl-10">
|
||||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
<i class="material-icons">edit</i> {{ 'Wording'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</h3>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="form-wrapper">
|
||||
{{ form_widget(configurationForm) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<div class="d-flex justify-content-end">
|
||||
<button class="btn btn-primary">{{ 'Save'|trans({}, 'Modules.Blockwishlist.Admin') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(configurationForm) }}
|
||||
|
||||
{% if resultHandleForm != null %}
|
||||
{# resutHandleForm represent the save of every config (can be true/false/null) null = no submission #}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
<script src="{{ asset('../modules/blockwishlist/public/form.bundle.js') }}"></script>
|
||||
{% endblock %}
|
||||
28
modules/blockwishlist/views/templates/admin/index.php
Normal file
28
modules/blockwishlist/views/templates/admin/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @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,83 @@
|
||||
{#**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*#}
|
||||
{% extends '@PrestaShop/Admin/layout.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{% if shopId is same as(null) %}
|
||||
<div class="alert medium-alert alert-warning" role="alert">
|
||||
<p class="alert-text">
|
||||
{{ 'You need to choose a specific shop to display the top 10 most added products'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="row justify-content-center wishlist-stats">
|
||||
<div class="col-xl-10">
|
||||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
<i class="material-icons">star</i> {{ 'Top 10 most added products'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</h3>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-text">
|
||||
<div class="row wishlist-stats-topbar">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-default active" data-tab="1">Day</button>
|
||||
<button class="btn btn-default" data-tab="2">Month</button>
|
||||
<button class="btn btn-default" data-tab="3">Year</button>
|
||||
<button class="btn btn-default" data-tab="4">All time</button>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-default refresh js-refresh">
|
||||
<i class="material-icons">history</i> {{ 'Refresh'|trans({}, 'Modules.Blockwishlist.Admin') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab active" data-tab="1">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': allTimeStatisticsGrid} %}
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab" data-tab="2">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentYearStatisticsGrid} %}
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab" data-tab="3">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentMonthStatisticsGrid} %}
|
||||
</div>
|
||||
|
||||
<div class="wishlist-tab" data-tab="4">
|
||||
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentDayStatisticsGrid} %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
|
||||
<script>
|
||||
var blockwishlistModule = {
|
||||
'resetCacheUrl': '{{ url('blockwishlist_statistics_reset')|e('js') }}',
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset('../modules/blockwishlist/public/backoffice.bundle.js') }}"></script>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,80 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div
|
||||
class="wishlist-add-to"
|
||||
data-url="{$url}"
|
||||
>
|
||||
<div
|
||||
class="wishlist-modal modal fade"
|
||||
{literal}
|
||||
:class="{show: !isHidden}"
|
||||
{/literal}
|
||||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">
|
||||
{l s='Add to wishlist' d='Modules.Blockwishlist.Shop'}
|
||||
</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="close"
|
||||
@click="toggleModal"
|
||||
data-dismiss="modal"
|
||||
aria-label="Close"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<choose-list
|
||||
@hide="toggleModal"
|
||||
:product-id="productId"
|
||||
:product-attribute-id="productAttributeId"
|
||||
:quantity="quantity"
|
||||
url="{$url}"
|
||||
add-url="{$addUrl}"
|
||||
empty-text="{l s='No list found.' d='Modules.Blockwishlist.Shop'}"
|
||||
></choose-list>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<a @click="openNewWishlistModal" class="wishlist-add-to-new text-primary">
|
||||
<i class="material-icons">add_circle_outline</i> {$newWishlistCTA}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="modal-backdrop fade"
|
||||
{literal}
|
||||
:class="{in: !isHidden}"
|
||||
{/literal}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div
|
||||
class="wishlist-create"
|
||||
data-url="{$url}"
|
||||
data-title="{l s='Create wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
data-label="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}"
|
||||
data-placeholder="{l s='Add name' d='Modules.Blockwishlist.Shop'}"
|
||||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
|
||||
data-create-text="{l s='Create wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
data-length-text="{l s='List title is too short' d='Modules.Blockwishlist.Shop'}"
|
||||
>
|
||||
<div
|
||||
class="wishlist-modal modal fade"
|
||||
{literal}
|
||||
:class="{show: !isHidden}"
|
||||
{/literal}
|
||||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">((title))</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="close"
|
||||
@click="toggleModal"
|
||||
data-dismiss="modal"
|
||||
aria-label="Close"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group form-group-lg">
|
||||
<label class="form-control-label" for="input2">((label))</label>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control form-control-lg"
|
||||
v-model="value"
|
||||
id="input2"
|
||||
:placeholder="placeholder"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="button"
|
||||
class="modal-cancel btn btn-secondary"
|
||||
data-dismiss="modal"
|
||||
@click="toggleModal"
|
||||
>
|
||||
((cancelText))
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
@click="createWishlist"
|
||||
>
|
||||
((createText))
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="modal-backdrop fade"
|
||||
{literal}
|
||||
:class="{in: !isHidden}"
|
||||
{/literal}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div
|
||||
class="wishlist-delete"
|
||||
{if isset($listUrl)}
|
||||
data-delete-list-url="{$listUrl}"
|
||||
{/if}
|
||||
{if isset($deleteProductUrl)}
|
||||
data-delete-product-url="{$deleteProductUrl}"
|
||||
{/if}
|
||||
data-title="{l s='Remove product from wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
data-title-list="{l s='Delete wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
data-placeholder='{l s='The product will be removed from "%nameofthewishlist%".' d='Modules.Blockwishlist.Shop'}'
|
||||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
|
||||
data-delete-text="{l s='Remove' d='Modules.Blockwishlist.Shop'}"
|
||||
data-delete-text-list="{l s='Delete' d='Modules.Blockwishlist.Shop'}"
|
||||
>
|
||||
<div
|
||||
class="wishlist-modal modal fade"
|
||||
{literal}
|
||||
:class="{show: !isHidden}"
|
||||
{/literal}
|
||||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">((modalTitle))</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="close"
|
||||
@click="toggleModal"
|
||||
data-dismiss="modal"
|
||||
aria-label="Close"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" v-if="productId">
|
||||
<p class="modal-text">((confirmMessage))</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="button"
|
||||
class="modal-cancel btn btn-secondary"
|
||||
data-dismiss="modal"
|
||||
@click="toggleModal"
|
||||
>
|
||||
((cancelText))
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
@click="deleteWishlist"
|
||||
>
|
||||
((modalDeleteText))
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="modal-backdrop fade"
|
||||
{literal}
|
||||
:class="{in: !isHidden}"
|
||||
{/literal}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div
|
||||
class="wishlist-login"
|
||||
data-login-text="{l s='Sign in' d='Modules.Blockwishlist.Shop'}"
|
||||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
|
||||
>
|
||||
<div
|
||||
class="wishlist-modal modal fade"
|
||||
{literal}
|
||||
:class="{show: !isHidden}"
|
||||
{/literal}
|
||||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{l s='Sign in' d='Modules.Blockwishlist.Shop'}</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="close"
|
||||
@click="toggleModal"
|
||||
data-dismiss="modal"
|
||||
aria-label="Close"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="modal-text">{l s='You need to be logged in to save products in your wishlist.' d='Modules.Blockwishlist.Shop'}</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="button"
|
||||
class="modal-cancel btn btn-secondary"
|
||||
data-dismiss="modal"
|
||||
@click="toggleModal"
|
||||
>
|
||||
((cancelText))
|
||||
</button>
|
||||
|
||||
<a
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
:href="prestashop.urls.pages.authentication"
|
||||
>
|
||||
((loginText))
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="modal-backdrop fade"
|
||||
{literal}
|
||||
:class="{in: !isHidden}"
|
||||
{/literal}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div
|
||||
class="wishlist-rename"
|
||||
data-url="{$url}"
|
||||
data-title="{l s='Rename wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
data-label="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}"
|
||||
data-placeholder="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}"
|
||||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
|
||||
data-rename-text="{l s='Rename wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
>
|
||||
<div
|
||||
class="wishlist-modal modal fade"
|
||||
{literal}
|
||||
:class="{show: !isHidden}"
|
||||
{/literal}
|
||||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">((title))</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="close"
|
||||
@click="toggleModal"
|
||||
data-dismiss="modal"
|
||||
aria-label="Close"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group form-group-lg">
|
||||
<label class="form-control-label" for="input2"
|
||||
>((label))</label
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control form-control-lg"
|
||||
v-model="value"
|
||||
id="input2"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="button"
|
||||
class="modal-cancel btn btn-secondary"
|
||||
data-dismiss="modal"
|
||||
@click="toggleModal"
|
||||
>
|
||||
((cancelText))
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
@click="renameWishlist"
|
||||
>
|
||||
((renameText))
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="modal-backdrop fade"
|
||||
{literal}
|
||||
:class="{in: !isHidden}"
|
||||
{/literal}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div
|
||||
class="wishlist-share"
|
||||
data-url="{$url}"
|
||||
data-title="{l s='Share wishlist' d='Modules.Blockwishlist.Shop'}"
|
||||
data-copied-text="{l s='Copied!' d='Modules.Blockwishlist.Shop'}"
|
||||
data-label="{l s='Share link' d='Modules.Blockwishlist.Shop'}"
|
||||
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
|
||||
data-copy-text="{l s='Copy text' d='Modules.Blockwishlist.Shop'}"
|
||||
>
|
||||
<div
|
||||
class="wishlist-modal modal fade"
|
||||
{literal}
|
||||
:class="{show: !isHidden}"
|
||||
{/literal}
|
||||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">((title))</h5>
|
||||
<button
|
||||
type="button"
|
||||
class="close"
|
||||
@click="toggleModal"
|
||||
data-dismiss="modal"
|
||||
aria-label="Close"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group form-group-lg">
|
||||
<label class="form-control-label" for="input2">((label))</label>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control form-control-lg"
|
||||
v-model="value"
|
||||
id="input2"
|
||||
placeholder="Share link"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="button"
|
||||
class="modal-cancel btn btn-secondary"
|
||||
data-dismiss="modal"
|
||||
@click="toggleModal"
|
||||
>
|
||||
((cancelText))
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
@click="copyLink"
|
||||
>
|
||||
(( actionText ))
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="modal-backdrop fade"
|
||||
{literal}
|
||||
:class="{in: !isHidden}"
|
||||
{/literal}
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<nav class="wishlist-pagination pagination">
|
||||
<template v-if="display">
|
||||
<div class="col-md-4">
|
||||
{l s='Showing %min% - %max% of %total% item(s)' sprintf=['%min%' => '((minShown))', '%max%' => '((maxShown))', '%total%' => '((total))'] d='Modules.Blockwishlist.Shop'}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 offset-md-2 pr-0">
|
||||
<ul class="page-list clearfix text-sm-center">
|
||||
<li :class="{literal}{current: page.current}{/literal}" v-for="page of pages">
|
||||
<a class="js-wishlist-search-link" @click="paginate(page)" key="page.page" :class="{literal}{disabled: page.current, next: page.type === 'next', previous: page.type === 'previous'}{/literal}">
|
||||
<span v-if="page.type === 'previous'">
|
||||
<i class="material-icons">keyboard_arrow_left</i> {l s='Previous' d='Modules.Blockwishlist.Shop'}
|
||||
</span>
|
||||
|
||||
<template v-if="page.type !== 'previous' && page.type !== 'next'">
|
||||
((page.page))
|
||||
</template>
|
||||
|
||||
<span v-if="page.type === 'next'">
|
||||
{l s='Next' d='Modules.Blockwishlist.Shop'} <i class="material-icons"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
</nav>
|
||||
28
modules/blockwishlist/views/templates/components/toast.tpl
Normal file
28
modules/blockwishlist/views/templates/components/toast.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div
|
||||
class="wishlist-toast"
|
||||
data-rename-wishlist-text="{l s='Wishlist name modified!' d='Modules.Blockwishlist.Shop'}"
|
||||
data-added-wishlist-text="{l s='Product added to wishlist!' d='Modules.Blockwishlist.Shop'}"
|
||||
data-create-wishlist-text="{l s='Wishlist created!' d='Modules.Blockwishlist.Shop'}"
|
||||
data-delete-wishlist-text="{l s='Wishlist deleted!' d='Modules.Blockwishlist.Shop'}"
|
||||
data-copy-text="{l s='Share link copied!' d='Modules.Blockwishlist.Shop'}"
|
||||
data-delete-product-text="{l s='Product deleted!' d='Modules.Blockwishlist.Shop'}"
|
||||
></div>
|
||||
29
modules/blockwishlist/views/templates/errors/forbidden.tpl
Normal file
29
modules/blockwishlist/views/templates/errors/forbidden.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
{**
|
||||
* 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='errors/forbidden.tpl'}
|
||||
|
||||
{block name='content'}
|
||||
|
||||
{/block}
|
||||
@@ -0,0 +1,26 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $customer.is_logged}
|
||||
<li>
|
||||
<a href="{$url}" title="{$wishlistsTitlePage}" rel="nofollow">
|
||||
{$blockwishlist|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
@@ -0,0 +1,31 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
<i class="material-icons">remove_red_eye</i>
|
||||
{$blockwishlist|escape:'html':'UTF-8'}
|
||||
<span class="badge badge-primary rounded">0</span>
|
||||
</h3>
|
||||
<div class="card-body">
|
||||
{$blockwishlist|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="wishlist-link" href="{$url}">
|
||||
<span class="link-item">
|
||||
<i class="material-icons">favorite</i>
|
||||
{$wishlistsTitlePage}
|
||||
</span>
|
||||
</a>
|
||||
31
modules/blockwishlist/views/templates/hook/displayHeader.tpl
Normal file
31
modules/blockwishlist/views/templates/hook/displayHeader.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $context === "product"}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/add-to-wishlist.tpl" url=$url addUrl=$addUrl newWishlistCTA=$newWishlistCTA}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/create.tpl" url=$createUrl}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/login.tpl"}
|
||||
{include file="module:blockwishlist/views/templates/components/toast.tpl"}
|
||||
{else}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/add-to-wishlist.tpl" url=$url addUrl=$addUrl newWishlistCTA=$newWishlistCTA}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/delete.tpl" listUrl=$deleteListUrl productUrl=$deleteProductUrl}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/create.tpl" url=$createUrl}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/login.tpl"}
|
||||
{include file="module:blockwishlist/views/templates/components/toast.tpl"}
|
||||
{/if}
|
||||
28
modules/blockwishlist/views/templates/hook/index.php
Normal file
28
modules/blockwishlist/views/templates/hook/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @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,29 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div
|
||||
class="wishlist-button"
|
||||
data-url="{$url}"
|
||||
data-product-id="{$product.id}"
|
||||
data-product-attribute-id="{$product.id_product_attribute}"
|
||||
data-is-logged="{$customer.is_logged}"
|
||||
data-list-id="1"
|
||||
data-checked="true"
|
||||
data-is-product="true"
|
||||
></div>
|
||||
|
||||
28
modules/blockwishlist/views/templates/index.php
Normal file
28
modules/blockwishlist/views/templates/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @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;
|
||||
45
modules/blockwishlist/views/templates/pages/lists.tpl
Normal file
45
modules/blockwishlist/views/templates/pages/lists.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{extends file='customer/page.tpl'}
|
||||
|
||||
{block name='page_header_container'}
|
||||
{/block}
|
||||
|
||||
{block name='page_content_container'}
|
||||
<div
|
||||
class="wishlist-container"
|
||||
data-url="{$url}"
|
||||
data-title="{$wishlistsTitlePage}"
|
||||
data-empty-text="{l s='No wishlist found.' d='Modules.Blockwishlist.Shop'}"
|
||||
data-rename-text="{l s='Rename' d='Modules.Blockwishlist.Shop'}"
|
||||
data-share-text="{l s='Share' d='Modules.Blockwishlist.Shop'}"
|
||||
data-add-text="{$newWishlistCTA}"
|
||||
></div>
|
||||
|
||||
{include file="module:blockwishlist/views/templates/components/modals/share.tpl" url=$shareUrl}
|
||||
{include file="module:blockwishlist/views/templates/components/modals/rename.tpl" url=$renameUrl}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name='page_footer_container'}
|
||||
<div class="wishlist-footer-links">
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html'}" class="text-primary"><i class="material-icons">chevron_left</i>{l s='Return to your account' d='Modules.Blockwishlist.Shop'}</a>
|
||||
<a href="{$urls.base_url}" class="text-primary"><i class="material-icons">home</i>{l s='Home' d='Shop.Theme.Global'}</a>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,49 @@
|
||||
{**
|
||||
* 2007-2020 PrestaShop and Contributors
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2020 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{extends file='page.tpl'}
|
||||
|
||||
{block name='page_header_container'}
|
||||
{/block}
|
||||
|
||||
{block name='page_content_container'}
|
||||
<div
|
||||
class="wishlist-products-container"
|
||||
data-url="{$url}"
|
||||
data-list-id="{$id}"
|
||||
data-default-sort="{l s='Last added' d='Modules.Blockwishlist.Shop'}"
|
||||
data-add-to-cart="{l s='Add to cart' d='Shop.Theme.Actions'}"
|
||||
data-share="{if $isGuest}true{else}false{/if}"
|
||||
data-customize-text="{l s='Customize' d='Modules.Blockwishlist.Shop'}"
|
||||
data-quantity-text="{l s='Quantity' d='Shop.Theme.Catalog'}"
|
||||
data-title="{$wishlistName}"
|
||||
data-no-products-message="{l s='No products found' d='Modules.Blockwishlist.Shop'}"
|
||||
data-filter="{l s='Sort by:' d='Shop.Theme.Global'}"
|
||||
>
|
||||
</div>
|
||||
|
||||
{include file="module:blockwishlist/views/templates/components/pagination.tpl"}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name='page_footer_container'}
|
||||
<div class="wishlist-footer-links">
|
||||
<a href="{$wishlistsLink}"><i class="material-icons">chevron_left</i>{l s='Return to wishlists' d='Modules.Blockwishlist.Shop'}</a>
|
||||
<a href="{$urls.base_url}"><i class="material-icons">home</i>{l s='Home' d='Shop.Theme.Global'}</a>
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user