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}
+
+
{$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)}
-
-
-
-
- {if $oUserProfile->getProfileSex()!='other'}
-
- {$aLang.profile_sex}: |
-
- {if $oUserProfile->getProfileSex()=='man'}
- {$aLang.profile_sex_man}
- {else}
- {$aLang.profile_sex_woman}
- {/if}
- |
-
+ {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()}
-
- {$aLang.profile_birthday}: |
- {date_format date=$oUserProfile->getProfileBirthday() format="j F Y" notz=true} |
-
+ {list_item sLabel=$aLang.profile_birthday sContent={date_format date=$oUserProfile->getProfileBirthday() format="j F Y" notz=true}}
{/if}
-
+ {* Местоположение *}
{if $oGeoTarget}
-
- {$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}
- |
-
+
+ {/capture}
+
+ {list_item sLabel=$aLang.profile_place sContent=$smarty.capture.info_private_geo}
{/if}
+ {* Контакты *}
{if $aUserFieldValues}
{foreach $aUserFieldValues as $oField}
-
- {$oField->getTitle()|escape}: |
- {$oField->getValue(true,true)} |
-
+ {list_item sLabel="{$oField->getTitle()|escape}" sContent=$oField->getValue(true, true)}
{/foreach}
{/if}
{hook run='profile_whois_privat_item' oUserProfile=$oUserProfile}
-
+ {/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}
-
-
-
+ {capture 'info_contacts'}
{foreach $aUserFieldContactValues as $oField}
-
- {$oField->getTitle()|escape}: |
- {$oField->getValue(true,true)} |
-
+ {list_item sLabel="getName()}\"> {$oField->getTitle()|escape}" sContent=$oField->getValue(true, true)}
{/foreach}
-
+ {/capture}
+
+ {list sTitle=$aLang.profile_contacts sContent=$smarty.capture.info_contacts}
{/if}
- {$aUserFieldContactValues = $oUserProfile->getUserFieldValues(true,array('social'))}
- {if $aUserFieldContactValues}
-
-
-
- {foreach $aUserFieldContactValues as $oField}
-
- {$oField->getTitle()|escape:'html'}: |
- {$oField->getValue(true,true)} |
-
- {/foreach}
-
- {/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}
-
+ {**
+ * Активность
+ *}
+ {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}
-
- {$aLang.profile_invite_from}: |
-
- {$oUserInviteFrom->getDisplayName()}
- |
-
+ {list_item sLabel=$aLang.profile_invite_to sContent=$sUsers}
+ {/if}
{/if}
-
- {if $oConfig->GetValue('general.reg.invite') and $aUsersInvite}
-
- {$aLang.profile_invite_to}: |
-
- {foreach $aUsersInvite as $oUserInvite}
- {$oUserInvite->getDisplayName()}
- {/foreach}
- |
-
- {/if}
-
-
+ {* Блоги созданные пользователем *}
{if $aBlogsOwner}
-
- {$aLang.profile_blogs_self}: |
-
- {foreach $aBlogsOwner as $oBlog}
- {$oBlog->getTitle()|escape}{if ! $oBlog@last}, {/if}
- {/foreach}
- |
-
+ {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}
-
- {$aLang.profile_blogs_administration}: |
-
- {foreach $aBlogAdministrators as $oBlogUser}
- {$oBlog = $oBlogUser->getBlog()}
- {$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if}
- {/foreach}
- |
-
+ {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}
-
- {$aLang.profile_blogs_moderation}: |
-
- {foreach $aBlogModerators as $oBlogUser}
- {$oBlog = $oBlogUser->getBlog()}
- {$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if}
- {/foreach}
- |
-
+ {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}
-
- {$aLang.profile_blogs_join}: |
-
- {foreach $aBlogUsers as $oBlogUser}
- {$oBlog = $oBlogUser->getBlog()}
- {$oBlog->getTitle()|escape}{if ! $oBlogUser@last}, {/if}
- {/foreach}
- |
-
+ {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}
-
-
- {$aLang.profile_date_registration}: |
- {date_format date=$oUserProfile->getDateRegister()} |
-
-
-
- {if $oSession}
-
- {$aLang.profile_date_last}: |
- {date_format date=$oSession->getDateLast()} |
-
+ {* Дата регистрации *}
+ {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}
-
+ {/capture}
+
+ {list sTitle=$aLang.profile_activity sContent=$smarty.capture.info_activity}
+ {**
+ * Друзья
+ *}
{if $aUsersFriend}
@@ -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