2013-06-25 23:55:12 +03:00
|
|
|
{**
|
|
|
|
* Базовый шаблон профиля пользователя
|
|
|
|
*}
|
|
|
|
|
2013-06-26 00:04:23 +03:00
|
|
|
{extends file='layouts/layout.base.tpl'}
|
2013-06-25 23:55:12 +03:00
|
|
|
|
|
|
|
{block name='layout_options'}
|
2013-06-30 06:02:51 +03:00
|
|
|
{$sNav = 'users'}
|
2013-06-25 23:55:12 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block name='layout_content_begin'}
|
|
|
|
{**
|
|
|
|
* Шапка профиля
|
|
|
|
*}
|
|
|
|
|
|
|
|
{$oVote = $oUserProfile->getVote()}
|
|
|
|
|
|
|
|
<div class="profile">
|
|
|
|
{hook run='profile_top_begin' oUserProfile=$oUserProfile}
|
|
|
|
|
|
|
|
<div class="vote-profile">
|
2013-07-09 11:40:06 +03:00
|
|
|
<div data-vote-type="user"
|
|
|
|
data-vote-id="{$oUserProfile->getId()}"
|
|
|
|
class="vote-topic js-vote
|
|
|
|
{if $oUserProfile->getRating() > 0}
|
|
|
|
vote-count-positive
|
|
|
|
{elseif $oUserProfile->getRating() < 0}
|
|
|
|
vote-count-negative
|
|
|
|
{elseif $oUserProfile->getRating() == 0}
|
|
|
|
vote-count-zero
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $oVote}
|
|
|
|
voted
|
|
|
|
|
|
|
|
{if $oVote->getDirection() > 0}
|
|
|
|
voted-up
|
|
|
|
{elseif $oVote->getDirection() < 0}
|
|
|
|
voted-down
|
|
|
|
{/if}
|
|
|
|
{else}
|
|
|
|
not-voted
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if ($oUserCurrent && $oUserProfile->getId() == $oUserCurrent->getId()) || !$oUserCurrent}
|
|
|
|
vote-nobuttons
|
|
|
|
{/if}">
|
|
|
|
<div class="vote-item vote-down js-vote-down"><span><i></i></span></div>
|
2013-06-25 23:55:12 +03:00
|
|
|
<div class="vote-item vote-count" title="{$aLang.user_vote_count}: {$oUserProfile->getCountVote()}">
|
2013-07-09 11:40:06 +03:00
|
|
|
<span class="js-vote-rating">{if $oUserProfile->getRating() > 0}+{/if}{$oUserProfile->getRating()}</span>
|
2013-06-25 23:55:12 +03:00
|
|
|
</div>
|
2013-07-09 11:40:06 +03:00
|
|
|
<div class="vote-item vote-up js-vote-up"><span><i></i></span></div>
|
2013-06-25 23:55:12 +03:00
|
|
|
</div>
|
|
|
|
<div class="vote-label">{$aLang.user_rating}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{if $oUserCurrent && $oUserCurrent->getId()!=$oUserProfile->getId()}
|
|
|
|
<a href="{router page='talk'}add/?talk_users={$oUserProfile->getLogin()}" class="button button-action button-action-send-message button-icon js-tooltip" title="{$aLang.user_write_prvmsg}">
|
|
|
|
<i class="icon-synio-send-message"></i>
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
|
2013-10-23 10:02:40 +03:00
|
|
|
<h2 class="page-header user-login word-wrap {if !$oUserProfile->getProfileName()}no-user-name{/if}" itemprop="nickname">{$oUserProfile->getDisplayName()}</h2>
|
2013-06-25 23:55:12 +03:00
|
|
|
|
|
|
|
{if $oUserProfile->getProfileName()}
|
|
|
|
<p class="user-name" itemprop="name">{$oUserProfile->getProfileName()|escape:'html'}</p>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{hook run='profile_top_end' oUserProfile=$oUserProfile}
|
|
|
|
</div>
|
|
|
|
{/block}
|