Task:6627 | Условия для языка в окне входа

dev_10_refactoring
parent 8ca114b0ae
commit 85ef904ad5
  1. 36
      wp-content/themes/cosmopet/templates/modal/login.twig

@ -5,46 +5,56 @@
<div class="login_wrap login_forms">
<div class="login_inner step active">
<h2 class="login_title">Войти или зарегистрироваться</h2>
<div class="login_subtitle">Подтвердите свой e-mail в письме</div>
<h2 class="login_title">{% if site_region == 'ru' %}Войти или зарегистрироваться{% elseif site_region == 'ae' %}Log in or register{% endif %}</h2>
<div class="login_subtitle">{% if site_region == 'ru' %}Подтвердите свой e-mail в письме{% elseif site_region == 'ae' %}Confirm your email in the letter{% endif %}</div>
<div class="login_input js-input-email">
<input type="text" name="email" placeholder="example@example.com"/>
<div class="login_error"></div>
</div>
<button class="login_btn btn_gradient js-get-code">Получить код</button>
<button class="login_btn btn_gradient js-get-code">{% if site_region == 'ru' %}Получить код{% elseif site_region == 'ae' %}Get code{% endif %}</button>
{{ function('tgWidget') }}
</div>
<div class="login_inner step">
<div class="login_back">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="32" height="32" rx="16" fill="#121212"/><path d="M8.5 16.3633H25" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.5 16.3633L14.864 22.7272" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.5 16.3633L14.864 9.99932" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<h2 class="login_title">Введите код</h2>
<div class="login_subtitle">Код отправленный на e-mail:<span class="sended_email"></span></div>
<h2 class="login_title">{% if site_region == 'ru' %}Введите код{% elseif site_region == 'ae' %}Enter code{% endif %}</h2>
<div class="login_subtitle">{% if site_region == 'ru' %}Код отправленный на e-mail{% elseif site_region == 'ae' %}Code sent to email{% endif %}:<span class="sended_email"></span></div>
<div class="login_input js-input-code">
<input type="text" name="code" placeholder="0000"/>
<div class="login_error"></div>
</div>
<div class="login_timer">Запросить новый код: <span class="seconds">15</span> секунд</div>
<button class="login_btn btn_gradient js-repeat-code">Запросить новый код</button>
<div class="login_timer">{% if site_region == 'ru' %}Запросить новый код{% elseif site_region == 'ae' %}Request new code{% endif %}: <span class="seconds">15</span> {% if site_region == 'ru' %}секунд{% elseif site_region == 'ae' %}seconds{% endif %}</div>
<button class="login_btn btn_gradient js-repeat-code">{% if site_region == 'ru' %}Запросить новый код{% elseif site_region == 'ae' %}Request new code{% endif %}</button>
</div>
<div class="login_privacy">
Нажимая на кнопку «Получить код», я даю согласие на обработку моих персональных данных в соответствии с <a href="/privacy-policy">политикой обработки персональных данных</a>
{% if site_region == 'ru' %}Нажимая на кнопку «Получить код», я даю согласие на обработку моих персональных данных в соответствии с <a href="/privacy-policy">политикой обработки персональных данных{% elseif site_region == 'ae' %}By clicking the "Get code" button, I consent to the processing of my personal data in accordance with the <a href="/privacy-policy">personal data processing policy</a>{% endif %}
</div>
</div>
<div class="login_wrap login_success hide">
<div class="login_inner active">
<h2 class="login_title">Спасибо<br />за авторизацию</h2>
<div class="login_subtitle">Теперь вы можете получать промокоды за покупки.</div>
<h2 class="login_title">{% if site_region == 'ru' %}Спасибо<br />за авторизацию{% elseif site_region == 'ae' %}Thank you for authorizing!{% endif %}</h2>
<div class="login_subtitle">{% if site_region == 'ru' %}Теперь вы можете получать промокоды за покупки.{% elseif site_region == 'ae' %}Now you can receive promo codes for purchases.{% endif %}</div>
<img src="<?php bloginfo('template_url');?>/images/people.png" alt=""/>
<a href="/my-account" class="login_btn account_link">Заполнить профиль</a>
<a href="/my-account" class="login_btn account_link">{% if site_region == 'ru' %}Заполнить профиль{% elseif site_region == 'ae' %}Fill out profile{% endif %}</a>
</div>
</div>
<div class="login_wrap login_auth hide">
<div class="login_inner active">
<h2 class="login_title --text-center">
Вы вошли в систему</h2>
{% if site_region == 'ru' %}Вы вошли в систему{% elseif site_region == 'ae' %}You have logged in{% endif %}</h2>
<img src="<?php bloginfo('template_url');?>/images/people.png" alt=""/>
<a href="/my-account" class="login_btn account_link">Профиль</a>
<a href="/my-account" class="login_btn account_link">{% if site_region == 'ru' %}Профиль{% elseif site_region == 'ae' %}Profile{% endif %}</a>
</div>
</div>

Loading…
Cancel
Save