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

26 lines
602 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 $classes
* @param array $attributes
* @param array $mods
*}
{$sizes = [
'large' => 200,
'default' => 100,
'small' => 64,
'xsmall' => 48,
'xxsmall' => 24,
'text' => 18
]}
{$user = $smarty.local.user}
{component 'avatar'
image = $user->getProfileAvatarPath( $sizes[ $smarty.local.size|default:'default' ] )
url = $user->getUserWebPath()
classes = 'user-item'
name = $user->getDisplayName()
params = $smarty.local.params}