{% extends 'frontend/front-end-base.html.twig' %} {% block title %} {{ page_title|default('APAC')|raw|striptags }} {% endblock %} {% block body %} {% embed "frontend/panel/content-page-title.html.twig" %} {% block pageTitle %} {{ page_title|default('APAC')|raw }} {% endblock %} {% block bannerImage %} {% set imagePath = asset('build/images/newsletter.png') %} {% if currentApacCategory is not null and currentApacCategory.bannerImagePath is defined and currentApacCategory.bannerImagePath is not null %} {% set imagePath = asset(apacCategoryImagesDirectory ~ currentApacCategory.bannerImagePath) %} {% endif %} background: url('{{ imagePath }}') top center no-repeat; background-size: cover; {% endblock %} {% block headerFontClass %} acba-blue-font {% endblock %} {% endembed %}
{% if currentApacCategory is defined and currentApacCategory is not null %} {#

{{ currentApacCategory.name }}

#}
{% if apacs is defined and apacs|length > 0 %} {% for apac in apacs %} {% set pdfDocument = apac.frenchDocument %} {% if apac.englishDocument is defined and apac.englishDocument is not null %} {% set pdfDocument = apac.englishDocument %} {% endif %}
{% if apac.imagePath is not null %} {% endif %}

{{ apac.title }}

{{ apac.content|raw }}
{% if apac.englishDocument is not null or apac.frenchDocument is not null %} Download: {% if apac.englishDocument is not null %} EN | {% endif %} {% if apac.frenchDocument is not null %} FR {% endif %} {% endif %}
{% if apac.datePublished is defined and apac.datePublished is not null %} Posted on {{ apac.datePublished.format('Y-m-d') }} {% elseif apac.dateCreated is not null %} Posted on {{ apac.dateCreated.format('Y-m-d') }} {% endif %}
{% endfor %} {% endif %}
{% endif %}
{% endblock %} {% block javascripts %} {% endblock %}