1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/skin/developer/components/tags/tag-cloud.tpl
2014-10-29 16:50:07 +07:00

28 lines
906 B
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Облако тегов
*
* @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}