templates/themes/theme/templates/cmspage-article.html.twig line 1

Open in your IDE?
  1. {% extends '@theme/base.html.twig' %}
  2. {% block metatitle %}{{ page.metatitle }}{% endblock %}
  3. {% block metadescription -%}
  4. {{- page.metadescription|striptags|slice(0, 160) -}}
  5. {%- endblock %}
  6. {% block body %}
  7. {% set pagetitle = replaceIfComponentDataExists(pageComponents, 'title') ? replaceIfComponentDataExists(pageComponents, 'title') : page.title %}
  8. {% set subtitle = replaceIfComponentDataExists(pageComponents, 'subtitle') ? replaceIfComponentDataExists(pageComponents, 'subtitle') : page.subtitle %}
  9. {% if page.content %}
  10. <twig:PageMainContent>
  11. {{ allowInlineEditor(page, 'content')|raw }}
  12. <twig:block name="content2">
  13. {% if page.content2 %}
  14. {{ allowInlineEditor(page, 'content2')|raw }}
  15. {% endif %}
  16. </twig:block>
  17. <twig:block name="buttons">
  18. {% if page.ctaText and page.ctaLink %}
  19. <a href="{{ page.ctaLink }}" class="button">{{ page.ctaText }}</a>
  20. {% endif %}
  21. </twig:block>
  22. </twig:PageMainContent>
  23. {% endif %}
  24. <div class="header-block">
  25. <div class="contact-details">
  26. {{ forceRenderPcgcHtmlBlock('Contact Details')|raw }}
  27. </div>
  28. </div>
  29. {{ allowInlineEditor(page, 'content3')|raw }}
  30. {% include '@theme/landing_page_blocks/index.html.twig' with { blocks: page.landingPageBlocks } %}
  31. {# {{ breadcrumbs(page, domCheckIgnore(app.request.pathinfo) ) }} #}
  32. {{ renderPcgcComponents('Before Content', pageComponents)|raw }}
  33. {{ renderPcgcComponents('After Content', pageComponents)|raw }}
  34. {% if page.testimonial %}
  35. <twig:SingleTestimonial :testimonial="page.testimonial" />
  36. {% endif %}
  37. {{ renderPcgcComponents('Contact Form', pageComponents)|raw }}
  38. {{ renderPcgcComponents('Before Footer', pageComponents)|raw }}
  39. {% if page.id == 6 %}
  40. {# About page #}
  41. {{ render(controller('App\\Controller\\WisdomController::index')) }}
  42. {% endif %}
  43. {% endblock %}
  44. {% block stylesheets %}{% endblock %}