Skip to content

Commit

Permalink
Merge pull request #30 from wri/superfeatured
Browse files Browse the repository at this point in the history
Turning superfeatured into traditional layout.
  • Loading branch information
mariacha authored Nov 29, 2021
2 parents 301ba22 + 276317b commit 8555b0e
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 33 deletions.
33 changes: 0 additions & 33 deletions modules/wri_superfeatured/components/wri_superfeatured.sfc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,48 @@ display:
entity_type: node
entity_field: type
plugin_id: bundle
langcode:
id: langcode
table: node_field_data
field: langcode
relationship: none
group_type: group
admin_label: ''
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: langcode
plugin_id: language
sorts:
weight:
id: weight
Expand Down
20 changes: 20 additions & 0 deletions modules/wri_superfeatured/templates/wri-superfeatured.html.twig
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>
12 changes: 12 additions & 0 deletions modules/wri_superfeatured/wri_superfeatured.layouts.yml
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'

0 comments on commit 8555b0e

Please sign in to comment.