templates/pages/_includes/base/sub_menu/_submenu_groups_ce.html.twig line 1

Open in your IDE?
  1. {# Croisières fluviales — typeItem: riverside #}
  2. {% set items = getNavigationMenuItems('offerCategory') %}
  3. {% set class = item.multipleLabel|default('')|lower|replace({' ': '-'}) %}
  4. {% set destinations = getNavigationMenuItems('destination') %}
  5. {% set companies = getNavigationMenuItems('company') %}
  6. <div class="lists">
  7. <ul class="highlighted-items {{ class }}">
  8. <li class="SubMenu-item br3">
  9. <a href="" class="site-header__mega-link" title="{{ 'snippets.header.groups'|trans }}">
  10. <div class="logo br2" style="background: url('{{ asset('img/placeholders/menu.jpg') }}') no-repeat center / cover">
  11. </div>
  12. <div>
  13. <span>{{ 'snippets.header.groups'|trans }}</span>
  14. <div>{{ ('')|raw }}</div>
  15. </div>
  16. </a>
  17. </li>
  18. <li class="SubMenu-item br3">
  19. <a href="" class="site-header__mega-link" title="{{ 'snippets.header.partners'|trans }}">
  20. <div class="logo br2" style="background: url('{{ asset('img/placeholders/menu.jpg') }}') no-repeat center / cover">
  21. </div>
  22. <div>
  23. <span>{{ 'snippets.header.partners'|trans }}</span>
  24. <div>{{ ('')|raw }}</div>
  25. </div>
  26. </a>
  27. </li>
  28. </ul>
  29. {% if destinations|length > 0 %}
  30. {% embed 'pages/_includes/base/sub_menu/_regular_items_accordion.html.twig' with {
  31. title: 'snippets.header.companies'|trans,
  32. mode: mode|default('desktop'),
  33. } %}
  34. {% block content %}
  35. <ul class="regular-items br2">
  36. {% for company in companies %}
  37. <li class="SubMenu-item br1">
  38. <a href="{{ getCruiseSearchUrl([company]) }}" class="site-header__mega-link" title="{{ company.name }}">{{ company.name }}</a>
  39. </li>
  40. {% endfor %}
  41. </ul>
  42. {% endblock %}
  43. {% endembed %}
  44. {% endif %}
  45. {% if destinations|length > 0 %}
  46. {% embed 'pages/_includes/base/sub_menu/_regular_items_accordion.html.twig' with {
  47. title: 'snippets.header.destinations'|trans,
  48. mode: mode|default('desktop'),
  49. } %}
  50. {% block content %}
  51. <ul class="regular-items br2">
  52. {% for destination in destinations %}
  53. <li class="SubMenu-item br1">
  54. <a href="{{ getCruiseSearchUrl([destination]) }}" class="site-header__mega-link" title="{{ destination.name }}">{{ destination.name }}</a>
  55. </li>
  56. {% endfor %}
  57. </ul>
  58. {% endblock %}
  59. {% endembed %}
  60. {% endif %}
  61. </div>
  62. <style>
  63. /* Style spécifique */
  64. .site-header__mega ul.highlighted-items.{{ item.multipleLabel|default('')|lower|replace({' ': '-'}) }} {
  65. border-bottom: none;
  66. padding-bottom: 12px;
  67. grid-template-columns: repeat(2, calc(300px * 1.5));
  68. }
  69. .site-header__mega .regular-items-div.{{ item.multipleLabel|default('')|lower|replace({' ': '-'}) }} {
  70. border-top: 1px solid rgba(0, 0, 0, 0.25);
  71. padding: 12px 0 0 0;
  72. }
  73. /* --------- */
  74. .site-header__mega{
  75. /* display: flex !important;
  76. visibility: visible !important;
  77. opacity: 1 !important; */
  78. }
  79. </style>