Exception in template (Designs/Masentia2018/_parsed/index.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.fdfccbababae.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()
@inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb; @using Dynamicweb.Rendering; @using System.Web @using Dynamicweb.Content @using System.IO @{ var requestHost = GetGlobalValue("Global:Request.Host"); var pageViewUrl = GetGlobalValue("Global:Pageview.Url"); var areaID = Int32.Parse(GetGlobalValue("Global:Area.ID")); var metaDesc = GetValue("Meta.Description"); var pageTitle = GetValue("Title"); var longLang = "/" + GetValue("LongLang").ToString().ToLower(); var shortLang = GetValue("LongLang").ToString().Substring(0, 2).ToLower(); //var siteNameOG = Translate("openGraphName", "Masentia"); //var extranetGroups = this.Pageview.User.Groups; //var DwAreaLang = GetGlobalValue("Global:Area.Lang"); //var pageName = GetGlobalValue("Global:Page.Name").ToLower(); } <!doctype html> <html lang="@shortLang"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"> <meta name="google-site-verification" content="fy7hs6lqOG2KuhAutO-CDxidTQtQkDqc-nlTJQH5F0c"> <!-- Google Tag Manager --> <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','GTM-MLM523D'); </script> <!-- End Google Tag Manager --> <link rel="apple-touch-icon" sizes="57x57" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/Files/Templates/Designs/Masentia2018/favicon/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="/Files/Templates/Designs/Masentia2018/favicon/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="/Files/Templates/Designs/Masentia2018/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/Files/Templates/Designs/Masentia2018/favicon/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="/Files/Templates/Designs/Masentia2018/favicon/favicon-16x16.png"> <link rel="manifest" href="/Files/Templates/Designs/Masentia2018/favicon/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/favicon/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> <meta charset="utf-8"> <meta name="google-site-verification" content="fy7hs6lqOG2KuhAutO-CDxidTQtQkDqc-nlTJQH5F0c"> <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta property="og:title" content="@pageTitle"> <meta property="og:url" content="https://@requestHost@pageViewUrl"> <meta property="og:site_name" content="@GetValue(" dwareaname")"=""> <!-- Google Analytics --> <script> window.ga=window.ga||function(){(ga.q=ga.q|| []).push(arguments)};ga.l=+new Date; ga('create', '@Translate("googleAnalytics", "UA-49309276-1")', 'auto'); ga('send', 'pageview'); </script> <script async='async' defer='defer' src='https://www.google-analytics.com/analytics.js'> </script> <!-- End Google Analytics --> @{ var strFilePath = "/Files/Templates/Designs/Masentia2018/dist/css/main.css"; DateTime lastModified = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath(strFilePath)); var lastModifiedStr = lastModified.ToString(); lastModifiedStr = lastModifiedStr.Replace(" ", "").Replace("-", "").Replace(":", ""); } <link rel="stylesheet" href="/Files/Templates/Designs/Masentia2018/./dist/css/main.css?v=@lastModifiedStr"> <style> body { opacity: 0; transition: opacity 1s; -webkit-transition: opacity 1s; /* Safari */ } </style> @GetValue("Stylesheets") @GetValue("Javascripts") </head> <body> <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MLM523D" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> <div class="mobile-nav-wrapper"> @GetValue("DwNavigation(mobilenav)") </div> <header class="row header"> @if (GetString("DwAreaID") != "11") { <div class="header--top"> <div class="container"> @GetValue("DwNavigation(secnavnav)") </div> </div> } </header> @{ if (longLang == "/da-dk") { longLang = "/"; } } <div class="header--main"> <div class="container"> <div class="header__logo"> <a href="@longLang"> <svg viewbox="0 0 664 133"><g fill="none"><path fill="#262626" d="M156 33.08h7.59l24.21 36.25L212 33.08h7.59v66.44h-7.49V45.7l-24.21 35.59h-.38l-24.2-35.49v53.72H156z"></path><path fill="#414241" d="M263 32.6h7l30.28 66.92h-8.08L284.42 82h-36.16l-7.88 17.56h-7.69L263 32.6zm18.51 42.62l-15.09-33.89-15.22 33.89h30.31zM336.25 100.47a39.23 39.23 0 0 1-14.57-2.61 41.77 41.77 0 0 1-12.58-8l4.65-5.51a39 39 0 0 0 10.54 7.07 30.27 30.27 0 0 0 12.24 2.33c4.493 0 8.083-1.06 10.77-3.18a9.91 9.91 0 0 0 4-8.12v-.19a10.87 10.87 0 0 0-.76-4.12 8.46 8.46 0 0 0-2.67-3.37 19 19 0 0 0-5.28-2.76 68.105 68.105 0 0 0-8.61-2.37 68 68 0 0 1-9.94-2.85 24.529 24.529 0 0 1-7-3.89 14.46 14.46 0 0 1-4.09-5.31 17.77 17.77 0 0 1-1.33-7.12v-.19a16.26 16.26 0 0 1 1.62-7.22 17.001 17.001 0 0 1 4.55-5.74 22.272 22.272 0 0 1 6.93-3.8 26.82 26.82 0 0 1 8.73-1.37 36.44 36.44 0 0 1 12.77 2 38.89 38.89 0 0 1 10.58 6.12l-4.36 5.79a32.39 32.39 0 0 0-9.35-5.5 28.55 28.55 0 0 0-9.83-1.71c-4.36 0-7.807 1.027-10.34 3.08a9.5 9.5 0 0 0-3.8 7.64v.19a11 11 0 0 0 .76 4.23 8.55 8.55 0 0 0 2.75 3.41 19.92 19.92 0 0 0 5.51 2.85 66.556 66.556 0 0 0 9 2.42c7.413 1.653 12.873 3.933 16.38 6.84s5.26 6.89 5.26 11.95v.19a17.51 17.51 0 0 1-1.68 7.74 17.821 17.821 0 0 1-4.65 5.93 20.998 20.998 0 0 1-7.14 3.8 30.16 30.16 0 0 1-9.06 1.35zM374.12 33.08h48v6.74h-40.51v22.87h36.26v6.74h-36.26v23.35h41v6.74h-48.5zM437.71 33.08h7l41.86 53.25V33.08h7.31v66.44h-6L445 45v54.48h-7.31zM530.25 40H508v-6.93h52.11V40h-22.36v59.51h-7.5zM574.86 33.08h7.5v66.44h-7.5zM626.4 32.6h7l30.28 66.92h-8.07L647.85 82h-36.16l-7.88 17.56h-7.69L626.4 32.6zm18.51 42.62l-15.09-33.89-15.19 33.89h30.28zM115.16 98.39V32.18L57.87 0 0 33.08v67.3l57 32.41 58.12-33v-.5l.04-.9zm-3.7-66.32l-18.94.12a47.168 47.168 0 0 0-20.94-12.41c-.49-.15-1-.29-1.48-.42l-.81-.2-9.38-15.74 51.55 28.65zM68.84 100.4l-22.16 11.71-.73-.18-.75-.19-.9-.26-.73-.22-.89-.26-.73-.24c-.3-.1-.59-.22-.88-.33l-.71-.26-.88-.36-.69-.29-.88-.4-.66-.3-1-.49-.54-.27c-.49-.26-1-.53-1.47-.81l-.42-.25-1-.62-.58-.38c-.28-.18-.56-.35-.84-.54l-.59-.42c-.27-.18-.54-.36-.8-.55l-.6-.46-.75-.57-.59-.48c-.25-.2-.49-.39-.73-.6s-.39-.33-.58-.5l-.71-.62-.56-.53-.69-.65-.54-.54-.52-.54V75.54l2.42 4.19 11.93 20.66h30.73l.02.01zm4.29 0h3.22l9.52-15.94.41-.7.16-.26 1.17-2 .87-1.45 2.81-4.7V99l-.51.53-.57.57-.68.65-.59.55-.7.61c-.2.18-.4.36-.61.53s-.47.39-.71.58l-.63.51-.73.55-.65.49-.75.53-.67.45-.76.5-.69.44-.77.46-.71.41-.79.43-.72.39-.81.4c-.24.12-.48.25-.73.36l-.83.38-.74.33-.85.35-.74.3-.89.32-.73.27-.94.3-.71.23-1.08.3-.59.17-1.69.41c-.79.17-1.6.33-2.4.46l-.74.11c-.57.08-1.14.17-1.71.23l-.85.08c-.54.06-1.09.1-1.63.13h-5.8c-.74 0-1.48-.11-2.21-.19h-.25c-.79-.09-1.57-.21-2.35-.34l23.35-12.38zm17.08-27.14l-1.16 2L86.17 80l-6.73 11.3-4.22 7.07H39.3l-.13-.21-9.05-15.7L28.68 80l-5-8.7-.06-.11.36-.21-.36.21L21.8 68l-.05 28.74c-14.948-17.664-14.714-43.609.55-61l23.13 33.95L56.68 86.2l.88 1.24.78-1.25 11.14-16.72 22.82-34.3c15.709 17.379 16.136 43.7 1 61.58V68.07l-3.09 5.19zM60.46 46.48l-1.78-3.74 10.57-21.55.22.06c.9.23 1.78.49 2.66.78l.39.13c.89.3 1.77.62 2.64 1l.3.13c.89.37 1.77.76 2.63 1.18l.19.09a47.2 47.2 0 0 1 5.21 3l.17.11c.8.54 1.58 1.1 2.34 1.69l.27.2c.74.58 1.46 1.18 2.17 1.8l.31.27c.69.62 1.36 1.26 2 1.92l.16.16-19.87 29.81-1.3 1.94-9.28-18.98zm8 20.91l-.88 1.33-10.06 15.13-11.08-16.26L57.51 45l2.09 4.27 8.86 18.12zM57.95 39.58l-.43.89-8.29 16.9-4.08 8.32-21.47-31.5.34-.36c.19-.19.38-.39.58-.58l.64-.63.6-.56.66-.6.62-.53c.22-.2.45-.39.68-.57l.63-.52.7-.54.65-.49.72-.52.67-.47.74-.49.68-.44.76-.46c.23-.14.45-.28.69-.41l.78-.44.7-.39.8-.41.71-.36.82-.38c.24-.11.47-.23.71-.33s.57-.24.86-.36l.71-.3.89-.34.7-.26.95-.32.66-.23 1.06-.31.58-.17c.54-.15 1.1-.3 1.65-.43.87-.21 1.74-.38 2.62-.54l.86-.13c.6-.1 1.19-.19 1.78-.26l1-.1c.55-.05 1.1-.11 1.66-.14l1.06-.05h2.7c.54 0 1.07 0 1.6.05l1.1.07 1.57.14 1.13.14 1.52.22 1.15.21.79.17-9.21 18.81zm-.79-36.86l9.52 15.84h-.31l-.94-.15c-.59-.09-1.19-.19-1.79-.26l-1-.1c-.59-.06-1.19-.12-1.78-.16l-1-.05c-.58 0-1.17-.05-1.75-.05h-1l-1.73.05h-1c-.59 0-1.17.1-1.75.16l-1 .1c-.62.07-1.23.17-1.85.27l-.86.13c-.9.16-1.79.34-2.67.55a48.821 48.821 0 0 0-24.19 14h-18l53.1-30.33zM2 35.08h18.18a48.95 48.95 0 0 0-9.5 45.38 49.003 49.003 0 0 0 9.79 17.92H1.97L2 35.08zm2 65.3h18.28l.53.53.58.58.7.67.59.55.74.65.6.53.77.63.6.48c.27.22.55.42.82.62s.4.31.6.45.59.42.89.63.36.26.55.38.69.46 1 .68l.44.28c1 .62 2 1.21 3.06 1.76l.46.23 1.11.56.59.27 1 .46.65.27 1 .41.68.25c.33.12.65.25 1 .36s.47.16.71.24l1 .32.74.22.37.11h-.11l2.2.5 8.68 15.2L4 100.38zm53.68 29.71l-8.88-15.42v-.07h.27c.32.06.65.1 1 .15.53.08 1.06.16 1.59.22s.76.08 1.14.12.94.09 1.41.12l1.27.07H59.29c.38 0 .93 0 1.39-.06l1.23-.1 1.29-.13c.49-.05 1-.13 1.48-.2.34 0 .69-.09 1-.15.84-.14 1.67-.3 2.5-.48.59-.13 1.18-.28 1.76-.43l.65-.18 1.09-.31.72-.23 1-.32.76-.27.93-.35c.26-.09.51-.2.77-.31s.6-.23.89-.36.52-.23.78-.35.58-.25.86-.39l.77-.38.83-.41c.26-.13.52-.28.78-.42l.8-.43.76-.45.78-.46.75-.48.76-.49.73-.51c.25-.17.5-.34.74-.52l.72-.53.72-.55c.24-.18.47-.38.71-.57l.69-.56.69-.6.67-.59.68-.63.36-.34v.1l1.42-1.51h17.4l-52.47 29.76zM94.5 98.38c15.953-18.499 15.748-45.951-.48-64.21h19.07v64.21H94.5z"></path></g></svg> </a> </div> @if (GetString("DwAreaID") != "11") { <div class="header__nav"> @GetValue("DwNavigation(mainnav)") </div> } @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName"))) { <div class="header__basket"> @if (Pageview.AreaID == 2) { <a href="/Default.aspx?ID=12360"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24"> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path> </svg> <span>@Translate("Kurv")</span> </a> } @if (Pageview.AreaID == 4) { <a href="/Default.aspx?ID=12537"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24"> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path> </svg> <span>@Translate("Kurv")</span> </a> } </div> } <div class="header__languages"> <ul> <li class="dropdown--selector"> @if (Pageview.AreaID == 2) { <div class="shape shape--flag selected" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-danish.svg')"> </div> } @if (Pageview.AreaID == 4) { <div class="shape shape--flag selected" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-swedish.svg')"> </div> } @if (Pageview.AreaID == 11) { <div class="shape shape--flag selected" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-norwegian.svg')"> </div> } @if (Pageview.AreaID == 12) { <div class="shape shape--flag selected" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-finnish.svg')"> </div> } <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24"> <path d="M7 10l5 5 5-5z"></path> </svg> <ul class="languages"> <li class="language--header"> @Translate("Vælg sprog", "Choose language") </li> <li> <a href="/" hreflang="da-dk"> <div class="shape shape--flag" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-danish.svg')"> </div> <span>Dansk</span> </a> </li> <li> <a href="/sv-se" hreflang="sv-se"> <div class="shape shape--flag" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-swedish.svg')"> </div> <span>Svenska</span> </a> </li> <li> <a href="/fi-fi" hreflang="fi-fi"> <div class="shape shape--flag" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-finnish.svg')"> </div> <span>Suomi</span> </a> </li> <li> <a href="/nb-no" hreflang="no-no"> <div class="shape shape--flag" style="background: url('/files/templates/designs/masentia2018/includes/vectors/flags/flag-norwegian.svg')"> </div> <span>Norsk</span> </a> </li> </ul> </li> </ul> </div> </div> </div> @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb; @using Dynamicweb.Rendering; @SnippetStart("topContent") <span class="vignet">@GetValue("Item.Vignette")</span> <h3>@GetValue("Item.Headline")</h3> @SnippetEnd("topContent") <div id="content">@GetValue("DwContent(content)")</div> <div class="row"> @*Contactform*@ @if (Pageview.AreaID == 2) { @RenderParagraphContent(17243) } @if (Pageview.AreaID == 4) { @RenderParagraphContent(17681) } @if (Pageview.AreaID == 12) { @RenderParagraphContent(18110) } </div> @{ var companymailFormatted = "mailto:" + GetString("Item.Area.Mail"); } <footer> @if (GetString("DwAreaID") != "11" && GetString("DwAreaID") != "13") { if (GetString("DwAreaID") == "4") { <div class="footer--newsletter"> @RenderParagraphContent(17749) </div> } <div class="container"> <div class="footer--contact"> <div> <svg height="96" width="84" viewbox="0 0 115.16 132.79"><g data-name="Lag 2"><path fill="#fff" d="M115.16 98.39V32.18L57.87 0 0 33.08v67.3l57 32.41 58.12-33v-.5zm-3.7-66.32l-18.94.12a47.09 47.09 0 0 0-20.93-12.41c-.5-.15-1-.29-1.49-.42l-.8-.2-9.38-15.74zM68.84 100.4l-22.13 11.71-.74-.18-.74-.19-.91-.26-.73-.22-.89-.26-.73-.24-.88-.33-.71-.26-.87-.36-.69-.29-.89-.4-.65-.3-1-.49-.54-.27c-.5-.26-1-.53-1.48-.81l-.42-.25-1-.62c-.2-.12-.39-.25-.58-.38s-.57-.35-.84-.54l-.6-.42-.79-.55-.61-.46-.75-.57-.59-.48c-.24-.2-.49-.39-.73-.6l-.58-.5-.71-.62-.55-.53c-.24-.21-.47-.43-.69-.65l-.54-.54-.53-.54V75.54l2.42 4.19 11.93 20.66h30.77zm4.29 0h3.22l9.52-15.94.42-.7.15-.26 1.17-2 .9-1.5 2.8-4.7V99l-.52.53-.57.57-.68.65-.59.55-.7.61-.6.53-.72.58-.63.51-.73.55-.65.49-.75.53-.66.45-.77.5-.68.44-.78.46-.7.41c-.26.15-.53.29-.8.43l-.71.39-.81.4-.73.36-.84.38-.73.33-.86.35-.74.3-.88.32-.74.27-.94.3-.7.23-1.08.3-.59.17-1.69.41c-.8.17-1.6.33-2.41.46l-.74.11c-.57.08-1.13.17-1.7.23l-.86.08c-.54.06-1.08.1-1.63.13h-5.8c-.74 0-1.47-.11-2.21-.19h-.25c-.78-.09-1.56-.21-2.34-.34zm17.09-27.15l-1.17 2L86.17 80l-6.72 11.3-4.23 7.07H39.3l-.12-.21-9-15.7L28.71 80l-5-8.7-.06-.11L24 71l-.36.21L21.81 68v28.74A46.82 46.82 0 0 1 13 51.94a46.45 46.45 0 0 1 9.28-16.23l23.15 33.95L56.7 86.2l.88 1.24.78-1.25 11.12-16.72 22.82-34.3a46.79 46.79 0 0 1 1 61.58V68.07zM60.46 46.48l-1.83-3.74L69.2 21.19l.22.06q1.35.34 2.67.78l.39.13c.88.3 1.76.62 2.63 1l.31.13c.89.37 1.76.76 2.63 1.18l.18.09a47.2 47.2 0 0 1 5.21 3l.18.11c.79.54 1.57 1.1 2.34 1.69l.27.2q1.11.87 2.16 1.8l.31.27c.69.62 1.37 1.26 2 1.92l.17.16L71 63.52l-1.29 1.94zm8 20.91l-.89 1.33-10.05 15.13-11.07-16.26L57.52 45l2.09 4.27zM58 39.58l-.44.89-8.29 16.9-4.08 8.32-21.5-31.5.34-.36.58-.58.65-.63.59-.56.67-.6c.2-.18.4-.36.61-.53l.68-.57.64-.52.7-.54c.21-.17.43-.33.65-.49l.72-.52.66-.47c.25-.16.5-.32.74-.49l.68-.44.76-.46.69-.41.78-.44.7-.39.8-.41.71-.36.82-.38.72-.33c.28-.13.56-.24.85-.36l.71-.3.89-.34.7-.26 1-.32.66-.23 1.07-.31.57-.17c.55-.15 1.1-.3 1.66-.43.86-.21 1.73-.38 2.61-.54l.87-.13c.59-.1 1.18-.19 1.78-.26l1-.1c.55-.05 1.1-.11 1.65-.14l1.06-.05h2.71c.53 0 1.07 0 1.6.05l1.1.07 1.57.14 1.12.14 1.52.22 1.15.21.8.17zm-.83-36.86l9.46 15.84h-.31l-.93-.15c-.6-.09-1.2-.19-1.8-.26l-1-.1c-.59-.06-1.18-.12-1.78-.16l-1-.05c-.59 0-1.17-.05-1.76-.05h-1l-1.74.05h-1c-.58 0-1.16.1-1.74.16l-1 .1c-.61.07-1.23.17-1.84.27l-.87.13c-.89.16-1.78.34-2.67.55A48.93 48.93 0 0 0 22 33.08H4zM2 35.08h18.19a48.5 48.5 0 0 0-9.07 16.24 48.82 48.82 0 0 0 9.39 47.06H2zm2.05 65.3h18.27l.53.53c.19.19.38.39.58.58l.7.67.6.55.73.65.6.53.78.63.6.48c.27.22.54.42.82.62s.39.31.59.45.59.42.89.63l.55.38c.35.24.7.46 1.05.68l.43.28c1 .62 2 1.21 3.06 1.76l.46.23 1.12.56.58.27 1 .46.65.27 1 .41.69.25c.32.12.64.25 1 .36s.48.16.72.24l1 .32.74.22.37.11h-.1l2.19.5 8.68 15.2zm53.67 29.71l-8.88-15.42v-.07h.27l1 .15c.53.08 1.05.16 1.58.22.38 0 .76.08 1.14.12s.95.09 1.42.12l1.26.07h3.82c.39 0 .92 0 1.38-.06l1.24-.1 1.28-.13c.5-.05 1-.13 1.48-.2.34 0 .69-.09 1-.15.84-.14 1.67-.3 2.5-.48.59-.13 1.18-.28 1.76-.43l.65-.18 1.09-.31.73-.23 1-.32.75-.27.94-.35c.26-.09.51-.2.76-.31l.9-.36.77-.35c.29-.13.58-.25.86-.39l.78-.38.83-.41c.26-.13.51-.28.77-.42s.54-.28.8-.43l.77-.45c.26-.15.52-.3.77-.46l.75-.48.76-.49.74-.51.73-.52c.25-.17.49-.35.73-.53s.48-.36.71-.55.47-.38.71-.57l.69-.56.7-.6.66-.59.68-.63.36-.34v.1l1.42-1.51h17.4zm36.82-31.71a48.7 48.7 0 0 0-.48-64.21h19.08v64.21z" data-name="Layer 1"></path></g></svg> </div> <div> <p class="titel">@GetString("Item.Area.Firmanavn.Value")</p> <ul> <li>@GetString("Item.Area.Adresse")</li> <li>@GetString("Item.Area.Postnr") @GetString("Item.Area.By")</li> <li> <a href="@companymailFormatted">@GetString("Item.Area.Mail")</a> </li> </ul> </div> </div> <div class="footer--links--wrapper"> @{ //var areaID = Pageview.AreaID; int productsID = Int32.Parse(Translate("13056", "13056")); int branchID = Int32.Parse(Translate("13085", "13085")); int educationID = Int32.Parse(Translate("12596", "12596")); int serviceID = Int32.Parse(Translate("12595", "12595")); var productsName = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(productsID).GetDisplayName(); var branchesName = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(branchID).GetDisplayName(); var educationName = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(educationID).GetDisplayName(); var serviceName = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(serviceID).GetDisplayName(); } <div class="scroll--wrapper"> <div> @if (areaID != 12 && areaID != 11) { <ul class="footer-links__titel"> <li class="footer--link__header"><a href="Default.aspx?ID=@productsID">@productsName</a></li> </ul> } @if (areaID == 2) { @GetValue("DwNavigation(footernav1)") } else if (areaID == 4) { @GetValue("DwNavigation(footernav1se)") } </div> <div> @if (areaID != 12 && areaID != 11) { <ul class="footer-links__titel"> <li class="footer--link__header"><a href="Default.aspx?ID=@branchID">@branchesName</a></li> </ul> } @if (areaID == 2) { @GetValue("DwNavigation(footernav2)") } else if (areaID == 4) { @GetValue("DwNavigation(footernav2se)") } </div> <div> @if (areaID != 12 && areaID != 11) { <ul class="footer-links__titel"> <li class="footer--link__header"><a href="Default.aspx?ID=@educationID">@educationName</a></li> </ul>} @if (areaID == 2) { @GetValue("DwNavigation(footernav3)") } else if (areaID == 4) { @GetValue("DwNavigation(footernav3se)") } </div> <div> @if (areaID != 12 && areaID != 11) { <ul class="footer-links__titel"> <li class="footer--link__header"><a href="Default.aspx?ID=@serviceID">@serviceName</a></li> </ul>} @if (areaID == 2) { @GetValue("DwNavigation(footernav4)") } else if (areaID == 4) { @GetValue("DwNavigation(footernav4se)") } </div> </div> </div> <div class="footer--social"> <div class="footer--phone"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24"> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"></path> </svg> <a href="tel:+4563171711">@GetString("Item.Area.Telefon")</a> </div> @{ var facebook = GetString("Item.Area.Facebook"); var linkedin = GetString("Item.Area.Linkedin"); var youtube = GetString("Item.Area.Youtube"); } <div class="social--icons"> <a href="@facebook"> <div class="shape"> <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="8" height="16"><defs><path id="c" d="M13.457 20v-7.2h2.186L16 9.6h-2.543V8.041c0-.823.021-1.641 1.173-1.641h1.166V4.112c0-.034-1.002-.112-2.015-.112-2.117 0-3.442 1.326-3.442 3.76V9.6H8v3.2h2.339V20h3.118z"></path></defs><g fill="none" fill-rule="evenodd" transform="translate(-8 -4)"><path d="M0 0h24v24H0z"></path><use fill="#397897" xlink:href="#c"></use></g></svg> </div> </a> <a href="@linkedin"> <div class="shape"> <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewbox="0 0 14 14"><defs><path id="f" d="M19 19h-2.8v-4.9c0-1.343-.593-2.093-1.656-2.093-1.157 0-1.844.781-1.844 2.094V19H9.9V9.9h2.8v1.023s.879-1.541 2.858-1.541c1.98 0 3.442 1.208 3.442 3.709V19zM6.71 8.445C5.764 8.445 5 7.673 5 6.722 5 5.772 5.765 5 6.71 5c.943 0 1.708.771 1.708 1.722S7.653 8.445 6.71 8.445zM5 19h3.5V9.9H5V19z"></path></defs><g fill="none" fill-rule="evenodd" transform="translate(-5 -5)"><path d="M0 0h24v24H0z"></path><use fill="#397897" xlink:href="#f"></use></g></svg> </div> </a> <a href="@youtube"> <div class="shape"> <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="12" viewbox="0 0 16 12"><defs><path id="g" d="M10.39 13.669v-4.49c1.595.75 2.829 1.475 4.289 2.256-1.204.668-2.694 1.416-4.288 2.234m8.882-6.723c-.275-.362-.744-.644-1.243-.737-1.466-.278-10.613-.279-12.079 0-.4.075-.756.256-1.062.538-1.29 1.197-.885 7.614-.574 8.654.13.45.3.774.512.987.274.282.65.476 1.08.563 1.208.25 7.427.39 12.098.037.43-.075.811-.275 1.112-.569 1.192-1.191 1.11-7.97.156-9.473"></path></defs><g fill="none" fill-rule="evenodd" transform="translate(-4 -6)"><path d="M0 0h24v24H0z"></path><use fill="#397897" xlink:href="#g"></use></g></svg> </div> </a> </div> </div> </div> } <div class="footer--usp"> <p class="footer--usp__title">@GetString("Item.Area.Slogan")</p> <div> <svg height="96" width="84" viewbox="0 0 115.16 132.79"><g data-name="Lag 2"><path fill="#fff" d="M115.16 98.39V32.18L57.87 0 0 33.08v67.3l57 32.41 58.12-33v-.5zm-3.7-66.32l-18.94.12a47.09 47.09 0 0 0-20.93-12.41c-.5-.15-1-.29-1.49-.42l-.8-.2-9.38-15.74zM68.84 100.4l-22.13 11.71-.74-.18-.74-.19-.91-.26-.73-.22-.89-.26-.73-.24-.88-.33-.71-.26-.87-.36-.69-.29-.89-.4-.65-.3-1-.49-.54-.27c-.5-.26-1-.53-1.48-.81l-.42-.25-1-.62c-.2-.12-.39-.25-.58-.38s-.57-.35-.84-.54l-.6-.42-.79-.55-.61-.46-.75-.57-.59-.48c-.24-.2-.49-.39-.73-.6l-.58-.5-.71-.62-.55-.53c-.24-.21-.47-.43-.69-.65l-.54-.54-.53-.54V75.54l2.42 4.19 11.93 20.66h30.77zm4.29 0h3.22l9.52-15.94.42-.7.15-.26 1.17-2 .9-1.5 2.8-4.7V99l-.52.53-.57.57-.68.65-.59.55-.7.61-.6.53-.72.58-.63.51-.73.55-.65.49-.75.53-.66.45-.77.5-.68.44-.78.46-.7.41c-.26.15-.53.29-.8.43l-.71.39-.81.4-.73.36-.84.38-.73.33-.86.35-.74.3-.88.32-.74.27-.94.3-.7.23-1.08.3-.59.17-1.69.41c-.8.17-1.6.33-2.41.46l-.74.11c-.57.08-1.13.17-1.7.23l-.86.08c-.54.06-1.08.1-1.63.13h-5.8c-.74 0-1.47-.11-2.21-.19h-.25c-.78-.09-1.56-.21-2.34-.34zm17.09-27.15l-1.17 2L86.17 80l-6.72 11.3-4.23 7.07H39.3l-.12-.21-9-15.7L28.71 80l-5-8.7-.06-.11L24 71l-.36.21L21.81 68v28.74A46.82 46.82 0 0 1 13 51.94a46.45 46.45 0 0 1 9.28-16.23l23.15 33.95L56.7 86.2l.88 1.24.78-1.25 11.12-16.72 22.82-34.3a46.79 46.79 0 0 1 1 61.58V68.07zM60.46 46.48l-1.83-3.74L69.2 21.19l.22.06q1.35.34 2.67.78l.39.13c.88.3 1.76.62 2.63 1l.31.13c.89.37 1.76.76 2.63 1.18l.18.09a47.2 47.2 0 0 1 5.21 3l.18.11c.79.54 1.57 1.1 2.34 1.69l.27.2q1.11.87 2.16 1.8l.31.27c.69.62 1.37 1.26 2 1.92l.17.16L71 63.52l-1.29 1.94zm8 20.91l-.89 1.33-10.05 15.13-11.07-16.26L57.52 45l2.09 4.27zM58 39.58l-.44.89-8.29 16.9-4.08 8.32-21.5-31.5.34-.36.58-.58.65-.63.59-.56.67-.6c.2-.18.4-.36.61-.53l.68-.57.64-.52.7-.54c.21-.17.43-.33.65-.49l.72-.52.66-.47c.25-.16.5-.32.74-.49l.68-.44.76-.46.69-.41.78-.44.7-.39.8-.41.71-.36.82-.38.72-.33c.28-.13.56-.24.85-.36l.71-.3.89-.34.7-.26 1-.32.66-.23 1.07-.31.57-.17c.55-.15 1.1-.3 1.66-.43.86-.21 1.73-.38 2.61-.54l.87-.13c.59-.1 1.18-.19 1.78-.26l1-.1c.55-.05 1.1-.11 1.65-.14l1.06-.05h2.71c.53 0 1.07 0 1.6.05l1.1.07 1.57.14 1.12.14 1.52.22 1.15.21.8.17zm-.83-36.86l9.46 15.84h-.31l-.93-.15c-.6-.09-1.2-.19-1.8-.26l-1-.1c-.59-.06-1.18-.12-1.78-.16l-1-.05c-.59 0-1.17-.05-1.76-.05h-1l-1.74.05h-1c-.58 0-1.16.1-1.74.16l-1 .1c-.61.07-1.23.17-1.84.27l-.87.13c-.89.16-1.78.34-2.67.55A48.93 48.93 0 0 0 22 33.08H4zM2 35.08h18.19a48.5 48.5 0 0 0-9.07 16.24 48.82 48.82 0 0 0 9.39 47.06H2zm2.05 65.3h18.27l.53.53c.19.19.38.39.58.58l.7.67.6.55.73.65.6.53.78.63.6.48c.27.22.54.42.82.62s.39.31.59.45.59.42.89.63l.55.38c.35.24.7.46 1.05.68l.43.28c1 .62 2 1.21 3.06 1.76l.46.23 1.12.56.58.27 1 .46.65.27 1 .41.69.25c.32.12.64.25 1 .36s.48.16.72.24l1 .32.74.22.37.11h-.1l2.19.5 8.68 15.2zm53.67 29.71l-8.88-15.42v-.07h.27l1 .15c.53.08 1.05.16 1.58.22.38 0 .76.08 1.14.12s.95.09 1.42.12l1.26.07h3.82c.39 0 .92 0 1.38-.06l1.24-.1 1.28-.13c.5-.05 1-.13 1.48-.2.34 0 .69-.09 1-.15.84-.14 1.67-.3 2.5-.48.59-.13 1.18-.28 1.76-.43l.65-.18 1.09-.31.73-.23 1-.32.75-.27.94-.35c.26-.09.51-.2.76-.31l.9-.36.77-.35c.29-.13.58-.25.86-.39l.78-.38.83-.41c.26-.13.51-.28.77-.42s.54-.28.8-.43l.77-.45c.26-.15.52-.3.77-.46l.75-.48.76-.49.74-.51.73-.52c.25-.17.49-.35.73-.53s.48-.36.71-.55.47-.38.71-.57l.69-.56.7-.6.66-.59.68-.63.36-.34v.1l1.42-1.51h17.4zm36.82-31.71a48.7 48.7 0 0 0-.48-64.21h19.08v64.21z" data-name="Layer 1"></path></g></svg> </div> </div> </footer> <div class="mobile--menu"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="174" height="200" viewbox="0 0 173.20508075688772 200" style="filter: drop-shadow(rgba(65,66,65,0.2) 0 2px 10px);"><path fill="#fff" d="M86.60254037844386 0L173.20508075688772 50L173.20508075688772 150L86.60254037844386 200L0 150L0 50Z"></path></svg> <div class="menu"> <span class="line"></span> <span class="line"></span> <span class="line"></span> </div> <small>menu</small> </div> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD7Diu0McmyvNUgOasZtf0WMSE3qMVrbNk"> </script> @{ var strFilePathJS = "/Files/Templates/Designs/Masentia2018/dist/scripts/bundle.js"; DateTime lastModifiedJS = System.IO.File.GetLastWriteTime(System.Web.HttpContext.Current.Server.MapPath(strFilePathJS)); var lastModifiedJSStr = lastModifiedJS.ToString(); lastModifiedJSStr = lastModifiedJSStr.Replace(" ", "").Replace("-", "").Replace(":", ""); } <script src="/Files/Templates/Designs/Masentia2018/./dist/scripts/vendor.js?v=@lastModifiedJSStr"> </script> <script src="/Files/Templates/Designs/Masentia2018/./dist/scripts/bundle.js?v=@lastModifiedJSStr"> </script> <script> document.body.style.opacity = '1'; </script> @* -- Redirects -- *@ @if (GetInteger("Global.PageId") == 13116) { var allowed_host = "masentia.com"; //change to masentia.com var referrer = ""; if (System.Web.HttpContext.Current.Request.UrlReferrer != null) { referrer = System.Web.HttpContext.Current.Request.UrlReferrer.ToString(); } //@referrer; var lastlang = ""; if (System.Web.HttpContext.Current.Request.Cookies["lastlang"] != null) { lastlang = System.Web.HttpContext.Current.Request.Cookies["lastlang"].Value.ToString(); } string[] languages = System.Web.HttpContext.Current.Request.UserLanguages; string langcode = languages[0].ToString().ToLower().Substring(0, 2); //@langcode; if (referrer.IndexOf(allowed_host) == -1) { if (lastlang == "sv" || lastlang == "no" || lastlang == "fi") { //@("redirect based on last language with external referral"); //@("https://" + HttpContext.Current.Request.ServerVariables["HTTP_HOST"] + "/" + Translate(lastlang)); System.Web.HttpContext.Current.Response.Cookies["lastlang"].Value = lastlang; System.Web.HttpContext.Current.Response.Cookies["lastlang"].Expires = DateTime.Now.AddDays(360); System.Web.HttpContext.Current.Response.Redirect("https://" + HttpContext.Current.Request.ServerVariables["HTTP_HOST"] + "/" + Translate(lastlang)); } else if (langcode != "da" && (langcode == "sv" || langcode == "no" || langcode == "fi")) { //@("redirect based on browserlanguage"); //@("https://" + HttpContext.Current.Request.ServerVariables["HTTP_HOST"] + "/" + Translate(langcode)); System.Web.HttpContext.Current.Response.Cookies["lastlang"].Value = langcode; System.Web.HttpContext.Current.Response.Cookies["lastlang"].Expires = DateTime.Now.AddDays(360); System.Web.HttpContext.Current.Response.Redirect("https://" + HttpContext.Current.Request.ServerVariables["HTTP_HOST"] + "/" + Translate(langcode)); } } } @{ System.Web.HttpContext.Current.Response.Cookies["lastlang"].Value = GetValue("LongLang").ToString().ToLower().Substring(0, 2); System.Web.HttpContext.Current.Response.Cookies["lastlang"].Expires = DateTime.Now.AddDays(360); } </body> </html>