mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-17 13:54:26 +03:00
45 lines
1.2 KiB
Smarty
45 lines
1.2 KiB
Smarty
{**
|
|
* Шапка профиля
|
|
*}
|
|
|
|
{$component = 'user-profile'}
|
|
|
|
{$user = $smarty.local.user}
|
|
{$mods = $smarty.local.mods}
|
|
|
|
{if $user->getProfileName()}
|
|
{$mods = "{$mods} has-name"}
|
|
{/if}
|
|
|
|
<div class="{$component} {mod name=$component mods=$mods} {$smarty.local.classes}" {$smarty.local.attributes}>
|
|
{hook run='profile_top_begin' user=$user}
|
|
|
|
{* Пользователь *}
|
|
<div class="{$component}-user">
|
|
<a href="{$user->getUserWebPath()}">
|
|
<img src="{$user->getProfileAvatarPath(64)}" alt="{$user->getProfileName()}" class="{$component}-user-avatar" itemprop="photo">
|
|
</a>
|
|
|
|
<h2 class="{$component}-user-login word-wrap" 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>
|
|
|
|
{* Голосование *}
|
|
{include 'components/vote/vote.tpl'
|
|
sClasses = 'js-vote-user'
|
|
sMods = 'large'
|
|
oObject = $user
|
|
bIsLocked = $oUserCurrent && $oUserCurrent->getId() == $user->getId()
|
|
bShowLabel = true}
|
|
|
|
{hook run='profile_top_end' user=$user}
|
|
</div> |