1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/skin/developer/tag_cloud.tpl

28 lines
878 B
Smarty
Raw Normal View History

{**
* Облако тегов
*
* @param array $aTags Массив с тегами
* @param string $sTagsUrl Код для получения ссылки тега
* @param string $sTagsText Код для получения названия тега
2014-01-04 07:20:18 +02:00
* @param string $sTagsActive Текст активного тега
*
* @styles css/common.css
*}
{if $aTags}
<ul class="tag-cloud word-wrap">
{foreach $aTags as $oTag}
2014-01-04 09:36:38 +02:00
<li class="tag-cloud-item {if $oTag->getText() && $sTagsActive == $oTag->getText()}active{/if}">
<a class="tag-size-{$oTag->getSize()}" href="{eval var=$sTagsUrl}" title="{$oTag->getCount()}">
{if $sTagsText}
{eval var=$sTagsText}
{else}
{$oTag->getText()|escape}
{/if}
</a>
</li>
{/foreach}
</ul>
{else}
{include file='alert.tpl' mAlerts=$aLang.block_tags_empty sAlertStyle='empty'}
{/if}