templates/client/common/parts/header.html.twig line 1

Open in your IDE?
  1. <section class="uk-background-primary uk-light uk-section tm-section-mini uk-visible@l">
  2.     <div class="uk-container uk-container-large">
  3.         <div class="uk-child-width-1-2@m" uk-grid>
  4.             <div>
  5.                 <ul class="uk-subnav">
  6.                     <li><a href="tel:+35725029990"><span uk-icon="phone"></span> +357 25029990</a></li>
  7.                     <li><a href="mailto:[email protected]"><span uk-icon="mail"></span> [email protected]</a></li>
  8.                 </ul>
  9.             </div>
  10.             <div class="uk-flex uk-flex-right">
  11.                 <ul class="uk-subnav">
  12.                     <li><a target="_blank" href="https://www.linkedin.com/company/youdream/"><span uk-icon="linkedin"></span></a></li>
  13.                 </ul>
  14.             </div>
  15.         </div>
  16.     </div>
  17. </section>
  18. <div class="tm-header uk-background-muted uk-visible@l" uk-header>
  19.     <div uk-sticky media="@l" cls-active="uk-navbar-sticky" sel-target=".uk-navbar-container">
  20.         <div class="uk-navbar-container">
  21.             <div class="uk-container uk-container-expand">
  22.                 <nav class="uk-navbar" uk-navbar="{align: left; boundary: .tm-header .uk-navbar-container; container: .tm-header > [uk-sticky]}">
  23.                     <div class="uk-navbar-left">
  24.                         <a href="{{ path('homepage') }}" class="uk-navbar-item uk-logo">
  25.                             <img width="300" height="145" src="{{ asset("/assets/images/logo.svg") }}" alt="YouDream Training & Development" />
  26.                             <img class="uk-logo-inverse" alt="YouDream Training & Development" src="{{ asset("/assets/images/logo.svg") }}">
  27.                         </a>
  28.                     </div>
  29.                     <div class="uk-navbar-center">
  30.                         <ul class="uk-navbar-nav">
  31.                             <li {% if (app.request.get('_route') matches '/^homepage/')  %}class="uk-active"{% endif %}><a href="{{ path('homepage') }}">Home</a></li>
  32.                             <li>
  33.                                 <a href="{{ path('client_career_path_list') }}">Career Path</a>
  34.                                 {% if menuCareerPaths|length > 0 %}
  35.                                 <div class="uk-navbar-dropdown" uk-drop="clsDrop: uk-navbar-dropdown; flip: x; pos: bottom-left; mode: hover; container: .tm-header > [uk-sticky]">
  36.                                     <div class="uk-navbar-dropdown-grid uk-child-width-1-1" uk-grid>
  37.                                         <div>
  38.                                             <ul class="uk-nav uk-navbar-dropdown-nav">
  39.                                                 {% for item in menuCareerPaths %}
  40.                                                 <li><a href="{{ item.path }}" class="elementor-sub-item menu-link">{{ item.title }}</a></li>
  41.                                                 {% endfor %}
  42.                                             </ul>
  43.                                         </div>
  44.                                     </div>
  45.                                 </div>
  46.                                 {% endif %}
  47.                             </li>
  48.                             <li>
  49.                                 <a href="{{ path('client_course_list') }}">Courses</a>
  50.                                 {% if menuCourses|length > 0 %}
  51.                                 <div class="uk-navbar-dropdown" uk-drop="clsDrop: uk-navbar-dropdown; flip: x; pos: bottom-left; mode: hover; container: .tm-header > [uk-sticky]">
  52.                                     <div class="uk-navbar-dropdown-grid uk-child-width-1-1" uk-grid>
  53.                                         <div>
  54.                                             <ul class="uk-nav uk-navbar-dropdown-nav">
  55.                                                 {% for item in menuCourses %}
  56.                                                 <li><a href="{{ item.path }}" class="elementor-sub-item menu-link">{{ item.title }}</a></li>
  57.                                                 {% endfor %}
  58.                                             </ul>
  59.                                         </div>
  60.                                     </div>
  61.                                 </div>
  62.                                 {% endif %}
  63.                             </li>
  64.                             <li {% if (app.request.get('_route') matches '/^client_blog/')  %}class="uk-active"{% endif %}><a href="{{ path('client_blog_article_list') }}">Our Blog</a></li>
  65.                             <li><a href="https://dreamjob.services/" target="_blank">Dream Job</a></li>
  66.                         </ul>
  67.                     </div>
  68.                     <div class="uk-navbar-right">
  69.                         <div class="uk-navbar-item">
  70.                             <div class="uk-margin-remove-last-child custom" >
  71.                                 <div class="uk-grid-collapse" uk-grid>
  72.                                     {% if not is_granted('ROLE_CLIENT') %}
  73.                                     <div><a class="uk-button uk-link-reset" href="{{ path('app_login') }}">Login</a></div>
  74.                                     <div><a class="uk-button uk-button-primary" href="{{ path('app_register') }}">Register</a></div>
  75.                                     {% else %}
  76.                                     <div class="uk-margin-right">
  77.                                         {{ include("/client/common/parts/minicart.html.twig") }}
  78.                                     </div>
  79.                                     <div><a class="uk-button uk-button-primary" href="{{ path('client_dashboard') }}">My Profile</a></div>
  80.                                     <div><a class="uk-button uk-link-reset" href="{{ path('app_logout') }}">Logout</a></div>
  81.                                     {% endif %}
  82.                                 </div>
  83.                             </div>
  84.                         </div>
  85.                     </div>
  86.                 </nav>
  87.             </div>
  88.         </div>
  89.     </div>
  90. </div>