1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/application/frontend/skin/synio/components/tags/tags.tpl
2016-09-18 23:37:14 +07:00

24 lines
684 B
Smarty

{**
* Список тегов
*}
{$component = 'ls-tags'}
{component_define_params params=[ 'title', 'tags', 'mods', 'classes', 'attributes' ]}
{block 'tags_options'}{/block}
{if $tags}
<div class="{$component} {cmods name=$component mods=$mods} {$classes}" {cattr list=$attributes}>
{if $title}
<span class="{$component}-item {$component}-title">
{$title}
</span>
{/if}
{block 'tags_list'}
{foreach $tags as $tag}
{component 'tags' template='item' text=$tag->getText() url=$tag->getUrl() isFirst=$tag@first isLast=$tag@last}
{/foreach}
{/block}
</div>
{/if}