-
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 #256 from yalesites-org/develop
Release
- Loading branch information
Showing
4 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...lock/node/page/block--extra-field-block--node--page--content-moderation-control.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 @@ | ||
{{ content }} |
20 changes: 20 additions & 0 deletions
20
templates/block/layout-builder/block--inline-block--inline-message.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,20 @@ | ||
{% extends "@atomic/block/layout-builder/_layout-builder-block-template.twig" %} | ||
|
||
{% block content %} | ||
|
||
{% if parentNode == 'post' or parentNode == 'event' %} | ||
{% set inline_message__width = "content" %} | ||
{% set inline_message__alignment = "center" %}() | ||
{% else %} | ||
{% set inline_message__width = "site" %} | ||
{% set inline_message__alignment = "left" %} | ||
{% endif %} | ||
|
||
{% include "@molecules/inline-message/yds-inline-message.twig" with { | ||
inline_message__heading: content.field_heading.0, | ||
inline_message__content: content.field_text.0, | ||
inline_message__link__content: content.field_link.0['#title'], | ||
inline_message__link__url: content.field_link.0['#url_title'], | ||
inline_message__theme: content.field_style_color.0['#markup'], | ||
} %} | ||
{% 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