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/developer/tag_cloud.tpl
2014-01-04 14:36:38 +07:00

28 lines
878 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 $aTags Массив с тегами
* @param string $sTagsUrl Код для получения ссылки тега
* @param string $sTagsText Код для получения названия тега
* @param string $sTagsActive Текст активного тега
*
* @styles css/common.css
*}
{if $aTags}
<ul class="tag-cloud word-wrap">
{foreach $aTags as $oTag}
<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}