templates/Default/page_CMS.html.twig line 1

Open in your IDE?
  1. {% extends "Default/layout.html.twig" %}
  2. {% set page_title = block.meta.title %}
  3. {% set page_meta_description = block.meta.description %}
  4. {% set page_meta_keywords = block.meta.keywords | default() %}
  5. {% block page_content %}
  6.     {% include 'Default/_engine_form.html.twig'
  7.         with {
  8.         'h1' : block.meta.h1 | default(''),
  9.         'h2' : block.meta.h2 | default('')
  10.     } %}
  11.     {% if breadcrumbLinks is defined and breadcrumbLinks|length >= 2 %}
  12.         <nav aria-label="breadcrumb">
  13.             <ol class="breadcrumb">
  14.                 {% for link in breadcrumbLinks %}
  15.                     {% if not loop.last %}
  16.                         <li class="breadcrumb-item"><a href="{{ link.url }}">{{ link.label }}</a></li>
  17.                     {% else %}
  18.                         <li class="breadcrumb-item active" aria-current="page">{{ link.label }}</li>
  19.                     {% endif %}
  20.                 {% endfor %}
  21.             </ol>
  22.         </nav>
  23.     {% endif %}
  24.     {{ block | cb_blockdisplay }}
  25.     {% if prices is defined and prices|length >= 1 %}
  26.         <section class="panel" id="last-prices">
  27.             <h2 class="panel-heading">{{'fromatobcountrypage.lastprice.h1'|trans}} {{ 'country.FR'|trans ~ ' ➜ ' ~ 'country.MA'|trans}}</h2>
  28.             {% include "Default/_prices.html.twig" with {'prices':prices} %}
  29.         </section>
  30.     {% endif %}
  31. {% endblock %}