templates/front/blocks/block-image-text__content.twig line 1

Open in your IDE?
  1. {% if entity.layoutSettings.width.mobile[textPosition] != 0 or entity.layoutSettings.width.tablet[textPosition] != 0 or entity.layoutSettings.width.desktop[textPosition] != 0 or entity.layoutSettings.width.desktopXL[textPosition] != 0 %}
  2.     <div class="order-3 {{ entity.layout == "col2-tb-dl" ? 'order-md-1' : 'order-md-3' }} {{ entity.layoutSettings.photoFromEdge is defined ? 'flex-column' }}
  3.         {% if entity.layoutSettings.verticalSpace.columnPadding.left[textPosition]|default('') != '' %}
  4.                 ps-lg-{{ entity.layoutSettings.verticalSpace.columnPadding.left[textPosition]|default('0') }}
  5.         {% endif %}
  6.         {% if entity.layoutSettings.verticalSpace.columnPadding.right[textPosition]|default('') != '' %}
  7.             pe-lg-{{ entity.layoutSettings.verticalSpace.columnPadding.right[textPosition]|default('0') }}
  8.         {% endif %}
  9.             pt-{{ entity.layoutSettings.verticalSpace.columnPadding.top[textPosition]|default('0') }}
  10.             pb-{{ entity.layoutSettings.verticalSpace.columnPadding.bottom[textPosition]|default('0') }}
  11.             mt-{{ entity.layoutSettings.verticalSpace.columnMargin.top[textPosition]|default('0') }}
  12.             mb-{{ entity.layoutSettings.verticalSpace.columnMargin.bottom[textPosition]|default('') }}
  13.         {% if entity.layoutSettings.width.mobile[textPosition] != 0 %}
  14.             col-{{ entity.layoutSettings.width.mobile[textPosition]|default('0') }}
  15.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-flex' : 'd-block' }}
  16.         {% else %}
  17.             d-none
  18.         {% endif %}
  19.         {% if entity.layoutSettings.width.tablet[textPosition] != 0 %}
  20.             col-md-{{ entity.layoutSettings.width.tablet[textPosition]|default('0') }}
  21.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-md-flex' : 'd-md-block' }}
  22.         {% else %}
  23.             d-md-none
  24.         {% endif %}
  25.         {% if entity.layoutSettings.width.desktop[textPosition] != 0 %}
  26.             col-lg-{{ entity.layoutSettings.width.desktop[textPosition]|default('0') }}
  27.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-lg-flex' : 'd-lg-block' }}
  28.         {% else %}
  29.             d-lg-none
  30.         {% endif %}
  31.         {% if entity.layoutSettings.width.desktopXL[textPosition] != 0 %}
  32.             col-xxl-{{ entity.layoutSettings.width.desktopXL[textPosition]|default('0') }}
  33.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-xxl-flex' : 'd-xxl-block' }}
  34.         {% else %}
  35.             d-xxl-none
  36.         {% endif %}
  37.         {{ entity.layout == 'col2-tl' or entity.layout == "col2-tb-dl" ? 'order-lg-1' : 'order-lg-3' }} {{ textContainerClass }}  {{ entity.layoutSettings.width.justifyContentCenter|default('') }}">
  38.         {% if sec.title != '' %}
  39.             <h{{ sec.titleHeader|default('h') }} class="pt-{{ sec.titlePT|default('0') }} pb-{{ sec.titlePB|default('0') }} text-{{ sec.titleAlign|default('left') }} text-{{ sec.titleColor|default('black') }} {% if sec.titleFontSize != 0 %}f-{{ sec.titleFontSize|default('28') }}{% endif %} {{ sec.titleFontBold|default('') }} {{ sec.titleFont|default('') }}">{{ sec.title|default }}</h{{ sec.titleHeader|default('1') }}>
  40.         {% endif %}
  41.         {% if entity.translations.pl.subTitle != '' %}
  42.             <h{{ sec.subTitleHeader|default('1') }} class="pt-{{ sec.subTitlePT|default('0') }} pb-{{ sec.subTitlePB|default('0') }} text-{{ sec.subTitleAlign|default('left') }} text-{{ sec.subTitleColor|default('black') }} {% if sec.subTitleFontSize != 0 %}f-{{ sec.subTitleFontSize|default('0') }}{% endif %} {{ sec.subTitleFontBold|default('') }} {{ sec.subTitleFont|default('') }}">{{ sec.subTitle|default }}</h{{ sec.subTitleHeader|default('h1') }}>
  43.         {% endif %}
  44.         {{ sec.contentFirst|default('')|raw }}
  45.         {% if entity.layout == "col2-tb-dl" %}
  46.             {% include 'front/blocks/block-image-download__button.twig' with { position: "right" } %}
  47.         {% else %}
  48.             {% include 'front/blocks/block-image-text__button.twig' with { position: textPosition } %}
  49.         {% endif %}
  50.     </div>
  51. {% endif %}
  52. {% if entity.layoutSettings.width.mobile.center != 0 or entity.layoutSettings.width.tablet.center != 0 or entity.layoutSettings.width.desktop.center != 0 or entity.layoutSettings.width.desktopXL.center != 0 %}
  53.     <div class="{% if entity.layoutSettings.width.mobile.center != 0 %}col-{{ entity.layoutSettings.width.mobile.center|default(0) }}{% endif %} {% if entity.layoutSettings.width.tablet.center != 0 %}col-md-{{ entity.layoutSettings.width.tablet.center|default(0) }}{% endif %} {% if entity.layoutSettings.width.desktop.center != 0 %}col-lg-{{ entity.layoutSettings.width.desktop.center|default(0) }}{% endif %} {% if entity.layoutSettings.width.desktopXL.center != 0 %} col-xxl-{{ entity.layoutSettings.width.desktopXL.center != 0 }}{% endif %} order-lg-2"></div>
  54. {% endif %}
  55. {% if entity.layoutSettings.width.mobile[graphPosition] != 0 or entity.layoutSettings.width.tablet[graphPosition] != 0 or entity.layoutSettings.width.desktop[graphPosition] != 0 or entity.layoutSettings.width.desktopXL[graphPosition] != 0 %}
  56.     <div class="pb-sm-3 pb-3 order-1 order-md-1
  57.         {% if entity.layoutSettings.verticalSpace.columnPadding.left[graphPosition]|default('') != '' %}
  58.             ps-lg-{{ entity.layoutSettings.verticalSpace.columnPadding.left[graphPosition]|default('0') }}
  59.         {% endif %}
  60.         {% if entity.layoutSettings.verticalSpace.columnPadding.right[graphPosition]|default('') != '' %}
  61.             pe-lg-{{ entity.layoutSettings.verticalSpace.columnPadding.right[graphPosition]|default('0') }}
  62.         {% endif %}
  63.             pt-{{ entity.layoutSettings.verticalSpace.columnPadding.top[graphPosition]|default('0') }}
  64.             pb-{{ entity.layoutSettings.verticalSpace.columnPadding.bottom[graphPosition]|default('0') }}
  65.             mt-{{ entity.layoutSettings.verticalSpace.columnMargin.top[graphPosition]|default('0') }}
  66.             mb-{{ entity.layoutSettings.verticalSpace.columnMargin.bottom[graphPosition]|default('') }}
  67.         {% if entity.layoutSettings.width.mobile[graphPosition] != 0 %}
  68.             col-{{ entity.layoutSettings.width.mobile[graphPosition]|default('0') }}
  69.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-flex' : 'd-block' }}
  70.         {% else %}
  71.             d-none
  72.         {% endif %}
  73.         {% if entity.layoutSettings.width.tablet[graphPosition] != 0 %}
  74.             col-md-{{ entity.layoutSettings.width.tablet[graphPosition]|default('0') }}
  75.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-md-flex' : 'd-md-block' }}
  76.         {% else %}
  77.             d-md-none
  78.         {% endif %}
  79.         {% if entity.layoutSettings.width.desktop[graphPosition] != 0 %}
  80.             col-lg-{{ entity.layoutSettings.width.desktop[graphPosition]|default('0') }}
  81.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-lg-flex' : 'd-lg-block' }}
  82.         {% else %}
  83.             d-lg-none
  84.         {% endif %}
  85.         {% if entity.layoutSettings.width.desktopXL[graphPosition] != 0 %}
  86.             col-xxl-{{ entity.layoutSettings.width.desktopXL[graphPosition]|default('0') }}
  87.             {{ entity.layoutSettings.photoFromEdge is defined ? 'd-xxl-flex' : 'd-xxl-block' }}
  88.         {% else %}
  89.             d-xxl-none
  90.         {% endif %}
  91.         {{ entity.layout == 'col2-tl' ? 'order-lg-3' : 'order-lg-1' }} {{ graphContainerClass }}">
  92.         <div class="{{ entity.layoutSettings.imageZoom|default('') }}">
  93.             {% if entity.translations.pl.image is not null %}
  94.                 <img src="{{ (CONST_IMAGE_URL ~ entity.translations.pl.image.fileName)|imagine_filter('full') }}" alt="" class="{{ imgClass }}" style="object-fit: {{ (entity.layoutSettings.imageFill|default('cover')) }};">
  95.             {% endif %}
  96.         </div>
  97.     </div>
  98. {% endif %}