You are here

page--user--register.html.twig in Better Login 8

Better Login theme implementation to display a registration page.

Available variables:

General utility variables:

  • url: The base URL path of the Drupal website.
  • logo: Logo path of Drupal website.
  • site_name: Site name of Drupal website.
  • title: Title of a page.

Regions:

  • page.highlighted: Items for the highlighted region.
  • page.content: The main content of the current page.

File

templates/page--user--register.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Better Login theme implementation to display a registration page.
  5. *
  6. *
  7. * Available variables:
  8. *
  9. * General utility variables:
  10. * - url: The base URL path of the Drupal website.
  11. * - logo: Logo path of Drupal website.
  12. * - site_name: Site name of Drupal website.
  13. * - title: Title of a page.
  14. *
  15. * Regions:
  16. * - page.highlighted: Items for the highlighted region.
  17. * - page.content: The main content of the current page.
  18. *
  19. * @see betterlogin_preprocess_betterlogin()
  20. */
  21. #}
  22. <div id="auth_box" class="register">
  23. <div id="top_part">
  24. <h1 id="the_logo">
  25. <a href="{{ url('<front>') }}">
  26. <img src="{{ logo }}" alt="{{ site_name }}" />
  27. </a>
  28. </h1>
  29. </div>
  30. <div id="middle_part">
  31. <h2 class="title">{{ title }}</h2>
  32. {{ page.highlighted }}
  33. {{ messages }}
  34. {{ page.content }}
  35. </div>
  36. <div id="bottom_part">
  37. <div class="login_link">
  38. <a href="{{ path('user.login') }}">{{ 'Login'|t }}</a>
  39. </div>
  40. <div class="password_link">
  41. <a href="{{ path('user.pass') }}">{{ 'Forgot your password?'|t }}</a>
  42. </div>
  43. <div class="back_link">
  44. <a href="{{ url('<front>') }}">&larr; {{ 'Back'|t }} {{ site_name }}</a>
  45. </div>
  46. </div>
  47. </div>