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

31 lines
1,015 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 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'}
{component_define_params params=[ 'selectable', 'user', 'mods', 'classes', 'attributes' ]}
{block 'user_list_small_item_options'}
{$userId = $user->getId()}
{/block}
<li class="{$component} js-user-list-small-item {$classes}" data-user-id="{$userId}" {cattr list=$attributes}>
{* Чекбокс *}
{if $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>