mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
36 lines
1.2 KiB
Smarty
36 lines
1.2 KiB
Smarty
{**
|
|
* Список пользователей
|
|
*
|
|
* @param array $users
|
|
* @param array $pagination
|
|
* @param boolean $useMore
|
|
* @param boolean $hideMore
|
|
* @param integer $searchCount
|
|
* @param string $textEmpty
|
|
*}
|
|
|
|
{if $smarty.local.users}
|
|
{* Заголовок *}
|
|
{if $smarty.local.searchCount}
|
|
<h3 class="h3">{lang name='user.search.result_title' count=$smarty.local.searchCount plural=true}</h3>
|
|
{/if}
|
|
|
|
{* Список пользователей *}
|
|
<ul class="object-list user-list js-more-users-container">
|
|
{include './user-list-loop.tpl' users=$smarty.local.users}
|
|
</ul>
|
|
|
|
{* Кнопка подгрузки *}
|
|
{if $smarty.local.useMore}
|
|
{if ! $smarty.local.hideMore}
|
|
{include 'components/more/more.tpl'
|
|
classes = 'js-more-search'
|
|
target = '.js-more-users-container'
|
|
attributes = [ 'data-search-type' => 'users', 'data-proxy-page-next' => '2' ]}
|
|
{/if}
|
|
{else}
|
|
{include 'components/pagination/pagination.tpl' paging=$smarty.local.pagination}
|
|
{/if}
|
|
{else}
|
|
{include 'components/alert/alert.tpl' text=$smarty.local.textEmpty|default:{lang name='user.notices.empty'} mods='empty'}
|
|
{/if} |