Error executing template "Designs/bleau-solutionset/_parsed/left-nav-subpage.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_cbfdb81729af4824a8baa560eb98d861.Execute() in C:\home\site\wwwroot\Files\Templates\Designs\bleau-solutionset\_parsed\left-nav-subpage.parsed.cshtml:line 16
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering 3 @using Dynamicweb.Content; 4 5 6 @{ 7 // Code to get info for linkcrawler 8 PageService ps = new PageService(); 9 var cmspageID = GetInteger("DwPageID"); 10 var cmspageCreated = GetString("DwPageCreatedDate"); 11 var cmspageUpdated = GetString("DwPageUpdatedDate"); 12 var cmseditorID = GetString("Item.Page.Editor.Value"); 13 var cmseditorIDstring =""; 14 if(cmseditorID!=""){ 15 var ActualUser = Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt16(cmseditorID)); 16 cmseditorIDstring = ActualUser.Email; 17 cmseditorIDstring = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cmseditorIDstring)); 18 } 19 var cmsresponsibleID = GetString("Item.Page.PageResponsible.Value"); 20 var cmsresponsibleIDstring =""; 21 22 if(cmsresponsibleID!=""){ 23 var ActualUser = Dynamicweb.Security.UserManagement.User.GetUserByID(Convert.ToInt16(cmsresponsibleID)); 24 cmsresponsibleIDstring = ActualUser.Email; 25 cmsresponsibleIDstring = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(cmsresponsibleIDstring)); 26 } 27 var thisPage = ps.GetPage(cmspageID); 28 var cmsactiveTo = ""; 29 if(thisPage!=null){ 30 cmsactiveTo = thisPage.ActiveTo.ToString("yyyy-MM-dd HH:mm:ss"); 31 } 32 } 33 34 35 <!DOCTYPE html> 36 <html lang="@Pageview.Area.CultureInfo.TwoLetterISOLanguageName"> 37 <head> 38 <script src="https://cookiecontrol.bleau.dk/scripts/cookieconsent.js"></script> 39 <script id="cookiecontrolfunctions" src="https://cookiecontrol.bleau.dk/scripts/Cookiecontrolfunctions.js" data-cname="Vallensbaek" data-defaultset="dwdefault" data-xtesting="true"></script> 40 <script src="https://moliricdn.azurewebsites.net/vallensbaek/appinsights/bleauborger.js"></script> 41 42 <meta charset="utf-8"> 43 <meta name="cmspageid" content="@cmspageID"> 44 <meta name="cmspageactiveto" content="@cmsactiveTo"> 45 <meta name="cmseditorid" content="@cmseditorID"> 46 <meta name="cmspagecreated" content="@cmspageCreated"> 47 <meta name="cmspageupdated" content="@cmspageCreated"> 48 <meta name="cmseditor" content="@cmseditorIDstring"> 49 <meta name="cmsresponsible" content="@cmsresponsibleIDstring"> 50 <meta name="viewport" content="width=device-width, initial-scale = 1.0"> 51 <meta name="google-site-verification" content="V3fEHGr3Eb00bLHm3OHAZ8D3vh-ZqHn0ioU_wxxNMGs"> 52 <title>@GetValue("Title")</title> 53 @GetValue("MetaTags") 54 @GetValue("CopyRightNotice") 55 56 @{ 57 var csslink = "/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/Less/bleau-solutionset_" + @Pageview.Area.ID + ".min.css"; 58 } 59 @if (@Pageview.Area.ID == 1) 60 { 61 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/bleau-styles.min.css?v=2" media="screen"> 62 } 63 else 64 { 65 <link rel="stylesheet" href="@csslink" media="screen"> 66 } 67 68 <link rel="stylesheet" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/print.min.css" media="print"> 69 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/socicon/socicon.css"> 70 <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> 71 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/svg-inject.min.js"></script> 72 73 @RenderSnippet("StyleSheetHead") 74 @RenderSnippet("StyleSheet") 75 76 77 @*SoMe*@ 78 @{ 79 var url = GetGlobalValue("Global:Request.Url"); 80 var focusimage = @RenderSnippet("SoMeImage"); 81 } 82 <meta property="og:title" content='@GetString("Title")'> 83 <meta property="og:type" content="website"> 84 <meta property="og:url" content='@url'> 85 <meta property="og:image" content='@focusimage'> 86 <meta property="og:image:width" content="1000"> 87 <meta property="og:image:height" content="500"> 88 <meta property="og:description" content='@GetString("Meta.Description")'> 89 90 91 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)"))) 92 { 93 <link href='@GetString("Item.Area.Custom_CSS_Url")' rel="stylesheet"> 94 } 95 96 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) 97 { 98 <!-- Google Tag Manager --> 99 <script> 100 (function (w, d, s, l, i) { 101 w[l] = w[l] || []; w[l].push({ 102 'gtm.start': 103 new Date().getTime(), event: 'gtm.js' 104 }); var f = d.getElementsByTagName(s)[0], 105 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 106 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 107 })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.GTMID")');</script> 108 <!-- End Google Tag Manager --> 109 } 110 111 <link rel="shortcut icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Favicon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> 112 <link rel="apple-touch-icon" href='/Admin/Public/GetImage.ashx?Image=@GetString("Item.Area.Apple_touch_icon")&amp;Width=16&amp;Height=16&amp;Crop=5&amp;format=png'> 113 @RenderSnippet("JavaScriptHead") 114 @GetValue("Stylesheets") 115 @GetValue("Javascripts") 116 </head> 117 @{ 118 119 var bodyclass = ""; 120 string Cpage = GetString("DwPageName"); 121 122 if (Cpage.Contains("Forside")) 123 { 124 bodyclass = "frontpage "; 125 } 126 127 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Color"))) 128 { 129 bodyclass += GetString("Item.Area.Color"); 130 } 131 132 bodyclass = bodyclass.Trim(); 133 } 134 <body class="@bodyclass"> 135 136 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GTMID"))) 137 { 138 <!-- Google Tag Manager (noscript) --> 139 <noscript><iframe src='https://www.googletagmanager.com/ns.html?id=@GetString("Item.Area.GTMID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 140 <!-- End Google Tag Manager (noscript) --> 141 } 142 <div class="body-wrapper"> 143 144 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 145 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 146 @using Dynamicweb.Rendering; 147 @using System.Collections; 148 @using System.Globalization; 149 150 <header> 151 <a class="skip-main" role="navigation" aria-labelledby="Hovedindhold" href="#Hovedindhold">Skip til hoved indholdet</a> 152 153 @if (GetString("Item.Area.InformationsBanner.ActivateBanner") == "True") 154 { 155 <style> 156 .body-wrapper{ 157 position: relative; 158 } 159 .alert{ 160 margin-bottom:0; 161 border-radius:0; 162 padding:25px 15px; 163 font-size:16px; 164 165 } 166 .alert-warning{ 167 color: @GetString("Item.Area.InformationsBanner.TekstFarve"); 168 background-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); 169 border-color: @GetString("Item.Area.InformationsBanner.BannerFarve"); 170 text-align:center; 171 } 172 173 .myAlert p{ 174 display:inline; 175 } 176 </style> 177 178 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.InformationsBanner.InfoLink"))) 179 { 180 <section role="navigation" aria-label="Info banner"> 181 <a href='@GetString("Item.Area.InformationsBanner.InfoLink")'> 182 <div class="alert alert-warning fade in myAlert"> 183 <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") 184 </div> 185 </a> 186 </section> 187 } 188 else 189 { 190 <section role="navigation" aria-label="Info banner"> 191 <div class="alert alert-warning fade in"> 192 <strong> @GetString("Item.Area.InformationsBanner.InfoTitel")</strong> @GetString("Item.Area.InformationsBanner.InfoTekst") <span id="covidwaittime"></span> 193 </div> 194 </section> 195 196 <script> 197 198 function getWaitTime() { 199 var xhttp = new XMLHttpRequest(); 200 xhttp.withCredentials = true; 201 var url = "/testcovid?key=" + ((new Date().getTime() * 10000) + 621355968000000000); 202 xhttp.onreadystatechange = function () { 203 if (this.readyState == 4 && this.status == 200) { 204 // Typical action to be performed when the document is ready: 205 console.log("request OK ", xhttp.responseText); 206 document.getElementById("covidwaittime").innerText = xhttp.responseText; 207 setTimeout(function() { 208 console.log("called after one minute"); 209 getWaitTime(); 210 }, 1000 * 60); 211 } 212 }; 213 214 xhttp.open("GET", url, true); 215 216 xhttp.send(); 217 218 } 219 220 getWaitTime(); 221 222 </script> 223 } 224 225 } 226 227 <section class="service-navigation" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")' aria-label="service menu"> 228 <nav aria-label="Service menu"> 229 <ul class="container text-right hidden-print"> 230 @GetValue("DwNavigation(servicenavigation)") 231 <li class=""><a href="http://www.adgangforalle.dk/" target="_blank" class="read-more-icon" rel="noreferrer">Læs op</a></li> 232 <li class=""><a href="javascript:void(0);" id="printicon" class="print-icon">Print</a></li> 233 </ul> 234 </nav> 235 </section> 236 <div class="navbar hidden-print" role="navigation" aria-label="Hoved menu" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> 237 <div class="container top-nav" id="nav-wrapper"> 238 <button class="navbar-toggle collapsed" aria-expanded="false" aria-label="Mobile Menu" data-target="#mobile-menu" data-toggle="collapse" type="button"> 239 </button> 240 <nav aria-label="Mobile Menu"> 241 @GetValue("DwNavigation(mobilemenu)") 242 </nav> 243 <div class="navbar-header col-xs-6 col-md-3"> 244 @if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsDesktop")) || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsTablet"))) { 245 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image"))){ 246 247 <!-- WCAG --> 248 <a class="navbar-brand" href="/" aria-label='@GetString("Item.Area.NameOrganisation")'> 249 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 250 </a> 251 <!-- WCAG --> 252 } 253 } 254 else 255 { 256 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoMobile"))) 257 { 258 <a class="navbar-brand" href="/" aria-label='@Translate("Sitename", "Bleauprint government")'> 259 <img src='@GetString("Item.Area.LogoMobile")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 260 </a> 261 }else{ 262 <a class="navbar-brand logo-image" href="/" title=""></a> 263 } 264 } 265 </div> 266 267 <nav class="col-sm-5 col-md-8 nav-top hidden-print" aria-label="Desktop Menu"> 268 @GetValue("DwNavigation(menu)") 269 </nav><!-- /.nav-collapse --> 270 271 @inherits RazorTemplateBase< RazorTemplateModel < Template > > 272 @using Dynamicweb.Rendering 273 274 <div class="search-nav pull-right col-xs-5 col-md-1 search-navFull"> 275 <a href="" class="collapsed" title="Søg" aria-label="Indholdssøgning"></a> 276 </div> 277 <div id="search-boxTop" class="search-drop search-form"> 278 @SnippetStart("StyleSheetHead") 279 <link type="text/css" href="/Files/Templates/Designs/bleau-solutionset/assets/stylesheets/weightedSearch.min.css" rel="stylesheet"> 280 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> 281 @SnippetEnd("StyleSheetHead") 282 283 <form action="/Default.aspx" accept-charset="utf-8" id="SearchFormTop"> 284 <input type="hidden" name="ID" value='@GetValue("Item.Area.Search_Result")'> 285 <div class="search-area"> 286 <input aria-label="Topmenu søge felt" id="searchSubmit" autocomplete="off" size="10" spellcheck="false" dir="ltr" class="search-input" placeholder='@Translate("search", "Skriv her hvad du s&oslash;ger...")' data-error='@Translate("searchText", "S&oslash;g p&aring; sitet")' type="text" name="q" value='@GetValue("DwSearchPhrase")'> 287 <input type="submit" value="Søg" class="search-button" title="Søg"> 288 </div> 289 </form> 290 </div> 291 292 </div><!-- /.container --> 293 </div><!-- /.navbar --> 294 </header> 295 @SnippetStart("JavaScriptBottom") 296 @*<script src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/livesearch.js" type="text/javascript"></script>*@ 297 @SnippetEnd("JavaScriptBottom") 298 299 <div class="navbar visible-print" role="banner"> 300 <div class="container top-nav"> 301 <div class="navbar-header col-xs-6 col-md-4"> 302 <div class="visible-print"> 303 <div class="navbar-brand"> 304 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Logo_Image")) && !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Device.IsMobile"))) 305 { 306 <img src='@GetString("Item.Area.Logo_Image")' alt='@Translate("Sitename", "Bleauprint government")' onload="SVGInject(this)"> 307 308 } 309 </div> 310 </div> 311 </div> 312 </div> 313 </div> 314 @{ 315 string Tpage = GetGlobalValue("Global:Pageview.LayoutTemplate"); 316 if (Tpage != ("frontpage.cshtml")) 317 { 318 <div class="selvbetjening-wrapper selvbetjening-mobil hidden-print" role="navigation" aria-label="selvbetjeningsmenu"> 319 320 <button class="selv-btn collapsed" aria-controls="Selvbetjeningsmenu" aria-expanded="false" id="selvbetjening-btn">@Translate("Selvbetjening", "Selvbetjening")</button> 321 322 <div class="selvbetjening-links clearfix collapse dont-collapse-sm" id="Selvbetjeningsmenu"> 323 324 <ul id="selfservice-green"> 325 @{ 326 327 var entriesList = GetLoop("Item.Area.Entries_Item_List"); 328 329 foreach (var e in entriesList) 330 { 331 var title = e.GetString("Item.Area.Entries_Item_List.Title.Value"); 332 var type = e.GetString("Item.Area.Entries_Item_List.Type.Value"); 333 var href = e.GetString("Item.Area.Entries_Item_List.Link_Url.Value"); 334 335 <li> 336 <a href="@href" target="_self" tabindex="-1"> 337 <img class="svg-inject" src="@type" alt="Ikon @title" onload="SVGInject(this)"> 338 @title 339 </a> 340 </li> 341 } 342 } 343 </ul> 344 345 </div> 346 </div> 347 } 348 349 } 350 <div id="Hovedindhold" role="main"> 351 352 353 <!--Breadcrumb grey line--> 354 <div class="grey-box leftSidebar"> 355 356 <!--Breadcrumb--> 357 <div class="container leftSidebar-subpage hidden-print"> 358 <div class="breadcrumb text-right col-xs-12"> 359 <nav aria-label="Breadcrumb navigation"> 360 @GetValue("DwNavigation(Breadcrumb)") 361 </nav> 362 </div> 363 </div> 364 </div> 365 366 <!--Left Sidebar--> 367 <div class="leftSidebar"> 368 <div class="container leftSidebar-subpage dagsordner" role="navigation" aria-label="Venstre undermenu"> 369 <!--Left Sidebar menu--> 370 <div class="col-xs-12 col-sm-4 submenu-list hidden-xs hidden-print" id="leftMenu" role="navigation" aria-label="Venstre undermenu"> 371 @GetValue("DwNavigation(leftnav)") 372 </div> 373 <div class="col-xs-12 col-sm-8 page-title"> 374 <h1 class="title" id="pageTitle">@GetString("DwPageName")</h1> 375 <section aria-label="hoved indhold"> 376 <div class="main-content" id="rightColumn">@GetValue("DwContent(rightColumn)")</div> 377 </section> 378 </div> 379 </div> 380 </div> 381 382 <!--Purple & White Bottom Boxes--> 383 <div class="row full-width" id="bottom-row-fluid">@GetValue("DwContent(bottomrowfluid)")</div> 384 385 <!--Grey Box with custom mobile submenu--> 386 @*<div class="grey-box leftSidebar hidden-print"> 387 <div class="container leftSidebar-subpage"> 388 <div class="col-xs-12 hidden-sm hidden-md hidden-lg clearfix mobile-submenu" id="GreyBox"> 389 @GetValue("Include(navigation/MobileSubmenu.cshtml)") 390 </div> 391 </div> 392 </div>*@ 393 </div> 394 395 </div> 396 @inherits RazorTemplateBase< RazorTemplateModel < Template > > 397 @using Dynamicweb.Rendering 398 399 <footer class="row"> 400 <section class="container footer-wrapper" aria-label="footer"> 401 <div class="row" id="footerSections" role="contentinfo"> 402 <div class="col-xs-12 col-sm-4 col-md-3 quick-links hidden-print"> 403 <h1>@Translate("QuickLinks", "Quick links")</h1> 404 @GetValue("DwNavigation(quicklinks)") 405 </div> 406 <div class="col-xs-12 col-sm-4 col-md-3 adress-box vcard"> 407 <span class="fn hidden"> 408 <span class="given-name">@GetString("Item.Area.NameOrganisation")</span> 409 <span class="additional-name"></span> 410 <span class="family-name"></span> 411 </span> 412 <div class="fn org"><h1>@GetString("Item.Area.NameOrganisation")</h1></div> 413 <div class="adress"> 414 <div class="street-address">@GetString("Item.Area.StreetAddress")</div> 415 416 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.PostalCode")) || !string.IsNullOrWhiteSpace(GetString("Item.Area.Lacation"))) 417 { 418 <div class="adr"><span class="postal-code">@GetString("Item.Area.PostalCode")</span> <span class="locality">@GetString("Item.Area.Lacation")</span></div> 419 } 420 421 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Telefon"))) 422 { 423 <div>@Translate("Telefon", "Telefon"): <span class="tel">@GetString("Item.Area.Telefon")</span> </div> 424 } 425 426 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Fax"))) 427 { 428 <div class="tel"> <span class="type">@Translate("Fax", "Fax"): </span><span class="value">@GetString("Item.Area.Fax")</span> </div> 429 } 430 431 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.CVR"))) 432 { 433 <div class="tel"> <span class="type">@Translate("CVR", "CVR"): </span><span class="value">@GetString("Item.Area.CVR")</span> </div> 434 } 435 436 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Email"))) 437 { 438 <a class="email" href='mailto:@GetValue("Item.Area.Email")'>@GetValue("Item.Area.Email")</a> 439 } 440 </div> 441 </div> 442 443 <div class="col-xs-12 col-sm-4 col-md-3 adress-box"> 444 <h1>@GetString("Item.Area.Secure_header")</h1> 445 @foreach (var item in GetLoop("Item.Area.Secure_Mail")) 446 { 447 if (!string.IsNullOrWhiteSpace(item.GetString("Item.Area.Secure_Mail.Link"))) 448 { 449 <a class="email" target="_blank" href='@item.GetValue("Item.Area.Secure_Mail.Link")'>@item.GetValue("Item.Area.Secure_Mail.Tekst")</a><br> 450 }else{ 451 <p>@item.GetValue("Item.Area.Secure_Mail.Tekst")</p> 452 } 453 } 454 </div> 455 456 <div class="col-xs-12 col-sm-4 col-md-3 work-time oh-day" itemscope="" itemtype="http://schema.org/CivicStructure" style="padding-right: 10px;"> 457 <h1 itemprop="name">@Translate("Borgerservice", "Borgerservice åbningstider")</h1> 458 <ul class="oh-highlight-day"> 459 @foreach (var item in GetLoop("Item.Area.OpeningHours")) 460 { 461 <li><meta itemprop="openingHours" content='@item.GetValue("Item.Area.OpeningHours.Days")-@item.GetValue("Item.Area.OpeningHours.OpenHour")'>@item.GetValue("Item.Area.OpeningHours.Days")<span>@item.GetValue("Item.Area.OpeningHours.OpenHour")</span></li> 462 } 463 </ul> 464 465 </div> 466 467 </div> 468 <div class="col-xs-12 col-sm-12 col-md-12 hidden-print" id="WebAccessibility"> 469 470 <h1>Webtilgængelighed</h1> 471 <ul> 472 <li class="col-xs-12 col-sm-6 col-md-3"> 473 <i class="fa fa-si fa-sign-language" aria-hidden="true"></i> 474 Adgang med tegn 475 <label class="switch" for="Switchbutton"> 476 <span class="sr-only">Tænd eller sluk for Adgang med tegn</span> 477 <input role="switch" aria-checked="false" name="tænd eller sluk for adgang med tegn" aria-label="tænd eller sluk for adgang med tegn" class="switchBtn" id="Switchbutton" type="checkbox" onclick="SignLanguageMark(null,'rgba(255,255,0,0.5)');"> 478 <span class="slider round"></span> 479 </label> 480 481 </li> 482 <li class="col-xs-12 col-sm-6 col-md-3"> 483 <a href="https://www.adgangforalle.dk/" target="_blank"><i class="fa fa-volume-up" aria-hidden="true"></i>Få teksten læst op</a> 484 </li> 485 486 @{ 487 488 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.WASpage_ID"))) { 489 490 int WASpage_ID = Convert.ToInt32(GetValue("Item.Area.WASpage_ID")); 491 string shortcut = Dynamicweb.Services.Pages.GetPage(WASpage_ID).ShortCut; 492 493 if (!string.IsNullOrWhiteSpace(shortcut)) 494 { 495 <li class="col-xs-12 col-sm-6 col-md-3"> 496 <a href="/was" target="_blank"><i class="fa fa-file-signature" aria-hidden="true"></i>Tilgængelighedserklæring</a> 497 </li> 498 } 499 500 } 501 } 502 <li class="col-xs-12 col-sm-6 col-md-3"> 503 <a href="/was-feedback"><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> 504 <!-- <a href='/was-feedback?wcag=@GetGlobalValue("Global:Pageview.Url")'><i class="fa fa-comment" aria-hidden="true"></i>Giv os feedback</a> --> 505 </li> 506 </ul> 507 508 </div> 509 510 </section> 511 512 513 </footer> 514 515 <div class="bgr-opacity"></div> 516 517 <!-- Dette script hører til Tilgængeligheds modulet. Adgang med tegn --> 518 <script type="text/javascript"> 519 (function () { 520 var lwfile = 'cdhsign.dk/cdh_player.js'; 521 var lw = document.createElement('script'); 522 lw.type = 'text/javascript'; 523 lw.async = true; 524 lw.src = ('https:' == document.location.protocol ? 'https://' : 525 'http://') + lwfile; 526 var s = document.getElementsByTagName('script')[0]; 527 s.parentNode.insertBefore(lw, s); 528 }) 529 (); 530 531 532 533 window.getCookie = function (name) { 534 var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); 535 if (match) return match[2]; 536 } 537 window.setCookie = function (name, value, days, path) { 538 var expires = ""; 539 if (days) { 540 var date = new Date(); 541 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 542 expires = "; expires=" + date.toUTCString(); 543 } 544 document.cookie = name + "=" + (value || "") + expires + "; path=" + path; 545 } 546 jQuery('#Switchbutton').prop('checked', window.getCookie("SignIsActive") === 'true'); 547 function toggleAccessWithSign() { 548 SignLanguageMark(null, 'rgba(255,255,0,0.5)'); 549 } 550 551 window.onbeforeunload = function () { 552 var isActive = window.getCookie("SignIsActive") === 'true'; 553 document.cookie = "SignIsActive=" + isActive + "; expires=Thu, 01 Jan 1970 00:00:00 UTC"; 554 document.cookie = "SignIsActive=" + isActive + "; path=/"; 555 console.log('unload'); 556 } 557 </script> 558 559 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/vendor/bootstrap/js/bootstrap.min.js"></script> 560 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/main.min.js?v=3"></script> 561 <script type="text/javascript" src="/Files/Templates/Designs/bleau-solutionset/assets/javascripts/jquery.dotdotdot.min.js"></script> 562 563 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.Google_Analytics_ID"))) 564 { 565 <text> 566 <script> 567 var _gaq = [['_setAccount', '@GetValue("Item.Area.Google_Analytics_ID")'], ['_trackPageview']]; 568 (function(d, t) { 569 var g = d.createElement(t), 570 s = d.getElementsByTagName(t)[0]; 571 g.async = true; 572 g.src = '//www.google-analytics.com/ga.js'; 573 s.parentNode.insertBefore(g, s); 574 })(document, 'script'); 575 </script> 576 </text> 577 578 } 579 @RenderSnippet("JavaScriptBottom") 580 581 <script type="text/javascript"> 582 if (cookiecontrolfunctions.isThisCategorySet("Statistics")) { 583 (function () { 584 var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; 585 sz.src = '//siteimproveanalytics.com/js/siteanalyze_273552.js'; 586 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); 587 })(); 588 } 589 </script> 590 591 592 </body> 593 </html>