Exception in template (Designs/ncnielsen/_parsed/used-machine.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.fecefdaeacefbf.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@using Gotcha.NCNielsen.API; @using Gotcha.NCNielsen.Business; <!DOCTYPE html><html lang='@GetString("LongLang")'> @{ string istouch = "False"; if (GetGlobalValue("Global:Device.IsTablet").ToString() == "True" || @GetGlobalValue("Global:Device.IsMobile").ToString() == "True") { istouch = "True"; } string templateName = GetGlobalValue("Global:Pageview.LayoutTemplate").Replace("test.","").Replace(".cshtml", "").Replace(".html", "").Replace(".", ""); string UMID = "-1"; string productID = "-1"; if (System.Web.HttpContext.Current.Request.QueryString["UMID"] != null) { UMID = System.Web.HttpContext.Current.Request.QueryString["UMID"]; } if (System.Web.HttpContext.Current.Request.QueryString["ProductID"] != null) { productID = System.Web.HttpContext.Current.Request.QueryString["ProductID"]; } string language = "dan"; if (Pageview.Area.ID == 3) { language = "enu"; } ProductModel productModel = ProductFacade.GetProductModel(UMID, language); string pdfDownloadLink = System.Web.HttpContext.Current.Request.Url.PathAndQuery; if (pdfDownloadLink.Contains("?")) { pdfDownloadLink += "&"; } else { pdfDownloadLink += "?"; } if (UMID != "-1" && productModel.HasProduct) { pdfDownloadLink += "layoutTemplate=pdf-used-machine.cshtml&pdf=true&filename=" + productModel.Product.Name.ToLower().Replace(" ","_").Replace("/","-") + ".pdf"; } else if (productID != "-1") { Dynamicweb.Ecommerce.Products.ProductService ps = new Dynamicweb.Ecommerce.Products.ProductService(); Dynamicweb.Ecommerce.Products.Product p = ps.GetProductById(productID,"",true); pdfDownloadLink += "layoutTemplate=pdf-used-machine.cshtml&pdf=true&filename=" + p.Name.ToLower().Replace(" ","_").Replace("/","-") + ".pdf"; } } <head><meta charset='@GetString("CharSet")'><title>@GetValue("Title")</title> @if (System.Web.HttpContext.Current.Request.Url.Host.Contains(".by.gotcha.dk")) { <meta name="robots" content="noindex,nofollow"> } <meta name="viewport" content="width=device-width, initial-scale=1.0"> @GetString("MetaTags") @if (System.Web.HttpContext.Current.Request.Cookies["ncnielsen-styles"] != null || System.Web.HttpContext.Current.Request.QueryString["oldschoolcss"] != null) { <link rel="stylesheet" href="/Files/Templates/Designs/ncnielsen/css/ncnielsen.min.css" id="style1" media="screen"> } else { if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/css/" + templateName + ".critical.css"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/css/" + templateName + ".critical.css"))</text> } else { <link rel="stylesheet" href="/Files/Templates/Designs/ncnielsen/css/ncnielsen.min.css" id="style2" media="screen"> } } <link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/35C9D3_0_0.woff2" as="font" type="font/woff2" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/35C9D3_0_0.woff" as="font" type="font/woff" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/35C9D3_1_0.woff2" as="font" type="font/woff2" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/35C9D3_1_0.woff" as="font" type="font/woff" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/24cac6da-66aa-48cc-b950-fcadf2b76ec5.woff2" as="font" type="font/woff2" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/bd659a5c-378a-4055-80a1-69bc94044bac.woff" as="font" type="font/woff" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/4e27b36d-615c-41eb-baf6-a3095eb585f5.woff2" as="font" type="font/woff2" crossorigin=""><link rel="preload" href="/Files/Templates/Designs/ncnielsen/fonts/9805cfa5-519d-4bfb-82af-f6e07c275f94.woff" as="font" type="font/woff" crossorigin=""> @RenderSnippet("csstop") @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID"))) { <script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.Google_Tag_Manager_ID")'); </script> } </head><body data-is-touch="@istouch" data-is-mobile='@GetGlobalValue("Global:Device.IsMobile")' data-is-tablet='@GetGlobalValue("Global:Device.IsTablet")' data-is-desktop='@GetGlobalValue("Global:Device.IsDesktop")' data-is-ios='@GetGlobalValue("Global:Device.IsIOS")' class='preload page-template-@templateName'> @if (!string.IsNullOrEmpty(GetString("Item.Area.Google_Tag_Manager_ID"))) { <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.Google_Tag_Manager_ID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> } <div id="pageWrap"><nav id="navigation"><a href="/" id="logo"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/nc_nielsen_logo.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/nc_nielsen_logo.svg"))</text> } </a>@GetValue("DwNavigation(primaryNavigation)")<a id="burger"><span class="icon icon-burger"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-burger.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-burger.svg"))</text> } </span></a> @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Order.OrderLines.Count"))) { <span class="cart mobile-cart"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-cart.svg"))) { <span class="icon icon-cart">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-cart.svg"))</span> } <span class="cart-count"> @GetString("Ecom:Order.OrderLines.Count") </span></a></span> } <ul id="secondaryNavigation"> @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Order.OrderLines.Count"))) { <li class="cart"><a> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-cart.svg"))) { <span class="icon icon-cart">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-cart.svg"))</span> } <span class="cart-count"> @GetString("Ecom:Order.OrderLines.Count") </span></a></li> } <li><a data-modal-trigger="modalLanguages"> @foreach (var wl in GetLoop("WebsiteLanguages")) { if (wl.GetBoolean("IsCurrent")) { <text>@Translate("Translate_Language_selector_" + wl.GetString("Culture") + "_short")</text> } } </a></li><li><a href='/Default.aspx?ID=@GetString("Item.Area.LoginPageId")'> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-lock.svg"))) { <span class="icon icon-lock">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-lock.svg"))</span> } </a></li><li><a data-modal-trigger="modalSearch"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-search.svg"))) { <span class="icon icon-search">@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-search.svg"))</span> } </a></li></ul><div id="burgerNavigation"><span class="icon icon-close"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg"))) { <text>@System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg"))</text> } </span>@GetValue("DwNavigation(burgerNav)")<div class="social"><span class="header">@Translate("Translate_Foelg_os")</span> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-facebook.svg")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.Facebook"))) { <a href='@GetString("Item.Area.Facebook")' class="icon icon-facebook" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-facebook.svg")) </a> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-linkedin.svg")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.LinkedIn"))) { <a href='@GetString("Item.Area.LinkedIn")' class="icon icon-linkedin" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-linkedin.svg")) </a> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-youtube.svg")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.YouTube"))) { <a href='@GetString("Item.Area.YouTube")' class="icon icon-youtube" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-youtube.svg")) </a> } </div><div id="burgerBottom"> @if (Pageview.Area.ID == 1) { string burgerLoginHref = "/Default.aspx?ID=" + GetString("Item.Area.LoginPageId"); <a href="@burgerLoginHref"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-lock.svg"))) { <span class="icon icon-lock"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-lock.svg")) </span> } </a> } <a data-modal-trigger="modalSearch"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-search.svg"))) { <span class="icon icon-search"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-search.svg")) </span> } </a><a data-modal-trigger="modalLanguages"><span> @foreach (var wl in GetLoop("WebsiteLanguages")) { if (wl.GetBoolean("IsCurrent")) { <text>@Translate("Translate_Language_selector_" + wl.GetString("Culture") + "_short")</text> } } </span></a></div></div></nav><header id="header"><div id="productGalleryImageMain"> @if (UMID != "-1") { if (productModel.HasProduct) { string approvedValue = productModel.Product.GetSpecificationValue<string>("M-0090550","-"); <h1>@productModel.Product.Name</h1> if (productModel.Product.ImageList.Count() > 1) { <div class="gallery"> @{ int counter = 0; foreach (var img in productModel.Product.ImageList) { if (counter == 0) { <div class="gallery-large"><div class="image js-active"><img src='@img.Value' alt='@img.Key'></div><div class="image second-image"></div> @if (approvedValue != "-") { <span class="approved">@productModel.Product.Make @approvedValue</span> } </div><div class="gallery-small js-active"><img src='@img.Value' alt='@img.Key'></div> } else { <div class="gallery-small"><img src='@img.Value' alt='@img.Key'></div> } counter++; } } </div> } else if (productModel.Product.ImageList.Count() == 1) { foreach (var img in productModel.Product.ImageList) { <div><img src='@img.Value' alt='@img.Key'> @if (approvedValue != "-") { <span class="approved">@productModel.Product.Make @approvedValue</span> } </div> } } else if (productModel.Product.ImageList.Count() == 0) { <div><img src="/Files/Images/ncnielsen/used_machines/used_machines_fallback.jpg" alt=""> @if (approvedValue != "-") { <span class="approved">@productModel.Product.Make @approvedValue</span> } </div> } } else { <h1>@Translate("Translate_Used_machine_not_found")</h1><div><img src="http://placehold.it/690x516?text=@Translate(" translate_used_machine_not_found")"="" alt="No product"></div> } } else { <text>@RenderSnippet("ChosenUsedMachineGallery")</text> } </div><div class="content"> @if (productModel.HasProduct) { <a href="@pdfDownloadLink" target="_blank" id="usedMachineSavePdf"> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-pdf.svg"))) { <span class="icon icon-pdf"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-pdf.svg")) </span> } <span class="text"> @Translate("Translate_Gem_som_PDF") </span></a> } @if (UMID != "-1") { if (productModel.HasProduct) { <div class="specifications"><span class="header">@Translate("Translate_Specifikationer")</span><ul><li class="specification"><span class="label">@Translate("Translate_Intern_nummer")</span><span class="value">@productModel.Product.Id</span></li><li class="specification"><span class="label">@Translate("Translate_Aargang")</span><span class="value">@productModel.Product.Year</span></li> @if (productModel.Product.SpecificationList.Count() > 10) { for (var a = 0; a < 10; a++) { <li class="specification"><span class="label">@productModel.Product.SpecificationList[a].Label</span><span class="value">@productModel.Product.SpecificationList[a].Value</span></li> } } else { foreach (var spec in productModel.Product.SpecificationList) { <li class="specification"><span class="label">@spec.Label</span><span class="value">@spec.Value</span></li> } } </ul> @if (productModel.Product.SpecificationList.Count() > 10) { <div><a id="allSpecificationsLink" class="button button-inline">@Translate("Translate_Se_alle_specifikationer")</a></div> } <a id="usedMachineRequestButton" class="button button-primary"><span class="text">@Translate("Translate_Prisforespoergsel")</span></a><a href='tel:@Translate("Translate_Brugte_maskiner_kontakt_telefonnr")' class="button button-secondary"><span class="text">@Translate("Translate_Kontakt_os_paa")</span></a></div><div id="usedMachinesRequestForm"> @{ int formParagraphID = -1; try { formParagraphID = Convert.ToInt32(Pageview.Area.Item["UsedMachinesRequestParagraph"]); } catch { } if (formParagraphID != -1) { <text>@RenderParagraphContent(formParagraphID)</text> } } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg"))) { <span class="icon icon-close"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg")) </span> } </div> } else { <div class="specifications"></div> } } else { <text>@RenderSnippet("ChosenUsedMachineHeaderSpecifications")</text><div id="usedMachinesRequestForm"> @{ int formParagraphID = -1; try { formParagraphID = Convert.ToInt32(Pageview.Area.Item["UsedMachinesRequestParagraph"]); } catch { } if (formParagraphID != -1) { <text>@RenderParagraphContent(formParagraphID)</text> } } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg"))) { <span class="icon icon-close"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg")) </span> } </div> } <div class="social"><span class="header">Følg os</span> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-facebook.svg")) && !string.IsNullOrWhiteSpace(Pageview.Area.Item["Facebook"].ToString())) { <a href='@Pageview.Area.Item["Facebook"]' class="icon icon-facebook" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-facebook.svg")) </a> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-linkedin.svg")) && !string.IsNullOrWhiteSpace(Pageview.Area.Item["LinkedIn"].ToString())) { <a href='@Pageview.Area.Item["LinkedIn"]' class="icon icon-linkedin" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-linkedin.svg")) </a> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-youtube.svg")) && !string.IsNullOrWhiteSpace(Pageview.Area.Item["YouTube"].ToString())) { <a href='@Pageview.Area.Item["YouTube"]' class="icon icon-youtube" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-youtube.svg")) </a> } </div></div></header> @if (UMID != "-1") { if (productModel.HasProduct) { if (productModel.Product.SpecificationList.Count() > 10) { <section id="allSpecifications" class="section section-white"><div class="content"><div class="specifications"><h2>@Translate("Translate_Alle_specifikationer")</h2><ul><li class="specification"><span class="label">@Translate("Translate_Intern_nummer")</span><span class="value">@productModel.Product.Id</span></li><li class="specification"><span class="label">@Translate("Translate_Aargang")</span><span class="value">@productModel.Product.Year</span></li> @foreach (var spec in productModel.Product.SpecificationList) { <li class="specification"><span class="label">@spec.Label</span><span class="value">@spec.Value</span></li> } </ul></div></div></section> } } string templatename = GetGlobalValue("Global:Pageview.LayoutTemplate").Replace(".cshtml","").ToLower(); if (templatename == "pdf-used-machine") { double dHalfWay = Convert.ToDouble(productModel.Product.SpecificationList.Count() - 2) / 2; int halfWay = (int)Math.Ceiling(dHalfWay); halfWay = halfWay; <section id="pdfSpecifications" class="section section-white"><div class="content"><div class="specifications"><ul><li class="specification"><span class="label">@Translate("Translate_Intern_nummer")</span><span class="value">@productModel.Product.Id</span></li><li class="specification"><span class="label">@Translate("Translate_Aargang")</span><span class="value">@productModel.Product.Year</span></li> @for (int a = 0; a < halfWay; a++) { <li class="specification"><span class="label">@productModel.Product.SpecificationList[a].Label</span><span class="value">@productModel.Product.SpecificationList[a].Value</span></li> } </ul><ul> @for (int a = halfWay; a < productModel.Product.SpecificationList.Count(); a++) { <li class="specification"><span class="label">@productModel.Product.SpecificationList[a].Label</span><span class="value">@productModel.Product.SpecificationList[a].Value</span></li> } </ul></div></div></section> } } else { <text>@RenderSnippet("UsedMachineAllSpecifications")</text> } <div id="ecomContent">@GetValue("DwContent(ecomContent)")</div> @ContentPlaceholder() @RenderSnippet("UsedMachineBeforeFooter") <footer id="footer" class="section section-greyextradark"><div class="content"><nav id="footerNavigation"><span class="header">Menu</span>@GetValue("DwNavigation(footerNav)")</nav> @foreach (var departmentItem in GetLoop("Item.Area.Departments")) { @SnippetStart("ContactHeaderDepartments") <li class="department"><h2>@departmentItem.GetString("Item.Area.Departments.Header")</h2><ul class="infoList"><li class="info"> @departmentItem.GetString("Item.Area.Departments.Name") <br> @departmentItem.GetString("Item.Area.Departments.Address") <br> @departmentItem.GetString("Item.Area.Departments.Zipcode") @departmentItem.GetString("Item.Area.Departments.City") </li><li class="info"> Tlf.: <a href='tel:@departmentItem.GetString("Item.Area.Departments.Phone")'>@departmentItem.GetString("Item.Area.Departments.Phone")</a><br><a href='mailto:@departmentItem.GetString("Item.Area.Departments.Email")'>@departmentItem.GetString("Item.Area.Departments.Email")</a></li></ul></li> @SnippetEnd("ContactHeaderDepartments") <div id="@departmentItem.GetString(" item.area.departments.id_1")"=""><span class="header">@departmentItem.GetString("Item.Area.Departments.Header")</span><p> @departmentItem.GetString("Item.Area.Departments.Name") <br> @departmentItem.GetString("Item.Area.Departments.Address") <br> @departmentItem.GetString("Item.Area.Departments.Zipcode") @departmentItem.GetString("Item.Area.Departments.City") <br> @departmentItem.GetString("Item.Area.Departments.Phone") </p></div> } </div><div class="content"><div class="social"><span class="header">@Translate("Translate_Foelg_os")</span> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-facebook.svg")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.Facebook"))) { <a href='@GetString("Item.Area.Facebook")' class="icon icon-facebook" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-facebook.svg")) </a> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-linkedin.svg")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.LinkedIn"))) { <a href='@GetString("Item.Area.LinkedIn")' class="icon icon-linkedin" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-linkedin.svg")) </a> } @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-youtube.svg")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.YouTube"))) { <a href='@GetString("Item.Area.YouTube")' class="icon icon-youtube" target="_blank"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-youtube.svg")) </a> } </div></div></footer> @if (GetGlobalValue("Global:CookieOptInLevel").ToString().ToLower() != "all") { <div id="cookieBar"><div class="content"><span class="text">@GetString("Item.Area.CookieBarText")</span><span id="cookieButton">@GetString("Item.Area.CookieBarOkText")</span><a href='/@GetString("Item.Area.CookieBarReadMoreLink.Link")' title='@GetString("Item.Area.CookieBarReadMoreLink.LinkTitle")'>@GetString("Item.Area.CookieBarReadMoreLink.LinkText")</a></div></div> } </div><div id="pageOverlay"></div><div id="modalOverlay"></div><div id="modalSearch" class="modal"><div class="modal-content-wrap"><div class="content"><form method="get" action='/Default.aspx?Id=@GetString("Item.Area.SearchPageId")'><div class="input-wrap input-wrap-large"><input type="hidden" name="id" value='@GetString("Item.Area.SearchPageId")'><input type="text" name="q" placeholder='@Translate("Translate_Soeg_Placeholder")'><button type="submit" class="button button-primary"><span class="text">@Translate("Translate_Soeg")</span></button></div></form></div> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg"))) { <span class="icon icon-close button-close"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg")) </span> } </div></div><div id="modalLanguages" class="modal"><div class="modal-content-wrap"><div class="content"> @foreach (var wl in GetLoop("WebsiteLanguages")) { if (wl.GetBoolean("IsCurrent")) { <span class="language-current"> @Translate("Translate_Language_selector_" + wl.GetString("Culture")) </span> } else if (!string.IsNullOrWhiteSpace(wl.GetString("PrimaryDomain"))) { string languageURL = "https://" + wl.GetString("PrimaryDomain"); @SnippetStart("OtherLanguages") <a class="language-other" href='@languageURL'><span>@Translate("Translate_Language_selector_" + wl.GetString("Culture") + "_short")</span></a> @SnippetEnd("OtherLanguages") } } @RenderSnippet("OtherLanguages") </div> @if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg"))) { <span class="icon icon-close button-close"> @System.IO.File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("/files/templates/designs/ncnielsen/images/icon-close.svg")) </span> } </div></div> @RenderSnippet("contentbottom") <script src="/Files/Templates/Designs/ncnielsen/js/ncnielsen.min.js" async="" defer=""></script> @if (System.Web.HttpContext.Current.Request.Cookies["ncnielsen-styles"] == null) { System.Web.HttpContext.Current.Response.Cookies["ncnielsen-styles"].Value = "1"; System.Web.HttpContext.Current.Response.Cookies["ncnielsen-styles"].Expires = DateTime.Now.AddDays(100); <noscript id="deferred-styles"><link rel="stylesheet" href="/files/templates/designs/ncnielsen/css/ncnielsen.min.css" media="screen"></noscript><script> var loadDeferredStyles = function() { var addStylesNode = document.getElementById("deferred-styles"); var replacement = document.createElement("div"); replacement.innerHTML = addStylesNode.textContent; document.body.appendChild(replacement) addStylesNode.parentElement.removeChild(addStylesNode); }; var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame; if (raf) raf(function() { window.setTimeout(loadDeferredStyles, 0); }); else window.addEventListener('load', loadDeferredStyles); </script> } </body></html>