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>
|
2023-01-07 22:52:50 +03:00
|
|
|
<div style="margin: 10px;">
|
|
|
|
<h2 class="header2">{_registration}</h2>
|
|
|
|
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img src="assets/packages/static/openvk/img/favicons/favicon64.png" style="width: 32px;" align="middle">
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<b>{php echo OPENVK_ROOT_CONF['openvk']['appearance']['name']} {_registration_welcome_1}</b><br>
|
|
|
|
{_registration_welcome_2}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-09-13 19:00:54 +03:00
|
|
|
<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>
|
2023-01-07 22:52:50 +03:00
|
|
|
<h4 style="margin-left: 60px;">{_main}</h4>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">{_name}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-right">
|
2021-09-13 19:00:54 +03:00
|
|
|
<input type="text" name="first_name" required />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">{_surname}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-right">
|
2021-12-27 01:11:35 +03:00
|
|
|
<input type="text" name="last_name" />
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
|
2021-09-13 19:00:54 +03:00
|
|
|
<tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">{_email}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-right">
|
|
|
|
<input type="email" name="email" required />
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2021-10-10 11:41:38 +03:00
|
|
|
<tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">{_password}: </span>
|
2021-10-10 11:41:38 +03:00
|
|
|
</td>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-right">
|
|
|
|
<input type="password" name="password" required />
|
2021-10-10 11:41:38 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
</table>
|
|
|
|
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
|
|
|
|
<tr>
|
|
|
|
<h4 style="margin-left: 60px;">{_other_fields}</h4>
|
|
|
|
</tr>
|
2021-09-13 19:00:54 +03:00
|
|
|
<tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">{_birth_date}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-right">
|
|
|
|
<input max={date('Y-m-d')} name="birthday" type="date"/>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">{_gender}: </span>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
2023-01-07 22:52:50 +03:00
|
|
|
<td class="regform-right">
|
|
|
|
{var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
|
|
|
<select name="sex" required>
|
|
|
|
<option n:attr="selected => !$femalePreferred" value="male">{_male}</option>
|
|
|
|
<option n:attr="selected => $femalePreferred" value="female">{_female}</option>
|
|
|
|
</select>
|
2021-09-13 19:00:54 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-05-26 12:26:19 +03:00
|
|
|
{if !(strpos(captcha_template(), 'verified'))}
|
|
|
|
<tr>
|
|
|
|
<td class="regform-left">
|
|
|
|
<span class="nobold">CAPTCHA: </span>
|
|
|
|
</td>
|
|
|
|
<td class="regform-right">
|
|
|
|
{captcha_template()|noescape}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
2023-01-07 22:52:50 +03:00
|
|
|
</table>
|
|
|
|
<div style="margin-left: 100px; margin-right: 100px; text-align: center;">
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<input type="checkbox" required="true" name="confirmation" /> {_checkbox_in_registration|noescape}
|
|
|
|
<br /><br />
|
|
|
|
<input type="submit" value="{_registration}" class="button" /><br><br>
|
|
|
|
</div>
|
2021-09-13 19:00:54 +03:00
|
|
|
</tbody>
|
|
|
|
</form>
|
2023-01-07 22:52:50 +03:00
|
|
|
</div>
|
2021-09-13 19:00:54 +03:00
|
|
|
{else}
|
2023-05-26 12:26:19 +03:00
|
|
|
<h4>{_registration_closed}</h4>
|
2023-01-07 22:52:50 +03:00
|
|
|
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 20%;">
|
2023-05-26 12:26:19 +03:00
|
|
|
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 100%;"/>
|
2023-01-07 22:52:50 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{_registration_disabled_info}
|
2023-05-23 16:31:32 +03:00
|
|
|
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}
|
2023-05-26 12:26:19 +03:00
|
|
|
<br/><br/>{_admin_banned_link_reason}:<br>
|
|
|
|
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
|
2023-01-07 22:52:50 +03:00
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-09-13 19:00:54 +03:00
|
|
|
{/if}
|
2021-09-13 06:22:05 +03:00
|
|
|
{/block}
|