From f009924051da78d1e5089870bb99684edc0648fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 16 Oct 2023 12:05:22 +0300 Subject: [PATCH 1/2] TMS-970: Add image meta to cta and content-columns components --- CHANGELOG.MD | 2 + partials/layouts/layout-call-to-action.dust | 66 +++++++++++--------- partials/layouts/layout-content-columns.dust | 5 ++ 3 files changed, 42 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index b4a2288..cbe2ec9 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-970: Add image meta to call-to-action and content-columns components + ## [1.9.3] - 2023-10-12 ### Fixed diff --git a/partials/layouts/layout-call-to-action.dust b/partials/layouts/layout-call-to-action.dust index 59457a3..a9be9d1 100644 --- a/partials/layouts/layout-call-to-action.dust +++ b/partials/layouts/layout-call-to-action.dust @@ -1,43 +1,47 @@ -
+
- + {#rows} -
-
- {?image} -
- {>"shared/layout-after-main-content" /} -
- {@image id=image.id size="large" class="objectfit-image" /} -
- {?display_artist} - {?image_title_and_artist} - {image_title_and_artist|s} - {/image_title_and_artist} - {/display_artist} - {>"shared/layout-before-main-content" /} -
- {/image} +
+
+ {?image} +
+ {>"shared/layout-after-main-content" /} +
+ {@image id=image.id size="large" class="objectfit-image" /} +
-
- {?title} -

- {title|s} -

- {/title} + {@isset key1=display_caption key2=image.caption method="and" } + {>"ui/image/image-caption" /} + {/isset} - {?description} -
- {description|s} + {?display_artist} + {?image_title_and_artist} + {image_title_and_artist|html} + {/image_title_and_artist} + {/display_artist} + {>"shared/layout-before-main-content" /}
- {/description} + {/image} - {>"ui/button-link" classes="is-primary" icon="chevron-right" icon_classes="icon--medium" /} +
+ {?title} +

+ {title|html} +

+ {/title} + + {?description} +
+ {description|kses} +
+ {/description} + + {>"ui/button-link" classes="is-primary" icon="chevron-right" icon_classes="icon--medium" /} +
-
{/rows} -
\ No newline at end of file diff --git a/partials/layouts/layout-content-columns.dust b/partials/layouts/layout-content-columns.dust index 5534782..aee0104 100644 --- a/partials/layouts/layout-content-columns.dust +++ b/partials/layouts/layout-content-columns.dust @@ -7,6 +7,11 @@
{@image id=image.id size="large" class="objectfit-image" /}
+ + {@isset key1=display_caption key2=image.caption method="AND" } + {>"ui/image/image-caption" /} + {/isset} + {?display_artist} {?image_author_and_artist} {image_author_and_artist|html} From da0305c5bf00875aff8710ea1417e38bdec7c248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 23 Oct 2023 11:54:01 +0300 Subject: [PATCH 2/2] 1.9.4 --- CHANGELOG.MD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index cbe2ec9..3550592 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.9.4] - 2023-10-23 + - TMS-970: Add image meta to call-to-action and content-columns components ## [1.9.3] - 2023-10-12