templates/themes/theme/sectors/sector.html.twig line 1

Open in your IDE?
  1. <section class="sector-service-block">
  2.     {% if sector.image %}
  3.        <div class="banner-block pb-6 lazyBackgroundImage" data-mobile="{{ imageCache('/' ~ sector.fullImagePath, 'zoomCrop', 900, 405) }}" data-desktop="{{ imageCache('/' ~ sector.fullImagePath, 'zoomCrop', 3200, 1440) }}">
  4.             <div class="container h-full">
  5.                 <div class="flex items-end h-full">
  6.                     <h1>{{ sector.title }}</h1>
  7.                 </div>
  8.             </div>
  9.         </div>
  10.     {% endif %}
  11.     <div class="container">
  12.         {% if sector.image2 %}
  13.             <div class="row">
  14.                 <div class="col-12 cms-area">
  15.                     <picture>
  16.                         <source srcset="{{ imageCache('/' ~ sector.fullImage2Path, 'zoomcrop', 768, 400)  }}" media="(max-width: 767px)">
  17.                         <img class="max-w-full h-auto mt-12 mb-6 lg:my-12" src="{{ imageCache('/' ~ sector.fullImage2Path, 'zoomcrop', 1540, 500)  }}" alt="{{ sector.title }}" loading="lazy">
  18.                     </picture>
  19.                 </div>
  20.             </div>
  21.         {% endif %}
  22.         <div class="row">
  23.             <div class="lg:col-8 cms-area">
  24.                 {{ sector.content|raw }}
  25.             </div>
  26.             <div class="lg:col-4 mt-6 lg:mt-0 lg:mb-0">
  27.                 {% if sector.parent %}
  28.                     <h3 class="lg:hidden sector-menu-link mb-0">Other {{ sector.parent.title }} Sectors</h2>
  29.                 {% else %}
  30.                     <h3 class="lg:hidden sector-menu-link mb-0">{{ sector.title }} Sectors</h2>
  31.                 {% endif %}
  32.                 <div class="flex lg:justify-end">
  33.                     <ul class="sector-menu hidden lg:block mt-4 lg:mt-0">
  34.                         {% for item in otherSectors %}
  35.                             {% if item.id != sector.id %}
  36.                                 <li class="{{ item.id == sector.id ? 'active' }}">
  37.                                 <a href="{{ generatePath( app.request, item.linkedPageId, {'sector_slug' : item.slug } ) }}">{{ item.title }}</a>
  38.                                 {% if item.activeChildren %}
  39.                                     <ul>
  40.                                     {% for child in item.activeChildren %}
  41.                                         <li>
  42.                                             <a href="{{ generatePath( app.request, child.linkedPageId, {'sector_slug' : child.slug } ) }}">{{ child.title }}</a>
  43.                                         </li>
  44.                                     {% endfor %}
  45.                                     </ul>
  46.                                 {% endif %}
  47.                                 </li>
  48.                             {% endif %}
  49.                         {% endfor %}
  50.                     </ul>
  51.                 </div>
  52.             </div>
  53.         </div>
  54.     </div>
  55.     {% if sector.content2 %}
  56.         <section class="parallax-divider mt-12"></section>
  57.         <div class="container">
  58.             <div class="row">
  59.                 <div class="col-12 cms-area">
  60.                     {{ sector.content2|raw }}
  61.                 </div>
  62.             </div>
  63.         </div>
  64.     {% endif %}
  65.     {{ forceRenderHtmlBlock('Work For Us CTA')|raw }}
  66. </section>