templates/frontend/layouts/header.html.twig line 1

Open in your IDE?
  1. <!-- Header START -->
  2. <header class="navbar-light header-sticky">
  3.     <!-- Logo Nav START -->
  4.     <nav class="navbar navbar-expand-xl">
  5.         <div class="container">
  6.             <!-- Logo START -->
  7.             <a class="navbar-brand" href="{{path('home_app')}}" style="position: relative">
  8.                 <div style="display: inline-block">
  9.                     <img id="logo-img" class="light-mode-item navbar-brand-item" src="{{ asset('build/images/logo1.jpeg') }}" alt="logo">
  10.                 </div>
  11. {#                <img class="dark-mode-item navbar-brand-item" src="{{ asset('build/images/logo-light.svg') }}" alt="logo">
  12.                 <div id="logo-text">
  13.                     Sunscape
  14.                 </div>
  15. #}
  16.             </a>
  17.             <!-- Logo END -->
  18.             <!-- Responsive category toggler -->
  19.             <button class="navbar-toggler ms-sm-auto mx-3 me-md-0 p-0 p-sm-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCategoryCollapse" aria-controls="navbarCategoryCollapse" aria-expanded="false" aria-label="Toggle navigation">
  20.                 <i class="bi bi-grid-3x3-gap-fill fa-fw"></i><span class="d-none d-sm-inline-block small">Category</span>
  21.             </button>
  22.             <!-- Nav category menu START -->
  23.             <div class="navbar-collapse collapse" id="navbarCategoryCollapse">
  24.                 <ul class="navbar-nav navbar-nav-scroll nav-pills-primary-soft text-center ms-auto p-2 p-xl-0">
  25.                     {% if currentPath is defined and currentPath != "booking" and currentPath is defined and currentPath != "booking_form_finish" and currentPath is defined and currentPath != "credit_card_tokenization" %}
  26.                         <li class="nav-item dropdown">
  27.                             <a class="nav-link dropdown-toggle" href="#" id="dropdown-language" role="button"
  28.                                data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  29.                                 {{ currentLocale.name }}
  30.                             </a>
  31.                             <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-language">
  32.                                 {% for locale in locales %}
  33.                                     <li><a class="dropdown-item" href="{{ urlParams[locale.key] }}">{{ locale.name }}</a></li>
  34.                                 {% endfor %}
  35.                             </ul>
  36.                         </li>
  37.                         <li class="nav-item dropdown">
  38.                             <a class="nav-link dropdown-toggle" href="#" id="dropdown-currency" role="button"
  39.                                data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  40.                                 RUB
  41.                             </a>
  42.                             <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-currency" id="dropdown-currency-menu">
  43.                                 <li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">RUB</a></li>
  44.                                 <li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">USD</a></li>
  45.                             </ul>
  46.                         </li>
  47.                     {% endif %}
  48. {#                    {% if currentPath != 'booking_form_finish' and currentPath != 'credit_card_tokenization' %}#}
  49. {#                        <li class="nav-item dropdown">#}
  50. {#                            <a class="nav-link dropdown-toggle" href="#" id="dropdown-language" role="button"#}
  51. {#                               data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">#}
  52. {#                                {{ currentLocale.name }}#}
  53. {#                            </a>#}
  54. {#                            <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-language">#}
  55. {#                                {% for locale in locales %}#}
  56. {#                                    <li><a class="dropdown-item" href="{{ urlParams[locale.key] }}">{{ locale.name }}</a></li>#}
  57. {#                                {% endfor %}#}
  58. {#                            </ul>#}
  59. {#                        </li>#}
  60. {#                        <li class="nav-item dropdown">#}
  61. {#                            <a class="nav-link dropdown-toggle" href="#" id="dropdown-currency" role="button"#}
  62. {#                               data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">#}
  63. {#                                RUB#}
  64. {#                            </a>#}
  65. {#                            <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-currency" id="dropdown-currency-menu">#}
  66. {#                                <li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">RUB</a></li>#}
  67. {#                                <li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">USD</a></li>#}
  68. {#                            </ul>#}
  69. {#                        </li>#}
  70. {#                    {% endif %}#}
  71.                 <!-- Profile dropdown START -->
  72.                 <li class="nav-item ms-3 dropdown">
  73.                     {% if app.user %}
  74.                     <!-- Avatar -->
  75.                         <a class="avatar avatar-sm p-0" href="#" id="profileDropdown" role="button" data-bs-auto-close="outside" data-bs-display="static" data-bs-toggle="dropdown" aria-expanded="false">
  76.                             <img class="avatar-img rounded-1" src="{{ app.user.avatar }}" alt="avatar">
  77.                         </a>
  78.                         <ul class="dropdown-menu dropdown-animation dropdown-menu-end shadow pt-3" aria-labelledby="profileDropdown">
  79.                             <!-- Profile info -->
  80.                             <li class="px-3 mb-3">
  81.                                 <a href="{{ path('app_profile_my', {'search': params.search}) }}" class="d-flex align-items-center">
  82.                                     <!-- Avatar -->
  83.                                     <div class="avatar me-3">
  84.                                         <img class="avatar-img rounded-1 shadow" src="{{ app.user.avatar }}" alt="avatar">
  85.                                     </div>
  86.                                     <div>
  87.                                         <div class="h6 mt-2 mt-sm-0" >{{ app.user.firstName }} {{ app.user.lastName }}</div>
  88.                                         <p class="small m-0">{{ app.user.email }}</p>
  89.                                     </div>
  90.                                 </a>
  91.                             </li>
  92.                             <!-- Links -->
  93.                             <li> <hr class="dropdown-divider"></li>
  94. {#                            <li><a class="dropdown-item" href="#"><i class="bi bi-bookmark-check fa-fw me-2"></i>{% trans %}My bookings{% endtrans %}</a></li>#}
  95.                             {% if params is defined %}
  96.                                 <li><a class="dropdown-item" href="{{ path('app_wishlist_list', {'search': params.search}) }}"><i class="bi bi-heart fa-fw me-2"></i>{% trans %}My Wishlist{% endtrans %}</a></li>
  97.                             {% endif %}
  98.                             <li><a class="dropdown-item bg-danger-soft-hover" href="{{ path('app_logout') }}"><i class="bi bi-power fa-fw me-2"></i>{% trans %}Sign out{% endtrans %}</a></li>
  99.                             <li> <hr class="dropdown-divider"></li>
  100.                             <!-- Dark mode switch START -->
  101.                             <li>
  102.                                 <div class="modeswitch-wrap" id="darkModeSwitch">
  103.                                     <div class="modeswitch-item">
  104.                                         <div class="modeswitch-icon"></div>
  105.                                     </div>
  106.                                     <span>{% trans %}Dark mode{% endtrans %}</span>
  107.                                 </div>
  108.                             </li>
  109.                             <!-- Dark mode switch END -->
  110.                         </ul>
  111.                     {% else %}
  112.                         <li class="nav-item">
  113.                             <a href="{{ path('app_login') }}" class="btn btn-sm btn-primary mb-0"><i class="fa-solid fa-right-to-bracket me-sm-2"></i><span class="d-none d-sm-inline">{% trans %}Sign in{% endtrans %}</span></a>
  114.                         </li>
  115.                     {% endif %}
  116.                 </li>
  117.                 <!-- Profile dropdown END -->
  118.             </ul>
  119.             <!-- Profile and Notification START -->
  120.         </div>
  121.         </div>
  122.     </nav>
  123.     <!-- Logo Nav END -->
  124. </header>
  125. <!-- Header END -->