feat: Initial Media / HeroSplit acf groups
This commit is contained in:
@@ -109,6 +109,102 @@
|
||||
"acfe_flexible_render_script": false,
|
||||
"acfe_flexible_thumbnail": false,
|
||||
"acfe_flexible_category": false
|
||||
},
|
||||
"layout_697caf9a3e05b": {
|
||||
"key": "layout_697caf9a3e05b",
|
||||
"name": "hero_split",
|
||||
"label": "Héro en moitié",
|
||||
"display": "block",
|
||||
"sub_fields": [
|
||||
{
|
||||
"key": "field_697cafb13e05d",
|
||||
"label": "Content",
|
||||
"name": "content",
|
||||
"aria-label": "",
|
||||
"type": "wysiwyg",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"allow_in_bindings": 0,
|
||||
"tabs": "all",
|
||||
"toolbar": "full",
|
||||
"media_upload": 0,
|
||||
"delay": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "content",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_697cafc43e05e",
|
||||
"label": "Media",
|
||||
"name": "media",
|
||||
"aria-label": "",
|
||||
"type": "clone",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"graphql_field_name": "media",
|
||||
"clone": [
|
||||
"group_abstract_media"
|
||||
],
|
||||
"display": "seamless",
|
||||
"layout": "block",
|
||||
"prefix_label": 0,
|
||||
"prefix_name": 0,
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_clone_modal": 0,
|
||||
"acfe_clone_modal_close": 0,
|
||||
"acfe_clone_modal_button": "",
|
||||
"acfe_clone_modal_size": "large"
|
||||
},
|
||||
{
|
||||
"key": "field_697cafdc3e05f",
|
||||
"label": "Position de l'image",
|
||||
"name": "reverse",
|
||||
"aria-label": "",
|
||||
"type": "true_false",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"message": "",
|
||||
"default_value": 0,
|
||||
"allow_in_bindings": 0,
|
||||
"ui_on_text": "Gauche",
|
||||
"ui_off_text": "Droite",
|
||||
"ui": 1,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "reverse",
|
||||
"graphql_non_null": 1
|
||||
}
|
||||
],
|
||||
"min": "",
|
||||
"max": "",
|
||||
"acfe_flexible_modal_edit_size": "",
|
||||
"acfe_flexible_settings": "",
|
||||
"acfe_flexible_settings_size": "large",
|
||||
"acfe_flexible_render_template": false,
|
||||
"acfe_flexible_render_style": false,
|
||||
"acfe_flexible_render_script": false,
|
||||
"acfe_flexible_thumbnail": false,
|
||||
"acfe_flexible_category": false
|
||||
}
|
||||
},
|
||||
"min": "",
|
||||
@@ -152,5 +248,5 @@
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1768358815
|
||||
"modified": 1769779217
|
||||
}
|
||||
|
||||
123
wp-content/themes/moonshine/acf-json/group_abstract_media.json
Normal file
123
wp-content/themes/moonshine/acf-json/group_abstract_media.json
Normal file
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"key": "group_abstract_media",
|
||||
"title": "Abstract - Media",
|
||||
"fields": [
|
||||
{
|
||||
"key": "field_697caec68536d",
|
||||
"label": "Image",
|
||||
"name": "image",
|
||||
"aria-label": "",
|
||||
"type": "image",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "33",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"uploader": "",
|
||||
"return_format": "array",
|
||||
"library": "all",
|
||||
"acfe_thumbnail": 0,
|
||||
"min_width": "",
|
||||
"min_height": "",
|
||||
"min_size": "",
|
||||
"max_width": "",
|
||||
"max_height": "",
|
||||
"max_size": "",
|
||||
"mime_types": "",
|
||||
"allow_in_bindings": 0,
|
||||
"preview_size": "medium",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "image"
|
||||
},
|
||||
{
|
||||
"key": "field_697caf018536e",
|
||||
"label": "Ratio d'aspect",
|
||||
"name": "aspect_ratio",
|
||||
"aria-label": "",
|
||||
"type": "button_group",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "33",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"choices": {
|
||||
"square": "Carré (1:1)",
|
||||
"video": "Vidéo (16:9)",
|
||||
"portrait": "Portrait (2:3)",
|
||||
"auto": "Aspect d'origine"
|
||||
},
|
||||
"default_value": "auto",
|
||||
"return_format": "value",
|
||||
"allow_null": 0,
|
||||
"allow_in_bindings": 0,
|
||||
"layout": "horizontal",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "aspectRatio",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_697caf378536f",
|
||||
"label": "Ajustement de l'image",
|
||||
"name": "object_fit",
|
||||
"aria-label": "",
|
||||
"type": "button_group",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "33",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"choices": {
|
||||
"cover": "Recadrer si nécessaire",
|
||||
"contain": "Contenir sans recadrage"
|
||||
},
|
||||
"default_value": "cover",
|
||||
"return_format": "value",
|
||||
"allow_null": 0,
|
||||
"allow_in_bindings": 0,
|
||||
"layout": "horizontal",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "objectFit",
|
||||
"graphql_non_null": 1
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
[
|
||||
{
|
||||
"param": "abstract"
|
||||
}
|
||||
]
|
||||
],
|
||||
"menu_order": 0,
|
||||
"position": "normal",
|
||||
"style": "seamless",
|
||||
"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": "GroupAbstractMedia",
|
||||
"map_graphql_types_from_location_rules": 0,
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1769779078
|
||||
}
|
||||
@@ -51,6 +51,19 @@ interface AcfFieldGroupFields {
|
||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||
}
|
||||
|
||||
"""
|
||||
Connection between the GroupAbstractBuilderSectionsHeroSplitLayout_Fields type and the MediaItem type
|
||||
"""
|
||||
type AcfMediaItemConnectionEdge implements Edge & MediaItemConnectionEdge & OneToOneConnection {
|
||||
"""
|
||||
Opaque reference to the nodes position in the connection. Value can be used with pagination args.
|
||||
"""
|
||||
cursor: String
|
||||
|
||||
"""The node of the connection, without the edges"""
|
||||
node: MediaItem!
|
||||
}
|
||||
|
||||
"""Options Page registered by ACF"""
|
||||
interface AcfOptionsPage implements Node {
|
||||
"""The globally unique ID for the object"""
|
||||
@@ -3399,6 +3412,72 @@ type GroupAbstractBuilder implements AcfFieldGroup & AcfFieldGroupFields & Group
|
||||
sections: [GroupAbstractBuilderSections_Layout]
|
||||
}
|
||||
|
||||
"""
|
||||
The "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||
"""
|
||||
type GroupAbstractBuilderSectionsHeroSplitLayout implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractBuilderSectionsHeroSplitLayout_Fields & GroupAbstractBuilderSections_Layout & GroupAbstractMedia_Fields {
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
aspectRatio: String!
|
||||
|
||||
"""
|
||||
Field of the "wysiwyg" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
content: String!
|
||||
|
||||
"""The name of the field group"""
|
||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||
|
||||
"""
|
||||
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
image: AcfMediaItemConnectionEdge
|
||||
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
objectFit: String!
|
||||
|
||||
"""
|
||||
Field of the "true_false" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
reverse: Boolean!
|
||||
}
|
||||
|
||||
"""
|
||||
Interface representing fields of the ACF "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
interface GroupAbstractBuilderSectionsHeroSplitLayout_Fields implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractBuilderSections_Layout & GroupAbstractMedia_Fields {
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
aspectRatio: String!
|
||||
|
||||
"""
|
||||
Field of the "wysiwyg" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
content: String!
|
||||
|
||||
"""The name of the field group"""
|
||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||
|
||||
"""
|
||||
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
image: AcfMediaItemConnectionEdge
|
||||
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
objectFit: String!
|
||||
|
||||
"""
|
||||
Field of the "true_false" Field Type added to the schema as part of the "GroupAbstractBuilderSectionsHeroSplitLayout" Field Group
|
||||
"""
|
||||
reverse: Boolean!
|
||||
}
|
||||
|
||||
"""
|
||||
The "GroupAbstractBuilderSectionsLayoutSettings" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||
"""
|
||||
@@ -3487,6 +3566,52 @@ interface GroupAbstractBuilder_Fields implements AcfFieldGroup & AcfFieldGroupFi
|
||||
sections: [GroupAbstractBuilderSections_Layout]
|
||||
}
|
||||
|
||||
"""
|
||||
The "GroupAbstractMedia" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||
"""
|
||||
type GroupAbstractMedia implements AcfFieldGroup & AcfFieldGroupFields & GroupAbstractMedia_Fields {
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
aspectRatio: String!
|
||||
|
||||
"""The name of the field group"""
|
||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||
|
||||
"""
|
||||
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
image: AcfMediaItemConnectionEdge
|
||||
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
objectFit: String!
|
||||
}
|
||||
|
||||
"""
|
||||
Interface representing fields of the ACF "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
interface GroupAbstractMedia_Fields implements AcfFieldGroup & AcfFieldGroupFields {
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
aspectRatio: String!
|
||||
|
||||
"""The name of the field group"""
|
||||
fieldGroupName: String @deprecated(reason: "Use __typename instead")
|
||||
|
||||
"""
|
||||
Field of the "image" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
image: AcfMediaItemConnectionEdge
|
||||
|
||||
"""
|
||||
Field of the "button_group" Field Type added to the schema as part of the "GroupAbstractMedia" Field Group
|
||||
"""
|
||||
objectFit: String!
|
||||
}
|
||||
|
||||
"""
|
||||
The "GroupLayoutContained" Field Group. Added to the Schema by "WPGraphQL for ACF".
|
||||
"""
|
||||
@@ -7871,18 +7996,12 @@ enum PostStatusEnum {
|
||||
"""Content that is saved but not yet published or visible to the public"""
|
||||
DRAFT
|
||||
|
||||
"""Objects with the failed status"""
|
||||
FAILED
|
||||
|
||||
"""Objects with the future status"""
|
||||
FUTURE
|
||||
|
||||
"""Content that inherits its status from a parent object"""
|
||||
INHERIT
|
||||
|
||||
"""Objects with the in-progress status"""
|
||||
IN_PROGRESS
|
||||
|
||||
"""Content awaiting review before publication"""
|
||||
PENDING
|
||||
|
||||
|
||||
Reference in New Issue
Block a user