1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/skin/developer/components/more/more.tpl
2014-11-06 23:51:24 +07:00

25 lines
752 B
Smarty

{**
* Подгрузка контента
*
* @param string $text
* @param string $target
* @param integer $count
* @param boolean $append
*}
{* Название компонента *}
{$component = 'more'}
<div class="{$component} {mod name=$component mods=$smarty.local.mods} {$smarty.local.classes}"
data-more-append="{$smarty.local.append|default:true}"
{if $smarty.local.target}data-more-target="{$smarty.local.target}"{/if}
{foreach $smarty.local.attributes as $attr}{$attr@key}="{$attr@value}" {/foreach}>
{* Текст *}
{$smarty.local.text|default:{lang 'more.text'}}
{* Счетчик *}
{if $smarty.local.count}
(<span class="js-more-count">{$smarty.local.count}</span>)
{/if}
</div>