1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-19 17:28:23 +03:00
ifhub.club/application/frontend/skin/synio/components/user/header.tpl
Denis Shakhov 1fbaa0ac46 Шаблон Synio
Профиль пользователя
2016-08-30 19:04:04 +07:00

55 lines
1.8 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.

{**
* Шапка профиля
*}
{$component = 'user-profile'}
{component_define_params params=[ 'user', 'mods', 'classes', 'attributes' ]}
{if $user->getProfileName()}
{$mods = "{$mods} has-name"}
{/if}
{if $user->isOnline()}
{$mods = "{$mods} is-online"}
{/if}
<div class="{$component} {cmods name=$component mods=$mods} {$classes} ls-clearfix" {cattr list=$attributes}>
{* @hook Начало шапки с информацией о пользователе *}
{hook run='user_header_begin' user=$user}
{* Пользователь *}
<div class="{$component}-user ls-clearfix">
<a href="{$user->getUserWebPath()}">
<img src="{$user->getProfileAvatarPath(100)}" alt="{$user->getProfileName()}" class="{$component}-user-avatar js-user-profile-avatar" itemprop="photo">
</a>
<div class="{$component}-user-body">
<h2 class="{$component}-user-login" itemprop="nickname">
<a href="{$user->getUserWebPath()}">
{$user->getLogin()}
</a>
</h2>
{if $user->getProfileName()}
<p class="{$component}-user-name" itemprop="name">
{$user->getProfileName()|escape}
</p>
{/if}
</div>
</div>
{* Рейтинг *}
{* @hook Рейтинг пользователя *}
{hookb run='user_rating' user=$user}
{$_rating = $user->getRating()}
<div class="{$component}-rating {if $_rating < 0}{$component}-rating--negative{/if}">
<div class="{$component}-rating-value">{$_rating}</div>
<div class="{$component}-rating-label">Рейтинг</div>
</div>
{/hookb}
{* @hook Конец шапки с информацией о пользователе *}
{hook run='user_header_end' user=$user}
</div>