2021-09-13 06:22:05 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-08-09 09:37:08 +03:00
|
|
|
{block title}{_registration}{/block}
|
2021-09-13 06:22:05 +03:00
|
|
|
|
|
|
|
{block header}
|
2022-08-09 09:37:08 +03:00
|
|
|
{_registration}
|
2021-09-13 06:22:05 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block headIncludes}
|
|
|
|
{if !$referer}
|
2021-12-09 00:01:46 +03:00
|
|
|
<meta name="description" content="{tr('register_meta_desc', OPENVK_ROOT_CONF['openvk']['appearance']['name'])}" />
|
2021-09-13 06:22:05 +03:00
|
|
|
{else}
|
2021-12-09 00:01:46 +03:00
|
|
|
<meta property="og:title" content="{tr('register_referer_meta_title', $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])}" />
|
2021-09-13 06:22:05 +03:00
|
|
|
<meta property="og:image" content="{$referer->getAvatarUrl()}" />
|
|
|
|
|
|
|
|
<meta name="description"
|
2021-12-09 00:01:46 +03:00
|
|
|
content="{tr('register_referer_meta_desc', $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])}" />
|
2021-09-13 06:22:05 +03:00
|
|
|
{/if}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
2021-09-13 19:00:54 +03:00
|
|
|
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable'] || $referer}
|
|
|
|
<p n:if="!is_null($referer)" align="center">
|
2021-12-09 00:01:46 +03:00
|
|
|
{tr("invites_you_to", $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])|noescape}
|
2021-09-13 19:00:54 +03:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data">
|
2021-10-10 11:41:38 +03:00
|
|
|
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
|
2021-09-13 19:00:54 +03:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-09 09:37:08 +03:00
|
|
|
<span>{_name}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="first_name" required />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-09 09:37:08 +03:00
|
|
|
<span>{_surname}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
2021-12-27 01:11:35 +03:00
|
|
|
<input type="text" name="last_name" />
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-09 09:37:08 +03:00
|
|
|
<span>{_gender}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
2021-09-13 19:00:54 +03:00
|
|
|
<select name="sex" required>
|
2022-08-09 09:37:08 +03:00
|
|
|
<option n:attr="selected => !$femalePreferred" value="male">{_male}</option>
|
|
|
|
<option n:attr="selected => $femalePreferred" value="female">{_female}</option>
|
2021-09-13 19:00:54 +03:00
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-10-10 11:41:38 +03:00
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-09 09:37:08 +03:00
|
|
|
<span>{_birth_date}: </span>
|
2021-10-10 11:41:38 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input max={date('Y-m-d')} name="birthday" type="date"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-09-13 19:00:54 +03:00
|
|
|
<tr></tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-09 09:37:08 +03:00
|
|
|
<span>{_email}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="email" name="email" required />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2022-08-09 09:37:08 +03:00
|
|
|
<span>{_password}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="password" name="password" required />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span>CAPTCHA: </span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{captcha_template()|noescape}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-09-08 00:02:11 +03:00
|
|
|
|
2021-09-13 19:00:54 +03:00
|
|
|
<tr>
|
|
|
|
<td>
|
2022-09-08 00:02:11 +03:00
|
|
|
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
2022-09-08 00:02:11 +03:00
|
|
|
<input type="checkbox" required="true" name="confirmation" /> {_checkbox_in_registration|noescape}
|
|
|
|
<br /><br />
|
2022-08-09 09:37:08 +03:00
|
|
|
<input type="submit" value="{_registration}" class="button" />
|
|
|
|
<a href="/login">{_log_in}</a>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{else}
|
|
|
|
<center>
|
2022-08-09 09:37:08 +03:00
|
|
|
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 20%;" />
|
2021-09-13 19:00:54 +03:00
|
|
|
<p>
|
2022-08-09 09:37:08 +03:00
|
|
|
{_registration_disabled_info}
|
2021-09-13 19:00:54 +03:00
|
|
|
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}
|
|
|
|
<br/><br/><b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}</b>
|
|
|
|
{/if}
|
|
|
|
</p>
|
|
|
|
</center>
|
|
|
|
{/if}
|
2021-09-13 06:22:05 +03:00
|
|
|
{/block}
|