mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-02 22:45:02 +03:00
20 lines
730 B
Smarty
20 lines
730 B
Smarty
|
{**
|
|||
|
* Список пользователей (аватары)
|
|||
|
*
|
|||
|
* @param array $users Список пользователей
|
|||
|
* @param array $pagination Массив с параметрами пагинации
|
|||
|
* @param array $emptyText
|
|||
|
*}
|
|||
|
|
|||
|
{$items = []}
|
|||
|
|
|||
|
{foreach $users as $user}
|
|||
|
{* TODO: Костыль для блогов *}
|
|||
|
{if $user->getUser()}{$user = $user->getUser()}{/if}
|
|||
|
|
|||
|
{$items[] = {component 'user' template='avatar' size=$smarty.local.size|default:'small' user=$user}}
|
|||
|
{/foreach}
|
|||
|
|
|||
|
{component 'avatar' template='list' items=$items params=$smarty.local.params}
|
|||
|
|
|||
|
{component 'pagination' total=+$pagination.iCountPage current=+$pagination.iCurrentPage url="{$pagination.sBaseUrl}/page__page__/"}
|