first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* 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
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,25 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<div class="button-container cart">
<form action="{$link_cart}" method="post">
<input type="hidden" name="token" value="{$static_token}">
<input type="hidden" value="{$leo_cart_product.quantity}" class="quantity_product quantity_product_{$leo_cart_product.id_product}" name="quantity_product">
<input type="hidden" value="{if isset($leo_cart_product.product_attribute_minimal_quantity) && $leo_cart_product.product_attribute_minimal_quantity>$leo_cart_product.minimal_quantity}{$leo_cart_product.product_attribute_minimal_quantity}{else}{$leo_cart_product.minimal_quantity}{/if}" class="minimal_quantity minimal_quantity_{$leo_cart_product.id_product}" name="minimal_quantity">
<input type="hidden" value="{$leo_cart_product.id_product_attribute}" class="id_product_attribute id_product_attribute_{$leo_cart_product.id_product}" name="id_product_attribute">
<input type="hidden" value="{$leo_cart_product.id_product}" class="id_product" name="id_product">
<input type="hidden" name="id_customization" value="{if $leo_cart_product.id_customization}{$leo_cart_product.id_customization}{/if}" class="product_customization_id">
<input type="hidden" class="input-group form-control qty qty_product qty_product_{$leo_cart_product.id_product}" name="qty" value="{if isset($leo_cart_product.wishlist_quantity)}{$leo_cart_product.wishlist_quantity}{else}{if $leo_cart_product.product_attribute_minimal_quantity && $leo_cart_product.product_attribute_minimal_quantity>$leo_cart_product.minimal_quantity}{$leo_cart_product.product_attribute_minimal_quantity}{else}{$leo_cart_product.minimal_quantity}{/if}{/if}" data-min="{if $leo_cart_product.product_attribute_minimal_quantity && $leo_cart_product.product_attribute_minimal_quantity>$leo_cart_product.minimal_quantity}{$leo_cart_product.product_attribute_minimal_quantity}{else}{$leo_cart_product.minimal_quantity}{/if}">
<button class="btn btn-product add-to-cart leo-bt-cart leo-bt-cart_{$leo_cart_product.id_product}{if !$leo_cart_product.add_to_cart_url} disabled{/if}" data-button-action="add-to-cart" type="submit">
{* <i class="icon-btn-product icon-cart material-icons shopping-cart">&#xE547;</i> *}
<span class="name-btn-product">{l s='Add to cart' mod='leofeature'}</span>
</button>
</form>
</div>

View File

@@ -0,0 +1,22 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
{if isset($leo_cart_product_attribute.combinations) && count($leo_cart_product_attribute.combinations) > 0}
<div class="dropdown leo-pro-attr-section">
<button class="btn btn-secondary dropdown-toggle leo-bt-select-attr dropdownListAttrButton_{$leo_cart_product_attribute.id_product}" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{$leo_cart_product_attribute.attribute_designation}
</button>
<div class="dropdown-menu leo-dropdown-attr">
{foreach from=$leo_cart_product_attribute.combinations item=attribute}
<a class="dropdown-item leo-select-attr{if $attribute.id_product_attribute == $leo_cart_product_attribute.id_product_attribute} selected{/if}{if $attribute.add_to_cart_url == ''} disable{/if}" href="#" data-id-product="{$attribute.id_product}" data-id-attr="{$attribute.id_product_attribute}" data-qty-attr="{$attribute.quantity}" data-min-qty-attr="{$attribute.minimal_quantity}">{$attribute.attribute_designation}</a>
{/foreach}
</div>
</div>
{/if}

View File

@@ -0,0 +1,10 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<input type="number" class="input-group form-control leo_cart_quantity" value="" data-id-product="{$leo_cart_product_quantity.id_product}" data-min="">

View File

@@ -0,0 +1,16 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<div class="compare">
<a class="leo-compare-button btn-primary btn-product btn{if $added} added{/if}" href="javascript:void(0)" data-id-product="{$leo_compare_id_product}" title="{if $added}{l s='Remove from Compare' mod='leofeature'}{else}{l s='Add to Compare' mod='leofeature'}{/if}">
<span class="leo-compare-bt-loading cssload-speeding-wheel"></span>
<span class="leo-compare-bt-content">
<i class="icon-btn-product icon-compare material-icons">&#xE915;</i>
<span class="name-btn-product">{l s='Add to Compare' mod='leofeature'}</span>
</span>
</a>
</div>

View File

@@ -0,0 +1,36 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
{if (isset($nbReviews) && $nbReviews > 0) || $show_zero_product_review}
<div class="leo-list-product-reviews" {if (isset($nbReviews) && $nbReviews > 0)}itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"{/if}>
<div class="leo-list-product-reviews-wraper">
<div class="star_content clearfix">
{section name="i" start=0 loop=5 step=1}
{if $averageTotal le $smarty.section.i.index}
<div class="star"></div>
{else}
<div class="star star_on"></div>
{/if}
{/section}
{if (isset($nbReviews) && $nbReviews > 0)}
<meta itemprop="worstRating" content = "0" />
<meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" />
<meta itemprop="bestRating" content = "5" />
{/if}
</div>
{if isset($nbReviews) && $nbReviews > 0}
{if $show_number_product_review}
<span class="nb-revews"><span itemprop="reviewCount">{$nbReviews}</span> {l s='Review(s)' mod='leofeature'}</span>
{else}
<meta itemprop="reviewCount" content = "{$nbReviews}" />
{/if}
{/if}
</div>
</div>
{/if}

View File

@@ -0,0 +1,75 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<div class="addToCartFormWrapper" data-product-id="{$productID|escape:'htmlall':'UTF-8'}">
<form action="{$linkCartController}" method="post" class="addToCartForm">
<div class="variantsProductWrapper">
<div class="variants-product">
{foreach from=$productVariants key=id_attribute_group item=group}
{if $group.attributes|@count gt 0}
<div class="clearfix product-variants-item">
{if isset($configs.show_label) && $configs.show_label}
<span class="control-label">{$group.name|escape:'htmlall':'UTF-8'}</span>
{/if}
{if $group.group_type == 'select'}
<select
class="form-control form-control-select"
id="group_{$id_attribute_group|escape:'htmlall':'UTF-8'}"
data-product-attribute="{$id_attribute_group|escape:'htmlall':'UTF-8'}"
name="group[{$id_attribute_group|escape:'htmlall':'UTF-8'}]">
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<option value="{$id_attribute|escape:'htmlall':'UTF-8'}" title="{$group_attribute.name|escape:'htmlall':'UTF-8'}"{if $group_attribute.selected} selected="selected"{/if}>{$group_attribute.name|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
{elseif $group.group_type == 'color'}
<ul id="group_{$id_attribute_group|escape:'htmlall':'UTF-8'}" class="groupUl">
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<li class="float-xs-left input-container">
<label>
<input class="input-color" type="radio" data-product-attribute="{$id_attribute_group|escape:'htmlall':'UTF-8'}" name="group[{$id_attribute_group|escape:'htmlall':'UTF-8'}]" value="{$id_attribute|escape:'htmlall':'UTF-8'}"{if $group_attribute.selected} checked="checked"{/if}>
<span
{if $group_attribute.html_color_code}class="color" style="background-color: {$group_attribute.html_color_code|escape:'htmlall':'UTF-8'}" {/if}
{if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture|escape:'htmlall':'UTF-8'})" {/if}
><span class="sr-only">{$group_attribute.name|escape:'htmlall':'UTF-8'}</span></span>
</label>
</li>
{/foreach}
</ul>
{elseif $group.group_type == 'radio'}
<ul id="group_{$id_attribute_group|escape:'htmlall':'UTF-8'}" class="groupUl">
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<li class="input-container float-xs-left groupLi">
<label>
<input class="input-radio" type="radio" data-product-attribute="{$id_attribute_group|escape:'htmlall':'UTF-8'}" name="group[{$id_attribute_group|escape:'htmlall':'UTF-8'}]" value="{$id_attribute|escape:'htmlall':'UTF-8'}"{if $group_attribute.selected} checked="checked"{/if}>
<span class="radio-label">{$group_attribute.name|escape:'htmlall':'UTF-8'}</span>
</label>
</li>
{/foreach}
</ul>
{/if}
</div>
{/if}
{/foreach}
</div>
</div>
{* <button
data-button-action="add-to-cart"
class="btn btn-primary add-to-cart"
>
<i class="material-icons shopping-cart">&#xE547;</i>{l s='Add to cart' d='Shop.Theme.Actions' mod='leofeature'}
</button>
<input id="addToCartToken_{$productID|escape:'htmlall':'UTF-8'}" class="addToCartButtonToken" name="token" value="{$staticToken|escape:'htmlall':'UTF-8'}" placeholder="" type="hidden" />
<input id="addToCartIdProduct_{$productID|escape:'htmlall':'UTF-8'}" class="addToCartButtonIdProduct" name="id_product" value="{$productID|escape:'htmlall':'UTF-8'}" placeholder="" type="hidden" />
<input id="addToCartIdCustomization_{$productID|escape:'htmlall':'UTF-8'}" class="addToCartButtonIdCustomization" name="id_customization" value="0" placeholder="" type="hidden" />*}
</form>
</div>

View File

@@ -0,0 +1,86 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<tr class="comparison_header">
<td class="feature-name td_empty">
<span>{l s='Reviews' mod='leofeature'}</span>
</td>
{foreach from=$list_ids_product item=id_product}
<td class="product-{$id_product}"></td>
{/foreach}
</tr>
{foreach from=$grades item=grade key=grade_id}
<tr>
{cycle values='comparison_feature_odd,comparison_feature_even' assign='classname'}
<td class="{$classname} feature-name">
<strong>{$grade}</strong>
</td>
{foreach from=$list_ids_product item=id_product}
{assign var='tab_grade' value=$product_grades[$grade_id]}
<td class="{$classname} comparison_infos ajax_block_product product-{$id_product}" align="center">
{if isset($tab_grade[$id_product]) AND $tab_grade[$id_product]}
<div class="product-rating">
{section loop=6 step=1 start=1 name=average}
<input class="auto-submit-star not_uniform" disabled="disabled" type="radio" name="{$grade_id}_{$id_product}_{$smarty.section.average.index}" {if isset($tab_grade[$id_product]) AND $tab_grade[$id_product]|round neq 0 and $smarty.section.average.index eq $tab_grade[$id_product]|round}checked="checked"{/if} />
{/section}
</div>
{else}
-
{/if}
</td>
{/foreach}
</tr>
{/foreach}
{cycle values='comparison_feature_odd,comparison_feature_even' assign='classname'}
<tr>
<td class="{$classname} feature-name">
<strong>{l s='Average' mod='leofeature'}</strong>
</td>
{foreach from=$list_ids_product item=id_product}
<td class="{$classname} comparison_infos product-{$id_product}" align="center" >
{if isset($list_product_average[$id_product]) AND $list_product_average[$id_product]}
<div class="product-rating">
{section loop=6 step=1 start=1 name=average}
<input class="auto-submit-star not_uniform" disabled="disabled" type="radio" name="average_{$id_product}" {if $list_product_average[$id_product]|round neq 0 and $smarty.section.average.index eq $list_product_average[$id_product]|round}checked="checked"{/if} />
{/section}
</div>
{else}
-
{/if}
</td>
{/foreach}
</tr>
<tr>
<td class="{$classname} comparison_infos feature-name">&nbsp;</td>
{foreach from=$list_ids_product item=id_product}
<td class="{$classname} comparison_infos product-{$id_product}" align="center" >
{if isset($product_reviews[$id_product]) AND $product_reviews[$id_product]}
<div class="dropup leo-compare-review-dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{l s='View reviews' mod='leofeature'}
</button>
<div class="dropdown-menu">
{foreach from=$product_reviews[$id_product] item=review}
<div class="dropdown-item well well-sm">
<strong>{$review.customer_name|escape:'html':'UTF-8'} </strong>
<small class="date"> {dateFormat date=$review.date_add|escape:'html':'UTF-8' full=0}</small>
<div class="review_title">{$review.title|escape:'html':'UTF-8'|nl2br}</div>
<div class="review_content">{$review.content|escape:'html':'UTF-8'|nl2br}</div>
</div>
{/foreach}
</div>
</div>
{else}
-
{/if}
</td>
{/foreach}
</tr>

View File

@@ -0,0 +1,50 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
{if ($nbReviews_product_extra == 0 && $too_early_extra == false && ($customer.is_logged || $allow_guests_extra)) || ($nbReviews_product_extra != 0)}
<div id="leo_product_reviews_block_extra" class="no-print" {if $nbReviews_product_extra != 0}itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"{/if}>
{if $nbReviews_product_extra != 0}
<div class="reviews_note clearfix">
<span>{l s='Rating' mod='leofeature'}&nbsp;</span>
<div class="star_content clearfix">
{section name="i" start=0 loop=5 step=1}
{if $averageTotal_extra le $smarty.section.i.index}
<div class="star"></div>
{else}
<div class="star star_on"></div>
{/if}
{/section}
<meta itemprop="worstRating" content = "0" />
<meta itemprop="ratingValue" content = "{if isset($ratings_extra.avg)}{$ratings_extra.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal_extra|round:1|escape:'html':'UTF-8'}{/if}" />
<meta itemprop="bestRating" content = "5" />
</div>
</div>
{/if}
<ul class="reviews_advices">
{if $nbReviews_product_extra != 0}
<li>
<a href="javascript:void(0)" class="read-review">
<i class="material-icons">&#xE0B9;</i>
{l s='Read reviews' mod='leofeature'} (<span itemprop="reviewCount">{$nbReviews_product_extra}</span>)
</a>
</li>
{/if}
{if ($too_early_extra == false AND ($customer.is_logged OR $allow_guests_extra))}
<li class="{if $nbReviews_product_extra != 0}last{/if}">
<a class="open-review-form" href="javascript:void(0)" data-id-product="{$id_product_review_extra}" data-is-logged="{$customer.is_logged}" data-product-link="{$link_product_review_extra}">
<i class="material-icons">&#xE150;</i>
{l s='Write a review' mod='leofeature'}
</a>
</li>
{/if}
</ul>
</div>
{/if}

View File

@@ -0,0 +1,23 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
{if isset($USE_PTABS) && $USE_PTABS == 'default'}
<h4 class="title-info-product leo-product-show-review-title">{l s='Reviews' mod='leofeature'}</h4>
{else if isset($USE_PTABS) && $USE_PTABS == 'accordion'}
<div class="card-header" role="tab" id="headingleofeatureproductreview">
<h5 class="h5">
<a class="collapsed leo-product-show-review-title leofeature-accordion" data-toggle="collapse" data-parent="#accordion" href="#collapseleofeatureproductreview" aria-expanded="false" aria-controls="collapseleofeatureproductreview">
{l s='Reviews' mod='leofeature'}
</a>
</h5>
</div>
{else}
<li class="nav-item">
<a class="nav-link leo-product-show-review-title" data-toggle="tab" href="#leo-product-show-review-content">{l s='Reviews' mod='leofeature'}</a>
</li>
{/if}

View File

@@ -0,0 +1,109 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
{if isset($USE_PTABS) && $USE_PTABS == 'default'}
{else if isset($USE_PTABS) && $USE_PTABS == 'accordion'}
<div id="collapseleofeatureproductreview" class="collapse" role="tabpanel">
<div class="card-block">
{else}
<div class="tab-pane fade in" id="leo-product-show-review-content">
{/if}
<div id="product_reviews_block_tab">
{if $reviews}
{foreach from=$reviews item=review}
{if $review.content}
<div class="review" itemprop="review" itemscope itemtype="https://schema.org/Review">
<div class="review-info row">
<div class="review_author col-sm-3">
<span>{l s='Grade' mod='leofeature'}&nbsp;</span>
<div class="star_content clearfix" itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
{section name="i" start=0 loop=5 step=1}
{if $review.grade le $smarty.section.i.index}
<div class="star"></div>
{else}
<div class="star star_on"></div>
{/if}
{/section}
<meta itemprop="worstRating" content = "0" />
<meta itemprop="ratingValue" content = "{$review.grade|escape:'html':'UTF-8'}" />
<meta itemprop="bestRating" content = "5" />
</div>
<div class="review_author_infos">
<strong itemprop="author">{$review.customer_name|escape:'html':'UTF-8'}</strong>
<meta itemprop="datePublished" content="{$review.date_add|escape:'html':'UTF-8'|substr:0:10}" />
<em>{dateFormat date=$review.date_add|escape:'html':'UTF-8' full=0}</em>
</div>
</div>
<div class="review_details col-sm-9">
<p itemprop="name" class="title_block">
<strong>{$review.title}</strong>
</p>
<p itemprop="reviewBody">{$review.content|escape:'html':'UTF-8'|nl2br nofilter}</p>
</div><!-- .review_details -->
</div>
<div class="review_button">
<ul>
{if $review.total_advice > 0}
<li>
{l s='%1$d out of %2$d people found this review useful.' sprintf=[$review.total_useful,$review.total_advice] mod='leofeature'}
</li>
{/if}
{if $customer.is_logged}
{if !$review.customer_advice && $allow_usefull_button}
<li>
<span>{l s='Was this review useful to you?' mod='leofeature'}</span>
<button class="usefulness_btn btn btn-default button button-small" data-is-usefull="1" data-id-product-review="{$review.id_product_review}">
<span>{l s='Yes' mod='leofeature'}</span>
</button>
<button class="usefulness_btn btn btn-default button button-small" data-is-usefull="0" data-id-product-review="{$review.id_product_review}">
<span>{l s='No' mod='leofeature'}</span>
</button>
</li>
{/if}
{if !$review.customer_report && $allow_report_button}
<li>
<a href="javascript:void(0)" class="btn report_btn" data-id-product-review="{$review.id_product_review}">
{l s='Report abuse' mod='leofeature'}
</a>
</li>
{/if}
{/if}
</ul>
</div>
</div> <!-- .review -->
{/if}
{/foreach}
{if (!$too_early AND ($customer.is_logged OR $allow_guests))}
<a class="open-review-form" href="javascript:void(0)" data-id-product="{$id_product_tab_content}" data-is-logged="{$customer.is_logged}" data-product-link="{$link_product_tab_content}">
<i class="material-icons">&#xE150;</i>
{l s='Write a review' mod='leofeature'}
</a>
{/if}
{else}
{if (!$too_early AND ($customer.is_logged OR $allow_guests))}
<a class="open-review-form" href="javascript:void(0)" data-id-product="{$id_product_tab_content}" data-is-logged="{$customer.is_logged}" data-product-link="{$link_product_tab_content}">
<i class="material-icons">&#xE150;</i>
{l s='Be the first to write your review!' mod='leofeature'}
</a>
{else}
<p class="align_center">{l s='No customer reviews for the moment.' mod='leofeature'}</p>
{/if}
{/if}
</div>
{if isset($USE_PTABS) && $USE_PTABS == 'default'}
{else if isset($USE_PTABS) && $USE_PTABS == 'accordion'}
</div>
</div>
{else}
</div>
{/if}

View File

@@ -0,0 +1,31 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<div class="wishlist">
{if isset($wishlists) && count($wishlists) > 1}
<div class="dropdown leo-wishlist-button-dropdown">
<button class="leo-wishlist-button dropdown-toggle show-list btn-primary btn-product btn{if $added_wishlist} added{/if}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-id-wishlist="{$id_wishlist}" data-id-product="{$leo_wishlist_id_product}" data-id-product-attribute="{$leo_wishlist_id_product_attribute}">
<span class="leo-wishlist-bt-loading cssload-speeding-wheel"></span>
<span class="leo-wishlist-bt-content">
<img src="/themes/at_movic/assets/img/icon-wishlist-add.svg">
</span>
</button>
<div class="dropdown-menu leo-list-wishlist leo-list-wishlist-{$leo_wishlist_id_product}">
{foreach from=$wishlists item=wishlists_item}
<a href="javascript:void(0)" class="dropdown-item list-group-item list-group-item-action wishlist-item{if in_array($wishlists_item.id_wishlist, $wishlists_added)} added {/if}" data-id-wishlist="{$wishlists_item.id_wishlist}" data-id-product="{$leo_wishlist_id_product}" data-id-product-attribute="{$leo_wishlist_id_product_attribute}" title="{if in_array($wishlists_item.id_wishlist, $wishlists_added)}{l s='Remove from Wishlist' mod='leofeature'}{else}{l s='Add to Wishlist' mod='leofeature'}{/if}">{$wishlists_item.name}</a>
{/foreach}
</div>
</div>
{else}
<a class="leo-wishlist-button btn-product btn-primary btn{if $added_wishlist} added{/if}" href="javascript:void(0)" data-id-wishlist="{$id_wishlist}" data-id-product="{$leo_wishlist_id_product}" data-id-product-attribute="{$leo_wishlist_id_product_attribute}" title="{if $added_wishlist}{l s='Remove from Wishlist' mod='leofeature'}{else}{l s='Add to Wishlist' mod='leofeature'}{/if}">
<span class="leo-wishlist-bt-loading cssload-speeding-wheel"></span>
<span class="leo-wishlist-bt-content">
<img src="/themes/at_movic/assets/img/icon-wishlist-add.svg">
</span>
</a>
{/if}
</div>

View File

@@ -0,0 +1,16 @@
{*
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright 2007-2018 Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
*}
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="mywishlist-link" href="{$wishlist_link}">
<span class="link-item">
{* <i class="material-icons">&#xE87D;</i> *}
<img src="/themes/at_movic/assets/img/icons/LISTA ZYCZEN.svg" alt="">
{l s='My Wishlist' mod='leofeature'}
</span>
</a>