{extends "../@listView.xml"} {var $perPage = 6} {* Why 6? Check User::_abstractRelationGenerator *} {var $act = $_GET["act"] ?? "friends"} {if $act == "incoming"} {var $iterator = iterator_to_array($user->getRequests($page))} {var $count = $user->getRequestsCount()} {elseif $act == "outcoming"} {var $iterator = iterator_to_array($user->getSubscriptions($page))} {var $count = $user->getSubscriptionsCount()} {elseif $act == "followers"} {var $iterator = iterator_to_array($user->getFollowers($page))} {var $count = $user->getFollowersCount()} {elseif $act == "online"} {var $iterator = iterator_to_array($user->getFriendsOnline($page))} {var $count = $user->getFriendsOnlineCount()} {else} {var $iterator = iterator_to_array($user->getFriends($page))} {var $count = $user->getFriendsCount()} {/if} {block title} {if $act == "incoming"} {_incoming_req} {elseif $act == "outcoming"} {_outcoming_req} {elseif $act == "followers"} {_followers} {elseif $act == "online"} {_friends_online} {else} {_friends} {/if} {/block} {block header} {if isset($thisUser) && $thisUser->getId() == $user->getId()} {_my_friends} {else} {$user->getCanonicalName()} » {if $act == "incoming"} {_incoming_req} {elseif $act == "outcoming"} {_outcoming_req} {elseif $act == "followers"} {_followers} {elseif $act == "online"} {_friends_online} {else} {_friends} {/if} {/if} {/block} {block tabs}
{_all_friends}
{_online}
{_req}
{/block} {block size}
{_incoming_req}
{_followers}
{_outcoming_req}
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()} {if $act == "incoming"} {tr("req", $count)} {elseif $act == "outcoming"} {tr("req", $count)} {elseif $act == "followers"} {tr("followers", $count)} {elseif $act == "online"} {tr("friends_list_online", $count)} {else} {tr("friends_list", $count)} {/if} {else} {tr("friends", $count)} {/if}
{/block} {* BEGIN ELEMENTS DESCRIPTION *} {block link|strip|stripHtml} {$x->getURL()} {/block} {block preview} Фотография пользователя {/block} {block name} {$x->getCanonicalName()} {/block} {block description}
{_pronouns}: {$x->isFemale() ? tr("female") : ($x->isNeutral() ? tr("neutral") : tr("male"))}
{_relationship}: {$x->getLocalizedMaritalStatus()}
{_registration_date}: {$x->getRegistrationTime()}
{/block} {block actions} {if ($x->getId() !== $thisUser->getId()) && ($thisUser->getId() === $user->getId())} {var $subStatus = $x->getSubscriptionStatus($thisUser)} {if $subStatus === 0} {elseif $subStatus === 1} {if $act !== 'followers'} {/if} {elseif $subStatus === 2} {elseif $subStatus === 3} {_send_message} {/if} {/if} {/block}