templates/areas/content-icon-text/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/editmode-settings.html.twig') }}
  3. {% endif %}
  4. <section class="icon-text-area container-medium--icon-block content-block {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
  5.     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
  6. >
  7.     {{ include('includes/title-blocks/title-block.html.twig', {
  8.         className: 'center-headline container-narrow',
  9.     }) }}
  10.     {% set block = pimcore_block('icon-block', {'default': 1, 'manual': true}).start() %}
  11.     {% for row in block.iterator %}
  12.         {% if loop.index0 == 0 or loop.index0 % 3 == 0 %}
  13.             <div class="row d-flex {{ not editmode ? 'justify-content-center' }}">
  14.         {% endif %}
  15.         {% do block.blockConstruct() %}
  16.                 <div class="col-md-4">
  17.                     <article class="icon-text-item d-flex">
  18.                         {% do block.blockStart() %}
  19.                         {% if editmode %}
  20.                             {{ pimcore_select('icon', {
  21.                                 'store': [
  22.                                     ['people', '<span class="icon icon-people"></span>'],
  23.                                     ['network', '<span class="icon icon-network"></span>'],
  24.                                     ['country', '<span class="icon icon-country"></span>'],
  25.                                     ['clock', '<span class="icon icon-clock"></span>'],
  26.                                     ['double-hook', '<span class="icon icon-double-hook"></span>'],
  27.                                     ['gear', '<span class="icon icon-gear"></span>'],
  28.                                     ['line-double-arrow', '<span class="icon icon-line-double-arrow"></span>'],
  29.                                     ['tools', '<span class="icon icon-tools"></span>'],
  30.                                 ]
  31.                             }) }}
  32.                         {% endif %}
  33.                         {% if pimcore_select('icon').getData is not empty %}
  34.                             <div class="icon-text__icon-container">
  35.                                 <span aria-hidden="true" class="icon-text__icon icon icon-{{ pimcore_select('icon').getData }}"></span>
  36.                             </div>
  37.                         {% endif %}
  38.                         <div class="icon-text__content">
  39.                             <h3 class="icon-text__title">{{ pimcore_input('title') }}</h3>
  40.                             <p class="icon-text__text text-small--grey">{{ pimcore_wysiwyg('wysiwyg')|raw }}</p>
  41.                         </div>
  42.                         {% do block.blockEnd() %}
  43.                     </article>
  44.                 </div>
  45.         {% do block.blockDestruct() %}
  46.         {% if loop.index % 3 == 0 %}
  47.             </div>
  48.         {% endif %}
  49.     {% endfor %}
  50.     {% do block.end() %}
  51. </section>