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/components/tags/tag_cloud.tpl
Denis Shakhov 4218e1ea0d Доработка компонентов
* Компоненты перенесены в папку components
* favourite.js переписан с использованием jquery widget factory
* Компоненту vote добавлены rtl стили
2014-04-28 17:30:32 +07:00

28 lines
884 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 'components/alert/alert.tpl' mAlerts=$aLang.block_tags_empty sMods='empty'}
{/if}