mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 07:54:24 +03:00
Добавлены базовые шаблоны профиля
This commit is contained in:
parent
f7746f5f0a
commit
4e80dbbbfd
|
@ -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}
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
|
@ -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}
|
|
@ -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()}
|
||||
|
|
|
@ -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}
|
|
@ -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>
|
|
@ -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}
|
|
@ -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()}'
|
||||
|
|
|
@ -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_user_page_title'}{$aLang.user_menu_profile_whois}{/block}
|
||||
|
||||
{block name='layout_content'}
|
||||
{include file='actions/ActionProfile/profile_top.tpl'}
|
||||
{include file='navs/nav.profile_whois.tpl'}
|
||||
|
||||
<h3 class="profile-page-header">{$aLang.user_menu_profile_whois}</h3>
|
||||
|
||||
{if $oUserProfile->getProfileAbout()}
|
||||
<div class="profile-info-about">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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'}
|
||||
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'}
|
||||
|
||||
|
|
|
@ -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()}
|
||||
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
11
templates/skin/developer/layout.user.messages.tpl
Normal file
11
templates/skin/developer/layout.user.messages.tpl
Normal 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}
|
11
templates/skin/developer/layout.user.settings.tpl
Normal file
11
templates/skin/developer/layout.user.settings.tpl
Normal 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}
|
41
templates/skin/developer/layout.user.tpl
Normal file
41
templates/skin/developer/layout.user.tpl
Normal 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}
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
@ -20,7 +17,3 @@
|
|||
</ul>
|
||||
|
||||
{hook run='menu_settings'}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
|
@ -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}
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
|
@ -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>
|
|
@ -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}
|
|
@ -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()}'
|
||||
|
|
|
@ -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'}
|
||||
|
||||
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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()}
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
/**
|
||||
* Шапка профиля
|
||||
*
|
||||
* @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; }
|
||||
|
@ -23,11 +24,8 @@
|
|||
.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 .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-page-header { font-size: 12px; font-weight: bold; margin-bottom: 20px; background: #f5f5f5; border-top: 1px solid #eee; color: #555; padding: 5px 10px 6px; }
|
||||
|
||||
|
||||
/**
|
||||
* Блок "О себе"
|
||||
|
|
11
templates/skin/synio/layout.user.messages.tpl
Normal file
11
templates/skin/synio/layout.user.messages.tpl
Normal 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}
|
11
templates/skin/synio/layout.user.settings.tpl
Normal file
11
templates/skin/synio/layout.user.settings.tpl
Normal 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}
|
74
templates/skin/synio/layout.user.tpl
Normal file
74
templates/skin/synio/layout.user.tpl
Normal 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}
|
Loading…
Reference in a new issue