You are here

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

Template for myaccount dropdown.

Available variables

  • $myaccount_text: drop down myaccount button/link text
  • $myaccount_url: url for myaccount button/link
  • $myaccount_links: myaccount drop down additional links

sorted by weight.

File

templates/drop-down-myaccount.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for myaccount dropdown.
  5. *
  6. * Available variables
  7. * - $myaccount_text: drop down myaccount button/link text
  8. * - $myaccount_url: url for myaccount button/link
  9. * - $myaccount_links: myaccount drop down additional links
  10. * sorted by weight.
  11. */
  12. #}
  13. <div class="drop-down-login-container" id="drop-down-login-wrapper">
  14. <a href={{ myaccount_url }} class="login button">
  15. <span><span> {{ myaccount_link_text }}</span></span>
  16. </a>
  17. <div class="dropdown" style="display: none;">
  18. <ul class="menu">
  19. <li>
  20. <a href= {{ myaccount_url }}>
  21. <div>
  22. <strong>{{ name }}</strong>
  23. </div>
  24. <span> {{ 'View profile'|trans }})</span>
  25. </a>
  26. </li>
  27. {% for item in myaccount_links %}
  28. <li>
  29. {{ link(item.menu_name, item.menu_url) }}
  30. </li>
  31. {% endfor %}
  32. <li>
  33. <a href={{ logout_url }}>
  34. <span> {{ logout_link_text }}</span>
  35. </a>
  36. </li>
  37. </ul>
  38. </div>
  39. </div>