diff --git a/modules/wri_superfeatured/components/wri_superfeatured.sfc b/modules/wri_superfeatured/components/wri_superfeatured.sfc deleted file mode 100644 index 0cea65cfb..000000000 --- a/modules/wri_superfeatured/components/wri_superfeatured.sfc +++ /dev/null @@ -1,33 +0,0 @@ - - - 'Superfeatured Node', - 'regions' => [ - 'image' => ['label' => 'Image'], - 'left_text' => ['label' => 'Left Text'], - 'right_text' => ['label' => 'Right Text'], - 'button' => ['label' => 'Button'], - ], -]; diff --git a/modules/wri_superfeatured/config/install/views.view.superfeatured_content.yml b/modules/wri_superfeatured/config/install/views.view.superfeatured_content.yml index bd4c774bd..b9baa03f7 100644 --- a/modules/wri_superfeatured/config/install/views.view.superfeatured_content.yml +++ b/modules/wri_superfeatured/config/install/views.view.superfeatured_content.yml @@ -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 diff --git a/modules/wri_superfeatured/templates/wri-superfeatured.html.twig b/modules/wri_superfeatured/templates/wri-superfeatured.html.twig new file mode 100644 index 000000000..8868d34b4 --- /dev/null +++ b/modules/wri_superfeatured/templates/wri-superfeatured.html.twig @@ -0,0 +1,20 @@ +
+
+ {{ content.image }} +
+
+
+ {{ title_suffix.contextual_links }} + {{ content.left_text }} +
+ {{ content.button }} +
+
+
+
+

{{ content.right_text|render|striptags|trim }}

+
+ {{ content.button }} +
+
+
diff --git a/modules/wri_superfeatured/wri_superfeatured.layouts.yml b/modules/wri_superfeatured/wri_superfeatured.layouts.yml new file mode 100644 index 000000000..796fe959f --- /dev/null +++ b/modules/wri_superfeatured/wri_superfeatured.layouts.yml @@ -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'