1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Добавлены базовые шаблоны профиля

This commit is contained in:
Denis Shakhov 2013-06-26 03:55:12 +07:00
parent f7746f5f0a
commit 4e80dbbbfd
50 changed files with 240 additions and 311 deletions

View file

@ -2,10 +2,11 @@
* Список комментариев созданных пользователем
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_publication}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_created.tpl'}
{include file='comments/comment_list.tpl'}
{/block}

View file

@ -2,10 +2,11 @@
* Список заметок созданных пользователем
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_publication}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_created.tpl'}
{if $aNotes}

View file

@ -2,10 +2,11 @@
* Список топиков созданных пользователем
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_publication}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_created.tpl'}
{include file='topics/topic_list.tpl'}
{/block}

View file

@ -2,10 +2,11 @@
* Избранные комментарии пользователя
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_profile_favourites}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_favourite.tpl'}
{include file='comments/comment_list.tpl'}
{/block}

View file

@ -2,10 +2,11 @@
* Избранные топики пользователя
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_profile_favourites}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_favourite.tpl'}
{if $oUserCurrent and $oUserCurrent->getId() == $oUserProfile->getId()}

View file

@ -2,12 +2,10 @@
* Список друзей
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_profile_friends}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
<h3 class="profile-page-header">{$aLang.user_menu_profile_friends}</h3>
{include file='user_list.tpl' aUsersList=$aFriends}
{/block}

View file

@ -1,31 +0,0 @@
{**
* Шапка профиля
*}
{$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 id="vote_area_user_{$oUserProfile->getId()}" class="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" onclick="return ls.vote.vote({$oUserProfile->getId()},this,1,'user');"></a>
<a href="#" class="vote-down" onclick="return ls.vote.vote({$oUserProfile->getId()},this,-1,'user');"></a>
<div id="vote_total_user_{$oUserProfile->getId()}" class="vote-count count" title="{$aLang.user_vote_count}: {$oUserProfile->getCountVote()}">{if $oUserProfile->getRating() > 0}+{/if}{$oUserProfile->getRating()}</div>
</div>
<div class="strength">
<div class="vote-label">{$aLang.user_skill}</div>
<div class="count" id="user_skill_{$oUserProfile->getId()}">{$oUserProfile->getSkill()}</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>

View file

@ -2,12 +2,10 @@
* Активность пользователя
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_profile_stream}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
<h3 class="profile-page-header">{$aLang.user_menu_profile_stream}</h3>
{include file='actions/ActionStream/event_list.tpl' sActivityType='user' sActivityParams="data-param-i-user-id=\"{$oUserProfile->getId()}\""}
{/block}

View file

@ -2,13 +2,11 @@
* Стена
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_profile_wall}{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
<h3 class="profile-page-header">{$aLang.user_menu_profile_wall}</h3>
<script>
ls.wall.init({
login:'{$oUserProfile->getLogin()}'

View file

@ -5,20 +5,18 @@
* @styles css/tables.css
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_options'}
{$sMenuItemSelect = 'profile'}
{$oSession = $oUserProfile->getSession()}
{$oVote = $oUserProfile->getVote()}
{$oGeoTarget = $oUserProfile->getGeoTarget()}
{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_whois.tpl'}
{block name='layout_user_page_title'}{$aLang.user_menu_profile_whois}{/block}
<h3 class="profile-page-header">{$aLang.user_menu_profile_whois}</h3>
{block name='layout_content'}
{include file='navs/nav.profile_whois.tpl'}
{if $oUserProfile->getProfileAbout()}
<div class="profile-info-about">

View file

@ -2,12 +2,9 @@
* Настройки аккаунта (емэйл, пароль)
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.settings.tpl'}
{hook run='settings_account_begin'}
<form method="post" enctype="multipart/form-data">

View file

@ -2,12 +2,9 @@
* Управление инвайтами
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.settings.tpl'}
<small class="note note-header input-width-400">{$aLang.settings_invite_notice} "{$aLang.settings_invite_submit}"</small>
{hook run='settings_invite_begin'}

View file

@ -2,11 +2,9 @@
* Основные настройки профиля
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.settings.tpl'}
{include file='modals/modal.profile_avatar_upload.tpl'}

View file

@ -2,13 +2,9 @@
* Настройка уведомлений
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.settings.tpl'}
{hook run='settings_tuning_begin'}
<form action="{router page='settings'}tuning/" method="POST" enctype="multipart/form-data">

View file

@ -2,11 +2,9 @@
* Создание личного сообщения
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.talk.tpl'}
{include file='actions/ActionTalk/friends.tpl'}
{hook run='talk_add_begin'}

View file

@ -2,12 +2,9 @@
* Черный список
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.talk.tpl'}
<form onsubmit="return ls.talk.addToBlackList();">
<p><label for="talk_blacklist_add">{$aLang.talk_balcklist_add_label}:</label>
<input type="text" id="talk_blacklist_add" name="add" class="input-text input-width-full autocomplete-users-sep" /></p>

View file

@ -2,13 +2,9 @@
* Список избранных сообщений
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.talk.tpl'}
{if $aTalks}
<table class="table table-talk">
<thead>

View file

@ -2,17 +2,13 @@
* Список сообщений
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.messages.tpl'}
{block name='layout_options'}
{$noShowSystemMessage = false}
{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.talk.tpl'}
{if $aTalks}
{include file='actions/ActionTalk/filter.tpl'}

View file

@ -2,12 +2,9 @@
* Личное сообщение
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.talk.tpl'}
{assign var="oUser" value=$oTalk->getUser()}

View file

@ -8,7 +8,7 @@
/**
* Шапка профиля
*
* @template actions/ActionProfile/profile_top.tpl
* @template layouts/layout.user.tpl
*/
.profile { min-height: 48px; margin-bottom: 0; padding: 0 300px 20px 65px; position: relative; }

View file

@ -0,0 +1,11 @@
{**
* Базовый шаблон личных сообщений
*}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.talk_menu_inbox}{/block}
{block name='layout_content_begin' append}
{include file='navs/nav.talk.tpl'}
{/block}

View file

@ -0,0 +1,11 @@
{**
* Базовый шаблон настроек пользователя
*}
{extends file='layout.user.tpl'}
{block name='layout_user_page_title'}{$aLang.settings_menu}{/block}
{block name='layout_content_begin' append}
{include file='navs/nav.settings.tpl'}
{/block}

View file

@ -0,0 +1,41 @@
{**
* Базовый шаблон профиля пользователя
*}
{extends file='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 id="vote_area_user_{$oUserProfile->getId()}" class="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" onclick="return ls.vote.vote({$oUserProfile->getId()},this,1,'user');"></a>
<a href="#" class="vote-down" onclick="return ls.vote.vote({$oUserProfile->getId()},this,-1,'user');"></a>
<div id="vote_total_user_{$oUserProfile->getId()}" class="vote-count count" title="{$aLang.user_vote_count}: {$oUserProfile->getCountVote()}">{if $oUserProfile->getRating() > 0}+{/if}{$oUserProfile->getRating()}</div>
</div>
<div class="strength">
<div class="vote-label">{$aLang.user_skill}</div>
<div class="count" id="user_skill_{$oUserProfile->getId()}">{$oUserProfile->getSkill()}</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}

View file

@ -2,8 +2,6 @@
* Навигация в профиле пользователя в разделе "Публикации"
*}
<h3 class="profile-page-header">{$aLang.user_menu_publication}</h3>
<ul class="nav nav-pills mb-30">
<li {if $sMenuSubItemSelect=='topics'}class="active"{/if}>
<a href="{$oUserProfile->getUserWebPath()}created/topics/">{$aLang.topic_title} {if $iCountTopicUser} ({$iCountTopicUser}) {/if}</a>

View file

@ -2,8 +2,6 @@
* Навигация в профиле пользователя в разделе "Избранное"
*}
<h3 class="profile-page-header">{$aLang.user_menu_profile_favourites}</h3>
<ul class="nav nav-pills mb-30">
<li {if $sMenuSubItemSelect=='topics'}class="active"{/if}>
<a href="{$oUserProfile->getUserWebPath()}favourites/topics/">{$aLang.user_menu_profile_favourites_topics} {if $iCountTopicFavourite} ({$iCountTopicFavourite}) {/if}</a>

View file

@ -2,9 +2,6 @@
* Навигация на странице настроек
*}
<h3 class="profile-page-header">{$aLang.settings_menu}</h3>
<ul class="nav nav-pills">
<li {if $sMenuSubItemSelect=='profile'}class="active"{/if}><a href="{router page='settings'}profile/">{$aLang.settings_menu_profile}</a></li>
<li {if $sMenuSubItemSelect=='account'}class="active"{/if}><a href="{router page='settings'}account/">{$aLang.settings_menu_account}</a></li>
@ -19,8 +16,4 @@
{hook run='menu_settings_settings_item'}
</ul>
{hook run='menu_settings'}
{hook run='menu_settings'}

View file

@ -2,8 +2,6 @@
* Навигация на странице личных сообщений
*}
<h3 class="profile-page-header">{$aLang.talk_menu_inbox}</h3>
<ul class="nav nav-pills">
<li {if $sMenuSubItemSelect=='inbox'}class="active"{/if}><a href="{router page='talk'}">{$aLang.talk_menu_inbox}</a></li>
{if $iUserCurrentCountTalkNew}

View file

@ -2,14 +2,9 @@
* Список комментариев созданных пользователем
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_created.tpl'}
{include file='comments/comment_list.tpl'}
{/block}

View file

@ -2,14 +2,9 @@
* Список заметок созданных пользователем
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_created.tpl'}
{if $aNotes}

View file

@ -2,14 +2,9 @@
* Список топиков созданных пользователем
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_created.tpl'}
{include file='topics/topic_list.tpl'}
{/block}

View file

@ -2,14 +2,9 @@
* Избранные комментарии пользователя
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_favourite.tpl'}
{include file='comments/comment_list.tpl'}
{/block}

View file

@ -2,18 +2,13 @@
* Избранные топики пользователя
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_favourite.tpl'}
{if $oUserCurrent and $oUserCurrent->getId()==$oUserProfile->getId()}
{$aBlockParams.user=$oUserProfile}
{$aBlockParams.user = $oUserProfile}
{insert name="block" block=tagsFavouriteTopic params=$aBlock.params}
{/if}

View file

@ -2,13 +2,8 @@
* Список друзей
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='user_list.tpl' aUsersList=$aFriends}
{/block}

View file

@ -1,62 +0,0 @@
{**
* Шапка профиля
*}
{$oVote = $oUserProfile->getVote()}
<div class="profile">
{hook run='profile_top_begin' oUserProfile=$oUserProfile}
<div class="vote-profile">
<div id="vote_area_user_{$oUserProfile->getId()}" class="vote-topic
{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" onclick="return ls.vote.vote({$oUserProfile->getId()},this,-1,'user');"><span><i></i></span></div>
<div class="vote-item vote-count" title="{$aLang.user_vote_count}: {$oUserProfile->getCountVote()}">
<span id="vote_total_user_{$oUserProfile->getId()}">{if $oUserProfile->getRating() > 0}+{/if}{$oUserProfile->getRating()}</span>
</div>
<div class="vote-item vote-up" onclick="return ls.vote.vote({$oUserProfile->getId()},this,1,'user');"><span><i></i></span></div>
</div>
<div class="vote-label">{$aLang.user_rating}</div>
</div>
<div class="strength">
<div class="count" id="user_skill_{$oUserProfile->getId()}">{$oUserProfile->getSkill()}</div>
<div class="vote-label">{$aLang.user_skill}</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}
<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>

View file

@ -2,9 +2,8 @@
* Активность пользователя
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='actions/ActionStream/event_list.tpl' sActivityType='user' sActivityParams="data-param-i-user-id=\"{$oUserProfile->getId()}\""}
{/block}

View file

@ -2,15 +2,9 @@
* Стена
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{extends file='layout.user.tpl'}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
<script>
ls.wall.init({
login:'{$oUserProfile->getLogin()}'

View file

@ -5,17 +5,14 @@
* @styles css/tables.css
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{$sMenuItemSelect = 'profile'}
{block name='layout_options' append}
{$oSession = $oUserProfile->getSession()}
{$oGeoTarget = $oUserProfile->getGeoTarget()}
{/block}
{block name='layout_content'}
{include file='actions/ActionProfile/profile_top.tpl'}
{include file='navs/nav.profile_whois.tpl'}

View file

@ -2,13 +2,7 @@
* Настройки аккаунта (емэйл, пароль)
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'settings'}
{/block}
{block name='layout_page_title'}{$aLang.settings_menu}{/block}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{hook run='settings_account_begin'}

View file

@ -2,13 +2,7 @@
* Управление инвайтами
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'settings'}
{/block}
{block name='layout_page_title'}{$aLang.settings_menu}{/block}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
<p class="mb-20">{$aLang.settings_invite_notice} "{$aLang.settings_invite_submit}"</p>

View file

@ -2,13 +2,7 @@
* Основные настройки профиля
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'settings'}
{/block}
{block name='layout_page_title'}{$aLang.settings_menu}{/block}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{include file='modals/modal.profile_avatar_upload.tpl'}

View file

@ -2,13 +2,7 @@
* Настройка уведомлений
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'settings'}
{/block}
{block name='layout_page_title'}{$aLang.settings_menu}{/block}
{extends file='layout.user.settings.tpl'}
{block name='layout_content'}
{hook run='settings_tuning_begin'}

View file

@ -2,13 +2,7 @@
* Создание личного сообщения
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'talk'}
{/block}
{block name='layout_page_title'}{$aLang.talk_menu_inbox}{/block}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{include file='actions/ActionTalk/friends.tpl'}

View file

@ -2,13 +2,7 @@
* Черный список
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'talk'}
{/block}
{block name='layout_page_title'}{$aLang.talk_menu_inbox}{/block}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
<div class="talk-blacklist-form">

View file

@ -2,13 +2,7 @@
* Список избранных сообщений
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'talk'}
{/block}
{block name='layout_page_title'}{$aLang.talk_menu_inbox}{/block}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{if $aTalks}

View file

@ -2,15 +2,12 @@
* Список сообщений
*}
{extends file='layout.base.tpl'}
{extends file='layout.user.messages.tpl'}
{block name='layout_options'}
{$sNavContent = 'talk'}
{block name='layout_options' append}
{$noShowSystemMessage = false}
{/block}
{block name='layout_page_title'}{$aLang.talk_menu_inbox}{/block}
{block name='layout_content'}
{if $aTalks}
{include file='actions/ActionTalk/filter.tpl'}

View file

@ -2,13 +2,7 @@
* Личное сообщение
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNavContent = 'talk'}
{/block}
{block name='layout_page_title'}{$aLang.talk_menu_inbox}{/block}
{extends file='layout.user.messages.tpl'}
{block name='layout_content'}
{assign var="oUser" value=$oTalk->getUser()}

View file

@ -8,25 +8,23 @@
/**
* Шапка профиля
*
* @template actions/ActionProfile/profile_top.tpl
* @template layouts/layout.user.tpl
*/
.profile { min-height: 48px; margin-bottom: 0; padding: 0 0px 20px 0; position: relative; }
.profile .button { float: right; margin-left: 7px; }
.profile .avatar { position: absolute; top: 0; left: 0; }
.profile .vote-label { text-transform: lowercase; text-align: center; font-size: 10px; color: #aaa; }
.profile .vote-profile { float: right; margin-left: 10px; }
.profile .vote-profile .vote-topic { float: none; }
.profile .vote-profile .vote-topic .vote-item.vote-count { cursor: text; }
.profile .strength { float: right; margin-left: 18px; }
.profile .strength .count { font-size: 11px; line-height: 1em; text-align: center; padding: 0 10px; line-height: 23px; color: #628fa5; margin-bottom: 0px; background: #edf8fd; border-radius: 15px; height: 24px; -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.1) inset; box-shadow: 0 2px 3px rgba(0,0,0,.1) inset; }
.profile .vote-label { text-transform: lowercase; text-align: center; font-size: 10px; color: #aaa; }
.profile .vote-profile { float: right; margin-left: 10px; }
.profile .vote-profile .vote-topic { float: none; }
.profile .vote-profile .vote-topic .vote-item.vote-count { cursor: text; }
.profile .user-login { width: 240px; font-size: 27px; line-height: 26px; font-weight: normal; margin-bottom: 5px; }
.profile .user-login.no-user-name { }
.profile .user-name { color: #949aa1; font-size: 17px; font-family: 'PT Sans', sans-serif; }
.profile .strength { float: right; margin-left: 18px; }
.profile .strength .count { font-size: 11px; line-height: 1em; text-align: center; padding: 0 10px; line-height: 23px; color: #628fa5; margin-bottom: 0px; background: #edf8fd; border-radius: 15px; height: 24px; -webkit-box-shadow: 0 2px 3px rgba(0,0,0,.1) inset; box-shadow: 0 2px 3px rgba(0,0,0,.1) inset; }
.profile-page-header { font-size: 12px; font-weight: bold; margin-bottom: 20px; background: #f5f5f5; border-top: 1px solid #eee; color: #555; padding: 5px 10px 6px; }
.profile .user-login { width: 240px; font-size: 27px; line-height: 26px; font-weight: normal; margin-bottom: 5px; }
.profile .user-name { color: #949aa1; font-size: 17px; font-family: 'PT Sans', sans-serif; }
/**
@ -34,11 +32,11 @@
*
* @template actions/ActionProfile/whois.tpl
*/
.profile-info-about { padding: 13px 20px 20px 135px; min-height: 100px; background: #fcfce9; border-radius: 5px; margin-bottom: 30px; color: #000; position: relative; }
.profile-info-about .avatar { position: absolute; top: 20px; left: 20px; border-radius: 5px; background: #fff; padding: 5px; -webkit-box-shadow: 0 0 5px rgba(0,0,0,.2); box-shadow: 0 0 5px rgba(0,0,0,.2); }
.profile-info-about { padding: 13px 20px 20px 135px; min-height: 100px; background: #fcfce9; border-radius: 5px; margin-bottom: 30px; color: #000; position: relative; }
.profile-info-about .avatar { position: absolute; top: 20px; left: 20px; border-radius: 5px; background: #fff; padding: 5px; -webkit-box-shadow: 0 0 5px rgba(0,0,0,.2); box-shadow: 0 0 5px rgba(0,0,0,.2); }
.profile-info-about .avatar img { vertical-align: top; width: 80px; height: 80px; }
.profile-info-about h3 { font-size: 19px; margin-bottom: 5px; }
.profile-info-about .edit { font-size: 11px; }
.profile-info-about h3 { font-size: 19px; margin-bottom: 5px; }
.profile-info-about .edit { font-size: 11px; }
/**
@ -46,14 +44,14 @@
*
* @template actions/ActionProfile/whois.tpl
*/
.profile-left { width: 360px; float: left; margin-right: 40px; }
.profile-right { width: 185px; float: left; }
.profile-left { width: 360px; float: left; margin-right: 40px; }
.profile-right { width: 185px; float: left; }
.profile-dotted-list { margin-bottom: 50px; }
.profile-dotted-list li { overflow: hidden; zoom: 1; margin-bottom: 5px; background: url(../images/dots.png) 0% 14px repeat-x; }
.profile-dotted-list li span { background: #fff; }
.profile-dotted-list { margin-bottom: 50px; }
.profile-dotted-list li { overflow: hidden; zoom: 1; margin-bottom: 5px; background: url(../images/dots.png) 0% 14px repeat-x; }
.profile-dotted-list li span { background: #fff; }
.profile-dotted-list li strong { float: right; width: 190px; font-weight: normal; background: #fff; }
.profile-contact-list { margin-bottom: 50px; }
.profile-contact-list li { margin-bottom: 5px; padding-left: 21px; position: relative; }
.profile-contact-list { margin-bottom: 50px; }
.profile-contact-list li { margin-bottom: 5px; padding-left: 21px; position: relative; }
.profile-contact-list li i { position: absolute; top: 2px; left: 0; }

View file

@ -0,0 +1,11 @@
{**
* Базовый шаблон личных сообщений
*}
{extends file='layout.base.tpl'}
{block name='layout_options' append}
{$sNavContent = 'talk'}
{/block}
{block name='layout_page_title'}{$aLang.talk_menu_inbox}{/block}

View file

@ -0,0 +1,11 @@
{**
* Базовый шаблон настроек пользователя
*}
{extends file='layout.base.tpl'}
{block name='layout_options' append}
{$sNavContent = 'settings'}
{/block}
{block name='layout_page_title'}{$aLang.settings_menu}{/block}

View file

@ -0,0 +1,74 @@
{**
* Базовый шаблон профиля пользователя
*}
{extends file='layout.base.tpl'}
{block name='layout_options'}
{$sNav = 'people'}
{/block}
{block name='layout_content_begin'}
{**
* Шапка профиля
*}
{$oVote = $oUserProfile->getVote()}
<div class="profile">
{hook run='profile_top_begin' oUserProfile=$oUserProfile}
<div class="vote-profile">
<div id="vote_area_user_{$oUserProfile->getId()}" class="vote-topic
{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" onclick="return ls.vote.vote({$oUserProfile->getId()},this,-1,'user');"><span><i></i></span></div>
<div class="vote-item vote-count" title="{$aLang.user_vote_count}: {$oUserProfile->getCountVote()}">
<span id="vote_total_user_{$oUserProfile->getId()}">{if $oUserProfile->getRating() > 0}+{/if}{$oUserProfile->getRating()}</span>
</div>
<div class="vote-item vote-up" onclick="return ls.vote.vote({$oUserProfile->getId()},this,1,'user');"><span><i></i></span></div>
</div>
<div class="vote-label">{$aLang.user_rating}</div>
</div>
<div class="strength">
<div class="count" id="user_skill_{$oUserProfile->getId()}">{$oUserProfile->getSkill()}</div>
<div class="vote-label">{$aLang.user_skill}</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}
<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>
{/block}