mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
25 lines
752 B
Smarty
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> |