mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 07:54:24 +03:00
27 lines
878 B
Smarty
27 lines
878 B
Smarty
{**
|
|
* Список пользователей (аватары)
|
|
*
|
|
* @param array $aUsersList Список пользователей
|
|
* @param array $bShowPagination Показывать или нет пагинацию (false)
|
|
*}
|
|
|
|
{if $aUsersList}
|
|
<ul class="user-list-avatar">
|
|
{foreach $aUsersList as $oUser}
|
|
{* TODO: Костыль для блогов *}
|
|
{if $oUser->getUser()}{$oUser = $oUser->getUser()}{/if}
|
|
|
|
<li>{include 'components/user/user-item.tpl' oUser=$oUser iUserItemAvatarSize=64}</li>
|
|
{/foreach}
|
|
</ul>
|
|
{else}
|
|
{if $sUserListEmpty}
|
|
{include 'components/alert/alert.tpl' text=$sUserListEmpty mods='empty'}
|
|
{else}
|
|
{include 'components/alert/alert.tpl' text=$aLang.common.empty mods='empty'}
|
|
{/if}
|
|
{/if}
|
|
|
|
{if isset($bShowPagination) && bShowPagination === true}
|
|
{include 'components/pagination/pagination.tpl' paging=$aPaging}
|
|
{/if} |