Files
sterivein/templates/frontOffice/sterivein/index.html
TheCoreDev a149d7cead Une première version d'une version permettant d'avoir des templates différents suivant la langue.
A creuser mais peut-être pas besoin de TemplateSwitcher et de CustomSwitchTemplate, et qu'il suffirait de rajouter juste du Smarty dans layout.tpl et index.html
2024-01-09 18:04:53 +01:00

100 lines
5.0 KiB
HTML

{extends file="layout.tpl"}
{* Body Class *}
{block name="body-class"}page-home{/block}
{* Page Title *}
{block name='no-return-functions' append}
{$page_title = {config key="store_name"}}
{/block}
{* Hide breadcrumb *}
{block name='breadcrumb'}{/block}
{block name="main-content"}
{loop type="content" name="home-folder" id="1"}
<h1 class="text-center">{intl l="Docteur Alain Monfreux, <small>inventeur du STERIVEIN® et du Sclerivein®</small>"}</h1>
<div class="well">
<p>{$CHAPO|nl2br nofilter}</p>
</div>
{/loop}
<div class="row">
<div class="col-md-12">
{loop type="content" name="home-folder" id="1"}
{$DESCRIPTION nofilter}
{if $POSTSCRIPTUM}
<div class="attention"><strong>{$POSTSCRIPTUM|nl2br nofilter}</strong></div>
{/if}
{/loop}
</div>
</div>
{assign var="langue" value="{lang attr="locale"}"}
{if $langue == 'fr_FR'}
<section id="products-new">
<h2>{intl l="Commander STERIVEIN® et Sclerivein®"}</h2>
<div class="products-content">
<ul class="products-grid product-col-2">
{loop name="product_new" type="product" category="1" order="manual"}
<li class="item">
<article itemscope itemtype="http://schema.org/Product">
<!-- Use the meta tag to specify content that is not visible on the page in any way -->
{$product_id=$ID}
<a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
{ifloop rel="image_product_new" }
<img itemprop="image"
{loop name="image_product_new" type="image" limit="1" product=$ID force_return="true" width="280" height="210" resize_mode="borders" background_color="52ADDC"}
src="{$IMAGE_URL}"
{/loop}
alt="Product #{$LOOP_COUNT}" >
{/ifloop}
{elseloop rel="image_product_new"}
{images file='assets/img/280x196.png'}<img itemprop="image" src="{$asset_url}" alt="Product #{$LOOP_COUNT}">{/images}
{/elseloop}
<span class="mask"></span>
</a>
<a href="{$URL}" class="product-info">
<h3 class="name">{intl l="Commander"} <span itemprop="name">{$TITLE}</span></h3>
<div class="short-description" itemprop="description">{$CHAPO}</div>
<div class="product-price">
<div class="price-container" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
{loop type="category" name="category_tag" id=$DEFAULT_CATEGORY}
<meta itemprop="category" content="{$TITLE}">
{/loop}
<meta itemprop="itemCondition" itemscope itemtype="http://schema.org/NewCondition"> <!-- List of condition : NewCondition, DamagedCondition, UsedCondition, RefurbishedCondition -->
<meta itemprop="priceCurrency" content="{currency attr="code"}"> <!-- List of currency : The currency used to describe the product price, in three-letter ISO format. -->
<link itemprop="availability" href="http://schema.org/InStock" content="in_stock" />
<!-- List of availibility :
out_of_stock : http://schema.org/OutOfStock
in_stock : http://schema.org/InStock
instore_only : http://schema.org/InStoreOnly
preorder : http://schema.org/PreOrder
online_only : http://schema.org/OnlineOnly
-->
<span class="regular-price">
{intl l="A partir de"}
<span itemprop="price" class="price">{format_money number={$BEST_TAXED_PRICE} symbol={currency attr="symbol"}}</span>
{loop name="combi" type="attribute_combination" product_sale_elements=$PRODUCT_SALE_ELEMENT}
{$ATTRIBUTE_AVAILABILITY_TITLE}
{/loop}
</span>
</div>
</div>
</a>
</article><!-- /product -->
</li>
{/loop}
</ul>
</div>
</section><!-- #products-new -->
{/if}
{/block}