1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 16:04:24 +03:00
ifhub.club/application/frontend/components/user/user-item.tpl
Denis Shakhov c31a235423 Компоненты специфичные для lscms перенесены во frontend/components
Остальные перенесены во фреймворк
2015-01-31 19:16:15 +07:00

26 lines
767 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 integer $avatarSize
*
* @param string $classes
* @param array $attributes
* @param array $mods
*}
{$component = 'user-item'}
{$user = $smarty.local.user}
<div class="{$component} {cmods name=$component mods=$smarty.local.mods} {$smarty.local.classes}"
{cattr list=$smarty.local.attributes}>
<a href="{$user->getUserWebPath()}" class="{$component}-avatar-link">
<img src="{$user->getProfileAvatarPath( $smarty.local.avatarSize|default:24 )}" alt="{$user->getLogin()}" class="{$component}-avatar" />
</a>
<a href="{$user->getUserWebPath()}" class="{$component}-name">
{$user->getDisplayName()}
</a>
</div>