Страница регистрации из 2007г (#788)

* Update @layout.xml

* Update @layout.xml

* Update Register.xml

* Update Login.xml

* Update style.css

* Update en.strings

* Update ru.strings

* Update ru_old.strings

* Update ru_sov.strings

* h2 -> .header2

* h2 + header2 styling

* Update Register.xml

* Update Register.xml

* Update Login.xml

* Welcome message addiction

* трахать

* +reg-welcome

* +reg-welcome

* +reg-welcome

* +reg-welcome (mixed up that with old rus one)

* +reg-welcome

* Adding UK localization

* Delete settings.json

* На всякий и тут обновлю на id в layout

Нужно для изменения иконок при создании тем.

* Update @layout.xml

* Minor changes

* minor changes

* Fixes requested by celestora

* пепяо с табами

* пепяо с табами
This commit is contained in:
ZAZiOs 2023-01-07 22:52:50 +03:00 committed by GitHub
parent 90b2b0acac
commit c67607c3f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 233 additions and 118 deletions

View file

@ -169,7 +169,7 @@
</a> </a>
<div class="floating_sidebar"> <div class="floating_sidebar">
<a class="minilink" href="/friends{$thisUser->getId()}"> <a id="minilink-friends" class="minilink" href="/friends{$thisUser->getId()}">
<object type="internal/link" n:if="$thisUser->getFollowersCount() > 0"> <object type="internal/link" n:if="$thisUser->getFollowersCount() > 0">
<div class="counter"> <div class="counter">
+{$thisUser->getFollowersCount()} +{$thisUser->getFollowersCount()}
@ -177,10 +177,10 @@
</object> </object>
<img src="/assets/packages/static/openvk/img/friends.svg"> <img src="/assets/packages/static/openvk/img/friends.svg">
</a> </a>
<a class="minilink" href="/albums{$thisUser->getId()}"> <a id="minilink-albums" class="minilink" href="/albums{$thisUser->getId()}">
<img src="/assets/packages/static/openvk/img/photos.svg"> <img src="/assets/packages/static/openvk/img/photos.svg">
</a> </a>
<a class="minilink" href="/im"> <a id="minilink-messenger" class="minilink" href="/im">
<object type="internal/link" n:if="$thisUser->getUnreadMessagesCount() > 0"> <object type="internal/link" n:if="$thisUser->getUnreadMessagesCount() > 0">
<div class="counter"> <div class="counter">
+{$thisUser->getUnreadMessagesCount()} +{$thisUser->getUnreadMessagesCount()}
@ -188,10 +188,10 @@
</object> </object>
<img src="/assets/packages/static/openvk/img/messages.svg"> <img src="/assets/packages/static/openvk/img/messages.svg">
</a> </a>
<a class="minilink" href="/groups{$thisUser->getId()}"> <a id="minilink-groups" class="minilink" href="/groups{$thisUser->getId()}">
<img src="/assets/packages/static/openvk/img/groups.svg"> <img src="/assets/packages/static/openvk/img/groups.svg">
</a> </a>
<a class="minilink" href="/notifications"> <a id="minilink-notifications" class="minilink" href="/notifications">
<object type="internal/link" n:if="$thisUser->getNotificationsCount() > 0"> <object type="internal/link" n:if="$thisUser->getNotificationsCount() > 0">
<div class="counter"> <div class="counter">
+{$thisUser->getNotificationsCount()} +{$thisUser->getNotificationsCount()}

View file

@ -9,21 +9,47 @@
{/block} {/block}
{block content} {block content}
<p> <h4 style="margin-left: 100px; margin-right: 100px;">{_access_recovery}</h4>
<table cellspacing="10" cellpadding="0" border="0" align="center" width="70%">
<tbody>
<tr>
<td>
{_access_recovery_info_2} {_access_recovery_info_2}
</p> </td>
</tr>
</tbody>
</table>
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
<label for="password">{_new_password}: </label> <table cellspacing="7" cellpadding="0" width="55%" border="0" align="center">
<tbody>
<tr>
<td class="regform-left">
<span class="nobold">{_new_password}: </span>
</td>
<td class="regform-right">
<input id="password" type="password" name="password" required /> <input id="password" type="password" name="password" required />
<br/><br/> </td>
</tr>
{if $is2faEnabled} {if $is2faEnabled}
<label for="code">{_"2fa_code_2"}: </label> <tr style="text-align: right;">
<input id="code" type="text" name="code" required /> <td class="regform-left">
<br/><br/> <span class="nobold">{_"2fa_code_2"}: </span>
</td>
<td class="regform-right">
<input id="password" type="password" name="password" required />
</td>
</tr>
{/if} {/if}
<tr>
<td>
</td>
</tr>
</tbody>
</table>
<center>
<input type="hidden" name="hash" value="{$csrfToken}" /> <input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_reset_password}" class="button" style="float: right;" /> <input type="submit" value="{_reset_password}" class="button" />
</center>
</form> </form>
{/block} {/block}

View file

@ -7,35 +7,36 @@
{block content} {block content}
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
<table cellspacing="7" cellpadding="0" width="40%" border="0" align="center"> <h4 style="margin-left: 100px; margin-right: 100px;">{_log_in}</h4>
<table cellspacing="7" cellpadding="0" width="46%" border="0" align="center">
<tbody> <tbody>
<tr> <tr style="text-align: right;">
<td> <td>
<span>{_email}: </span> <span class="nobold">{_email}: </span>
</td> </td>
<td> <td style="width:191px;">
<input type="text" name="login" required /> <input type="text" name="login" required />
</td> </td>
</tr> </tr>
<tr> <tr style="text-align: right;">
<td> <td>
<span>{_password}: </span> <span class="nobold">{_password}: </span>
</td> </td>
<td> <td>
<input type="password" name="password" required /> <input type="password" name="password" required />
</td> </td>
</tr> </tr>
<tr>
<td>
</td>
<td>
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_log_in}" class="button" />
<a href="/reg">{_registration}</a>
</td>
</tr>
</tbody> </tbody>
</table> </table>
<center>
<!-- div style="margin-bottom: 8px;">
<input type="checkbox" name="someone_pc" value=""/>
<label for="someone_pc" class="nobold">{_not_your_pc}?</label><br>
</div -->
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_log_in}" class="button" />
<a href="/reg" class="button" style="display: inline-block;">{_registration}</a><br><br>
<a href="/restore">{_forgot_password}</a>
</center>
</form> </form>
{/block} {/block}

View file

@ -6,16 +6,23 @@
{/block} {/block}
{block content} {block content}
<p> <h4 style="margin-left: 100px; margin-right: 100px;">{_two_factor_authentication}</h4>
<table cellspacing="10" cellpadding="0" border="0" align="center" width="70%">
<tbody>
<tr>
<td>
{_two_factor_authentication_login} {_two_factor_authentication_login}
</p> </td>
</tr>
</tbody>
</table>
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
<table cellspacing="7" cellpadding="0" width="40%" border="0" align="center"> <table cellspacing="7" cellpadding="0" width="40%" border="0" align="center">
<tbody> <tbody>
<tr> <tr style="text-align: right;">
<td> <td>
<span>{_code}: </span> <span class="nobold">{_code}: </span>
</td> </td>
<td> <td>
<input type="text" name="code" autocomplete="off" required /> <input type="text" name="code" autocomplete="off" required />
@ -25,14 +32,14 @@
<td> <td>
</td> </td>
<td> </tr>
</tbody>
</table>
<center>
<input type="hidden" name="login" value="{$login}" /> <input type="hidden" name="login" value="{$login}" />
<input type="hidden" name="password" value="{$password}" /> <input type="hidden" name="password" value="{$password}" />
<input type="hidden" name="hash" value="{$csrfToken}" /> <input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_log_in}" class="button" /> <input type="submit" value="{_log_in}" class="button" />
</td> </center>
</tr>
</tbody>
</table>
</form> </form>
{/block} {/block}

View file

@ -22,31 +22,78 @@
<p n:if="!is_null($referer)" align="center"> <p n:if="!is_null($referer)" align="center">
{tr("invites_you_to", $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])|noescape} {tr("invites_you_to", $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])|noescape}
</p> </p>
<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>
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center"> <table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
<tbody> <tbody>
<tr> <tr>
<td> <h4 style="margin-left: 60px;">{_main}</h4>
<span>{_name}: </span> </tr>
<tr>
<td class="regform-left">
<span class="nobold">{_name}: </span>
</td> </td>
<td> <td class="regform-right">
<input type="text" name="first_name" required /> <input type="text" name="first_name" required />
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td class="regform-left">
<span>{_surname}: </span> <span class="nobold">{_surname}: </span>
</td> </td>
<td> <td class="regform-right">
<input type="text" name="last_name" /> <input type="text" name="last_name" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td class="regform-left">
<span>{_gender}: </span> <span class="nobold">{_email}: </span>
</td> </td>
<td> <td class="regform-right">
<input type="email" name="email" required />
</td>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_password}: </span>
</td>
<td class="regform-right">
<input type="password" name="password" required />
</td>
</tr>
</table>
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
<tr>
<h4 style="margin-left: 60px;">{_other_fields}</h4>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_birth_date}: </span>
</td>
<td class="regform-right">
<input max={date('Y-m-d')} name="birthday" type="date"/>
</td>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_gender}: </span>
</td>
<td class="regform-right">
{var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]} {var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
<select name="sex" required> <select name="sex" required>
<option n:attr="selected => !$femalePreferred" value="male">{_male}</option> <option n:attr="selected => !$femalePreferred" value="male">{_male}</option>
@ -55,63 +102,43 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td class="regform-left">
<span>{_birth_date}: </span> <span class="nobold">CAPTCHA: </span>
</td> </td>
<td> <td class="regform-right">
<input max={date('Y-m-d')} name="birthday" type="date"/>
</td>
</tr>
<tr></tr>
<tr>
<td>
<span>{_email}: </span>
</td>
<td>
<input type="email" name="email" required />
</td>
</tr>
<tr>
<td>
<span>{_password}: </span>
</td>
<td>
<input type="password" name="password" required />
</td>
</tr>
<tr>
<td>
<span>CAPTCHA: </span>
</td>
<td>
{captcha_template()|noescape} {captcha_template()|noescape}
</td> </td>
</tr> </tr>
</table>
<tr> <div style="margin-left: 100px; margin-right: 100px; text-align: center;">
<td>
</td>
<td>
<input type="hidden" name="hash" value="{$csrfToken}" /> <input type="hidden" name="hash" value="{$csrfToken}" />
<input type="checkbox" required="true" name="confirmation" /> {_checkbox_in_registration|noescape} <input type="checkbox" required="true" name="confirmation" /> {_checkbox_in_registration|noescape}
<br /><br /> <br /><br />
<input type="submit" value="{_registration}" class="button" /> <input type="submit" value="{_registration}" class="button" /><br><br>
<a href="/login">{_log_in}</a> </div>
</tbody>
</form>
</div>
{else}
<h4>{_registration_closed}</h4>
<table cellspacing="10" cellpadding="0" border="0" align="center" style="margin: 9px;">
<tbody>
<tr>
<td style="width: 20%;">
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 100%;"/>
</td>
<td>
{_registration_disabled_info}
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}
<br/>
<br/>
{_admin_banned_link_reason}:
<br>
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']}</b>
{/if}
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</form>
{else}
<center>
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_registration_closed}" style="width: 20%;" />
<p>
{_registration_disabled_info}
{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} {/if}
{/block} {/block}

View file

@ -9,16 +9,37 @@
{/block} {/block}
{block content} {block content}
<p> <h4 style="margin-left: 100px; margin-right: 100px;">{_access_recovery}</h4>
<table cellspacing="10" cellpadding="0" border="0" align="center" width="70%">
<tbody>
<tr>
<td>
{_access_recovery_info} {_access_recovery_info}
</p> </td>
</tr>
</tbody>
</table>
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
<label for="login">{_log_in}: </label> <table cellspacing="7" cellpadding="0" width="46%" border="0" align="center">
<tbody>
<tr style="text-align: right;">
<td>
<span class="nobold">{_email}: </span>
</td>
<td>
<input id="login" type="text" name="login" required /> <input id="login" type="text" name="login" required />
<br/><br/> </td>
</tr>
<tr>
<td>
</td>
</tr>
</tbody>
</table>
<center>
<input type="hidden" name="hash" value="{$csrfToken}" /> <input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_reset_password}" class="button" style="float: right;" /> <input type="submit" value="{_reset_password}" class="button"/>
</center>
</form> </form>
{/block} {/block}

View file

@ -661,6 +661,15 @@ select {
box-sizing: border-box; box-sizing: border-box;
} }
.header2 {
border-bottom: 1px solid #E8EBEE;
color: #45688E;
font-size: 14px;
font-weight: bold;
margin: 0;
font-family: verdana, arial, sans-serif;
}
h4 { h4 {
border-bottom: 1px solid #E8EBEE; border-bottom: 1px solid #E8EBEE;
color: #45688E; color: #45688E;
@ -2236,3 +2245,12 @@ a.poll-retract-vote {
opacity: 1; opacity: 1;
} }
} }
.regform-left{
text-align: right;
min-width: 110px;
}
.regform-right{
min-width: 200px;
}

View file

@ -53,8 +53,11 @@
"register_meta_desc" = "Register in $1 now!"; "register_meta_desc" = "Register in $1 now!";
"register_referer_meta_title" = "$1 invites you to $2!"; "register_referer_meta_title" = "$1 invites you to $2!";
"register_referer_meta_desc" = "Join $1 and many other users at $2!"; "register_referer_meta_desc" = "Join $1 and many other users at $2!";
"registration_welcome_1" = "is a universal colleague search tool based on the VKontakte structure.";
"registration_welcome_2" = "We want friends, classmates, neighbors and colleagues to always be in touch.";
"users" = "Users"; "users" = "Users";
"other_fields" = "Other fields";
/* Profile information */ /* Profile information */

View file

@ -44,7 +44,10 @@
"register_meta_desc" = "Зарегистрируйтесь в $1 прямо сейчас!"; "register_meta_desc" = "Зарегистрируйтесь в $1 прямо сейчас!";
"register_referer_meta_title" = "$1 приглашает вас в $2!"; "register_referer_meta_title" = "$1 приглашает вас в $2!";
"register_referer_meta_desc" = "Присоединяйтесь к $1 и множеству других пользователей в $2!"; "register_referer_meta_desc" = "Присоединяйтесь к $1 и множеству других пользователей в $2!";
"registration_welcome_1" = "- универсальное средство поиска коллег основанное на структуре ВКонтакте.";
"registration_welcome_2" = "Мы хотим, чтобы друзья, однокурсники, одноклассники, соседи и коллеги всегда могли быть в контакте.";
"users" = "Пользователи"; "users" = "Пользователи";
"other_fields" = "Остальное";
/* Profile information */ /* Profile information */

View file

@ -44,6 +44,9 @@
"register_meta_desc" = "Зарегистрируйтесь въ $1 прямо сейчасъ!"; "register_meta_desc" = "Зарегистрируйтесь въ $1 прямо сейчасъ!";
"register_referer_meta_title" = "$1 приглашаетъ васъ въ $2!"; "register_referer_meta_title" = "$1 приглашаетъ васъ въ $2!";
"register_referer_meta_desc" = "Присоединяйтесь къ $1 и множеству другихъ пользователей въ $2!"; "register_referer_meta_desc" = "Присоединяйтесь къ $1 и множеству другихъ пользователей въ $2!";
"registration_welcome_1" = "- универсальное средство поиска собратовъ основанное на структурѣ ВКонтакте.";
"registration_welcome_2" = "Мы желаемъ, чтобы друзья, однокурсники, одноклассники, сосѣди и собратья всегда могли быть въ контактѣ.";
"other_fields" = "Остальное";
/* Profile information */ /* Profile information */

View file

@ -42,8 +42,11 @@
"register_meta_desc" = "Зарегистрируйтесь в $1 прямо сейчас!"; "register_meta_desc" = "Зарегистрируйтесь в $1 прямо сейчас!";
"register_referer_meta_title" = "$1 приглашает вас в $2!"; "register_referer_meta_title" = "$1 приглашает вас в $2!";
"register_referer_meta_desc" = "Присоединяйтесь к $1 и множеству других граждан в $2!"; "register_referer_meta_desc" = "Присоединяйтесь к $1 и множеству других граждан в $2!";
"registration_welcome_1" = "- универсальное средство поиска товарищей основанное на структуре ВКонтакте.";
"registration_welcome_2" = "Мы желаем, чтобы друзья, однокурсники, одноклассники, соседи и товарищи всегда могли быть в контакте.";
"users" = "Граждане"; "users" = "Граждане";
"other_fields" = "Остальное";
/* Profile information */ /* Profile information */

View file

@ -46,7 +46,10 @@
"register_meta_desc" = "Зареєструйтесь у $1 прямо зараз!"; "register_meta_desc" = "Зареєструйтесь у $1 прямо зараз!";
"register_referer_meta_title" = "$1 запрошує вас у $2!"; "register_referer_meta_title" = "$1 запрошує вас у $2!";
"register_referer_meta_desc" = "Приєднуйтесь до $1 та багатьох інших користувачів у $2!"; "register_referer_meta_desc" = "Приєднуйтесь до $1 та багатьох інших користувачів у $2!";
"registration_welcome_1" = "- універсальний засіб пошуку колег, засноване на структурі ВКонтакте.";
"registration_welcome_2" = "Ми бажаємо, щоб друзі, однокурсники, однокласники, сусіди і колеги завжди могли бути в контакті.";
"users" = "Користувачі"; "users" = "Користувачі";
"other_fields" = "Інше";
/* Profile information */ /* Profile information */