On rajoute des infos dans single-products (les pictos)

This commit is contained in:
2021-05-03 16:41:20 +02:00
parent fd6e7caf41
commit 9a09fb6432
12 changed files with 254 additions and 135 deletions

View File

@@ -125,13 +125,15 @@
<div class="item active">
<ul class="list-inline">
{loop name="image.carousel" type="image" product={$ID} width="560" height="445" resize_mode="borders" limit="5"}
<li>
<a href="{$IMAGE_URL nofilter}" class="thumbnail {if $LOOP_COUNT == 1}active{/if}">
{loop type="image" name="image.thumbs" id={$ID} product="$OBJECT_ID" width="118" height="85" resize_mode="borders"}
<img src="{$IMAGE_URL nofilter}" alt="{$TITLE}">
{/loop}
</a>
</li>
{if $LOOP_COUNT > 1}
<li>
<a href="{$IMAGE_URL nofilter}" class="thumbnail {if $LOOP_COUNT == 1}active{/if}">
{loop type="image" name="image.thumbs" id={$ID} product="$OBJECT_ID" width="118" height="85" resize_mode="borders"}
<img src="{$IMAGE_URL nofilter}" alt="{$TITLE}">
{/loop}
</a>
</li>
{/if}
{/loop}
</ul>
</div>
@@ -370,13 +372,31 @@
{/capture}
{/strip}
<section id="product-tabs" class="col-sm-12">
{strip}
{capture "associated_content"}
{ifloop rel="ac-loop"}
<ul>
{loop name="ac-loop" type="associated_content" product=$product_id}
{loop type="content" name="ac-content-loop" id=$CONTENT_ID}
<div class="description">
{$DESCRIPTION nofilter}
</div>
{/loop}
{/loop}
</ul>
{/ifloop}
{/capture}
{/strip}
<section id="product-tabs" class="col-sm-6">
{hookblock name="product.additional" product=$product_id fields="id,class,title,content"}
<ul class="nav nav-tabs" role="tablist">
<li class="active" role="presentation"><a id="tab1" href="#description" data-toggle="tab" role="tab">{intl l="Description"}</a></li>
{if $smarty.capture.additional ne ""}<li role="presentation"><a id="tab2" href="#additional" data-toggle="tab" role="tab">{intl l="Additional Info"}</a></li>{/if}
{if $smarty.capture.brand_info ne ""}<li role="presentation"><a id="tab3" href="#brand_info" data-toggle="tab" role="tab">{intl l="Brand information"}</a></li>{/if}
{if $smarty.capture.document ne ""}<li role="presentation"><a id="tab4" href="#document" data-toggle="tab" role="tab">{intl l="Documents"}</a></li>{/if}
{* {if $smarty.capture.associated_content ne ""}<li role="presentation"><a id="tab5" href="#associated_content" data-toggle="tab" role="tab">{intl l="Associated content"}</a></li>{/if} *}
{forhook rel="product.additional"}
<li role="presentation"><a id="tab{$id}" href="#{$id}" data-toggle="tab" role="tab">{$title}</a></li>
{/forhook}
@@ -405,6 +425,11 @@
{$content nofilter}
</div>
{/forhook}
{if $smarty.capture.associated_content ne ""}
<div class="tab-pane" id="associated_content" role="tabpanel" aria-labelledby="tab5">
{$smarty.capture.associated_content nofilter}
</div>
{/if}
</div>
{/hookblock}
</section>