diff --git a/lib/graphql/Fragments/Footer/MainLinks.graphql b/lib/graphql/Fragments/Footer/MainLinks.graphql new file mode 100644 index 000000000..62abc0eb1 --- /dev/null +++ b/lib/graphql/Fragments/Footer/MainLinks.graphql @@ -0,0 +1,29 @@ +fragment MainLinks on Footer { + main_links { + title + open_in_new_tab + link { + href + title + } + pageConnection { + edges { + node { + __typename + ... on AccountPage { + title + url + } + ... on LoyaltyPage { + title + url + } + ... on ContentPage { + title + url + } + } + } + } + } +} diff --git a/lib/graphql/Fragments/Footer/Refs/MainLinks.graphql b/lib/graphql/Fragments/Footer/Refs/MainLinks.graphql new file mode 100644 index 000000000..cea5340f4 --- /dev/null +++ b/lib/graphql/Fragments/Footer/Refs/MainLinks.graphql @@ -0,0 +1,18 @@ +fragment MainLinksRef on Footer { + __typename + main_links { + pageConnection { + edges { + node { + __typename + ...LoyaltyPageRef + ...ContentPageRef + ...AccountPageRef + } + } + } + } + system { + ...System + } +} diff --git a/lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql b/lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql new file mode 100644 index 000000000..d324e40b1 --- /dev/null +++ b/lib/graphql/Fragments/Footer/Refs/SecondaryLinks.graphql @@ -0,0 +1,20 @@ +fragment SecondaryLinksRef on Footer { + __typename + secondary_links { + links { + pageConnection { + edges { + node { + __typename + ...LoyaltyPageRef + ...ContentPageRef + ...AccountPageRef + } + } + } + } + } + system { + ...System + } +} diff --git a/lib/graphql/Fragments/Footer/SecondaryLinks.graphql b/lib/graphql/Fragments/Footer/SecondaryLinks.graphql new file mode 100644 index 000000000..e6724cd7f --- /dev/null +++ b/lib/graphql/Fragments/Footer/SecondaryLinks.graphql @@ -0,0 +1,24 @@ +#import "../Refs/MyPages/AccountPage.graphql" +#import "../Refs/ContentPage/ContentPage.graphql" +#import "../Refs/LoyaltyPage/LoyaltyPage.graphql" + +fragment SecondaryLinks on Footer { + secondary_links { + title + links { + title + open_in_new_tab + pageConnection { + edges { + node { + __typename + } + } + } + link { + href + title + } + } + } +}