-
Notifications
You must be signed in to change notification settings - Fork 2
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 #30 from wri/superfeatured
Turning superfeatured into traditional layout.
- Loading branch information
Showing
4 changed files
with
74 additions
and
33 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
modules/wri_superfeatured/components/wri_superfeatured.sfc
This file was deleted.
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
20 changes: 20 additions & 0 deletions
20
modules/wri_superfeatured/templates/wri-superfeatured.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 @@ | ||
<div class="superfeatured grid"> | ||
<div class="image-wrapper"> | ||
{{ content.image }} | ||
</div> | ||
<div {{ attributes.addClass('left-text-wrapper') }}> | ||
<div class="margin-top-md"> | ||
{{ title_suffix.contextual_links }} | ||
{{ content.left_text }} | ||
<div class="button-wrapper"> | ||
{{ content.button }} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="right-text-wrapper card-teaser-text"> | ||
<p>{{ content.right_text|render|striptags|trim }}</p> | ||
<div class="button-wrapper"> | ||
{{ content.button }} | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
single_file_component_layout:wri_superfeatured: | ||
label: 'Superfeatured Node' | ||
template: templates/wri-superfeatured | ||
regions: | ||
image: | ||
label: 'Image' | ||
left_text: | ||
label: 'Left Text' | ||
right_text: | ||
label: 'Right Text' | ||
button: | ||
label: 'Button' |