mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
622053da55
* Частично обновлен дизайн * Шаблон доработан для нормальной работы с последней версией фреймворка * Synio в нерабочем состоянии!
53 lines
1.7 KiB
Smarty
53 lines
1.7 KiB
Smarty
{**
|
|
* Базовый шаблон профиля пользователя
|
|
*}
|
|
|
|
{extends file='layouts/layout.base.tpl'}
|
|
|
|
{block name='layout_content_begin'}
|
|
{**
|
|
* Шапка профиля
|
|
*}
|
|
|
|
{$oVote = $oUserProfile->getVote()}
|
|
|
|
<div class="profile">
|
|
{hook run='profile_top_begin' oUserProfile=$oUserProfile}
|
|
|
|
<a href="{$oUserProfile->getUserWebPath()}"><img src="{$oUserProfile->getProfileAvatarPath(48)}" alt="avatar" class="avatar" itemprop="photo" /></a>
|
|
|
|
<div data-vote-type="user"
|
|
data-vote-id="{$oUserProfile->getId()}"
|
|
class="vote js-vote
|
|
{if $oUserProfile->getRating() >= 0}
|
|
vote-count-positive
|
|
{else}
|
|
vote-count-negative
|
|
{/if}
|
|
|
|
{if $oVote}
|
|
voted
|
|
|
|
{if $oVote->getDirection() > 0}
|
|
voted-up
|
|
{elseif $oVote->getDirection() < 0}
|
|
voted-down
|
|
{/if}
|
|
{/if}">
|
|
<div class="vote-label">{$aLang.user_rating}</div>
|
|
<a href="#" class="vote-up js-vote-up"><i></i></a>
|
|
<a href="#" class="vote-down js-vote-down"><i></i></a>
|
|
<div class="vote-count count js-vote-rating" title="{$aLang.user_vote_count}: {$oUserProfile->getCountVote()}">{if $oUserProfile->getRating() > 0}+{/if}{$oUserProfile->getRating()}</div>
|
|
</div>
|
|
|
|
<h2 class="page-header user-login word-wrap {if !$oUserProfile->getProfileName()}no-user-name{/if}" itemprop="nickname">{$oUserProfile->getLogin()}</h2>
|
|
|
|
{if $oUserProfile->getProfileName()}
|
|
<p class="user-name" itemprop="name">{$oUserProfile->getProfileName()|escape:'html'}</p>
|
|
{/if}
|
|
|
|
{hook run='profile_top_end' oUserProfile=$oUserProfile}
|
|
</div>
|
|
|
|
<h3 class="profile-page-header">{block name='layout_user_page_title'}{/block}</h3>
|
|
{/block} |