Back to Frontend

MostPopularPlaceholder.Scala

common/app/views/fragments/mostPopularPlaceholder.scala.html

latest516 B
Original Source

@(section: String)(implicit request: RequestHeader) @import conf.switches.Switches @import common.LinkTo @import fragments.commercial.adSlot @defining(Some(section).filter{ section => section.nonEmpty && !section.equals("global")}.map{ section => s"/most-read/$section" }.getOrElse("/most-read")){ url =>

@defining(Switches.ExtendedMostPopular.isSwitchedOn){ isExtended =>

@adSlot( "mostpop", Seq("container-inline"), Map(), optId = None, optClassNames = None ){ }

}

}