templates/themes/theme/service/service.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": "{{ service.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": "Sheffield"
  20. },
  21. {
  22. "@type": "Place",
  23. "name": "Leeds"
  24. },
  25. {
  26. "@type": "Place",
  27. "name": "Manchester"
  28. },
  29. {
  30. "@type": "Place",
  31. "name": "Nottingham"
  32. }
  33. ],
  34. "description": "{{ service.subtitle|raw|striptags }}",
  35. "url": "{{ siteurl }}{{ generatePath(app.request, service.getLinkedPageId, { 'service_slug': service.slug }) }}"
  36. }
  37. </script>
  38. {% if service.content %}
  39. <twig:PageMainContent image="{{ service.image ? '/' ~ service.getFullImagePath : null }}">
  40. {{ service.isActive ? '' : '<h2>PREVIEW - Service not active</h2>' }}
  41. {{ allowInlineEditor(service, 'content')|raw }}
  42. <twig:block name="buttons">
  43. {% if service.ctaText and service.ctaLink %}
  44. <a class="button" href="{{ service.ctaLink }}">
  45. {{- service.ctaText -}}
  46. </a>
  47. {% endif %}
  48. </twig:block>
  49. </twig:PageMainContent>
  50. {% endif %}
  51. <section class="service-text">
  52. <div class="container">
  53. <div class="service-text__content">
  54. {{ service.content2 | raw }}
  55. {% if service.ctaText2 and service.ctaLink2 %}
  56. <a href="{{ service.ctaLink2 }}" class="button mt-12">
  57. {{- service.ctaText2 -}}
  58. </a>
  59. {% endif %}
  60. </div>
  61. </section>
  62. {% if service.testimonial %}
  63. <twig:SingleTestimonial :testimonial="service.testimonial" />
  64. {% endif %}