1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-04 18:08:19 +03:00
ifhub.club/application/frontend/components/user/avatar/user-avatar-list.tpl
2015-04-17 23:21:45 +07:00

20 lines
730 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
*}
{$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__/"}