You are here

drop-down-login.html.twig in Drop Down Login 8

Template for login dropd down.

Available variables

  • $login_form (array): renderable login form array
  • $login_url: url for login button/link
  • $login_link_text: logout button/link text.

File

templates/drop-down-login.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for login dropd down.
  5. *
  6. * Available variables
  7. * - $login_form (array): renderable login form array
  8. * - $login_url: url for login button/link
  9. * - $login_link_text: logout button/link text.
  10. */
  11. #}
  12. <div class="drop-down-login-container" id="drop-down-login-wrapper">
  13. <a href= {{ login_url }} class="login button">
  14. <span><span> {{ login_link_text }} </span></span>
  15. </a>
  16. <div class="dropdown" style="display: none;">
  17. {% if login_form %}
  18. {{ login_form }}
  19. {% endif %}
  20. </div>
  21. </div>