2014-04-08 14:42:07 +03:00
|
|
|
{**
|
|
|
|
* Подгрузка контента
|
|
|
|
*
|
2014-10-10 19:29:24 +03:00
|
|
|
* @param string $text
|
|
|
|
* @param string $target
|
|
|
|
* @param integer $count
|
|
|
|
* @param boolean $append
|
2014-04-08 14:42:07 +03:00
|
|
|
*}
|
|
|
|
|
|
|
|
{* Название компонента *}
|
2014-10-10 19:29:24 +03:00
|
|
|
{$component = 'more'}
|
2014-04-08 14:42:07 +03:00
|
|
|
|
2014-10-10 19:29:24 +03:00
|
|
|
<div class="{$component} {mod name=$component mods=$smarty.local.mods} {$smarty.local.classes}"
|
2014-11-06 18:51:24 +02:00
|
|
|
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}>
|
2014-04-08 14:42:07 +03:00
|
|
|
|
2014-11-06 18:51:24 +02:00
|
|
|
{* Текст *}
|
|
|
|
{$smarty.local.text|default:{lang 'more.text'}}
|
2014-04-08 14:42:07 +03:00
|
|
|
|
2014-11-06 18:51:24 +02:00
|
|
|
{* Счетчик *}
|
|
|
|
{if $smarty.local.count}
|
|
|
|
(<span class="js-more-count">{$smarty.local.count}</span>)
|
|
|
|
{/if}
|
2014-04-08 14:42:07 +03:00
|
|
|
</div>
|