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

Open in your IDE?
  1. <script type="application/ld+json">
  2.     {
  3.         "@context": "https://schema.org",
  4.         "@type": "Service",
  5.         "name": "{{ sitename }}",
  6.         "serviceType": "{{ sector.title }}",
  7.         "provider": {
  8.             "@type": "LocalBusiness",
  9.             "name": "{{ sitename }}",
  10.             "url": "{{ siteurl }}"
  11.         },
  12.         "areaServed": [
  13.             {
  14.             "@type": "Place",
  15.             "name": "London"
  16.             },
  17.             {
  18.             "@type": "Place",
  19.             "name": "Esssex"
  20.             },
  21.             {
  22.             "@type": "Place",
  23.             "name": "Kent"
  24.             },
  25.             {
  26.             "@type": "Place",
  27.             "name": "Cambridge"
  28.             },
  29.             {
  30.             "@type": "Place",
  31.             "name": "Oxford"
  32.             }
  33.         ],
  34.         "description": "{{ sector.kicker|raw|striptags }}",
  35.         "url": "{{ siteurl }}{{ generatePath(app.request, sector.linkedPageId, {sector_slug: sector.slug}) }}"
  36.     }
  37. </script>
  38. {% if sector.image %}
  39.     <div class="banner-image banner-image--gradient" style="background-image:url('{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 3200, 1680) }}');"></div>
  40. {% endif %}
  41. <section class="page-content{% if sector.image == null %} pt-[148px] md:pt-[163px]{% endif %}">
  42.     <div class="container">
  43.         <div class="bg-primary text-center text-white p-10 relative z-20 mb-12 {% if sector.image != null %} -mt-12 sm:-mt-24 md:-mt-52{% else %}mt-12{% endif %}">
  44.             {% if sector.icon %}
  45.                 <span class="text-5xl mb-6 block">{{ sector.icon|raw }}</span>
  46.             {% endif %}
  47.             <h1 class="text-white">{{ allowInlineEditor(sector, 'title')|raw }}</h1>
  48.             {% if sector.subtitle %}
  49.                 <h3 class="text-white">{{ allowInlineEditor(sector, 'subtitle')|raw }}</h3>
  50.             {% endif %}
  51.             {% if sector.kicker %}
  52.                 {{ allowInlineEditor(sector, 'kicker')|raw }}
  53.             {% endif %}
  54.         </div>
  55.         {% if sector.content or sector.content2 %}
  56.             <div class="row cms-area mb-12">
  57.                 <div class="md:col-6 text-2xl font-bold mb-6 md:mb-0">
  58.                     {{ allowInlineEditor(sector, 'content')|raw }}
  59.                 </div>
  60.                 <div class="md:col-6">
  61.                     {{ allowInlineEditor(sector, 'content2')|raw }}
  62.                 </div>
  63.             </div>
  64.         {% endif %}
  65.         {% if sector.content3 %}
  66.             <div class="row cms-area mb-12">
  67.                 <div class="md:col-12">
  68.                     {{ allowInlineEditor(sector, 'content3')|raw }}
  69.                 </div>
  70.             </div>
  71.         {% endif %}
  72.         {% if sector.image2 or sector.image3 or sector.image4 %}
  73.             <div class="row mb-12">
  74.                 {% if sector.image2 %}
  75.                     <div class="{% if sector.image4 %}md:col-3{% else %} md:col-6{% endif %} sm:col-6 mb-8 md:mb-0">
  76.                         <img src="{{ imageCache('/'~ sector.getFullImage2Path, 'zoomCrop', 540, 640) }}" width="370" height="438" alt="{{ sector.title }}" loading="lazy" />
  77.                     </div>
  78.                 {% endif %}
  79.                 {% if sector.image3 %}
  80.                     <div class="{% if sector.image4 %}md:col-3{% else %} md:col-6{% endif %} sm:col-6 mb-8 md:mb-0">
  81.                         <img src="{{ imageCache('/'~ sector.getFullImage3Path, 'zoomCrop', 540, 640) }}" width="370" height="438" alt="{{ sector.title }}" loading="lazy" />
  82.                     </div>
  83.                 {% endif %}
  84.                 {% if sector.image4 %}
  85.                     <div class="md:col-6">
  86.                         <img src="{{ imageCache('/'~ sector.getFullImage4Path, 'zoomCrop', 1130, 640) }}" width="670" height="380" alt="{{ sector.title }}" loading="lazy" />
  87.                     </div>
  88.                 {% endif %}
  89.             </div>
  90.         {% endif %}
  91.          {% if sector.content4 %}
  92.             <div class="row cms-area mb-12">
  93.                 <div class="md:col-12">
  94.                     {{ allowInlineEditor(sector, 'content4')|raw }}
  95.                 </div>
  96.             </div>
  97.         {% endif %}
  98.     </div>
  99. </section>
  100. {% if sector.gallery and sector.gallery.galleryImages|length > 0 %}
  101.     <div class="container mb-4">
  102.         <div class="row">
  103.             <div class="col-12 text-center">
  104.                 <h3 class="text-green mb-8 mt-0">Sector Gallery</h3>
  105.                 {% if sector.gallery.content %}
  106.                     <div class="mb-12">
  107.                         {{ allowInlineEditor(sector.gallery, 'content')|raw }}
  108.                     </div>
  109.                 {% endif %}
  110.             </div>
  111.         </div>
  112.         <div class="row">
  113.             {% for image in sector.gallery.galleryImages %}
  114.                 {% if image.file %}
  115.                     <div class="lg:col-6 mb-8">
  116.                         <video class="w-full h-auto" src="{{ image.getFileUrl() }}" controls></video>
  117.                     </div>
  118.                 {% else %}
  119.                 <div class="lg:col-6 mb-8">
  120.                     <img class="max-w-full h-auto" src="{{ imageCache('/'~ image.getFullImagePath, 'zoomCrop', 1140, 640) }}" alt="{{ image.title }}" loading="lazy" />
  121.                 </div>
  122.                 {% endif %}
  123.             {% endfor %}
  124.         </div>
  125.     </div>
  126. {% endif %}