Merged in feat/sw-187-footer-content-stack (pull request #565)
Feat/sw 187 footer content stack Approved-by: Erik Tiekstra Approved-by: Matilda Landström
This commit is contained in:
27
lib/graphql/Fragments/CurrentFooter/AppDownloads.graphql
Normal file
27
lib/graphql/Fragments/CurrentFooter/AppDownloads.graphql
Normal file
@@ -0,0 +1,27 @@
|
||||
#import "../Image.graphql"
|
||||
|
||||
fragment AppDownloads on CurrentFooter {
|
||||
app_downloads {
|
||||
title
|
||||
app_store {
|
||||
href
|
||||
imageConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
google_play {
|
||||
href
|
||||
imageConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
29
lib/graphql/Fragments/CurrentFooter/MainLinks.graphql
Normal file
29
lib/graphql/Fragments/CurrentFooter/MainLinks.graphql
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
lib/graphql/Fragments/CurrentFooter/Refs/MainLinks.graphql
Normal file
18
lib/graphql/Fragments/CurrentFooter/Refs/MainLinks.graphql
Normal file
@@ -0,0 +1,18 @@
|
||||
fragment MainLinksRef on Footer {
|
||||
__typename
|
||||
main_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...LoyaltyPageRef
|
||||
...ContentPageRef
|
||||
...AccountPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
fragment SecondaryLinksRef on Footer {
|
||||
__typename
|
||||
secondary_links {
|
||||
links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...LoyaltyPageRef
|
||||
...ContentPageRef
|
||||
...AccountPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
24
lib/graphql/Fragments/CurrentFooter/SecondaryLinks.graphql
Normal file
24
lib/graphql/Fragments/CurrentFooter/SecondaryLinks.graphql
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
17
lib/graphql/Fragments/CurrentFooter/SocialMedia.graphql
Normal file
17
lib/graphql/Fragments/CurrentFooter/SocialMedia.graphql
Normal file
@@ -0,0 +1,17 @@
|
||||
fragment SocialMedia on CurrentFooter {
|
||||
social_media {
|
||||
title
|
||||
facebook {
|
||||
href
|
||||
title
|
||||
}
|
||||
instagram {
|
||||
href
|
||||
title
|
||||
}
|
||||
twitter {
|
||||
href
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,11 @@
|
||||
#import "../Image.graphql"
|
||||
|
||||
fragment AppDownloads on CurrentFooter {
|
||||
fragment AppDownloads on Footer {
|
||||
app_downloads {
|
||||
title
|
||||
app_store {
|
||||
href
|
||||
imageConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
google_play {
|
||||
href
|
||||
imageConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
links {
|
||||
type
|
||||
href {
|
||||
href
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
22
lib/graphql/Fragments/Footer/Refs/TertiaryLinks.graphql
Normal file
22
lib/graphql/Fragments/Footer/Refs/TertiaryLinks.graphql
Normal file
@@ -0,0 +1,22 @@
|
||||
#import "../../Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../../Refs/MyPages/AccountPage.graphql"
|
||||
#import "../../Refs/ContentPage/ContentPage.graphql"
|
||||
|
||||
fragment TertiaryLinksRef on Footer {
|
||||
__typename
|
||||
tertiary_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
__typename
|
||||
...LoyaltyPageRef
|
||||
...ContentPageRef
|
||||
...AccountPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,11 @@
|
||||
fragment SocialMedia on CurrentFooter {
|
||||
fragment SocialMedia on Footer {
|
||||
social_media {
|
||||
title
|
||||
facebook {
|
||||
href
|
||||
title
|
||||
}
|
||||
instagram {
|
||||
href
|
||||
title
|
||||
}
|
||||
twitter {
|
||||
href
|
||||
title
|
||||
links {
|
||||
href {
|
||||
href
|
||||
title
|
||||
}
|
||||
type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#import "../Fragments/Footer/AppDownloads.graphql"
|
||||
#import "../Fragments/Footer/Logo.graphql"
|
||||
#import "../Fragments/Footer/Navigation.graphql"
|
||||
#import "../Fragments/Footer/SocialMedia.graphql"
|
||||
#import "../Fragments/Footer/TripAdvisor.graphql"
|
||||
#import "../Fragments/CurrentFooter/AppDownloads.graphql"
|
||||
#import "../Fragments/CurrentFooter/Logo.graphql"
|
||||
#import "../Fragments/CurrentFooter/Navigation.graphql"
|
||||
#import "../Fragments/CurrentFooter/SocialMedia.graphql"
|
||||
#import "../Fragments/CurrentFooter/TripAdvisor.graphql"
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
query GetCurrentFooter($locale: String!) {
|
||||
|
||||
122
lib/graphql/Query/Footer.graphql
Normal file
122
lib/graphql/Query/Footer.graphql
Normal file
@@ -0,0 +1,122 @@
|
||||
#import "../Fragments/Refs/System.graphql"
|
||||
|
||||
#import "../Fragments/PageLink/AccountPageLink.graphql"
|
||||
#import "../Fragments/PageLink/ContentPageLink.graphql"
|
||||
#import "../Fragments/PageLink/HotelPageLink.graphql"
|
||||
#import "../Fragments/PageLink/LoyaltyPageLink.graphql"
|
||||
|
||||
#import "../Fragments/Refs/ContentPage/ContentPage.graphql"
|
||||
#import "../Fragments/Refs/HotelPage/HotelPage.graphql"
|
||||
#import "../Fragments/Refs/LoyaltyPage/LoyaltyPage.graphql"
|
||||
#import "../Fragments/Refs/MyPages/AccountPage.graphql"
|
||||
|
||||
#import "../Fragments/Footer/AppDownloads.graphql"
|
||||
#import "../Fragments/Footer/SocialMedia.graphql"
|
||||
|
||||
query GetFooter($locale: String!) {
|
||||
all_footer(limit: 1, locale: $locale) {
|
||||
items {
|
||||
main_links {
|
||||
title
|
||||
open_in_new_tab
|
||||
link {
|
||||
href
|
||||
title
|
||||
}
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentPageLink
|
||||
...HotelPageLink
|
||||
...LoyaltyPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
secondary_links {
|
||||
title
|
||||
links {
|
||||
title
|
||||
open_in_new_tab
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentPageLink
|
||||
...HotelPageLink
|
||||
...LoyaltyPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
link {
|
||||
href
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
tertiary_links {
|
||||
title
|
||||
open_in_new_tab
|
||||
link {
|
||||
href
|
||||
title
|
||||
}
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentPageLink
|
||||
...HotelPageLink
|
||||
...LoyaltyPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...AppDownloads
|
||||
...SocialMedia
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetFooterRef($locale: String!) {
|
||||
all_footer(limit: 1, locale: $locale) {
|
||||
items {
|
||||
main_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
secondary_links {
|
||||
links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tertiary_links {
|
||||
pageConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentPageRef
|
||||
...HotelPageRef
|
||||
...LoyaltyPageRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user