mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
47 lines
1.6 KiB
Smarty
47 lines
1.6 KiB
Smarty
<section class="block">
|
|
<header class="block-header">
|
|
<h3>{$aLang.block_tags}</h3>
|
|
</header>
|
|
|
|
|
|
<div class="block-content">
|
|
<ul class="nav nav-pills">
|
|
<li class="active js-block-tags-item" data-type="all"><a href="#">{$aLang.topic_favourite_tags_block_all}</a></li>
|
|
{if $oUserCurrent}
|
|
<li class="js-block-tags-item" data-type="user"><a href="#">{$aLang.topic_favourite_tags_block_user}</a></li>
|
|
{/if}
|
|
|
|
{hook run='block_tags_nav_item'}
|
|
</ul>
|
|
|
|
<form action="" method="GET" class="js-tag-search-form search-tags">
|
|
<input type="text" name="tag" placeholder="{$aLang.block_tags_search}" value="" class="input-text input-width-full autocomplete-tags js-tag-search" />
|
|
</form>
|
|
|
|
<div class="js-block-tags-content" data-type="all">
|
|
{if $aTags}
|
|
<ul class="tag-cloud word-wrap">
|
|
{foreach from=$aTags item=oTag}
|
|
<li><a class="tag-size-{$oTag->getSize()}" href="{router page='tag'}{$oTag->getText()|escape:'url'}/">{$oTag->getText()|escape:'html'}</a></li>
|
|
{/foreach}
|
|
</ul>
|
|
{else}
|
|
<div class="notice-empty">{$aLang.block_tags_empty}</div>
|
|
{/if}
|
|
</div>
|
|
|
|
{if $oUserCurrent}
|
|
<div class="js-block-tags-content" data-type="user" style="display: none;">
|
|
{if $aTagsUser}
|
|
<ul class="tag-cloud word-wrap">
|
|
{foreach from=$aTagsUser item=oTag}
|
|
<li><a class="tag-size-{$oTag->getSize()}" href="{router page='tag'}{$oTag->getText()|escape:'url'}/">{$oTag->getText()|escape:'html'}</a></li>
|
|
{/foreach}
|
|
</ul>
|
|
{else}
|
|
<div class="notice-empty">{$aLang.block_tags_empty}</div>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</section> |