diff --git a/templates/overrides/paragaphs/paragraph--sa-columns.html.twig b/templates/overrides/paragaphs/paragraph--sa-columns.html.twig index 4449be9..b59b4fb 100644 --- a/templates/overrides/paragaphs/paragraph--sa-columns.html.twig +++ b/templates/overrides/paragaphs/paragraph--sa-columns.html.twig @@ -48,13 +48,13 @@ %} {% set container_class_string = 'container' %} -{% if paragraph.sa_width.value is not empty %} - {% set container_class_string = ' ' ~ paragraph.sa_width.value %} +{% if paragraph.sa_container.value is not empty %} + {% set container_class_string = ' ' ~ paragraph.sa_container.value %} {% endif %} -{% set col_class_string = '' %} -{% if paragraph.sa_col.value is not empty %} - {% set col_class_string = ' ' ~ paragraph.sa_col.value %} +{% set width_class_string = '' %} +{% if paragraph.sa_width.value is not empty %} + {% set width_class_string = ' ' ~ paragraph.sa_width.value %} {% endif %} {% set margin_class_string = '' %} @@ -105,9 +105,9 @@ {% block paragraph %}
- {% if paragraph.sa_col.value is not empty %} + {% if paragraph.sa_width.value is not empty %}
-
+
{% endif %} {% block content %} {{ content|without('sa_column_items') }} @@ -119,7 +119,7 @@ {% endfor %}
{% endblock %} - {% if paragraph.sa_col.value is not empty %} + {% if paragraph.sa_width.value is not empty %}
{% endif %} diff --git a/templates/overrides/paragaphs/paragraph--sa-side-by-side.html.twig b/templates/overrides/paragaphs/paragraph--sa-side-by-side.html.twig index d870113..bdba244 100644 --- a/templates/overrides/paragaphs/paragraph--sa-side-by-side.html.twig +++ b/templates/overrides/paragaphs/paragraph--sa-side-by-side.html.twig @@ -57,13 +57,13 @@ {% endif %} {% set container_class_string = '' %} -{% if paragraph.sa_width.value is not empty %} - {% set container_class_string = ' ' ~ paragraph.sa_width.value %} +{% if paragraph.sa_container.value is not empty %} + {% set container_class_string = ' ' ~ paragraph.sa_container.value %} {% endif %} -{% set col_class_string = '' %} -{% if paragraph.sa_col.value is not empty %} - {% set col_class_string = ' ' ~ paragraph.sa_col.value %} +{% set width_class_string = '' %} +{% if paragraph.sa_width.value is not empty %} + {% set width_class_string = ' ' ~ paragraph.sa_width.value %} {% endif %} {% set margin_class_string = '' %} @@ -84,8 +84,8 @@
- {% if col_class_string is not empty %} -
+ {% if width_class_string is not empty %} +
{% endif %}
@@ -101,7 +101,7 @@ {{ content.sa_description }} {% endif %}
- {% if col_class_string is not empty %} + {% if width_class_string is not empty %}
{% endif %} diff --git a/templates/overrides/paragaphs/paragraph.html.twig b/templates/overrides/paragaphs/paragraph.html.twig index 3a9e5a0..be783e9 100644 --- a/templates/overrides/paragaphs/paragraph.html.twig +++ b/templates/overrides/paragaphs/paragraph.html.twig @@ -48,13 +48,13 @@ %} {% set container_class_string = 'container' %} -{% if paragraph.sa_width.value is not empty %} - {% set container_class_string = ' ' ~ paragraph.sa_width.value %} +{% if paragraph.sa_container.value is not empty %} + {% set container_class_string = ' ' ~ paragraph.sa_container.value %} {% endif %} -{% set col_class_string = '' %} -{% if paragraph.sa_col.value is not empty %} - {% set col_class_string = ' ' ~ paragraph.sa_col.value %} +{% set width_class_string = '' %} +{% if paragraph.sa_width.value is not empty %} + {% set width_class_string = ' ' ~ paragraph.sa_width.value %} {% endif %} {% set margin_class_string = '' %} @@ -75,14 +75,14 @@ {% block paragraph %}
- {% if paragraph.sa_col.value is not empty %} + {% if paragraph.sa_width.value is not empty %}
-
+
{% endif %} {% block content %} {{ content }} {% endblock %} - {% if paragraph.sa_col.value is not empty %} + {% if paragraph.sa_width.value is not empty %}
{% endif %}