@using DR.Web.UI.Helpers @using DR.Web.UI.Model @using DR.Web.UI.ViewConfig @model IEnumerable @if (Model != null && Model.Any()) { var combineLayoutItems = Model.TakeAs( a => Html.ToCombine(a, 8, new ItemViewConf {HeadingSize = 7, ImageCompensationAddTeaser = true, Classname = "top-story"}), a => Html.ToCombine(a, 8, new ItemViewConf {HeadingSize = 4, ImageSpan = 3, ImageCompensationAddTeaser = true, Classname = "top-story"}), a => Html.ToCombine(a, 4, new ItemViewConf {HeadingSize = 3, ShowText = false, ImageCompensationAddTeaser = true, Classname = "top-story"}), a => Html.ToCombine(a, 4, new ItemViewConf {HeadingSize = 3, ShowText = false, ImageCompensationAddTeaser = true, Classname = "top-story"}), a => Html.ToCombine(a, 8, new ItemViewConf {HeadingSize = 4, ImageSpan = 3, ImageCompensationAddTeaser = true, Classname = "top-story"}) ); @Html.Row( Html.Column( 8, Html.Section( new SectionViewConf { Headline = "Nyhedstop", ShowHeading = false, Boxed = true, ClassName = "container-white" }, Html.CombineLayout( CombineLayoutStyle.Ol, new CombineLayoutSection() { Items = combineLayoutItems, SpanWidth = 8 } ) ) ), Html.Column( 4, //Html.Partial("spot-nedtaelling"), //Html.Partial("spot-valg2015"), //Html.Partial("spot-resultattilmelding"), Html.PartialWithViewData( "list", ViewContext.RouteData.Values["LatestNews"], new ListViewConf { Headline = (string) ViewContext.RouteData.Values["SiteName"], SubHeadline = "seneste nyt", Boxed = true, ClassName = "container-blue a", ReadMoreLink = (ViewContext.RouteData.Values["SitePath"] == null || ViewContext.RouteData.Values["SitePath"] == "") ? null : new Link { Url = "/nyheder/allenyheder/politik/valg2016", LinkText = "Se alle artikler fra " + (string) ViewContext.RouteData.Values["SiteName"] }, ItemConfig = new ListItemViewConf { IconType = "link", HeadingSize = 2 } } ), //Html.Partial("spot-drdinstemme"), @*Html.Partial("spot-plakatgenerator"),*@ @*Html.Partial("spot-vaelgervandring"),*@ Html.Partial("MagazineZones/newsletter") ) ) }