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

Open in your IDE?
  1. <header{% if editmode %} class="editmode--header" %}{% endif %}>
  2.     
  3.     {% if not document is defined or not document %} 
  4.         {% set document = pimcore_document(1) %} 
  5.     {% endif %} 
  6.     
  7.     {% set mainNavigation = app_navigation_data_links(document, pimcore_document(1)) %}
  8.     <div class="inner">
  9.         <div class="row between-lg between-md between-sm between-xs middle-lg middle-md middle-sm middle-xs">
  10.             
  11.             <div class="col-lg-3 col-md-3 col-sm-3 col-xs-5">
  12.                 <a href="/">
  13.                     {{ source("@torq_static/img/logo.svg") }}
  14.                 </a>
  15.             </div>
  16.             <div class="hamburger-container col-lg-9 col-md-9 col-sm-9 col-xs-7 row middle-lg middle-md middle-sm middle-xs">
  17.                 <nav class="nav">
  18.                     <ul>
  19.                         {% for page in mainNavigation %} {% set navigationDocument = page.getDocument() %} 
  20.                         {% if page.isVisible() %} 
  21.                         {% if page.hasPages() %}
  22.                         <li style="margin-bottom:0;">
  23.                             <div tabindex="0" class="dropdown" style="margin-left:0;">
  24.                                 
  25.                                 <button class="dropbtn">
  26.                                     {{ page.getTitle() }}
  27.                                     <i style="display: block" class="fa fa-caret-down"></i>
  28.                                 </button>
  29.                                 
  30.                                 <div tabindex="1" class="dropdown-content">
  31.                                     
  32.                                     <div class="row">
  33.                                         
  34.                                         <div class="column">
  35.                                             <div class="padding-2em cta-box text-align-center border-radius-10">
  36.                                                 <h3 style="margin-bottom: 0; color: #fff;">Ready to get started?</h3>
  37.                                                 <a href="{% if torqService is defined and not torqService.getShowForm() %}/contact{% else %}#contact{% endif %}" class="btn light--ghost text-align-center" style="align-self: flex-start">Talk to an expert</a>
  38.                                             </div>
  39.                                         </div>
  40.                                         
  41.                                         {% set navigationDocumentChildPages = page.getPages() %} 
  42.                                         
  43.                                         {% for navigationDocumentChildPage in navigationDocumentChildPages %}
  44.                                         {% if navigationDocumentChildPage.isVisible() %}
  45.                                         <div class="column">
  46.                                             
  47.                                             {% if navigationDocumentChildPage.getUri() is not empty %}
  48.                                             <a href="{{ navigationDocumentChildPage.getUri() }}">
  49.                                                 <h3>{{ navigationDocumentChildPage.getLabel() }}</h3>
  50.                                             </a>
  51.                                             {% else %}
  52.                                             <h3>{{ navigationDocumentChildPage.getLabel() }}</h3>
  53.                                             {% endif %} 
  54.                                             
  55.                                             {% if navigationDocumentChildPage.hasPages() %}
  56.                                             <ul>
  57.                                                 {% for navigationDocumentChildChildPage in navigationDocumentChildPage.getPages() %}
  58.                                                 {% if navigationDocumentChildChildPage.isVisible() %}
  59.                                                 <li>
  60.                                                     <a href="{{ navigationDocumentChildChildPage.getUri() }}">
  61.                                                         {{ navigationDocumentChildChildPage.getLabel() }}
  62.                                                     </a>
  63.                                                 </li>
  64.                                                 {% endif %}
  65.                                                 {% endfor %}
  66.                                             </ul>
  67.                                             {% endif %}
  68.                                         </div>
  69.                                         {% endif %}
  70.                                         {% endfor %}
  71.                                     </div>
  72.                                 </div>
  73.                             </div>
  74.                         </li>
  75.                         {% else %}
  76.                         <li style="margin-bottom: 12px;">
  77.                             <a href="{{ page.getUri() }}">{{ page.getLabel() }}</a>
  78.                         </li>
  79.                         {% endif %} 
  80.                         {% endif %} 
  81.                         {% endfor %}
  82.                     </ul>
  83.                 </nav>
  84.                 <div class="theme-toggle" style="display: none;">
  85.                     <button class="light-theme-button">
  86.                         <i class="fa fa-sun-o" title="Light Theme"></i>
  87.                     </button>
  88.                     <button class="dark-theme-button active">
  89.                         <i class="fa fa-moon-o" title="Dark Theme"></i>
  90.                     </button>
  91.                 </div>
  92.                 
  93.                 <!-- MOBILE HAMBURGER ICON -->
  94.                 <div class="hamburger-icon" id="icon">
  95.                     <div class="icon-1" id="a"></div>
  96.                     <div class="icon-2" id="b"></div>
  97.                     <div class="icon-3" id="c"></div>
  98.                     <div class="clear">
  99.                 </div>
  100.                 <!-- / MOBILE HAMBURGER ICON -->
  101.             </div>
  102.         </div>
  103.         </div>
  104.   </header>
  105. </header>