openvk/Web/Presenters/templates/Search/Index.xml

85 lines
2.4 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@listView.xml"}
{block title}
{if $type === "users"}
{tr("search_for_people")}
{else}
{tr("search_for_groups")}
{/if}
{/block}
{block header}
{=OPENVK_ROOT_CONF["openvk"]["appearance"]["name"]} »
2020-06-07 19:04:43 +03:00
{if $type === "users"}
{tr("search_for_people")}
{else}
{tr("search_for_groups")}
{/if}
{/block}
{* BEGIN ELEMENTS DESCRIPTION *}
2020-06-07 19:04:43 +03:00
{block tabs}
<div {if $type === "users"}id="activetabs"{/if} class="tab">
<a {if $type === "users"}id="act_tab_a"{/if} href="/search?type=users">
{_users}
</a>
</div>
<div {if $type === "groups"}id="activetabs"{/if} class="tab">
<a {if $type === "groups"}id="act_tab_a"{/if} href="/search?type=groups">
{_groups}
</a>
</div>
2020-06-07 19:04:43 +03:00
<form class="header_search_inputbt">
<input name="type" type="hidden" value="{$type ?? 'users'}" />
<input name="query" class="header_search_input" placeholder="{_search_placeholder}" value="{$_GET['query'] ?? ''}" />
<button class="button_search">{_search_button}</button>
</form>
<p style="margin-left: 15px; margin-top: 0;">
<b>{tr("results", $count)}</b>
</p>
{/block}
2020-06-07 19:04:43 +03:00
{block link|strip|stripHtml}
{$x->getURL()}
{/block}
{block preview}
<img src="{$x->getAvatarUrl()}" width="75" alt="{_"photo"}" />
2020-06-07 19:04:43 +03:00
{/block}
{block name}
<text style="overflow: hidden;">&nbsp;{$x->getCanonicalName()}</text>
{/block}
{block description}
2020-07-16 23:11:31 +03:00
<table class="ugc-table">
2020-06-07 19:04:43 +03:00
<tbody>
{if $type === "users"}
<tr>
<td><span class="nobold">{_"gender"}: </span></td>
<td>{$x->isFemale() ? tr("female") : tr("male")}</td>
2020-06-07 19:04:43 +03:00
</tr>
<tr>
<td><span class="nobold">{_"relationship"}:</span></td>
<td>{var $marialStatus = $x->getMaritalStatus()}{_"relationship_$marialStatus"}</td>
</tr>
<tr>
<td><span class="nobold">{_"registration_date"}: </span></td>
<td>{$x->getRegistrationTime()}</td>
</tr>
{/if}
<tr>
<td>
<span class="nobold">{_"description"}:</span>
2020-06-07 19:04:43 +03:00
</td>
<td>
{$x->getDescription() ?? '(' . tr("none") . ')'}
2020-06-07 19:04:43 +03:00
</td>
</tr>
</tbody>
</table>
{/block}