{extends "../@layout.xml"} {block title}{$user->getCanonicalName()}{/block} {block headIncludes} {if $user->getPrivacyPermission('page.read', $thisUser ?? NULL)} {else} {/if} {/block} {block header} {$user->getCanonicalName()} ({_this_is_you})
{if $user->isOnline()} {_online} {else} {$user->isFemale() ? tr("was_online_f") : tr("was_online_m")} {$user->getOnline()} {/if}
{_deceased_person}
{/block} {block content} {if !$user->isBanned()} {if !$user->getPrivacyPermission('page.read', $thisUser ?? NULL)}
{_forbidden}
{_forbidden_comment}
{else}
{$user->getCanonicalName()}
{var $completeness = $user->getProfileCompletenessReport()}
{$completeness->total}%
{if isset($thisUser) && $user->getId() === $thisUser->getId() && sizeof($completeness->unfilled) > 0}
{_interests} (+20%) Email (+20%) {_phone} (+20%) Telegram (+15%) {_status} (+15%) {/if}

{var $friendCount = $user->getFriendsCount()}
{_friends}
{tr("friends", $friendCount)}
{_all_title}
{var $friendOnlineCount = $user->getFriendsOnlineCount()}
{_friends_online}
{tr("friends_online", $friendOnlineCount)}
{_all_title}
{_albums}
{tr("albums", $albumsCount)}
{_all_title}
{var $cover = $album->getCoverPhoto()}
{$album->getName()}
{tr("updated_at", $album->getEditTime() ?? $album->getPublicationTime())}
{_videos}
{tr("videos", $videosCount)}
{_all_title}
{ovk_proc_strtr($video->getName(), 30)}
{$video->getPublicationTime()} | {_comments} ({$video->getCommentsCount()})
{_notes}
{tr("notes", $notesCount)}
{_all_title}
{var $clubsCount = $user->getClubCount()}
{_groups}
{tr("groups", $clubsCount)}
{_all_title}
{$club->getName()} {if !$iterator->last}•{/if}
{var $meetingCount = $user->getMeetingCount()}
{_meetings}
{tr("meetings", $meetingCount)}
{_all_title}
{$meeting->getName()} {if !$iterator->last}•{/if}
{admin_privacy_warning}:
{_user_blacklisted_you}
{strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}
{var $thatIsThisUser = isset($thisUser) && $user->getId() == $thisUser->getId()}

{$user->getFullName()}

{if !is_null($user->getStatus())}
{$user->getStatus()}
{elseif $thatIsThisUser}
[ {_change_status} ]
{/if}
{_gender}: {$user->isFemale() ? tr("female") : tr("male")}
{_relationship}: {$user->getLocalizedMaritalStatus()}
{_registration_date}: {$user->getRegistrationTime()}
{_hometown}: {$user->getHometown()}
{_politViews}: {var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}
{_birth_date}: {$user->getBirthday()->format('%e %B %Y')}, {tr("years", $user->getAge())} {$user->getBirthday()->format('%e %B')}
{_information}
{capture $contactInfo_Tmp}
{_email}: {$user->getContactEmail()}
{_telegram}: @{$user->getTelegram()}
{_personal_website}: {$user->getWebsite()}
{_city}: {$user->getCity()}
{_address}: {$user->getPhysicalAddress()}
{/capture} {capture $uInfo_Tmp}
{_interests}: {$user->getInterests()}
{_favorite_music}: {$user->getFavoriteMusic()}
{_favorite_films}: {$user->getFavoriteFilms()}
{_favorite_shows}: {$user->getFavoriteShows()}
{_favorite_books}: {$user->getFavoriteBooks()}
{_favorite_quotes}: {$user->getFavoriteQuote()}
О себе: {$user->getDescription()}
{/capture}

{_contact_information} {ifset $thisUser}{if $thisUser->getId() == $user->getId()}[ {_edit} ]{/if}{/ifset}

{if !empty($contactInfo_Tmp)} {$contactInfo_Tmp|noescape} {else}
{_no_information_provided}
{/if}

{_personal_information} {ifset $thisUser}{if $thisUser->getId() == $user->getId()}[ {_edit} ]{/if}{/ifset}

{if !empty($uInfo_Tmp)} {$uInfo_Tmp|noescape} {else}
{_no_information_provided}
{/if}
{_gifts}
{tr("gifts", $giftCount)}
{if OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && !is_null($thisUser)} {_send_gift} | {/if} {_all_title}
{var $hideInfo = !is_null($thisUser) ? ($giftDescriptor->anon ? $thisUser->getId() !== $user->getId() : false) : false}
{presenter "openvk!Wall->wallEmbedded", $user->getId()}
{/if} {else} {* isBanned() *} {include "banned.xml"} {/if} {/block}