Страница регистрации из 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>
<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">
<div class="counter">
+{$thisUser->getFollowersCount()}
@ -177,10 +177,10 @@
</object>
<img src="/assets/packages/static/openvk/img/friends.svg">
</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">
</a>
<a class="minilink" href="/im">
<a id="minilink-messenger" class="minilink" href="/im">
<object type="internal/link" n:if="$thisUser->getUnreadMessagesCount() > 0">
<div class="counter">
+{$thisUser->getUnreadMessagesCount()}
@ -188,10 +188,10 @@
</object>
<img src="/assets/packages/static/openvk/img/messages.svg">
</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">
</a>
<a class="minilink" href="/notifications">
<a id="minilink-notifications" class="minilink" href="/notifications">
<object type="internal/link" n:if="$thisUser->getNotificationsCount() > 0">
<div class="counter">
+{$thisUser->getNotificationsCount()}

View file

@ -9,21 +9,47 @@
{/block}
{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}
</p>
</td>
</tr>
</tbody>
</table>
<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 />
<br/><br/>
</td>
</tr>
{if $is2faEnabled}
<label for="code">{_"2fa_code_2"}: </label>
<input id="code" type="text" name="code" required />
<br/><br/>
<tr style="text-align: right;">
<td class="regform-left">
<span class="nobold">{_"2fa_code_2"}: </span>
</td>
<td class="regform-right">
<input id="password" type="password" name="password" required />
</td>
</tr>
{/if}
<tr>
<td>
</td>
</tr>
</tbody>
</table>
<center>
<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>
{/block}

View file

@ -7,35 +7,36 @@
{block content}
<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>
<tr>
<tr style="text-align: right;">
<td>
<span>{_email}: </span>
<span class="nobold">{_email}: </span>
</td>
<td>
<td style="width:191px;">
<input type="text" name="login" required />
</td>
</tr>
<tr>
<tr style="text-align: right;">
<td>
<span>{_password}: </span>
<span class="nobold">{_password}: </span>
</td>
<td>
<input type="password" name="password" required />
</td>
</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>
</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>
{/block}

View file

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

View file

@ -22,31 +22,78 @@
<p n:if="!is_null($referer)" align="center">
{tr("invites_you_to", $referer->getFullName(), OPENVK_ROOT_CONF['openvk']['appearance']['name'])|noescape}
</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">
<table cellspacing="7" cellpadding="0" width="52%" border="0" align="center">
<tbody>
<tr>
<td>
<span>{_name}: </span>
<h4 style="margin-left: 60px;">{_main}</h4>
</tr>
<tr>
<td class="regform-left">
<span class="nobold">{_name}: </span>
</td>
<td>
<td class="regform-right">
<input type="text" name="first_name" required />
</td>
</tr>
<tr>
<td>
<span>{_surname}: </span>
<td class="regform-left">
<span class="nobold">{_surname}: </span>
</td>
<td>
<td class="regform-right">
<input type="text" name="last_name" />
</td>
</tr>
<tr>
<td>
<span>{_gender}: </span>
<td class="regform-left">
<span class="nobold">{_email}: </span>
</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"]}
<select name="sex" required>
<option n:attr="selected => !$femalePreferred" value="male">{_male}</option>
@ -55,63 +102,43 @@
</td>
</tr>
<tr>
<td>
<span>{_birth_date}: </span>
<td class="regform-left">
<span class="nobold">CAPTCHA: </span>
</td>
<td>
<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>
<td class="regform-right">
{captcha_template()|noescape}
</td>
</tr>
<tr>
<td>
</td>
<td>
</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" />
<a href="/login">{_log_in}</a>
<input type="submit" value="{_registration}" class="button" /><br><br>
</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>
</tr>
</tbody>
</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}
{/block}

View file

@ -9,16 +9,37 @@
{/block}
{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}
</p>
</td>
</tr>
</tbody>
</table>
<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 />
<br/><br/>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</tbody>
</table>
<center>
<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>
{/block}

View file

@ -661,6 +661,15 @@ select {
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 {
border-bottom: 1px solid #E8EBEE;
color: #45688E;
@ -2236,3 +2245,12 @@ a.poll-retract-vote {
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_referer_meta_title" = "$1 invites you to $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";
"other_fields" = "Other fields";
/* Profile information */

View file

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

View file

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

View file

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

View file

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