first commit
This commit is contained in:
19
web/templates/x/product/product.gifts.tpl
Normal file
19
web/templates/x/product/product.gifts.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{if $body.product.gifts}
|
||||
<div class="product-gifts">
|
||||
{foreach $body.product.gifts as $gift_product}
|
||||
{$gift_product->fetchImages(4)}
|
||||
<div class="item">
|
||||
<span class="gift"> + {t}dárek{/t}</span>
|
||||
<a href="{url s=product IDproduct=$gift_product.id TITLE=$gift_product.title}">
|
||||
{block "photo"}
|
||||
<img src="{get_photo photo=$gift_product.image size=4}" alt="{$gift_product.title}">
|
||||
{/block}
|
||||
</a>
|
||||
<a href="{url s=product IDproduct=$gift_product.id TITLE=$gift_product.title}"
|
||||
title="{t}Zobrazit zboží{/t}" class="title">
|
||||
{if $gift_product.gift_pieces and $gift_product.gift_pieces > 1}{$gift_product.gift_pieces}x {/if}{$gift_product.title}
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user