1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00
ifhub.club/application/frontend/components/user/avatar/user-avatar-list.tpl
2016-04-07 16:40:28 +07:00

22 lines
762 B
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Список пользователей (аватары)
*
* @param array $users Список пользователей
* @param array $pagination Массив с параметрами пагинации
* @param array $emptyText
*}
{component_define_params params=[ 'size' ]}
{$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=$params}
{component 'pagination' total=+$pagination.iCountPage current=+$pagination.iCurrentPage url="{$pagination.sBaseUrl}/page__page__/"}