-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TMS-970: Add image meta to cta and content-columns components
- Loading branch information
Showing
3 changed files
with
42 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
<div {?anchor}id="{anchor|s}"{/anchor} class="call-to-action {accent_color|s}"> | ||
<div {?anchor}id="{anchor|attr}"{/anchor} class="call-to-action {accent_color|attr}"> | ||
<div class="keep-vertical-spacing"> | ||
|
||
{#rows} | ||
<div class="call-to-action__item section is-flex is-justify-content-center pt-6 pb-6"{bg_style|s}> | ||
<div class="container columns is-variable is-6 is-vcentered {container_class|s}"> | ||
{?image} | ||
<div class="column is-relative {img_column_class}"> | ||
{>"shared/layout-after-main-content" /} | ||
<div class="image {image_class|s}"> | ||
{@image id=image.id size="large" class="objectfit-image" /} | ||
</div> | ||
{?display_artist} | ||
{?image_title_and_artist} | ||
<span class="is-block pt-2 pb-2 mb-0 {txt_color_class|s}">{image_title_and_artist|s}</span> | ||
{/image_title_and_artist} | ||
{/display_artist} | ||
{>"shared/layout-before-main-content" /} | ||
</div> | ||
{/image} | ||
<div class="call-to-action__item section is-flex is-justify-content-center pt-6 pb-6"{bg_style|attr}> | ||
<div class="container columns is-variable is-6 is-vcentered {container_class|attr}"> | ||
{?image} | ||
<div class="column is-relative {img_column_class|attr}"> | ||
{>"shared/layout-after-main-content" /} | ||
<div class="image {image_class|attr}"> | ||
{@image id=image.id size="large" class="objectfit-image" /} | ||
</div> | ||
|
||
<div class="column {text_column_class|s}"> | ||
{?title} | ||
<h2 class="call-to-action__title h4 mt-0 {txt_color_class|s}"> | ||
{title|s} | ||
</h2> | ||
{/title} | ||
{@isset key1=display_caption key2=image.caption method="and" } | ||
{>"ui/image/image-caption" /} | ||
{/isset} | ||
|
||
{?description} | ||
<div class="call-to-action__description mt-6 mb-6 {txt_color_class|s}"> | ||
{description|s} | ||
{?display_artist} | ||
{?image_title_and_artist} | ||
<span class="is-block pt-2 pb-2 mb-0 {txt_color_class|attr}">{image_title_and_artist|html}</span> | ||
{/image_title_and_artist} | ||
{/display_artist} | ||
{>"shared/layout-before-main-content" /} | ||
</div> | ||
{/description} | ||
{/image} | ||
|
||
{>"ui/button-link" classes="is-primary" icon="chevron-right" icon_classes="icon--medium" /} | ||
<div class="column {text_column_class|attr}"> | ||
{?title} | ||
<h2 class="call-to-action__title h4 mt-0 {txt_color_class|attr}"> | ||
{title|html} | ||
</h2> | ||
{/title} | ||
|
||
{?description} | ||
<div class="call-to-action__description mt-6 mb-6 {txt_color_class|attr}"> | ||
{description|kses} | ||
</div> | ||
{/description} | ||
|
||
{>"ui/button-link" classes="is-primary" icon="chevron-right" icon_classes="icon--medium" /} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{/rows} | ||
|
||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters