{extends "../@layout.xml"} {block title}{$user->getCanonicalName()}{/block} {block headIncludes} {if $user->getPrivacyPermission('page.read', $thisUser ?? NULL)} {if $user->isBanned()} {elseif !is_null($user->getDescription())} {else} {var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']} {/if} {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"}
{_"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 !is_null($user->getStatus())}
{$user->getStatus()}
{elseif $thatIsThisUser}
[ {_"change_status"} ]
{/if}
{if $user->getBirthday()->timestamp() > 0} {/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())}
{_"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']} {_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}