Файл: content/themes/facebook/templates/profile.tpl
Строк: 333
{include file='headinclude.tpl'}
{include file='header.tpl'}
<!--
Commom [profile] JS -->
<script type="text/javascript"
src="{$SITE_URL}/js/core.posts.js"></script>
<script
type="text/javascript"
src="{$SITE_URL}/js/page.profile.js"></script>
<!--
Commom [profile] JS -->
{if !$userExist}{include
file='signup.bar.tpl'}{/if}
<!-- Content -->
<div
class="contentWrapper" view="{$view}"
tab="{$tab}" id="{$profile.UserID}" >
<div
class="content">
<table
class="mainContent">
<tr>
<!-- Left Panel -->
<td
class="leftPanel">
<!-- Page Picture -->
<div
class="pagePicture mb10">
{if
$userExist && $profile.UserID == $userArray.UserID}
<div class="changePagePicture hidden"><a
href="{$SITE_URL}/settings/profile/">Сменить
фото</a></div>
{/if}
<img src="{$SITE_URL}/{$profile.UserAvatarPath}"
alt="{$profile.UserFirstName} {$profile.UserLastName}"
title="{$profile.UserFirstName} {$profile.UserLastName}" />
</div>
<!-- Page Picture
-->
<!-- Page Menu
-->
<div class="appsMenu mb10">
<ul>
<li
class="item">
<a
class="appLink {if $view == 'info'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/info"><span
class="icon"><i class="app_icon
app_info"></i></span><span
class="name">Инфо</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'people'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/people"><span
class="icon"><i class="app_icon
app_people"></i></span><span
class="name">Пользователи</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'wall'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/wall"><span
class="icon"><i class="app_icon
app_wall"></i></span><span
class="name">Стена</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'news'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/news"><span
class="icon"><i class="app_icon
app_news"></i></span><span
class="name">Новости</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'music'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/music"><span
class="icon"><i class="app_icon
app_music"></i></span><span
class="name">Музыка</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'photos'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/photos"><span
class="icon"><i class="app_icon
app_photos"></i></span><span
class="name">Фото</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'videos'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/videos"><span
class="icon"><i class="app_icon
app_videos"></i></span><span
class="name">Видео</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'discussions'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/discussions"><span
class="icon"><i class="app_icon
app_discussions"></i></span><span
class="name">Обсуждения</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'questions'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/questions"><span
class="icon"><i class="app_icon
app_questions"></i></span><span
class="name">Ответы</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'polls'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/polls"><span
class="icon"><i class="app_icon
app_polls"></i></span><span
class="name">Опросы</span></a>
</li>
<li
class="item">
<a
class="appLink {if $view == 'links'}active{/if}"
href="{$SITE_URL}/{$profile.UserName}/links"><span
class="icon"><i class="app_icon
app_links"></i></span><span
class="name">Ссылки</span></a>
</li>
</ul>
</div>
<!-- Page Menu -->
<!-- Page Statistics -->
<div class="pageStats mb10 tleft">
<div class="fs12 fwb blue mb5"><a
href="#">{$profile.UserPosts}</a></div>
<div
class="mb10">{$translate->__("Пост")}</div>
<div class="fs12 fwb blue mb5"><a
href="#">{$profile.UserFollowings}</a></div>
<div
class="mb10">{$translate->__("Подписаться")}</div>
<div class="fs12 fwb blue mb5"><a
href="#">{$profile.UserFollowers}</a></div>
<div
class="mb10">{$translate->__("Читатели")}</div>
</div>
<!-- Page
Statistics -->
</td>
<!-- Left Panel -->
<!-- Center Panel -->
<td
class="centerPanel">
<div class="centerPanelHeader">
<!-- Page Header -->
<div class="appHeaderWrapper mt10"
style="border-bottom: 0 none;">
<div class="profileData">
<h1 class="inline mr10">{$profile.UserFirstName}
{$profile.UserLastName}</h1>
{if
$userExist && $profile.UserID != $userArray.UserID}
{if $profile.FollowingHim == true}<input
type="button" value="Unfollow" class="uiButton
doFollow" id="{$profile.UserID}" />{else}<input
type="button" value="Follow" class="uiButton
doFollow" id="{$profile.UserID}" />{/if}<div
class="hidden"><img
src="{$SITE_URL}/content/themes/default/images/buttons/spinner.gif"
/></div>
<input
type="button" class="uiButton composeMessage"
value="Send Message" id="{$profile.UserID}"
name="{$profile.UserFirstName} {$profile.UserLastName}" />
{/if}
{if
$userExist && $profile.UserID == $userArray.UserID}
<a class="uiButton"
href="{$SITE_URL}/settings/profile/">Изменить
профиль</a>
{/if}
<p class="gray
mt5">{$profile.UserBiography}</p>
</div>
</div>
<!-- Page Header -->
<!-- Page Pictures -->
<div
class="pagePictures mt10 mb10">
<ul>
{for $i=0 to 4}
<li>
{if $profile.wallPhotos.$i}
<a
href="{$SITE_URL}/photo/{$profile.wallPhotos.$i.ID}/"><i
style="background-image:
url("{$profile.wallPhotos.$i.Thumbnail}");"
class="profilePhotoThumbnail"></i></a>
{else}
<span><i
class="profilePhotoThumbnail"></i></span>
{/if}
</li>
{/for}
</ul>
</div>
<!-- Page Pictures -->
</div>
{if $view ==
'info'}
<div
class="centerPanelContent">
<!-- Basic Info -->
<div class="sectionHeader wide fwb mb5">Basic
Information</div>
<table
class="pageInfo">
<tr>
<td
class="label">Пол:</td>
<td class="data">
{if $profile.UserSex == "M"}
М
{elseif
$profile.UserSex == "F"}
Ж
{/if}
</td>
</tr>
<tr>
<td
class="label">Зарегистрирован:</td>
<td class="data">
{$profile.SignupDate|date_format:"%B %e,
%Y"}
</td>
</tr>
<tr>
<td
class="label">Местонахождение:</td>
<td class="data">
{if $profile.UserCountry !=
""}{$profile.UserCountry}{else}<p>N/A</p>{/if}
</td>
</tr>
<tr>
<td class="label">About
{$profile.UserFirstName}:</td>
<td class="data">
{if $profile.UserBiography !=
""}{$profile.UserBiography}{else}<p>N/A</p>{/if}
</td>
</tr>
</table>
<!-- Basic Info -->
<!-- Contact Info -->
<div class="sectionHeader wide fwb
mb5">Контактная информация</div>
<table class="pageInfo">
<tr>
<td
class="label">Вебсайт:</td>
<td class="data">
{if $profile.UserWebsite != ""}<a
target="_blank"
href="{$profile.UserWebsite}">{$profile.UserWebsite}</a>{else}<p>N/A</p>{/if}
</td>
</tr>
{if $profile.fb_UserID !=
null && $profile.privacyFB == "Y"}
<tr>
<td
class="label">Facebook:</td>
<td class="data">
<a target="_blank" title="Find
{$profile.UserFirstName} at Facebook"
href="http://www.facebook.com/{if $profile.fb_UserName ==
""}profile.php?id={$profile.fb_UserID}{else}{$profile.fb_UserName}{/if}">http://www.facebook.com/{if
$profile.fb_UserName ==
""}profile.php?id={$profile.fb_UserID}{else}{$profile.fb_UserName}{/if}</a>
</td>
</tr>
{/if}
{if $profile.tw_UserID != null &&
$profile.privacyTW == "Y"}
<tr>
<td
class="label">Twitter:</td>
<td class="data">
<a target="_blank" title="Find
{$profile.UserFirstName} at Twitter"
href="http://twitter.com/{$profile.tw_UserName}">http://twitter.com/{$profile.tw_UserName}</a>
</td>
</tr>
{/if}
</table>
<!-- Contact
Info -->
</div>
{elseif $view
== 'people'}
<div
class="centerPanelHeader">
<!-- filters tabs -->
<div
class="filters">
<ul>
<li><a {if $tab ==
'followings'}class="active"{/if}
href="{$SITE_URL}/{$profile.UserName}/people/followings">Followings</a></li>
<li><a {if $tab ==
'followers'}class="active"{/if}
href="{$SITE_URL}/{$profile.UserName}/people/followers">Followers</a></li>
</ul>
</div>
<!-- filters tabs -->
</div>
<div class="centerPanelContent">
{if $tab == 'followings'}
{if $profile.UserFollowings > 0}
<div
class="dataContainer dataTitle">
{$profile.UserFirstName} {$profile.UserLastName} follows
{$profile.UserFollowings} people
</div>
<!-- Live Feeds -->
<ul class="liveFeeds" id="livefeeds">
<div class="pt10 pb10 pl10 pr10
tcenter"><img src="{$spinner.larg}"
alt="loading..." /></div>
</ul>
<!-- Live Feeds
-->
{else}
<div
class="dataNullState stopCronJobs"
style="">{$profile.UserFirstName} {$profile.UserLastName}
doesn't have any followings yet.</div>
{/if}
{elseif $tab == 'followers'}
{if $profile.UserFollowers > 0}
<div
class="dataContainer dataTitle">
{$profile.UserFirstName} {$profile.UserLastName} has
{$profile.UserFollowers} followers
</div>
<!-- Live Feeds -->
<ul class="liveFeeds" id="livefeeds">
<div class="pt10 pb10 pl10 pr10
tcenter"><img src="{$spinner.larg}"
alt="loading..." /></div>
</ul>
<!-- Live Feeds
-->
{else}
<div
class="dataNullState stopCronJobs"
style="">{$profile.UserFirstName} {$profile.UserLastName}
doesn't have any followers yet.</div>
{/if}
{/if}
</div>
{else}
<div
class="centerPanelHeader">
<!-- Apps Header -->
{if $view ==
'photos' || $view == 'videos'}
{if $tab ==
'albums'}
<div
class="appHeaderWrapper">
<strong>Albums</strong>
<div class="right">
<a
href="{$SITE_URL}/{$profile.UserName}/{$view}">Back to
{$view|capitalize}</a>
</div>
</div>
{else}
<div
class="appHeaderWrapper">
<strong>{$view|capitalize}</strong> (<a
href="{$SITE_URL}/{$profile.UserName}/{$view}/albums">Albums</a>)
<div
class="right">
<span class="relative">
<span class="uiButtonText showFilterMenu"
id="dataSort">Most Recent</span>
<!-- Data Filter Menu -->
<div class="subMenu
filterMenu">
<ul>
<li><span class="menuItem doSort">Most
Recent</span></li>
<li><span class="menuItem doSort">Most
Liked</span></li>
<li><span class="menuItem doSort">Most
Favorited</span></li>
<li><span class="menuItem doSort">Most
Discussed</span></li>
</ul>
</div>
<!-- Data
Filter Menu -->
</span>
</div>
</div>
{/if}
{else}
{include file='appsheader.tpl' title=$view|capitalize dataFilter = false}
{/if}
<!-- Apps
Header -->
</div>
<div class="centerPanelContent">
{if $view == "wall"}
<!-- Commom [publisher] JS -->
<script type="text/javascript"
src="{$SITE_URL}/js/core.publisher.js"></script>
<!-- Commom [publisher] JS -->
<!-- Publisher -->
{include file='publisher.tpl'}
<!--
Publisher -->
{/if}
<!-- Live Feeds -->
<ul class="liveFeeds"
id="livefeeds">
<div
class="pt10 pb10 pl10 pr10 tcenter"><img
src="{$spinner.larg}" alt="loading..."
/></div>
</ul>
<!-- Live Feeds -->
</div>
{/if}
</td>
<!--
Center Panel -->
<!-- Right Panel
-->
<td class="rightPanel">
<!-- Followings -->
<div class="sectionHeader" style="margin-top:
72px;">
<div
class="right"><a
href="{$SITE_URL}/{$profile.UserName}/people/followings"><small>See
All</small></a></div>
<strong>{$profile.UserFirstName}'s Followings
({$profile.UserFollowings})</strong>
</div>
<div
class="sectionContainer">
{if
$profile.hasFollowings}
{foreach
$profile.followings as $following}
<span class="showflyHint left">
<!-- flyHint -->
<div class="flyHintWrapper
hidden">{$following.UserFirstName} {$following.UserLastName}<i
class="arrow"></i></div>
<!-- flyHint -->
<a class="inline" style="width: 30px; height: 30px;
margin: 0 {if ($following@index+1)%7 == 0}0{else}2px{/if} 2px 0"
href="{$following.UserName}"><img
src="{$SITE_URL}/{$following.UserAvatarPathSmall}"
/></a>
</span>
{/foreach}
{else}
<p class="gray pt5 pb5 pr5
pl5">{$profile.UserFirstName} doesn't have any followings
yet.</p>
{/if}
</div>
<!-- Followings -->
<!-- Followers -->
<div class="sectionHeader mt10">
<div class="right"><a
href="{$SITE_URL}/{$profile.UserName}/people/followers"><small>See
All</small></a></div>
<strong>{$profile.UserFirstName}'s
Followers ({$profile.UserFollowers})</strong>
</div>
<div
class="sectionContainer">
{if
$profile.hasFollowers}
{foreach
$profile.followers as $follower}
<span
class="showflyHint left">
<!-- flyHint -->
<div
class="flyHintWrapper hidden">{$follower.UserFirstName}
{$follower.UserLastName}<i
class="arrow"></i></div>
<!-- flyHint -->
<a class="inline" style="width: 30px; height: 30px;
margin: 0 {if ($follower@index+1)%7 == 0}0{else}2px{/if} 2px 0"
href="{$follower.UserName}"><img
src="{$SITE_URL}/{$follower.UserAvatarPathSmall}"
/></a>
</span>
{/foreach}
{else}
<p class="gray pt5 pb5 pr5
pl5">{$profile.UserFirstName} doesn't have any followers
yet.</p>
{/if}
</div>
<!-- Followers
-->
<!-- Sponsored Ads
-->
{include file='rp.sponsored.tpl' margin='10'}
<!-- Sponsored Ads -->
</td>
<!-- Right Panel -->
</tr>
</table>
</div>
</div>
<!-- Content -->
{include
file='footer.tpl' footerType = 'narrow'}