Module ReCaptcha + nouveau template Front avant ajout du Hook Captcha

This commit is contained in:
2020-05-13 19:21:46 +02:00
parent 04a53140c2
commit b09c531cad
711 changed files with 74327 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="addedToCart.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="brand-menu.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="categories-filters.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="empty.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="menu.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="meta-seo.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="mini-cart.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="product-empty.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="single-product.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="toolbar.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="addedToCart.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755200000000" />
<file name="brand-menu.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="categories-filters.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="empty.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="menu.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="meta-seo.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="mini-cart.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="product-empty.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="single-product.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
<file name="toolbar.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755800000000" />
</dwsync>

View File

@@ -0,0 +1,96 @@
{* This page should not replace the current previous URL *}
{set_previous_url ignore_current="1"}
{default_translation_domain domain='fo.lematelot'}
{loop type="product" name="add_product_to_cart" id={product attr="id"}}
<div class="clearfix">
<table>
<tr>
<td colspan="3">
<h3 class="text-center">{intl l="The product has been added to your cart" }</h3>
</td>
</tr>
<tr>
<td class="col-md-4">
{loop name="product_thumbnail" type="image" product=$ID width="218" height="146" resize_mode="borders" limit="1"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" alt="Product #{$LOOP_COUNT}">
{/loop}
</td>
<td class="col-md-4">
<h2>{$TITLE}</h2>
{loop type="attribute_combination" name="product_options" product_sale_elements={$smarty.get.pse_id} order="manual"}
<p>{$ATTRIBUTE_TITLE} : {$ATTRIBUTE_AVAILABILITY_TITLE}</p>
{/loop}
</td>
<td class="col-md-4">
{loop type="product_sale_elements" name="product_price" id={$smarty.get.pse_id}}
{if $IS_PROMO == 1}
{assign "real_price" $TAXED_PROMO_PRICE}
<div class="special-price"><span class="price">{format_money number=$TAXED_PROMO_PRICE}</span></div>
<small class="old-price"> <span class="price">{format_money number=$TAXED_PRICE}</span></small>
{else}
{assign "real_price" $TAXED_PRICE}
<div class="special-price"><span class="price">{format_money number=$TAXED_PRICE}</span></div>
{/if}
{/loop}
</td>
</tr>
{assign var="minPrice" {config key="gift_amount"}}
{assign var="giftCategoryId" {config key="gifts_category"}}
{assign "existe" 0}
{loop type="cart" name="cartverify"}
{if $IS_PROMO == 1}
{assign "real_price" $PROMO_TAXED_PRICE}
{assign "real_total_price" $TOTAL_PROMO_TAXED_PRICE}
{else}
{assign "real_price" $TAXED_PRICE}
{assign "real_total_price" $TOTAL_TAXED_PRICE}
{/if}
{if $real_price == 0 || $real_total_price == 0}
{assign "existe" 1}
{/if}
{/loop}
{if $existe == 0}
{if $real_price >= $minPrice}
<tr>
<td colspan="3">
<table width="100%">
<tr>
<td width="50%">
<p>
<h3 style="color:#CC0000;">{intl l="1 gift is offered to you for this order!" d = "giftoffered.fo.default"}</h3>
<p>
{loop name="gift-category" type="category" id="{$giftCategoryId}"}
<a href="{$SITE_URL}/?view=category&category_id={$giftCategoryId}">{intl l="Click here to choose want you want from our selection of gifts" d = "giftoffered.fo.default"}</a>
{/loop}
</p>
</td>
<td>
<a href="{$SITE_URL}/?view=category&category_id={$giftCategoryId}"><img src="{image file='assets/dist/img/gift.png'}" alt="{intl l='Gift' d='giftoffered.fo.default'}"></a>
</td>
</tr>
</table>
</td>
</tr>
{/if}
{/if}
</table>
<a href="{url path="/cart"}" role="button" class="btn btn-primary pull-right"><i class="fa fa-shopping-cart"></i> {intl l="View Cart"}</a>
<button type="button" class="btn btn-default pull-right" data-dismiss="modal"><i class="fa fa-chevron-right"></i> {intl l="Continue Shopping"}</button>
</div>
{ifloop rel="accessories"}
<aside id="products-upsell" class="grid" role="complementary" aria-labelledby="products-upsell-label">
<div class="products-heading">
<h3 id="products-upsell-label">{intl l="Upsell Products"}</h3>
</div>
<div class="products-content">
<ul class="list-unstyled row products-grid">
{loop type="accessory" name="accessories" product="$ID" order="random" limit="3"}
{include file="includes/single-product.html" product_id=$ACCESSORY_ID hasBtn=false hasDescription=false width="218" height="146"}
{/loop}
</ul>
</div>
</aside><!-- #products-upsell -->
{/ifloop}
{/loop}

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="articles.html" server="51.254.220.106//web/" local="131370344400000000" remote="131389083600000000" />
<file name="articles.html" server="37.187.178.154//web/" local="131370344400000000" remote="131393755200000000" />
</dwsync>

View File

@@ -0,0 +1,19 @@
{hook name="content.sidebar-top"}
{ifhook rel="content.sidebar-body"}
{hook name="content.sidebar-body"}
{/ifhook}
{elsehook rel="content.sidebar-body"}
<section id="categories" class="block block-nav" role="navigation" aria-labelledby="categories-label">
<div class="block-heading"><h3 class="block-title" >{intl l="Related"}</h3></div>
<div class="block-content">
<nav class="nav-categories">
<ul id="category" class="accordion">
{loop name="blog.article" type="content" current_folder="yes" exclude="{content attr="id"}"}
<li><a href="{$URL nofilter}" rel="nofollow">{$TITLE}</a></li>
{/loop}
</ul>
</nav>
</div>
</section>
{/elsehook}
{hook name="content.sidebar-bottom"}

View File

@@ -0,0 +1,19 @@
{hook name="brand.sidebar-top"}
{ifhook rel="brand.sidebar-body"}
{hook name="brand.sidebar-body"}
{/ifhook}
{elsehook rel="brand.sidebar-body"}
<section id="brands" class="block block-nav" role="navigation" aria-labelledby="brands-label">
<div class="block-heading"><h3 class="block-title" id="brands-label">{intl l="Brands"}</h3></div>
<div class="block-content">
<nav class="nav-brands">
<ul id="brand" class="accordion">
{loop name="brands-list" type="brand"}
<li><a href="{$URL nofilter}">{$TITLE} ({count type="product" brand="{$ID}"})</a></li>
{/loop}
</ul>
</nav>
</div>
</section>
{/elsehook}
{hook name="brand.sidebar-bottom"}

View File

@@ -0,0 +1,77 @@
<section id="filters">
<h3>Find <span>a product</span></h3>
<form id="form-filters" action="" method="get">
<div class="filter filter-type">
<fieldset>
<legend class="filter-heading">Type</legend>
<div class="filter-content clearfix">
<div class="checkbox">
<label for="type0">
<input type="checkbox" name="type0" id="type0" value="0"> Type 0
</label>
</div>
<div class="checkbox">
<label for="type1">
<input type="checkbox" name="type1" id="type1" value="1"> Type 1
</label>
</div>
<div class="checkbox">
<label for="type2">
<input type="checkbox" name="type2" id="type2" value="2"> Type 2
</label>
</div>
</div>
</fieldset>
</div><!-- /Filter Type -->
<div class="filter filter-price">
<fieldset>
<legend class="filter-heading">Price</legend>
<div class="filter-content clearfix">
<div class="checkbox">
<label for="price0">
<input type="checkbox" name="price0" id="price0" value="0"> $0.00 - $99.99
</label>
</div>
<div class="checkbox">
<label for="price1">
<input type="checkbox" name="price1" id="price1" value="1"> $100.00 - $199.99
</label>
</div>
<div class="checkbox">
<label for="price2">
<input type="checkbox" name="price2" id="price2" value="2"> $200.00 and above
</label>
</div>
</div>
</fieldset>
</div><!-- /Filter Price -->
<div class="filter filter-size">
<fieldset>
<legend class="filter-heading">Size</legend>
<div class="filter-content clearfix">
<div class="checkbox">
<label for="size0">
<input type="checkbox" name="size0" id="size0" value="0"> Large
</label>
</div>
<div class="checkbox">
<label for="size1">
<input type="checkbox" name="size1" id="size1" value="1"> Medium
</label>
</div>
<div class="checkbox">
<label for="size2">
<input type="checkbox" name="size2" id="size2" value="2"> Small
</label>
</div>
</div>
</fieldset>
</div><!-- /Filter Size -->
<div class="group-btn">
<button type="submit" class="btn btn-block btn-filter">Submit</button>
</div>
</form>
</section><!-- /.filters -->

View File

@@ -0,0 +1,10 @@
{if ! $title_empty}
{$title={intl l="The page cannot be found"}}
{/if}
<h1 id="main-label" class="page-header">{$title}</h1>
{if ! $message_empty}
<div class="description">
{$message_empty nofilter}
</div>
{/if}

View File

@@ -0,0 +1,74 @@
{hook name="category.sidebar-top"}
{ifhook rel="category.sidebar-body"}
{hook name="category.sidebar-body"}
{/ifhook}
{elsehook rel="category.sidebar-body"}
<section id="categories" class="block block-nav" role="navigation" aria-labelledby="categories-label">
<div class="block-heading">
<h3 class="block-title" id="categories-label">{intl l="Categories"}</h3>
</div>
<div class="block-content">
<nav class="nav-categories">
{assign var="parent_cat" value={category attr="parent"}}
{assign var="parent_cat_ids" value=[]}
{* While it's not the top level category *}
{while $parent_cat != 0}
{assign var="current_loop_cat" value=$parent_cat}
{loop name="set_parent_category" type="category" id=$parent_cat}
{assign var="parent_cat" value=$PARENT}
{append var="parent_cat_ids" value=$ID}
{/loop}
{/while}
{* define the function *}
{function menu level=0}
{if $level == 0}
<ul id="category" class="accordion">
{else}
{if in_array($parent, $parent_cat_ids)}
<ul id="collapse{$parent}" class="in">
{else}
<ul id="collapse{$parent}" class="collapse">
{/if}
{/if}
{loop name="cat-parent-$level" type="category" parent=$parent need_count_child=1 not_empty="1" exclude="6"}
{if $CHILD_COUNT > 0}
{if in_array($ID, $parent_cat_ids)}
{assign var="collapsed" value=""}
{else}
{assign var="collapsed" value="collapsed"}
{/if}
<li>
<a href="{$URL nofilter}" rel=nofollow">
{$TITLE}
</a>
<a href="#collapse{$ID}" class="accordion-toggle {$collapsed}" data-toggle="collapse" data-parent="#collapse{$ID}" rel="nofollow"></a>
{menu parent=$ID level=$level+1}
</li>
{else}
<li>
<a href="{$URL nofilter}" rel=nofollow">
{$TITLE} ({count type="product" category=$ID})
</a>
</li>
{/if}
{/loop}
</ul>
{/function}
{menu parent='0'}
</nav>
</div>
</section>
{/elsehook}
{hook name="category.sidebar-bottom"}

View File

@@ -0,0 +1,6 @@
{if $META_DESCRIPTION}
<meta name="description" content="{$META_DESCRIPTION}">
{elseif $CHAPO}
<meta name="description" content="{$CHAPO|truncate:150:""}">
{/if}
{if $META_KEYWORDS}<meta name="keywords" content="{$META_KEYWORDS}">{/if}

View File

@@ -0,0 +1 @@
{hook name="mini-cart"}

View File

@@ -0,0 +1,34 @@
<div class="jumbotron">
<h1>{intl l="Product Empty Title"}</h1>
{intl l="Product Empty Message"}
<p><a href="{url path="/admin"}" class="btn btn-jumbotron btn-lg" role="button">{intl l="Product Empty Button"}</a></p>
</div>
<section id="products-new">
<div class="products-heading">
<h2><span class="newtitle">{intl l="Latest"}</span></h2>
</div>
<div class="products-content">
<ul class="list-unstyled row">
{for $count=1 to 4}
<li class="item col-md-3">
<article>
<a href="{url path="/admin"}" tabindex="-1" class="product-image overlay">
<img src="{image file='assets/dist/img/280x196.png'}" class="img-responsive" alt="{intl l="Demo product title"}">
</a>
<a href="{url path="/admin"}" class="product-info">
<h3 class="name">{intl l="Demo product title"}</h3>
<div class="short-description">{intl l="Demo product description"}</div>
<div class="product-price">
<div class="price-container">
<span class="regular-price"><span class="price">{format_money number=99.99}</span></span>
</div>
</div>
</a>
</article><!-- /product -->
</li>
{/for}
</ul>
</div>
</section><!-- #products-new -->

View File

@@ -0,0 +1,125 @@
<li class="item {$colClass|default:"col-md-3"}">
{if $PSE_COUNT > 1}
{assign var="hasSubmit" value = false}
{else}
{assign var="hasSubmit" value = true}
{/if}
{assign var="productTitle" value="{$TITLE}"}
{if not $product_id}
{assign var="product_id" value=$ID}
{/if}
{if $product_id}
{assign var="hasQuickView" value=1}
{/if}
<article class="row" itemscope itemtype="http://schema.org/Product">
{hook name="singleproduct.top" product="{$product_id}"}
<a href="{$URL nofilter}" itemprop="url" tabindex="-1" class="product-image{if $hasQuickView == true} product-quickview{/if} overlay col-sm-3">
{loop name="product_thumbnail" type="image" product=$product_id width="{$width}" height="{$height}" resize_mode="crop" limit="1"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" class="img-responsive" alt="{$productTitle}">
{/loop}
{elseloop rel="product_thumbnail"}
<img itemprop="image" src="{image file='assets/dist/img/218x146.png'}" class="img-responsive" alt="{$productTitle}">
{/elseloop}
</a>
<div class="product-info col-sm-6">
<h2 class="name"><a href="{$URL nofilter}"><span itemprop="name">{$productTitle}</span></a></h2>
{if $hasDescription}
<div class="description" itemprop="description">
<p>{$DESCRIPTION nofilter}</p>
</div>
{/if}
</div>
{* Stock *}
{assign var="current_stock_content" value = "in_stock"}
{assign var="current_stock_href" value = "http://schema.org/InStock"}
{if {config key="check-available-stock"} != 0}
{if $VIRTUAL == 0 && $QUANTITY <= 0}
{assign var="current_stock_content" value = "out_stock"}
{assign var="current_stock_href" value = "http://schema.org/OutOfStock"}
{/if}
{/if}
<div class="product-price col-sm-3">
<div class="price-container row" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="category" content="{category attr="title"}">
{* List of condition : NewCondition, DamagedCondition, UsedCondition, RefurbishedCondition *}
<meta itemprop="itemCondition" itemscope itemtype="http://schema.org/NewCondition">
{* List of currency : The currency used to describe the product price, in three-letter ISO format. *}
<meta itemprop="priceCurrency" content="{currency attr="symbol"}">
<link itemprop="availability" href="{$current_stock_href}" content="{$current_stock_content}" />
{if $IS_PROMO }
{assign var="combination_count" value={count type="product_sale_elements" promo="1" product=$ID}}
<span class="special-price col-xs-6"><span itemprop="price" class="price-label">{intl l="Special Price:"} </span><span class="price">
{if $combination_count > 1}
{intl l="From %price" price={format_money number=$BEST_TAXED_PRICE}}
{else}
{format_money number=$BEST_TAXED_PRICE}
{/if}
</span></span>
{if $SHOW_ORIGINAL_PRICE}
<span class="old-price col-xs-6"><span class="price-label">{intl l="Regular Price:"} </span><span class="price">{format_money number=$TAXED_PRICE}</span></span>
{/if}
{else}
<span class="regular-price col-xs-12"><span itemprop="price" class="price">{format_money number=$BEST_TAXED_PRICE}</span></span>
{/if}
</div>
{if $hasBtn == true}
{if $hasSubmit == true && $current_stock_content == "in_stock"}
{form name="thelia.cart.add" }
<form id="form-product-details{$product_id}" action="{url path="/cart/add" }" method="post" class="form-product">
{form_hidden_fields}
<input type="hidden" name="view" value="product">
<input type="hidden" name="product_id" value="{$product_id}">
{form_field field="append"}
<input type="hidden" name="{$name}" value="1">
{/form_field}
{if $form_error}<div class="alert alert-error">{$form_error_message}</div>{/if}
{form_field field='product_sale_elements_id'}
<input type="hidden" class="pse-id" name="{$name}" value="{$PRODUCT_SALE_ELEMENT}" {$attr}>
{/form_field}
{form_field field="product"}
<input id="{$label_attr.for}" type="hidden" name="{$name}" value="{$product_id}" {$attr} >
{/form_field}
<fieldset class="product-cart form-inline">
{form_field field='quantity'}
<div class="form-group group-qty hide {if $error}has-error{elseif $value != "" && !$error}has-success{/if}">
<label for="{$label_attr.for}">{$label}</label>
<input type="number" name="{$name}" id="{$label_attr.for}" class="form-control" value="{$value|default:1}" min="0" required>
{if $error }
<span class="help-block"><i class="fa fa-remove"></i> {$message}</span>
{elseif $value != "" && !$error}
<span class="help-block"><i class="fa fa"></i></span>
{/if}
</div>
{/form_field}
<div>
<div class="product-btn">
<button type="submit" class="btn btn-primary btn-block"><i class="fa fa-shopping-cart"></i> {intl l="Add to cart"}</button>
</div>
</div>
</fieldset>
</form>
{/form}
{else}
<div>
<div class="product-btn">
<a href="{$URL nofilter}" class="btn btn-primary btn-block"><i class="fa fa-eye"></i> {intl l="View product"}</a>
</div>
</div>
{/if}
{/if}
</div>
{hook name="singleproduct.bottom" product={$product_id}}
</article><!-- /product -->
</li>

View File

@@ -0,0 +1,74 @@
<div class="toolbar toolbar-{$toolbar}" role="toolbar">
{if $toolbar == "top" }
<div class="sorter-container clearfix">
<span class="amount">{if ($amount > 1)}{intl l="%nb Items" nb="{$amount}"}{else}{intl l="%nb Item" nb="{$amount}"}{/if}</span>
<span class="limiter">
<label for="limit-top">{intl l="Show"}</label>
<select id="limit-top" name="limit">
<option value="{url current="1" limit="4"}" {if $limit==4}selected{/if}>4</option>
<option value="{url current="1" limit="8"}" {if $limit==8}selected{/if}>8</option>
<option value="{url current="1" limit="12"}" {if $limit==12}selected{/if}>12</option>
<option value="{url current="1" limit="50"}"{if $limit==50}selected{/if}>50</option>
<option value="{url current="1" limit="100000"}" {if $limit==100000}selected{/if}>{intl l="All"}</option>
</select>
<span class="per-page">{intl l="per page"}</span>
</span><!-- /.limiter -->
<span class="sort-by">
<label for="sortby-top">{intl l="Sort By"}</label>
<select id="sortby-top" name="sortby">
{*<option value="{url path="{category attr="url"}" order="manual"}">{intl l="Position"}</option>*}
<option value="{url current="1" limit=$limit order="alpha"}" {if $order=="alpha"}selected{/if}>{intl l="Name ascending"}</option>
<option value="{url current="1" limit=$limit order="alpha_reverse"}" {if $order=="alpha_reverse"}selected{/if}>{intl l="Name descending"}</option>
<option value="{url current="1" limit=$limit order="min_price"}" {if $order=="min_price"}selected{/if}>{intl l="Price ascending"}</option>
<option value="{url current="1" limit=$limit order="max_price"}" {if $order=="max_price"}selected{/if}>{intl l="Price descending"}</option>
{*<option value="{url path="{category attr="url"}" order="rating"}">{intl l="Rating"}</option>*}
</select>
</span><!-- /.sort-by -->
<span class="view-mode">
<span class="view-mode-label sr-only">{intl l="View as"}:</span>
<span class="view-mode-btn">
<a href="{url current="1" mode="grid"}" data-toggle="view" role="button" title="{intl l="Grid"}" rel="nofollow" class="btn btn-default btn-grid"><i class="fa fa-th"></i></a>
<a href="{url current="1" mode="list"}" data-toggle="view" role="button" title="{intl l="List"}" rel="nofollow" class="btn btn-default btn-list"><i class="fa fa-th-list"></i></a>
</span>
</span><!-- /.view-mode -->
</div><!-- /.sorter -->
{else}
{if $amount > $limit}
<div class="pagination-container clearfix" role="pagination" aria-labelledby="pagination-label-{$toolbar}">
<strong id="pagination-label-{$toolbar}" class="pagination-label sr-only">{intl l="Pagination"}</strong>
<ul class="pagination pagination-sm">
{if $product_page le 1}
<li class="disabled">
<span class="prev"><i class="fa fa-caret-left"></i></span>
</li>
{else}
<li>
<a href="{url current="1" page={$product_page-1} }" title="{intl l="Previous"}" class="prev"><i class="fa fa-caret-left"></i></a>
</li>
{/if}
{pageloop rel="product_list"}
<li{if $PAGE eq $CURRENT} class="active"{/if}>
<a href="{url current="1" page=$PAGE }"> {$PAGE} </a>
</li>
{if $PAGE eq $LAST}
{if $CURRENT eq $LAST}
<li class="disabled">
<span class="next"><i class="fa fa-caret-right"></i></span>
</li>
{else}
<li>
<a href="{url current="1" page={$NEXT} }" title="{intl l="Next"}" class="next"><i class="fa fa-caret-right"></i></a>
</li>
{/if}
{/if}
{/pageloop}
</ul>
</div>
{/if}
{/if}
</div>