templates/themes/theme/casestudies/casestudy.html.twig line 1

Open in your IDE?
  1. <script type="application/ld+json">
  2. {
  3. "@context": "https://schema.org",
  4. "@type": "Article",
  5. "headline": "{{ study.title }}",
  6. "author": {
  7. "@type": "Organization",
  8. "name": "{{ sitename }}"
  9. },
  10. "datePublished": "{{ study.createdAt|date('c') }}",
  11. "dateModified": "{{ study.updatedAt|date('c') }}",
  12. "image": {
  13. "@type": "ImageObject",
  14. "url": "{{ siteurl }}{{ imageCache('/' ~ study.getFullImagePath, 'zoomCrop', 800, 600) }}",
  15. "width": 800,
  16. "height": 600
  17. },
  18. "about": {
  19. "@type": "Project",
  20. "name": "{{ study.title }}",
  21. "description": "{{ study.quote|raw|nl2br|striptags }}"
  22. },
  23. "articleBody": "{{ study.content|replace({'\n': ' ', '\r': ' '})|striptags }}"
  24. }
  25. </script>
  26. {% if study.content %}
  27. <article class="cms-area">
  28. <twig:PageMainContent :center="true">
  29. {{ study.isActive ? '' : '<h2>PREVIEW - Case Study not active</h2>' }}
  30. {{ allowInlineEditor(study, 'content')|raw }}
  31. <twig:block name="buttons">
  32. {% if study.ctaText and study.ctaLink %}
  33. <a href="{{ study.ctaLink }}" class="button">{{ study.ctaText }}</a>
  34. {% endif %}
  35. </twig:block>
  36. </twig:PageMainContent>
  37. </article>
  38. {% endif %}
  39. {% if study.testimonial %}
  40. <twig:SingleTestimonial :testimonial="study.testimonial" />
  41. {% endif %}