{extends "../@layout.xml"} {if !$user->isBanned()} {var $backdrops = $user->getBackDropPictureURLs()} {/if} {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} {var $platform = $user->getOnlinePlatform()} {var $platformDetails = $user->getOnlinePlatformDetails()}
{_deceased_person}
{/block} {block content} {if !$user->isBanned()} {if !$user->getPrivacyPermission('page.read', $thisUser ?? NULL)}
{_forbidden}
{_forbidden_comment}
{else}
{var $hasAvatar = !str_contains($user->getAvatarUrl('miniscule'), "/assets/packages/static/openvk/img/camera_200.png")} {if $thisUser && $user->getId() == $thisUser->getId()} {_add_image} {/if} {$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}
{strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}
{var $thatIsThisUser = isset($thisUser) && $user->getId() == $thisUser->getId()}

{$user->getFullName()}

{if !$audioStatus} {if !is_null($user->getStatus())}
{$user->getStatus()}
{elseif $thatIsThisUser}
[ {_change_status} ]
{/if} {else}
{$audioStatus->getName()}
{/if}
{_pronouns}: {$user->isFemale() ? tr("female") : ($user->isNeutral() ? tr("neutral") : tr("male"))}
{_relationship}: {$user->getLocalizedMaritalStatus()} {if $user->getMaritalStatusUser()} {$user->getMaritalStatusUserPrefix()} {$user->getMaritalStatusUser()->getCanonicalName()} {/if}
{_registration_date}: {$user->getRegistrationTime()}
{_hometown}: {$user->getHometown()}
{_politViews}: getPoliticalViews() != 0}href="/search?type=users&query=&politViews={$user->getPoliticalViews()}"{/if}>{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}: {var $interests = explode(", ", $user->getInterests())} {foreach $interests as $interest} {$interest}{if $interest != end($interests)},{/if} {/foreach}
{_favorite_music}: {var $musics = explode(", ", $user->getFavoriteMusic())} {foreach $musics as $music} {$music}{if $music != end($musics)},{/if} {/foreach}
{_favorite_films}: {var $films = explode(", ", $user->getFavoriteFilms())} {foreach $films as $film} {$film}{if $film != end($films)},{/if} {/foreach}
{_favorite_shows}: {var $shows = explode(", ", $user->getFavoriteShows())} {foreach $shows as $show} {$show}{if $show != end($shows)},{/if} {/foreach}
{_favorite_books}: {var $books = explode(", ", $user->getFavoriteBooks())} {foreach $books as $book} {$book}{if $book != end($books)},{/if} {/foreach}
{_favorite_quotes}: {$user->getFavoriteQuote()}
{_information_about}: {$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}
{_audios}
{tr("audios_count", $audiosCount)}
{_all_title}
{include "../Audio/player.xml", audio => $audio}
{_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} {block bodyScripts} {script "js/al_despacito_wall.js"} {/block}