templates/layouts/section.html.twig line 1

Open in your IDE?
  1. <div class="page--mainwrap about p-0 slideJs">
  2.     <div class="page--mainwrap-header about--header carouselSmDiv carouselSm carouselDiv">
  3.         <h1 class="m-0 page--mainwrap-header-heading">{{ section.h1_1|raw }}</h1>
  4.         <hr>
  5.         {% include 'layouts/block/breadcrumbs.html.twig' %}
  6.     </div>
  7.     <div class="page--mainwrap-content about--content">
  8.         <div class="about--content-desc scrollableDiv page--mainwrap-content-desc scrollableY">
  9.             <div class="scrollableY-content">
  10.                 {% for i in 1..75%}
  11.                     {% if attribute(section, 'p_'~i) is defined or attribute(section, 'h2_'~i) is defined %}
  12.                         <div class="mb-2">
  13.                             {% if attribute(section, 'h2_'~i) is defined and attribute(section, 'h2_'~i)|u.truncate(15) != 'MISSING CONTENT' %}
  14.                                 <h2 class="txt--label">{{ attribute(section, 'h2_'~i)|raw }}</h2>
  15.                             {% endif %}
  16.                             {% if attribute(section, 'p_'~i) is defined and attribute(section, 'p_'~i)|u.truncate(15) != 'MISSING CONTENT' %}
  17.                                 <p>{{ attribute(section, 'p_'~i)|raw }}</p>
  18.                             {% endif %}
  19.                         </div>
  20.                     {% endif %}
  21.                 {% endfor %}
  22.                 {% if section.buttons is defined %}
  23.                     {% for button in section.buttons  %}
  24.                         {% if button.url == "pages_contact_index" %}
  25.                             <a href="https://carpet-tiles.jp/ja/pages/contact" class="cta-button btn page-btn">
  26.                                 {{ button.label }}
  27.                             </a>
  28.                         {% else %}
  29.                             <a href="{{ path(button.url, { _locale: currentLocale }) }}" class="cta-button btn page-btn">
  30.                                 {{ button.label }}
  31.                             </a>
  32.                         {% endif %}
  33.                     {% endfor %}
  34.                 {% endif %}
  35.             </div>
  36.         </div>
  37.     </div>
  38.     <div class="page--mainwrap-arrow slideArrow">
  39.         <img src="{{ asset('build/icon/2tec2_arrow_bottom_black.svg') }}" alt="{{ 'caret down icon' | trans }}">
  40.     </div>
  41. </div>