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