From 80fcff7027f601b056059e0c51e6a992be8222dd Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Sat, 4 Jan 2014 11:54:37 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../developer/actions/ActionProfile/info.tpl | 258 +++++++++--------- 1 file changed, 126 insertions(+), 132 deletions(-) diff --git a/application/frontend/skin/developer/actions/ActionProfile/info.tpl b/application/frontend/skin/developer/actions/ActionProfile/info.tpl index 44081435..56001370 100644 --- a/application/frontend/skin/developer/actions/ActionProfile/info.tpl +++ b/application/frontend/skin/developer/actions/ActionProfile/info.tpl @@ -19,7 +19,29 @@ {hook run='user_info_begin' oUserProfile=$oUserProfile} - {if $oUserProfile->getProfileAbout()} + {** + * Функции + *} + + {* Список пунктов *} + {function list} +

{$sTitle}

+ {$sContent}
+ {/function} + + {* Пункт списка *} + {function list_item} + + {$sLabel}: + {$sContent} + + {/function} + + + {** + * О себе + *} + {if $oUserProfile->getProfileAbout()}

{$aLang.profile_about}

@@ -32,39 +54,27 @@ {hook run='user_info_about_after' oUserProfile=$oUserProfile} - {$aUserFieldValues = $oUserProfile->getUserFieldValues(true,array(''))} + {** + * Личное + *} + {$aUserFieldValues = $oUserProfile->getUserFieldValues(true, array(''))} - {if $oUserProfile->getProfileSex()!='other' || $oUserProfile->getProfileBirthday() || $oGeoTarget || $oUserProfile->getProfileAbout() || count($aUserFieldValues)} -

{$aLang.profile_privat}

- - - - {if $oUserProfile->getProfileSex()!='other'} - - - - + {if $oUserProfile->getProfileSex() != 'other' || $oUserProfile->getProfileBirthday() || $oGeoTarget || $oUserProfile->getProfileAbout() || count($aUserFieldValues)} + {capture 'info_private'} + {* Пол *} + {if $oUserProfile->getProfileSex() != 'other'} + {list_item sLabel=$aLang.profile_sex sContent="{if $oUserProfile->getProfileSex() == 'man'}{$aLang.profile_sex_man}{else}{$aLang.profile_sex_woman}{/if}"} {/if} - + {* День рождения *} {if $oUserProfile->getProfileBirthday()} - - - - + {list_item sLabel=$aLang.profile_birthday sContent={date_format date=$oUserProfile->getProfileBirthday() format="j F Y" notz=true}} {/if} - + {* Местоположение *} {if $oGeoTarget} - - - - + + {/capture} + + {list_item sLabel=$aLang.profile_place sContent=$smarty.capture.info_private_geo} {/if} + {* Контакты *} {if $aUserFieldValues} {foreach $aUserFieldValues as $oField} - - - - + {list_item sLabel="{$oField->getTitle()|escape}" sContent=$oField->getValue(true, true)} {/foreach} {/if} {hook run='profile_whois_privat_item' oUserProfile=$oUserProfile} -
{$aLang.profile_sex}: - {if $oUserProfile->getProfileSex()=='man'} - {$aLang.profile_sex_man} - {else} - {$aLang.profile_sex_woman} - {/if} -
{$aLang.profile_birthday}:{date_format date=$oUserProfile->getProfileBirthday() format="j F Y" notz=true}
{$aLang.profile_place}: + {capture 'info_private_geo'} + {if $oGeoTarget->getCountryId()} {$oUserProfile->getProfileCountry()|escape}{if $oGeoTarget->getCityId()},{/if} {/if} @@ -72,153 +82,138 @@ {if $oGeoTarget->getCityId()} {$oUserProfile->getProfileCity()|escape} {/if} -
{$oField->getTitle()|escape}:{$oField->getValue(true,true)}
+ {/capture} + + {list sTitle=$aLang.profile_privat sContent=$smarty.capture.info_private} {/if} {hook run='profile_whois_item_after_privat' oUserProfile=$oUserProfile} - {$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true,array('contact'))} + + {** + * Контакты + *} + {$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true, array('contact'))} + {if $aUserFieldContactValues} -

{$aLang.profile_contacts}

- - + {capture 'info_contacts'} {foreach $aUserFieldContactValues as $oField} - - - - + {list_item sLabel="getName()}\"> {$oField->getTitle()|escape}" sContent=$oField->getValue(true, true)} {/foreach} -
{$oField->getTitle()|escape}:{$oField->getValue(true,true)}
+ {/capture} + + {list sTitle=$aLang.profile_contacts sContent=$smarty.capture.info_contacts} {/if} - {$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true,array('social'))} - {if $aUserFieldContactValues} -

{$aLang.profile_social}

- - - {foreach $aUserFieldContactValues as $oField} - - - - - {/foreach} -
{$oField->getTitle()|escape:'html'}:{$oField->getValue(true,true)}
- {/if} + {** + * Соц. сети + *} + {$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true, array('social'))} + {if $aUserFieldContactValues} + {capture 'info_social'} + {foreach $aUserFieldContactValues as $oField} + {list_item sLabel="getName()}\"> {$oField->getTitle()|escape}" sContent=$oField->getValue(true, true)} + {/foreach} + {/capture} + + {list sTitle=$aLang.profile_social sContent=$smarty.capture.info_social} + {/if} {hook run='profile_whois_item' oUserProfile=$oUserProfile} -

{$aLang.profile_activity}

+ {** + * Активность + *} + {capture 'info_activity'} + {if $oConfig->GetValue('general.reg.invite')} + {* Кто пригласил пользователя *} + {if $oUserInviteFrom} + {list_item sLabel=$aLang.profile_invite_from sContent="getUserWebPath()}\">{$oUserInviteFrom->getDisplayName()}"} + {/if} + + {* Приглашенные пользователем *} + {if $aUsersInvite} + {foreach $aUsersInvite as $oUserInvite} + {$sUsers = $sUsers|cat:"getUserWebPath()}\">{$oUserInvite->getDisplayName()} "} + {/foreach} - - - {if $oConfig->GetValue('general.reg.invite') and $oUserInviteFrom} - - - - + {list_item sLabel=$aLang.profile_invite_to sContent=$sUsers} + {/if} {/if} - - {if $oConfig->GetValue('general.reg.invite') and $aUsersInvite} - - - - - {/if} - - + {* Блоги созданные пользователем *} {if $aBlogsOwner} - - - - + {foreach $aBlogsOwner as $oBlog} + {$sBlogsOwner = $sBlogsOwner|cat:"getUrlFull()}\">{$oBlog->getTitle()|escape}{if ! $oBlog@last}, {/if}"} + {/foreach} + + {list_item sLabel=$aLang.profile_blogs_self sContent=$sBlogsOwner} {/if} - + {* Блоги администрируемые пользователем *} {if $aBlogAdministrators} - - - - + {foreach $aBlogAdministrators as $oBlogUser} + {$oBlog = $oBlogUser->getBlog()} + {$sBlogAdministrators = $sBlogAdministrators|cat:"getUrlFull()}\">{$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if}"} + {/foreach} + + {list_item sLabel=$aLang.profile_blogs_administration sContent=$sBlogAdministrators} {/if} - + {* Блоги модерируемые пользователем *} {if $aBlogModerators} - - - - + {foreach $aBlogModerators as $oBlogUser} + {$oBlog = $oBlogUser->getBlog()} + {$sBlogModerators = $sBlogModerators|cat:"getUrlFull()}\">{$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if}"} + {/foreach} + + {list_item sLabel=$aLang.profile_blogs_moderation sContent=$sBlogModerators} {/if} - + {* Блоги в которые вступил пользователь *} {if $aBlogUsers} - - - - + {foreach $aBlogUsers as $oBlogUser} + {$oBlog = $oBlogUser->getBlog()} + {$sBlogUsers = $sBlogUsers|cat:"getUrlFull()}\">{$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if}"} + {/foreach} + + {list_item sLabel=$aLang.profile_blogs_join sContent=$sBlogUsers} {/if} - {hook run='profile_whois_activity_item' oUserProfile=$oUserProfile} - - - - - - - - {if $oSession} - - - - + {* Дата регистрации *} + {list_item sLabel=$aLang.profile_date_registration sContent={date_format date=$oUserProfile->getDateRegister()}} + + {* Дата последнего визита *} + {if $oSession} + {list_item sLabel=$aLang.profile_date_last sContent={date_format date=$oSession->getDateLast()}} {/if} -
{$aLang.profile_invite_from}: - {$oUserInviteFrom->getDisplayName()}  -
{$aLang.profile_invite_to}: - {foreach $aUsersInvite as $oUserInvite} - {$oUserInvite->getDisplayName()}  - {/foreach} -
{$aLang.profile_blogs_self}: - {foreach $aBlogsOwner as $oBlog} - {$oBlog->getTitle()|escape}{if ! $oBlog@last}, {/if} - {/foreach} -
{$aLang.profile_blogs_administration}: - {foreach $aBlogAdministrators as $oBlogUser} - {$oBlog = $oBlogUser->getBlog()} - {$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if} - {/foreach} -
{$aLang.profile_blogs_moderation}: - {foreach $aBlogModerators as $oBlogUser} - {$oBlog = $oBlogUser->getBlog()} - {$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if} - {/foreach} -
{$aLang.profile_blogs_join}: - {foreach $aBlogUsers as $oBlogUser} - {$oBlog = $oBlogUser->getBlog()} - {$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if} - {/foreach} -
{$aLang.profile_date_registration}:{date_format date=$oUserProfile->getDateRegister()}
{$aLang.profile_date_last}:{date_format date=$oSession->getDateLast()}
+ {/capture} + + {list sTitle=$aLang.profile_activity sContent=$smarty.capture.info_activity} + {** + * Друзья + *} {if $aUsersFriend}

{$aLang.profile_friends} ({$iCountFriendsUser})

@@ -226,6 +221,5 @@ {/if} {hook run='profile_whois_item_end' oUserProfile=$oUserProfile} - {hook run='user_info_end' oUserProfile=$oUserProfile} {/block} \ No newline at end of file