{extends "../@layout.xml"} {block title} {tr("search_for_$type")} {if $_REQUEST['query']} - {$_REQUEST['query']} {/if} {/block} {block header} {=OPENVK_ROOT_CONF["openvk"]["appearance"]["name"]} » {tr("search_for_$type")} {/block} {* BEGIN ELEMENTS DESCRIPTION *} {block link|strip|stripHtml} {if $type != "apps"} {$x->getURL()} {else} /app{$x->getId()} {/if} {/block} {block preview} {_photo} {/block} {block name} {if $type != "apps"}  {$x->getCanonicalName()} {if $_REQUEST['sort'] == "rating"}({$x->getRating()}%) {elseif $_REQUEST['sort'] == "id"}(id{$x->getId()}){/if} {else} {$x->getName()} {/if} {/block} {block description} {if $type === "users"} {if !is_null($_REQUEST['status']) && $_REQUEST['status'] != ""} {/if} {if !is_null($_REQUEST['city']) && $_REQUEST['city'] != "" && $x->getPrivacySetting("page.info.read") > 1} {/if} {if !is_null($_REQUEST['city']) && $_REQUEST['hometown'] != "" && $x->getPrivacySetting("page.info.read") > 1} {/if} {if !is_null($_REQUEST['politViews']) && $_REQUEST['politViews'] != 0 && $x->getPrivacySetting("page.info.read") > 1} {/if} {if !is_null($_REQUEST['email']) && $_REQUEST['email'] != "" && $x->getPrivacySetting("page.info.read") > 1} {/if} {if !is_null($_REQUEST['telegram']) && $_REQUEST['telegram'] != "" && $x->getPrivacySetting("page.info.read") > 1} {/if} {if !is_null($_REQUEST['site']) && $_REQUEST['site'] != "" && $x->getPrivacySetting("page.info.read") > 1} {/if} {if !is_null($_REQUEST['address']) && $_REQUEST['address'] != "" && $x->getPrivacySetting("page.info.read") > 1} {/if} {if $x->getPrivacySetting("page.info.read") > 1} {/if} {/if} {if !empty($x->getDescription())} {if $type != "apps"} {/if} {/if} {if $type == "groups"} {/if}
{_status}: {$x->getStatus()}
{_city}: {$x->getCity()}
{_hometown}: {$x->getHometown()}
{_politViews}: {tr("politViews_".$x->getPoliticalViews())}
{_email}: {$x->getContactEmail()}
{_telegram}: @{$x->getTelegram()}
{_personal_website}: {$x->getWebsite()}
{_address}: {$x->getPhysicalAddress()}
{_gender}: {$x->isFemale() ? tr("female") : tr("male")}
{_relationship}: {$x->getLocalizedMaritalStatus()}
{_registration_date}: {$x->getRegistrationTime()}
{_description}: {$x->getDescription() ?? '(' . tr("none") . ')'}
{_size}: {tr("participants", $x->getFollowersCount())}
{/block} {block content}
{include "../components/paginator.xml", conf => (object) [ "page" => $page, "count" => $count, "amount" => sizeof($data), "perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE, "atBottom" => false, ]}

{tr("results", $count)}

{include searchOptions} {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
{if sizeof($data) > 0} {if $type == "users" || $type == "groups" || $type == "apps"}
{include preview, x => $dat} {ifset infotable} {include infotable, x => $dat} {else} {include name, x => $dat}
{include description, x => $dat} {/ifset}
{elseif $type == "posts"}
{if !$dat || $dat->getTargetWall() < 0 && $dat->getWallOwner()->isHideFromGlobalFeedEnabled()} {_closed_group_post}. {else} {include "../components/post.xml", post => $dat, commentSection => true, onWallOf => true} {/if}
{elseif $type == "comments"}
{if !$dat->getTarget() || $dat->getTarget()->isDeleted()} {_deleted_target_comment}. {else} {include "../components/comment.xml", comment => $dat, linkW => true} {/if}
{elseif $type == "videos"} {foreach $data as $dat}
{include "../components/video.xml", video => $dat}
{/foreach} {elseif $type == "audios"} хуй {/if} {else} {ifset customErrorMessage} {include customErrorMessage} {else} {include "../components/nothing.xml"} {/ifset} {/if}
{/block} {block searchOptions}
{_s_order_by}
{_s_order_invert}
{if $type !== "groups" && $type !== "apps"} {* В OpenVK не сохраняется дата создания групп и приложений *}
{_s_by_date}
{if $type != "users"}

{_s_date_before}:
{else}

{_s_registered_before}:
{/if}

{if $type != "users"}

{_s_date_after}:
{else}

{_s_registered_after}:
{/if}

{/if} {if $type === "users"}
{_main}
{_s_now_on_site}
{_gender}

{_male}

{_female}

{_s_any}

{ovk_proc_strtr(tr("relationship"), 14)}
{_politViews}
{_contacts}


{_interests}
{/if}
{/block}