templates/frontend-eforum/template-base.html.twig line 1

Open in your IDE?
  1. {% embed '/frontend-eforum/_partials/header.html.twig' %}
  2.     {%- block metaTitle -%}
  3.         {%- if
  4.             templateEntity is defined
  5.             and templateEntity.templateType is not empty
  6.             and templateEntity.templateType.metaTags is not empty
  7.         -%}
  8.             {{- templateEntity.templateType.metaTags.title -}}
  9.         {%- endif -%}
  10.     {%- endblock -%}
  11.     {%- block metaDescription -%}
  12.         {%-  if
  13.             templateEntity is defined
  14.             and templateEntity.templateType is not empty
  15.             and templateEntity.templateType.metaTags is not empty
  16.         -%}
  17.             <meta name="description" content="{{- templateEntity.templateType.metaTags.description -}}">
  18.         {%- endif -%}
  19.     {%- endblock -%}
  20.     {%- block seoHeadScripts -%}
  21.         {%-  if
  22.             templateEntity is defined
  23.             and templateEntity.templateType is not empty
  24.             and templateEntity.templateType.metaTags is not empty
  25.         -%}
  26.             {{- templateEntity.templateType.metaTags.headScripts -}}
  27.         {%- endif -%}
  28.     {%- endblock -%}
  29.     {%- block seoBodyScripts -%}
  30.         {%-  if
  31.             templateEntity is defined
  32.             and templateEntity.templateType is not empty
  33.             and templateEntity.templateType.metaTags is not empty
  34.         -%}
  35.             {{- templateEntity.templateType.metaTags.bodyScripts -}}
  36.         {%- endif -%}
  37.     {%- endblock -%}
  38. {% endembed %}
  39. {% set injectBreadcrumbs = false %}
  40. {% if modules is not empty %}
  41.     {% set firstTopModule = (modules|keys)[0]|split("_")[0] %}
  42.     {% if firstTopModule == 'faqTop' %}
  43.         {% set injectBreadcrumbs = firstTopModule %}
  44.     {% endif %}
  45. {% endif %}
  46. {% if injectBreadcrumbs == false %}
  47.     {% include "frontend-eforum/_partials/breadcrumbs.html.twig" %}
  48. {% endif %}
  49. {% include "frontend-eforum/content.html.twig" with {modules: modules, injectBreadcrumbs: injectBreadcrumbs} %}
  50. {% include '/frontend-eforum/footer.html.twig' %}