templates/app/base/header/content_bar.html.twig line 1

Open in your IDE?
  1. <div class="h-70 {% if is_mobile() %} fluid-wrapper {% endif %} page-wrapper d-flex align-items-center">
  2.     <nav class="navbar navbar-expand-lg navbar-light h-100 navbar-header p-0 w-100">
  3.         <a class="h-100 d-flex align-items-center {% if is_mobile() %}ml-15-p{% endif %}" href="{{ absolute_url('/') }}">
  4.             <img class="img-fluid logo-sm w-80" src="{{ asset("build/images/logotca.png") }}"/>
  5.         </a>
  6.         <button aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler mr-15-p" data-target="#navbarResponsive" data-toggle="collapse" type="button">
  7.             <h6 class="align-middle my-0">
  8.                 <span class="navbar-toggler-icon"></span>
  9.             </h6>
  10.         </button>
  11.         <div class="collapse navbar-collapse {% if is_mobile() %} col-sm-12 p-0 border-b {% else %} offset-sm-1 col-sm-9
  12.              {% endif %} ml-12 brand-mobile mt-1-5-p" id="navbarResponsive">
  13.             <ul id="nav-item" class="navbar-nav mr-auto text-center bg-white w-100 d-flex {% if not is_mobile() %}h-50px{% endif %}">
  14.                 {% for section in getContentBarSections() %}
  15.                     {% include '@App/app/base/header/content_bar_item.html.twig' with {
  16.                         'name': section.name,
  17.                         'link': section.link,
  18.                         'subSections': section.subSections,
  19.                         'subSectionsRoute': section.subSectionsRoute,
  20.                         'baseLink': section.baseLink
  21.                     } %}
  22.                 {% endfor %}
  23.             </ul>
  24.             {% if is_mobile() %}
  25.             <div class="d-flex justify-content-start align-items-center bg-white li-mobile">
  26.                 {{ render(controller('App\\Controller\\SearchController::searchAction')) }}
  27.             </div>
  28.             {% else %}
  29.                 {{ render(controller('App\\Controller\\SearchController::searchAction')) }}
  30.             {% endif %}
  31.         </div>
  32.     </nav>
  33.     <div id="loading_bar_prototype" class="d-none">
  34.         {% include '@App/app/loading_bar.html.twig' %}
  35.     </div>
  36. </div>
  37. {{ encore_entry_script_tags('search') }}