This commit is contained in:
Nolwenn J 2017-10-16 11:02:20 +02:00
parent 5b3d76cd0f
commit 2893d9cddb

View File

@ -32,16 +32,18 @@
{foreach from=$subcategories item=subcategory key=key}
<div class="category-ctn md4 sm6 xs6 xxs12 subcategories-univers">
<div class="inner">
{if file_exists($smarty.const._PS_ROOT_DIR_|cat:"/img/c/home/{$subcategory.id_category}.jpg")}
<div class="img"><img class="img-full" src="{$base_dir}img/c/home/{$subcategory.id_category}.jpg" alt="{$subcategory.name}"/></div>
{/if}
<div class="content">
<div class="txt">
<i class="icon icon-{trim($subcategory.liste_icons_univers)} icon-featured"></i>
<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">
{if file_exists($smarty.const._PS_ROOT_DIR_|cat:"/img/c/home/{$subcategory.id_category}.jpg")}
<div class="img"><img class="img-full" src="{$base_dir}img/c/home/{$subcategory.id_category}.jpg" alt="{$subcategory.name}"/></div>
{/if}
<div class="content">
<div class="txt">
<i class="icon icon-{trim($subcategory.liste_icons_univers)} icon-featured"></i>
</div>
<h3 class="title">{$subcategory.name}</h3>
</div>
<h3 class="title">{$subcategory.name}</h3>
</div>
</a>
</div>
</div>
{/foreach}