Как сделать?
Сайт: steamz.ru
Вот код:
Код: Выделить всё
<div class="cats">
{if $categories}
<ul class="submenu">
{foreach $categories as $c}
{if $c->visible}
{if $c->subcategories && $c->count_children_visible}
<li>
<a href="{$lang_link}catalog/{$c->url}" data-category="{$c->id}">
<span>{$c->name|escape}</span>
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="15" height="15"
viewBox="0 0 30 30"
style=" fill:#fff;"> <path style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;isolation:auto;mix-blend-mode:normal" d="M 24.990234 8.9863281 A 1.0001 1.0001 0 0 0 24.292969 9.2929688 L 15 18.585938 L 5.7070312 9.2929688 A 1.0001 1.0001 0 0 0 4.9902344 8.9902344 A 1.0001 1.0001 0 0 0 4.2929688 10.707031 L 14.292969 20.707031 A 1.0001 1.0001 0 0 0 15.707031 20.707031 L 25.707031 10.707031 A 1.0001 1.0001 0 0 0 24.990234 8.9863281 z" font-weight="400" font-family="sans-serif" white-space="normal" overflow="visible"></path></svg>
</a>
</li>
{else}
<li>
<a href="{$lang_link}catalog/{$c->url}" data-category="{$c->id}">{$c->name|escape}</a>
</li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
</div>