mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +03:00
231 lines
6.7 KiB
Smarty
231 lines
6.7 KiB
Smarty
{**
|
||
* Профиль пользователя с информацией о нем
|
||
*
|
||
* @styles css/profile.css
|
||
* @styles css/tables.css
|
||
*}
|
||
|
||
{extends file='layouts/layout.user.tpl'}
|
||
|
||
{block name='layout_options'}
|
||
{$oSession = $oUserProfile->getSession()}
|
||
{$oGeoTarget = $oUserProfile->getGeoTarget()}
|
||
{/block}
|
||
|
||
{block name='layout_user_page_title'}{$aLang.user_menu_profile_whois}{/block}
|
||
|
||
{block name='layout_content'}
|
||
{include file='navs/nav.user.info.tpl'}
|
||
|
||
{hook run='user_info_begin' oUserProfile=$oUserProfile}
|
||
|
||
{if $oUserProfile->getProfileAbout()}
|
||
<div class="profile-info-about">
|
||
<h3 class="h5">{$aLang.profile_about}</h3>
|
||
|
||
<div class="text">
|
||
{$oUserProfile->getProfileAbout()}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
|
||
{hook run='user_info_about_after' oUserProfile=$oUserProfile}
|
||
|
||
|
||
{$aUserFieldValues = $oUserProfile->getUserFieldValues(true,array(''))}
|
||
|
||
{if $oUserProfile->getProfileSex()!='other' || $oUserProfile->getProfileBirthday() || $oGeoTarget || $oUserProfile->getProfileAbout() || count($aUserFieldValues)}
|
||
<h2 class="header-table">{$aLang.profile_privat}</h2>
|
||
|
||
|
||
<table class="table table-profile-info">
|
||
{if $oUserProfile->getProfileSex()!='other'}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_sex}:</td>
|
||
<td>
|
||
{if $oUserProfile->getProfileSex()=='man'}
|
||
{$aLang.profile_sex_man}
|
||
{else}
|
||
{$aLang.profile_sex_woman}
|
||
{/if}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $oUserProfile->getProfileBirthday()}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_birthday}:</td>
|
||
<td>{date_format date=$oUserProfile->getProfileBirthday() format="j F Y" notz=true}</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $oGeoTarget}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_place}:</td>
|
||
<td itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address">
|
||
{if $oGeoTarget->getCountryId()}
|
||
<a href="{router page='people'}country/{$oGeoTarget->getCountryId()}/" itemprop="country-name">{$oUserProfile->getProfileCountry()|escape:'html'}</a>{if $oGeoTarget->getCityId()},{/if}
|
||
{/if}
|
||
|
||
{if $oGeoTarget->getCityId()}
|
||
<a href="{router page='people'}city/{$oGeoTarget->getCityId()}/" itemprop="locality">{$oUserProfile->getProfileCity()|escape:'html'}</a>
|
||
{/if}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
{if $aUserFieldValues}
|
||
{foreach from=$aUserFieldValues item=oField}
|
||
<tr>
|
||
<td class="cell-label"><i class="icon-contact icon-contact-{$oField->getName()}"></i> {$oField->getTitle()|escape:'html'}:</td>
|
||
<td>{$oField->getValue(true,true)}</td>
|
||
</tr>
|
||
{/foreach}
|
||
{/if}
|
||
|
||
{hook run='profile_whois_privat_item' oUserProfile=$oUserProfile}
|
||
</table>
|
||
{/if}
|
||
|
||
{hook run='profile_whois_item_after_privat' oUserProfile=$oUserProfile}
|
||
|
||
{$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true,array('contact'))}
|
||
{if $aUserFieldContactValues}
|
||
<h2 class="header-table">{$aLang.profile_contacts}</h2>
|
||
|
||
<table class="table table-profile-info">
|
||
{foreach from=$aUserFieldContactValues item=oField}
|
||
<tr>
|
||
<td class="cell-label"><i class="icon-contact icon-contact-{$oField->getName()}"></i> {$oField->getTitle()|escape:'html'}:</td>
|
||
<td>{$oField->getValue(true,true)}</td>
|
||
</tr>
|
||
{/foreach}
|
||
</table>
|
||
{/if}
|
||
|
||
|
||
{$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true,array('social'))}
|
||
{if $aUserFieldContactValues}
|
||
<h2 class="header-table">{$aLang.profile_social}</h2>
|
||
|
||
<table class="table table-profile-info">
|
||
{foreach from=$aUserFieldContactValues item=oField}
|
||
<tr>
|
||
<td class="cell-label"><i class="icon-contact icon-contact-{$oField->getName()}"></i> {$oField->getTitle()|escape:'html'}:</td>
|
||
<td>{$oField->getValue(true,true)}</td>
|
||
</tr>
|
||
{/foreach}
|
||
</table>
|
||
{/if}
|
||
|
||
|
||
{hook run='profile_whois_item' oUserProfile=$oUserProfile}
|
||
|
||
|
||
<h2 class="header-table">{$aLang.profile_activity}</h2>
|
||
|
||
<table class="table table-profile-info">
|
||
|
||
{if $oConfig->GetValue('general.reg.invite') and $oUserInviteFrom}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_invite_from}:</td>
|
||
<td>
|
||
<a href="{$oUserInviteFrom->getUserWebPath()}">{$oUserInviteFrom->getLogin()}</a>
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $oConfig->GetValue('general.reg.invite') and $aUsersInvite}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_invite_to}:</td>
|
||
<td>
|
||
{foreach from=$aUsersInvite item=oUserInvite}
|
||
<a href="{$oUserInvite->getUserWebPath()}">{$oUserInvite->getLogin()}</a>
|
||
{/foreach}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $aBlogsOwner}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_blogs_self}:</td>
|
||
<td>
|
||
{foreach from=$aBlogsOwner item=oBlog name=blog_owner}
|
||
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>{if !$smarty.foreach.blog_owner.last}, {/if}
|
||
{/foreach}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $aBlogAdministrators}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_blogs_administration}:</td>
|
||
<td>
|
||
{foreach from=$aBlogAdministrators item=oBlogUser name=blog_user}
|
||
{$oBlog = $oBlogUser->getBlog()}
|
||
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>{if !$smarty.foreach.blog_user.last}, {/if}
|
||
{/foreach}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $aBlogModerators}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_blogs_moderation}:</td>
|
||
<td>
|
||
{foreach from=$aBlogModerators item=oBlogUser name=blog_user}
|
||
{$oBlog = $oBlogUser->getBlog()}
|
||
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>{if !$smarty.foreach.blog_user.last}, {/if}
|
||
{/foreach}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $aBlogUsers}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_blogs_join}:</td>
|
||
<td>
|
||
{foreach from=$aBlogUsers item=oBlogUser name=blog_user}
|
||
{$oBlog = $oBlogUser->getBlog()}
|
||
<a href="{$oBlog->getUrlFull()}">{$oBlog->getTitle()|escape:'html'}</a>{if !$smarty.foreach.blog_user.last}, {/if}
|
||
{/foreach}
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{hook run='profile_whois_activity_item' oUserProfile=$oUserProfile}
|
||
|
||
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_date_registration}:</td>
|
||
<td>{date_format date=$oUserProfile->getDateRegister()}</td>
|
||
</tr>
|
||
|
||
|
||
{if $oSession}
|
||
<tr>
|
||
<td class="cell-label">{$aLang.profile_date_last}:</td>
|
||
<td>{date_format date=$oSession->getDateLast()}</td>
|
||
</tr>
|
||
{/if}
|
||
</table>
|
||
|
||
|
||
{if $aUsersFriend}
|
||
<h2 class="header-table mb-15"><a href="{$oUserProfile->getUserWebPath()}friends/">{$aLang.profile_friends}</a> ({$iCountFriendsUser})</h2>
|
||
|
||
{include file='user_list_avatar.tpl' aUsersList=$aUsersFriend}
|
||
{/if}
|
||
|
||
{hook run='profile_whois_item_end' oUserProfile=$oUserProfile}
|
||
|
||
{hook run='user_info_end' oUserProfile=$oUserProfile}
|
||
{/block} |