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/user-list-small-item.tpl
2015-04-17 23:21:45 +07:00

33 lines
1 KiB
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 object $user
* @param string $selectable
* @param string $showActions
* @param string $showRemove
*
* @param string $classes
* @param array $attributes
* @param array $mods
*}
{$component = 'user-list-small-item'}
{block 'user_list_small_item_options'}
{$classes = $smarty.local.classes}
{$attributes = $smarty.local.attributes}
{$user = $smarty.local.user}
{$userId = $user->getId()}
{/block}
<li class="{$component} js-user-list-small-item {$classes}" data-user-id="{$userId}" {cattr list=$attributes}>
{* Чекбокс *}
{if $smarty.local.selectable}
<input type="checkbox" class="js-user-list-small-checkbox" data-user-id="{$userId}" data-user-login="{$user->getLogin()}" />
{/if}
{* Пользователь *}
{block 'user_list_small_item_content'}
{component 'user' template='avatar' size='xxsmall' mods='inline' user=$user}
{/block}
</li>