templates/vitrine/components/header.html.twig line 1

Open in your IDE?
  1. {% set menuHeader = getMenuWebsiteArray(app.request.locale,"header",connectUser) %}
  2. {% set menuHeaderRight = getMenuWebsiteArray(app.request.locale,"header-right",connectUser) %}
  3. <header id="header" class="tra-menu navbar-dark white-scroll">
  4. <div class="header-wrapper">
  5. <div class="wsmobileheader clearfix">
  6. <a href="{{ pathHomepage }}">
  7. <picture>
  8. <img title="{{ websitename }}" alt="{{ websitename }}" src="{{ domain ~ logomobile }}" width="{{ logomobile_width }}" height="{{ logomobile_height }}" />
  9. </picture>
  10. </a>
  11. <a id="wsnavtoggle" class="wsanimated-arrow"><span></span></a>
  12. </div>
  13. <div class="wsmainfull menu clearfix">
  14. <div class="wsmainwp clearfix">
  15. <a href="{{ pathHomepage }}" aria-label="{{ websitename }}" title="{{ websitename }}" style="width:100px;">
  16. <picture>
  17. <img alt="{{ websitename }}" title="{{ websitename }}" src="{{ domain ~ logo }}" {# width="{{ logo_width }}" height="{{ logo_height }}" #} style="margin-top:18px; width:137px;" />
  18. </picture>
  19. </a>
  20. <nav class="wsmenu clearfix">
  21. <ul class="wsmenu-list nav-theme">
  22. {% if menuHeader is not empty %}
  23. {% for m in menuHeader %}
  24. {% if m.link != "#" %}
  25. <li class="nl-simple" aria-haspopup="true">
  26. <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} class="h-link">
  27. {{ m.title|translateLocale(arrayTranslate) }}
  28. </a>
  29. </li>
  30. {% else %}
  31. {% set itemsLink = getMenuWebsiteItems(m.id) %}
  32. {% if itemsLink is not null %}
  33. <li aria-haspopup="true">
  34. <a href="#" class="h-link">{{ m.title|translateLocale(arrayTranslate) }} <span class="wsarrow"></span></a>
  35. <ul class="sub-menu ico-10">
  36. {% for itl in itemsLink %}
  37. <li aria-haspopup="true" class="h-link">
  38. <a href="{{ itl.link }}" aria-label="{{ itl.title|translateLocale(arrayTranslate) }}" title="{{ itl.title|translateLocale(arrayTranslate) }}">
  39. {{ itl.title|translateLocale(arrayTranslate) }}
  40. </a>
  41. </li>
  42. {% endfor %}
  43. </ul>
  44. </li>
  45. {% endif %}
  46. {% endif %}
  47. {% endfor %}
  48. {% endif %}
  49. {% if menuHeaderRight is not empty %}
  50. {% for m in menuHeaderRight %}
  51. {% if m.typeButton == "download" %}
  52. <li class="nl-simple mobile-last-link" aria-haspopup="true">
  53. <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} class="btn r-36 ico-20 ico-right btn--theme hover--tra-white last-link" style="border-color:#2D84C9 !important; background-color: #2D84C9 !important;"> {{ m.title|translateLocale(arrayTranslate) }} <span class="flaticon-download-file"></span></a>
  54. </li>
  55. {% else %}
  56. <li class="nl-simple" aria-haspopup="true">
  57. <a href="{{ m.link }}" {% if m.targetBlank == 1%}target="_blank"{% endif %} class="h-link">
  58. {{ m.title|translateLocale(arrayTranslate) }}
  59. </a>
  60. </li>
  61. {% endif %}
  62. {% endfor %}
  63. {% endif %}
  64. </ul>
  65. </nav>
  66. </div>
  67. </div>
  68. </div>
  69. </header>