| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,11 +17,7 @@ <h3 class="hosted-gallery__sub-heading">{page.standfirst}</h3> | |||
| 17 | 17 | </div> | |
| 18 | 18 | }.toString) | |
| 19 | 19 | @for(i <- page.images.indices.tail) { | |
| 20 | - @guardianHostedGalleryImage(page.images(i), if (i == page.images.length - 1) { | ||
| 21 | - guardianHostedGalleryOj(page.ctaText, page.ctaLink, page.ctaButtonText, page.nextGalleries).toString | ||
| 22 | - } else if (page.ctaIndex.contains(i)) { | ||
| 23 | - guardianHostedGalleryCta(page.ctaText, page.ctaLink, page.ctaButtonText).toString | ||
| 24 | - } else "") | ||
| 20 | + @guardianHostedGalleryImage(page.images(i)) | ||
| 25 | 21 | } | |
| 26 | 22 | </div> | |
| 27 | 23 | <div class="hosted-gallery__scroll-container js-hosted-gallery-scroll-container"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | @{ctaText} | |
| 5 | 5 | </div> | |
| 6 | 6 | <a class="hosted-gallery__cta-link" href="@{ctaLink}" target="_blank" data-link-name="@{buttonText}"> | |
| 7 | - @{buttonText} @fragments.inlineSvg("arrow-right", "icon") | ||
| 7 | + @{buttonText} @fragments.inlineSvg("external-link", "icon") | ||
| 8 | 8 | </a> | |
| 9 | 9 | </div> | |
| 10 | 10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | @import model.ImageAsset | |
| 5 | 5 | @import com.gu.contentapi.client.model.v1.Asset | |
| 6 | 6 | @import com.gu.contentapi.client.model.v1.AssetType | |
| 7 | - @(image: HostedGalleryImage, content: String) | ||
| 7 | + @(image: HostedGalleryImage, content: String = "") | ||
| 8 | 8 | <div class="js-hosted-gallery-image hosted-gallery__image hosted-tone--dark"> | |
| 9 | 9 | <div class="hosted-gallery__image-sizer js-hosted-gallery-image-sizer"> | |
| 10 | 10 | @fragments.image( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | @{ctaText} | |
| 7 | 7 | </div> | |
| 8 | 8 | <a class="hosted-gallery__cta-link" href="@{ctaLink}" target="_blank" data-link-name="@{buttonText}"> | |
| 9 | - @{buttonText} @fragments.inlineSvg("arrow-right", "icon") | ||
| 9 | + @{buttonText} @fragments.inlineSvg("external-link", "icon") | ||
| 10 | 10 | </a> | |
| 11 | 11 | </div> | |
| 12 | 12 | @for(gallery <- nextGalleries){ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,6 +42,7 @@ case class HostedGalleryPage( | |||
| 42 | 42 | "keywords" -> JsString(keywordName), | |
| 43 | 43 | "toneIds" -> JsString(toneId), | |
| 44 | 44 | "tones" -> JsString(toneName), | |
| 45 | + "trackingPrefix" -> JsString(s"Hosted:GFE:gallery:$pageName:"), | ||
| 45 | 46 | "images" -> JsArray(images.map((image) => JsString(image.url))), | |
| 46 | 47 | "ctaIndex" -> JsNumber(ctaIndex.map(BigDecimal(_)).getOrElse(BigDecimal(images.length - 1))) | |
| 47 | 48 | ), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -194,11 +194,11 @@ object VisitBritainHostedPages { | |||
| 194 | 194 | val activitiesGallery: HostedGalleryPage = HostedGalleryPage( | |
| 195 | 195 | campaign = campaign, | |
| 196 | 196 | images = activityImages, | |
| 197 | - pageUrl = "https://www.theguardian.com/commercial/advertiser-content/visit-britain/activities", | ||
| 197 | + pageUrl = "https://www.theguardian.com/advertiser-content/visit-britain/activities", | ||
| 198 | 198 | pageName = activitiesPageName, | |
| 199 | 199 | title = "Don’t be a sloth this summer", | |
| 200 | 200 | ctaText = "Explore our collection of unique experiences from all over Great Britain.", | |
| 201 | - ctaLink = "https://en.omgb.com/map/", | ||
| 201 | + ctaLink = "http://en.omgb.com/map/", | ||
| 202 | 202 | ctaButtonText = "Visit OMGB now", | |
| 203 | 203 | nextGalleryNames = List(cityPageName, coastPageName), | |
| 204 | 204 | standfirst = "Get your heart pumping with a daring dip in the Lake District or learn how to paddleboard along the Isle of Wight’s scenic coastline." | |
@@ -207,11 +207,11 @@ object VisitBritainHostedPages { | |||
| 207 | 207 | val cityGallery: HostedGalleryPage = HostedGalleryPage( | |
| 208 | 208 | campaign = campaign, | |
| 209 | 209 | images = cityImages, | |
| 210 | - pageUrl = "https://www.theguardian.com/commercial/advertiser-content/visit-britain/city", | ||
| 210 | + pageUrl = "https://www.theguardian.com/advertiser-content/visit-britain/city", | ||
| 211 | 211 | pageName = cityPageName, | |
| 212 | 212 | title = "Take a city break from the norm", | |
| 213 | 213 | ctaText = "Explore our collection of unique experiences from all over Great Britain.", | |
| 214 | - ctaLink = "https://en.omgb.com/map/", | ||
| 214 | + ctaLink = "http://en.omgb.com/map/", | ||
| 215 | 215 | ctaButtonText = "Visit OMGB now", | |
| 216 | 216 | nextGalleryNames = List(coastPageName, countrysidePageName), | |
| 217 | 217 | standfirst = "Discover instagrammable events like the Bristol Balloon Fiesta; theatre under the stars and hotly-tipped comedy acts at Edinburgh Fringe." | |
@@ -220,11 +220,11 @@ object VisitBritainHostedPages { | |||
| 220 | 220 | private val coastGallery: HostedGalleryPage = HostedGalleryPage( | |
| 221 | 221 | campaign = campaign, | |
| 222 | 222 | images = coastImages, | |
| 223 | - pageUrl = "https://www.theguardian.com/commercial/advertiser-content/visit-britain/coast", | ||
| 223 | + pageUrl = "https://www.theguardian.com/advertiser-content/visit-britain/coast", | ||
| 224 | 224 | pageName = coastPageName, | |
| 225 | 225 | title = "Find cool-on-sea this summer", | |
| 226 | 226 | ctaText = "Explore our collection of unique experiences from all over Great Britain.", | |
| 227 | - ctaLink = "https://en.omgb.com/map/", | ||
| 227 | + ctaLink = "http://en.omgb.com/map/", | ||
| 228 | 228 | ctaButtonText = "Visit OMGB now", | |
| 229 | 229 | nextGalleryNames = List(countrysidePageName, activitiesPageName), | |
| 230 | 230 | standfirst = "Catch a show at an amphitheatre overlooking the Atlantic, go island hopping in sub-tropical climes and join the party at the Whitby Regatta." | |
@@ -233,11 +233,11 @@ object VisitBritainHostedPages { | |||
| 233 | 233 | private val countrysideGallery: HostedGalleryPage = HostedGalleryPage( | |
| 234 | 234 | campaign = campaign, | |
| 235 | 235 | images = countrysideImages, | |
| 236 | - pageUrl = "https://www.theguardian.com/commercial/advertiser-content/visit-britain/countryside", | ||
| 236 | + pageUrl = "https://www.theguardian.com/advertiser-content/visit-britain/countryside", | ||
| 237 | 237 | pageName = countrysidePageName, | |
| 238 | 238 | title = "Mend your relationship with Mother Nature", | |
| 239 | 239 | ctaText = "Explore our collection of unique experiences from all over Great Britain.", | |
| 240 | - ctaLink = "https://en.omgb.com/map/", | ||
| 240 | + ctaLink = "http://en.omgb.com/map/", | ||
| 241 | 241 | ctaButtonText = "Visit OMGB now", | |
| 242 | 242 | nextGalleryNames = List(activitiesPageName, cityPageName), | |
| 243 | 243 | standfirst = "Switch off and soak up the country air as you ramble through the heather-coated North York Moors or explore the dramatic scenery of Glen Coe." | |
| Back | FazBrowse Home | New Git URL |
0 commit comments