mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
28 lines
906 B
Smarty
28 lines
906 B
Smarty
{**
|
||
* Облако тегов
|
||
*
|
||
* @param array $tags Массив с тегами
|
||
* @param string $url Код для получения ссылки тега
|
||
* @param string $text Код для получения названия тега
|
||
* @param string $active Текст активного тега
|
||
*
|
||
* @styles css/common.css
|
||
*}
|
||
|
||
{if $smarty.local.tags}
|
||
<ul class="tag-cloud word-wrap">
|
||
{foreach $smarty.local.tags as $tag}
|
||
<li class="tag-cloud-item {if $tag->getText() && $smarty.local.active == $tag->getText()}active{/if}">
|
||
<a class="tag-size-{$tag->getSize()}" href="{eval var=$smarty.local.url}" title="{$tag->getCount()}">
|
||
{if $smarty.local.text}
|
||
{eval var=$smarty.local.text}
|
||
{else}
|
||
{$tag->getText()|escape}
|
||
{/if}
|
||
</a>
|
||
</li>
|
||
{/foreach}
|
||
</ul>
|
||
{else}
|
||
{include 'components/alert/alert.tpl' text=$aLang.common.empty mods='empty'}
|
||
{/if} |