Back to Frontend

GalleryBody.Scala

applications/app/views/fragments/galleryBody.scala.html

latest841 B
Original Source

isPaidContent(page)), "content", "content--media", "content--gallery", s"content--pillar-${page.metadata.pillar.nameOrDefault}", "tonal", "content--immersive", "tonal--tone-media", s"tonal--${toneClass(page.item)}" )" itemscope itemtype="@page.item.metadata.schemaType" role="main"> @fragments.galleryHeader( page, page.item.lightbox.containsAffiliateableLinks && AffiliateLinksCleaner.shouldAddAffiliateLinks( switchedOn = Switches.AffiliateLinks.isSwitchedOn, showAffiliateLinks = page.gallery.content.fields.showAffiliateLinks, alwaysOffTags = Configuration.affiliateLinks.alwaysOffTags, tagPaths = page.gallery.content.tags.tags.map(_.id), ) )

@page.item.lightbox.largestCrops.zipWithRowInfo.map { case (image, row) => @galleryItem(4, image, row, page.item.lightbox.imageContainer(row.rowNum - 1)) } @fragments.submeta(page.item)