diff --git a/wp-content/themes/moonshine/acf-json/group_abstract_builder.json b/wp-content/themes/moonshine/acf-json/group_abstract_builder.json
index 423ff49..0a65b3d 100644
--- a/wp-content/themes/moonshine/acf-json/group_abstract_builder.json
+++ b/wp-content/themes/moonshine/acf-json/group_abstract_builder.json
@@ -100,7 +100,9 @@
"min": "",
"max": "",
"acfe_flexible_modal_edit_size": "",
- "acfe_flexible_settings": "",
+ "acfe_flexible_settings": [
+ "group_layout_contained"
+ ],
"acfe_flexible_settings_size": "large",
"acfe_flexible_render_template": false,
"acfe_flexible_render_style": false,
@@ -150,5 +152,5 @@
"graphql_types": "",
"acfe_meta": "",
"acfe_note": "",
- "modified": 1768336919
+ "modified": 1768358815
}
diff --git a/wp-content/themes/moonshine/acf-json/group_layout_contained.json b/wp-content/themes/moonshine/acf-json/group_layout_contained.json
new file mode 100644
index 0000000..c4cb85a
--- /dev/null
+++ b/wp-content/themes/moonshine/acf-json/group_layout_contained.json
@@ -0,0 +1,149 @@
+{
+ "key": "group_layout_contained",
+ "title": "Layout - Contained",
+ "fields": [
+ {
+ "key": "field_68dc29d78941c",
+ "label": "Conteneur",
+ "name": "container",
+ "aria-label": "",
+ "type": "select",
+ "instructions": "",
+ "required": 1,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "default": "1536px",
+ "xl": "1280px",
+ "lg": "1024px",
+ "fluid": "Largeur fluide",
+ "none": "Pleine largeur"
+ },
+ "default_value": "default",
+ "return_format": "value",
+ "multiple": 0,
+ "max": "",
+ "prepend": "",
+ "append": "",
+ "required_message": "",
+ "allow_null": 0,
+ "allow_in_bindings": 0,
+ "ui": 0,
+ "show_in_graphql": 1,
+ "graphql_description": "",
+ "graphql_field_name": "container",
+ "graphql_non_null": 1,
+ "ajax": 0,
+ "placeholder": "",
+ "create_options": 0,
+ "save_options": 0,
+ "allow_custom": 0,
+ "search_placeholder": "",
+ "min": ""
+ },
+ {
+ "key": "field_693c8c3b5ce50",
+ "label": "Espacement vertical",
+ "name": "vertical_padding",
+ "aria-label": "",
+ "type": "select",
+ "instructions": "",
+ "required": 1,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "sm": "Petit (12px)",
+ "md": "Medium (24px)",
+ "lg": "Grand (48px)"
+ },
+ "default_value": "md",
+ "return_format": "value",
+ "multiple": 0,
+ "allow_null": 0,
+ "allow_in_bindings": 0,
+ "ui": 0,
+ "show_in_graphql": 1,
+ "graphql_description": "",
+ "graphql_field_name": "verticalPadding",
+ "graphql_non_null": 1,
+ "ajax": 0,
+ "placeholder": "",
+ "create_options": 0,
+ "save_options": 0,
+ "allow_custom": 0,
+ "search_placeholder": ""
+ },
+ {
+ "key": "field_693c8c945ce51",
+ "label": "Couleur d'arrière-plan",
+ "name": "bg_color",
+ "aria-label": "",
+ "type": "select",
+ "instructions": "",
+ "required": 1,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "default": "Par défaut",
+ "muted": "Atténué",
+ "inverted": "Inversé"
+ },
+ "default_value": "default",
+ "return_format": "value",
+ "multiple": 0,
+ "allow_null": 0,
+ "allow_in_bindings": 0,
+ "ui": 0,
+ "show_in_graphql": 1,
+ "graphql_description": "",
+ "graphql_field_name": "bgColor",
+ "graphql_non_null": 1,
+ "ajax": 0,
+ "placeholder": "",
+ "create_options": 0,
+ "save_options": 0,
+ "allow_custom": 0,
+ "search_placeholder": ""
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "abstract"
+ }
+ ]
+ ],
+ "menu_order": 0,
+ "position": "normal",
+ "style": "default",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "",
+ "show_in_rest": 0,
+ "display_title": "",
+ "acfe_autosync": [
+ "json"
+ ],
+ "acfe_form": 0,
+ "show_in_graphql": 1,
+ "graphql_field_name": "GroupLayoutContained",
+ "map_graphql_types_from_location_rules": 0,
+ "graphql_types": "",
+ "acfe_meta": "",
+ "acfe_note": "",
+ "modified": 1768358794
+}
diff --git a/wp-content/themes/moonshine/app/components/builder/LayoutContained.fragment.gql b/wp-content/themes/moonshine/app/components/builder/LayoutContained.fragment.gql
new file mode 100644
index 0000000..553e93d
--- /dev/null
+++ b/wp-content/themes/moonshine/app/components/builder/LayoutContained.fragment.gql
@@ -0,0 +1,5 @@
+fragment LayoutContained on GroupLayoutContained_Fields {
+ container
+ verticalPadding
+ bgColor
+}
diff --git a/wp-content/themes/moonshine/app/components/builder/LayoutContained.vue b/wp-content/themes/moonshine/app/components/builder/LayoutContained.vue
new file mode 100644
index 0000000..64163e7
--- /dev/null
+++ b/wp-content/themes/moonshine/app/components/builder/LayoutContained.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
diff --git a/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.fragment.gql b/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.fragment.gql
index ff452af..b7f5ab4 100644
--- a/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.fragment.gql
+++ b/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.fragment.gql
@@ -1,3 +1,6 @@
fragment SectionTextBlock on GroupAbstractBuilderSectionsTextBlockLayout {
content
+ layoutSettings {
+ ...LayoutContained
+ }
}
diff --git a/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.global.vue b/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.global.vue
index 8f17098..ae264f8 100644
--- a/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.global.vue
+++ b/wp-content/themes/moonshine/app/components/sections/SectionTextBlock.global.vue
@@ -5,5 +5,7 @@ defineProps();
-
+
+
+
diff --git a/wp-content/themes/moonshine/server/graphql/schema.graphql b/wp-content/themes/moonshine/server/graphql/schema.graphql
index 275e855..b0fdef5 100644
--- a/wp-content/themes/moonshine/server/graphql/schema.graphql
+++ b/wp-content/themes/moonshine/server/graphql/schema.graphql
@@ -3320,6 +3320,37 @@ type GroupAbstractBuilder implements AcfFieldGroup & AcfFieldGroupFields & Group
sections: [GroupAbstractBuilderSections_Layout]
}
+"""
+The "GroupAbstractBuilderSectionsLayoutSettings" Field Group. Added to the Schema by "WPGraphQL for ACF".
+"""
+type GroupAbstractBuilderSectionsLayoutSettings implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractBuilderSectionsLayoutSettings_Fields & GroupLayoutContained_Fields {
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ bgColor: [String]!
+
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ container: [String]!
+
+ """The name of the field group"""
+ fieldGroupName: String @deprecated(reason: "Use __typename instead")
+
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ verticalPadding: [String]!
+}
+
+"""
+Interface representing fields of the ACF "GroupAbstractBuilderSectionsLayoutSettings" Field Group
+"""
+interface GroupAbstractBuilderSectionsLayoutSettings_Fields implements AcfFieldGroup & AcfFieldGroupFields {
+ """The name of the field group"""
+ fieldGroupName: String @deprecated(reason: "Use __typename instead")
+}
+
"""
The "GroupAbstractBuilderSectionsTextBlockLayout" Field Group. Added to the Schema by "WPGraphQL for ACF".
"""
@@ -3331,6 +3362,11 @@ type GroupAbstractBuilderSectionsTextBlockLayout implements AcfFieldGroup & AcfF
"""The name of the field group"""
fieldGroupName: String @deprecated(reason: "Use __typename instead")
+
+ """
+ Field of the "clone" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsTextBlockLayout" Field Group
+ """
+ layoutSettings: GroupAbstractBuilderSectionsLayoutSettings
}
"""
@@ -3344,6 +3380,11 @@ interface GroupAbstractBuilderSectionsTextBlockLayout_Fields implements AcfField
"""The name of the field group"""
fieldGroupName: String @deprecated(reason: "Use __typename instead")
+
+ """
+ Field of the "clone" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsTextBlockLayout" Field Group
+ """
+ layoutSettings: GroupAbstractBuilderSectionsLayoutSettings
}
"""
@@ -3367,6 +3408,52 @@ interface GroupAbstractBuilder_Fields implements AcfFieldGroup & AcfFieldGroupFi
sections: [GroupAbstractBuilderSections_Layout]
}
+"""
+The "GroupLayoutContained" Field Group. Added to the Schema by "WPGraphQL for ACF".
+"""
+type GroupLayoutContained implements AcfFieldGroup & AcfFieldGroupFields & GroupLayoutContained_Fields {
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ bgColor: [String]!
+
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ container: [String]!
+
+ """The name of the field group"""
+ fieldGroupName: String @deprecated(reason: "Use __typename instead")
+
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ verticalPadding: [String]!
+}
+
+"""
+Interface representing fields of the ACF "GroupLayoutContained" Field Group
+"""
+interface GroupLayoutContained_Fields implements AcfFieldGroup & AcfFieldGroupFields {
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ bgColor: [String]!
+
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ container: [String]!
+
+ """The name of the field group"""
+ fieldGroupName: String @deprecated(reason: "Use __typename instead")
+
+ """
+ Field of the "select" Field Type added to the schema as part of the "GroupLayoutContained" Field Group
+ """
+ verticalPadding: [String]!
+}
+
"""
The "GroupPostPage" Field Group. Added to the Schema by "WPGraphQL for ACF".
"""