Commit 57e535c1 authored by Thomas Frobieter's avatar Thomas Frobieter
Browse files

Issue #3309184 by thomas.frobieter, Anybody: TypeError: strtr(): Argument #1...

Issue #3309184 by thomas.frobieter, Anybody: TypeError: strtr(): Argument #1 ($string) must be of type string, array given in strtr() (Zeile 570 in /vendor/twig/twig/src/Extension/CoreExtension.php)
parent 09a6d5f5
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -13,13 +13,14 @@
      {% set image_zoomable = paragraph.field_paragraphs_image_zoomable.value %}
      {% set image_link = paragraph.field_paragraphs_link.value %}
      {% set image_rendered = drupal_image(raw_image_path, responsive_image_size, {alt: raw_image_alt}, responsive=true) %}
      {% set has_image_shape = paragraph.field_image_clip_path.value and paragraph.field_image_clip_path.value|trim %}

      {% if image_field_item %}
        {% if paragraph.field_image_clip_path.0 and paragraph.field_image_clip_path.value.0 %}
        {% if has_image_shape %}
          <style>
            .css-shape-{{ paragraph.id() }}{
              {{ paragraph.field_image_clip_path.value }}
              {{ paragraph.field_image_clip_path.value.0|replace({"clip-path": "shape-outside"}) }}
              {{ paragraph.field_image_clip_path.value|replace({"clip-path": "shape-outside"}) }}
            }
          </style>
        {% endif %}
@@ -45,7 +46,7 @@
    {% if media_align == 'float_left' or media_align == 'float_right' %}
      {# Floated image #}
      <div class="clearfix">
        <div class="{% if media_align == 'float_left' %}embed-left{% else %}embed-right{% endif %}{% if paragraph.field_image_clip_path.0 %} css-shape-{{ paragraph.id() }}{% endif %}">
        <div class="{% if media_align == 'float_left' %}embed-left{% else %}embed-right{% endif %}{% if has_image_shape %} css-shape-{{ paragraph.id() }}{% endif %}">
          {{ image }}
        </div>
        {{- content|without('field_paragraph_settings',
@@ -57,7 +58,7 @@
    {% else %}
      {# Image + Text seperated in strict coloums #}
      <div class="grid-x grid-margin-x{% if media_align == 'col_right' %} flex-dir-row-reverse{% endif %}">
        <div class="cell small-12 medium-5 paragraph--type-image-text__media-cell{% if paragraph.field_image_clip_path.0 %} css-shape-{{ paragraph.id() }}{% endif %}">
        <div class="cell small-12 medium-5 paragraph--type-image-text__media-cell{% if has_image_shape %} css-shape-{{ paragraph.id() }}{% endif %}">
          {{ image }}
        </div>
        <div class="cell small-12 medium-7 paragraph--type-image-text__content-cell">