43 lines
1.3 KiB
Smarty
43 lines
1.3 KiB
Smarty
{if $body.products|count or $body.sections|count or $body.producers|count}
|
|
{if $body.products|count}
|
|
<div class="ac-products">
|
|
<ul>
|
|
{foreach $body.products as $product}
|
|
<li>
|
|
<a href="{url s=product IDproduct=$product.id TITLE=$product.title}">
|
|
<img src="{get_photo photo=$product.image size='product_catalog'}" alt="{$product.title}">
|
|
<span>{$product.title}</span>
|
|
</a>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $body.sections|count}
|
|
<div class="ac-categories">
|
|
<h4>{t}Kategorie{/t}</h4>
|
|
<ul>
|
|
{foreach $body.sections as $section}
|
|
<li>
|
|
<a href="{url s=category IDcat=$section.id}">{$section.name}</a>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $body.producers|count}
|
|
<div class="ac-categories ac-producers">
|
|
<h4>{t}Značky{/t}</h4>
|
|
<ul>
|
|
{foreach $body.producers as $producer}
|
|
<li>
|
|
<a href="{url s=category IDpd=$producer.id producerTitle=$producer.name}">{$producer.name}</a>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
{/if}
|