-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from yalesites-org/develop
Release
- Loading branch information
Showing
23 changed files
with
260 additions
and
15 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
templates/block/layout-builder/block--inline-block--facts.html.twig
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "@atomic/block/layout-builder/_layout-builder-block-template.twig" %} | ||
|
||
{% block content %} | ||
|
||
{% set facts_and_figures__group__bg_image = content.field_media.0 ? 'true' : 'false' %} | ||
|
||
{% embed "@organisms/facts-and-figures-group/yds-facts-and-figures-group.twig" with { | ||
facts_and_figures__group__heading: content.field_heading.0['#text'], | ||
facts_and_figures__group__content: content.field_text.0['#text'], | ||
facts_and_figures__group__alignment: content.field_style_alignment.0['#markup'], | ||
facts_and_figures__group__grid_count: content.field_style_width.0['#markup'], | ||
facts_and_figures__group__presentation_style: content.field_style_variation.0['#markup'], | ||
facts_and_figured__group__width: 'site', | ||
facts_and_figures__group__theme: content.field_style_color.0['#markup'], | ||
}%} | ||
{% block facts_and_figures__group__items %} | ||
{{ content.field_facts_items }} | ||
{% endblock %} | ||
|
||
{% block facts_and_figures__group__image %} | ||
{{ content.field_media }} | ||
{% endblock %} | ||
{% endembed %} | ||
|
||
{% endblock %} |
34 changes: 34 additions & 0 deletions
34
templates/block/layout-builder/block--inline-block--link-grid.html.twig
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends "@atomic/block/layout-builder/_layout-builder-block-template.twig" %} | ||
|
||
{% block content %} | ||
{% if parentNode == 'post' or parentNode == 'event' %} | ||
{% set link_grid__width = "content" %} | ||
{% else %} | ||
{% set link_grid__width = "site" %} | ||
{% endif %} | ||
|
||
{# add checks for each link list #} | ||
{% set link_grid__links_one = content.field_link_lists.0 %} | ||
{% set link_grid__links_two = content.field_link_lists.1 %} | ||
{% set link_grid__links_three = content.field_link_lists.2 %} | ||
{% set link_grid__links_four = content.field_link_lists.3 %} | ||
|
||
{% embed "@molecules/link-grid/yds-link-grid.twig" with { | ||
link_grid__theme: content.field_style_color.0['#markup'], | ||
link_grid__heading: content.field_heading.0, | ||
}%} | ||
{% block link_grid__links_one %} | ||
{{content.field_link_lists.0}} | ||
{% endblock %} | ||
{% block link_grid__links_two %} | ||
{{content.field_link_lists.1}} | ||
{% endblock %} | ||
{% block link_grid__links_three %} | ||
{{content.field_link_lists.2}} | ||
{% endblock %} | ||
{% block link_grid__links_four %} | ||
{{content.field_link_lists.3}} | ||
{% endblock %} | ||
{% endembed %} | ||
|
||
{% endblock %} |
24 changes: 24 additions & 0 deletions
24
templates/block/layout-builder/block--inline-block--quote-callout.html.twig
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends "@atomic/block/layout-builder/_layout-builder-block-template.twig" %} | ||
|
||
{% block content %} | ||
{{ attach_library('atomic/spotlights') }} | ||
|
||
{% if content.field_media.0 %} | ||
{% set quote_callout__quote_image = 'with-image' %} | ||
{% endif %} | ||
|
||
{% embed "@molecules/quote-callout/yds-quote-callout.twig" with { | ||
quote_callout__quote: content.field_text, | ||
quote_callout__attribution: content.field_caption.0, | ||
quote_callout__style: content.field_style_variation.0['#markup'], | ||
quote_callout__alignment: quote_callout__alignment, | ||
quote_callout__quote_alignment: content.field_style_alignment.0['#markup'], | ||
quote_callout__width: 'content', | ||
quote_callout__accent_theme: content.field_style_color.0['#markup'], | ||
} %} | ||
|
||
{% block quote_callout__image %} | ||
{{ content.field_media }} | ||
{% endblock %} | ||
{% endembed %} | ||
{% endblock %} |
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
13 changes: 13 additions & 0 deletions
13
templates/block/layout-builder/block--inline-block--tiles.html.twig
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "@atomic/block/layout-builder/_layout-builder-block-template.twig" %} | ||
|
||
{% block content %} | ||
{% embed "@organisms/tiles/yds-tiles.twig" with { | ||
tiles__alignment: content.field_style_alignment.0['#markup'], | ||
tiles__grid_count: content.field_style_width.0['#markup'], | ||
tiles__vertical_alignment: content.field_style_position.0['#markup'], | ||
}%} | ||
{% block tiles__items %} | ||
{{ content.field_tiles }} | ||
{% endblock %} | ||
{% endembed %} | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for item in items %} | ||
{{ item.content }} | ||
{% endfor %} |
3 changes: 3 additions & 0 deletions
3
templates/field/field--block-content--field-facts-items.html.twig
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for item in items %} | ||
{{ item.content }} | ||
{% endfor %} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for item in items %} | ||
{{ item.content }} | ||
{% endfor %} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for item in items %} | ||
{{ item.content }} | ||
{% endfor %} |
3 changes: 3 additions & 0 deletions
3
templates/field/field--block-content--quote-callout.html.twig
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for item in items %} | ||
{{ item.content }} | ||
{% endfor %} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% for item in items %} | ||
{% include "@molecules/link-grid/_yds-link-grid--links.twig" with { | ||
link_grid__link__content: item.content['#title'], | ||
link_grid__link__url: item.content['#url_title'], | ||
} | ||
%} | ||
{% endfor %} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for item in items %} | ||
{{item.content}} | ||
{% endfor %} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{# Get values from parent to pass here #} | ||
{% set parent = paragraph._referringItem.parent.parent.entity %} | ||
|
||
{% embed "@molecules/facts-and-figures/yds-facts-and-figures.twig" with { | ||
facts_and_figures__stat: content.field_heading.0['#text'], | ||
facts_and_figures__content: content.field_text.0, | ||
facts_and_figures__alignment: parent.fields.field_style_alignment.0.value, | ||
facts_and_figures__presentation_style: 'basic', | ||
facts_and_figures__theme: 'none', | ||
} | ||
%} | ||
{% endembed %} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{{content}} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{# Get values from parent to pass here #} | ||
{% set parent = paragraph._referringItem.parent.parent.entity %} | ||
{% set tile__item__bg_image = content.field_media.0 ? 'true' : 'false' %} | ||
|
||
{% embed "@molecules/tile-item/yds-tile-item.twig" with { | ||
tile__item__heading: content.field_heading.0['#text'], | ||
tile__item__content: content.field_text.0, | ||
tile__item__content_link: content.field_link.0['#url_title'], | ||
tile__item__alignment: parent.fields.field_style_alignment.0.value, | ||
tile__item__vertical_alignment: parent.fields.field_style_position.0.value, | ||
tile__item__presentation_style: content.field_heading.0['#text'] ? 'heading' : 'text-only', | ||
tile__item__theme: content.field_style_color.0['#markup'], | ||
} | ||
%} | ||
{% block tile__item__image %} | ||
{{ content.field_media }} | ||
{% endblock %} | ||
{% endembed %} |
Oops, something went wrong.