@using DR.Web.UI.Helpers @using DR.Web.UI.ViewConfig @model DR.AcCommonUI.Models.LivePage.LivePageViewModel @{ var largeWideAspectImageUrl = Model.Article.LargeWideAspectImage != null ? Model.Article.LargeWideAspectImage.ImageUrl : string.Empty; } @if (Model.LivePageConfiguration.PlayerConfiguration.Any()) { var first = Model.LivePageConfiguration.PlayerConfiguration.First(); var firstImageUrl = first.PlayerImage != null ? first.PlayerImage.ImageUrl : string.Empty; var activeClass = MvcHtmlString.Empty; string isBoxed = (Model.Article.isBackdrop && Model.LivePageConfiguration.PlayerEnabled) ? "boxed" : ""; if (Model.LivePageConfiguration.PlayerEnabled) {
@{ foreach (var channel in Model.LivePageConfiguration.PlayerConfiguration) { activeClass = channel == first ? new MvcHtmlString(" class=\"active\"") : MvcHtmlString.Empty; var imageUrl = channel.PlayerImage != null ? channel.PlayerImage.ImageUrl : string.Empty; string playerSlug = ""; if (channel.PlayerSlug.Contains("video#")) { playerSlug = channel.PlayerSlug.Replace("video#", ""); } if (channel.PlayerSlug.Contains("audio#")) { playerSlug = channel.PlayerSlug.Replace("audio#", ""); } @channel.PlayerHeadline } }
@* Media player will be here *@

@* PlayerHeadline *@

@* PlayerText *@

} // if .PlayerEnabled else { if (!string.IsNullOrEmpty(firstImageUrl)) {
} } }