From 0bafc3a9dd682656d673a32c29c1b2ae4ff99fe1 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Fri, 30 Jan 2026 08:49:03 -0500 Subject: [PATCH] feat: HeroSplit section --- .../builder/BuilderSections.fragment.gql | 5 +-- .../sections/SectionHeroSplit.fragment.gql | 6 +++ .../sections/SectionHeroSplit.global.vue | 40 +++++++++++++++++++ .../moonshine/server/graphql/schema.graphql | 3 ++ 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.fragment.gql create mode 100644 wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.global.vue diff --git a/wp-content/themes/moonshine/app/components/builder/BuilderSections.fragment.gql b/wp-content/themes/moonshine/app/components/builder/BuilderSections.fragment.gql index f982706..f6dcc20 100644 --- a/wp-content/themes/moonshine/app/components/builder/BuilderSections.fragment.gql +++ b/wp-content/themes/moonshine/app/components/builder/BuilderSections.fragment.gql @@ -1,8 +1,7 @@ fragment BuilderSections on GroupAbstractBuilder_Fields { sections { __typename - ... on GroupAbstractBuilderSectionsTextBlockLayout { - ... SectionTextBlock - } + ... on GroupAbstractBuilderSectionsHeroSplitLayout { ... SectionHeroSplit } + ... on GroupAbstractBuilderSectionsTextBlockLayout { ... SectionTextBlock } } } diff --git a/wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.fragment.gql b/wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.fragment.gql new file mode 100644 index 0000000..bf0d63a --- /dev/null +++ b/wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.fragment.gql @@ -0,0 +1,6 @@ +fragment SectionHeroSplit on GroupAbstractBuilderSectionsHeroSplitLayout { + content + reverse + ...AcfMedia +} + \ No newline at end of file diff --git a/wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.global.vue b/wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.global.vue new file mode 100644 index 0000000..4455aed --- /dev/null +++ b/wp-content/themes/moonshine/app/components/sections/SectionHeroSplit.global.vue @@ -0,0 +1,40 @@ + + + diff --git a/wp-content/themes/moonshine/server/graphql/schema.graphql b/wp-content/themes/moonshine/server/graphql/schema.graphql index 633860b..4f8c195 100644 --- a/wp-content/themes/moonshine/server/graphql/schema.graphql +++ b/wp-content/themes/moonshine/server/graphql/schema.graphql @@ -4727,6 +4727,9 @@ type MediaItem implements ContentNode & DatabaseIdentifier & HierarchicalContent """ modifiedGmt: String + """CSS object-position value from Media Focus Point plugin""" + objectPosition: String + """The parent of the node. The parent object can be of various types""" parent: HierarchicalContentNodeToParentContentNodeConnectionEdge