src/Package/Openform/Front/Templates/Index/index.html.twig line 1

Open in your IDE?
  1. {% extends "@openform_front_templates/base.html.twig" %}
  2. {% block bodyAttr %}data-page="home"{% endblock %}
  3. {% set pageSubTitle = entity.Translation[app.request.locale].title %}
  4. {% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
  5. {% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
  6. {% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
  7. {% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
  8. {% block content %}
  9.     {% from '@openform_front_templates/_includes/_icons.html.twig' import arrowright %}
  10.     {# {% include "@openform_front_templates/Index/components/_visit.html.twig" %} #}
  11.     {% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(0, 1) : '' } %}
  12.     {# {% include "@openform_front_templates/_blocks/_news.html.twig" with {featuredNews: featuredNews, entities: remainingNews} %} #}
  13.     
  14.     {% include "@openform_front_templates/Index/components/_news.html.twig" with { 'featuredNews': featuredNews } %}
  15.     
  16.     {% include "@openform_front_templates/_blocks_sections/block.html.twig" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(1, openform_front_util.getSections(entity)|length) : '' } %}
  17. {% endblock %}