From d0a2fe6b9a5ce7c581342acab1a32d817b1aabb6 Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Wed, 29 May 2024 17:21:51 -0700 Subject: [PATCH] Update cards to prevent elements showing as string --- templates/content/node--card-horizontal.html.twig | 4 ++-- templates/content/node--card-image.html.twig | 4 ++-- templates/content/node--card-vertical.html.twig | 4 ++-- templates/content/node--ubc-event--card-horizontal.html.twig | 4 ++-- templates/content/node--ubc-event--card-image.html.twig | 4 ++-- templates/content/node--ubc-event--card-vertical.html.twig | 4 ++-- .../node--ubc-partner-organization--card-horizontal.html.twig | 4 ++-- .../node--ubc-partner-organization--card-vertical.html.twig | 4 ++-- .../node--ubc-profile--card-horizontal-round-image.html.twig | 4 ++-- .../content/node--ubc-profile--card-horizontal.html.twig | 4 ++-- templates/content/node--ubc-profile--card-vertical.html.twig | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/templates/content/node--card-horizontal.html.twig b/templates/content/node--card-horizontal.html.twig index 55bffd0..8b2b28c 100644 --- a/templates/content/node--card-horizontal.html.twig +++ b/templates/content/node--card-horizontal.html.twig @@ -70,7 +70,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -111,7 +111,7 @@ {% endif %} {% endblock %} {% block content %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--card-image.html.twig b/templates/content/node--card-image.html.twig index 15d4d5a..2046227 100644 --- a/templates/content/node--card-image.html.twig +++ b/templates/content/node--card-image.html.twig @@ -70,7 +70,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -111,7 +111,7 @@ {% endif %} {% endblock %} {% block content %} - {{ summary }} +

{{ summary }}

{% endblock %} {% endembed %} diff --git a/templates/content/node--card-vertical.html.twig b/templates/content/node--card-vertical.html.twig index fe39c41..7b13d63 100755 --- a/templates/content/node--card-vertical.html.twig +++ b/templates/content/node--card-vertical.html.twig @@ -70,7 +70,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -111,7 +111,7 @@ {% endif %} {% endblock %} {% block content %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-event--card-horizontal.html.twig b/templates/content/node--ubc-event--card-horizontal.html.twig index 281fb24..0509aa6 100755 --- a/templates/content/node--ubc-event--card-horizontal.html.twig +++ b/templates/content/node--ubc-event--card-horizontal.html.twig @@ -87,7 +87,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -114,7 +114,7 @@ {% endif %} {% endblock %} {% block content %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-event--card-image.html.twig b/templates/content/node--ubc-event--card-image.html.twig index 8672d9f..5aa88fe 100644 --- a/templates/content/node--ubc-event--card-image.html.twig +++ b/templates/content/node--ubc-event--card-image.html.twig @@ -88,7 +88,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -115,6 +115,6 @@ {% endif %} {% endblock %} {% block content %} - {{ summary }} +

{{ summary }}

{% endblock %} {% endembed %} diff --git a/templates/content/node--ubc-event--card-vertical.html.twig b/templates/content/node--ubc-event--card-vertical.html.twig index 84d4e45..88aed2c 100644 --- a/templates/content/node--ubc-event--card-vertical.html.twig +++ b/templates/content/node--ubc-event--card-vertical.html.twig @@ -88,7 +88,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -115,7 +115,7 @@ {% endif %} {% endblock %} {% block content %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-partner-organization--card-horizontal.html.twig b/templates/content/node--ubc-partner-organization--card-horizontal.html.twig index 1f9f5b0..cd26819 100644 --- a/templates/content/node--ubc-partner-organization--card-horizontal.html.twig +++ b/templates/content/node--ubc-partner-organization--card-horizontal.html.twig @@ -70,7 +70,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -102,7 +102,7 @@ {% if not (node.field_partner_representative.isEmpty == true) and content.field_partner_representative is defined %}

Representative {{ content.field_partner_representative.0 }}

{% endif %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-partner-organization--card-vertical.html.twig b/templates/content/node--ubc-partner-organization--card-vertical.html.twig index a2b47f5..3f46630 100644 --- a/templates/content/node--ubc-partner-organization--card-vertical.html.twig +++ b/templates/content/node--ubc-partner-organization--card-vertical.html.twig @@ -71,7 +71,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -103,7 +103,7 @@ {% if not (node.field_partner_representative.isEmpty == true) and content.field_partner_representative is defined %}

Representative {{ content.field_partner_representative.0 }}

{% endif %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig b/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig index 084d18f..d1ea5d0 100644 --- a/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig +++ b/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig @@ -71,7 +71,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -127,7 +127,7 @@ {% if not (node.field_profile_preferred_website.isEmpty == true) and content.field_profile_preferred_website is defined %}

Website

{% endif %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-profile--card-horizontal.html.twig b/templates/content/node--ubc-profile--card-horizontal.html.twig index e8ea1ef..85ca551 100644 --- a/templates/content/node--ubc-profile--card-horizontal.html.twig +++ b/templates/content/node--ubc-profile--card-horizontal.html.twig @@ -70,7 +70,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -126,7 +126,7 @@ {% if not (node.field_profile_preferred_website.isEmpty == true) and content.field_profile_preferred_website is defined %}

Website

{% endif %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}

diff --git a/templates/content/node--ubc-profile--card-vertical.html.twig b/templates/content/node--ubc-profile--card-vertical.html.twig index ca9db7f..409fba3 100644 --- a/templates/content/node--ubc-profile--card-vertical.html.twig +++ b/templates/content/node--ubc-profile--card-vertical.html.twig @@ -71,7 +71,7 @@ {% set summary = node.body.summary %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} - {% set summary = '

' ~ summaryraw| truncate(300,true,true)| check_markup('filtered_text') ~ '

' %} + {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} {% endif %} {% endif %} @@ -127,7 +127,7 @@ {% if not (node.field_profile_preferred_website.isEmpty == true) and content.field_profile_preferred_website is defined %}

Website

{% endif %} - {{ summary }} +

{{ summary }}

{% endblock %} {% block actions %}