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

Open in your IDE?
  1. <script type="application/ld+json">
  2.     {
  3.         "@context": "https://schema.org",
  4.         "@type": "LocalBusiness",
  5.         "name": "{{ sitename }}",
  6.         "url": "{{ siteurl }}",
  7.         "serviceType": "Scaffolding Services",
  8.         "areaServed": [
  9.             {
  10.             "@type": "Place",
  11.             "name": "London"
  12.             },
  13.             {
  14.             "@type": "Place",
  15.             "name": "Esssex"
  16.             },
  17.             {
  18.             "@type": "Place",
  19.             "name": "Kent"
  20.             },
  21.             {
  22.             "@type": "Place",
  23.             "name": "Cambridge"
  24.             },
  25.             {
  26.             "@type": "Place",
  27.             "name": "Oxford"
  28.             }
  29.         ],
  30.         "hasOfferCatalog": {
  31.             "@type": "OfferCatalog",
  32.             "name": "Our Services",
  33.             {% for sectors in sectorChunks %}
  34.             {% for sector in sectors %}
  35.             "itemListElement": [
  36.                 {
  37.                     "@type": "Offer",
  38.                     "itemOffered": {
  39.                     "@type": "Service",
  40.                     "name": "{{ sector.title }}",
  41.                     "description": "{{ sector.kicker|raw|striptags }}"
  42.                     }
  43.                 }
  44.             ]{% if loop.last == false %},{% endif %}
  45.             {% endfor %}
  46.             {% endfor %}
  47.         }
  48.     }
  49. </script>
  50. <div class="container mb-4">
  51.     {% for sectors in sectorChunks %}
  52.     <div class="sector-grid mb-8">
  53.         {% for sector in sectors %}
  54.             <a class="sector-grid--item {% if loop.first or loop.index0 is divisible by(3) %}before{% elseif loop.index is divisible by(3) %}after{% else %}center{% endif %}" style="background-image:url('{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}');" href="{{ generatePath(app.request, sector.linkedPageId, {sector_slug: sector.slug}) }}">
  55.                 <img class="max-w-full h-auto md:hidden" src="{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}" alt="{{ sector.title }}">
  56.                 <div class="sector-grid--info text-sm md:text-base">
  57.                     {{ sector.icon|raw }}
  58.                     <h3>{{ sector.title }}</h3>
  59.                     {{ sector.kicker|raw }}
  60.                     <span>Read More</span>
  61.                 </div>
  62.             </a>
  63.         {% endfor %}
  64.     </div>
  65.     {% endfor %}
  66. </div>