Exception in template (Designs/hurupmulti/_parsed/Top_Page.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.eaeebbdbbe.b__0(TextWriter __razor_helper_writer)
at RazorEngine.Templating.TemplateWriter.WriteTo(TextWriter writer)
at RazorEngine.Templating.TemplateBase.Write(TemplateWriter helper)
at CompiledRazorTemplates.Dynamic.eaeebbdbbe.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, DynamicViewBag viewBag, String cacheName)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @using System.IO @using System.Web.UI @using System @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @helper Page_RenderSlider() { var slider_list = Model.Item.GetItems("Top_Slider"); var currentPageSlides = Model.Item.GetItems("Top_Slider"); var sectionTopPageId = Model.TopPage.ID; if (sectionTopPageId == 44) { sectionTopPageId = 6; } else if (sectionTopPageId == 47) { sectionTopPageId = 5; } int sliderId = 0; IEnumerable<Dynamicweb.Content.Items.ItemEntry> topPageSlider = null; if (Dynamicweb.Services.Pages.GetPage(sectionTopPageId).Item["Top_Slider"] != null && (int)Dynamicweb.Services.Pages.GetPage(sectionTopPageId).Item["Top_Slider"] > 0) { sliderId = (int)Dynamicweb.Services.Pages.GetPage(sectionTopPageId).Item["Top_Slider"]; topPageSlider = Dynamicweb.Content.Items.ItemList.GetItemListById(sliderId).Relations; } int navslidecounter = 0; int slideCounter = 0; bool sliderControls = false; string device = Dynamicweb.Frontend.Devices.DeviceInfo.ParseFromUserAgentString(Dynamicweb.Context.Current.Request.UserAgent).DeviceType.ToString(); bool isMobile = device == "Mobile"; var CultureSponsorFolderPath = "/Files/Images/Sponsor/kulturaktiviteter"; var SportsSponsorFolderPath = "/Files/Images/Sponsor/idrætsktiviteter"; int image_full_width = isMobile || device == "Bot" ? 200 : device == "Tablet" ? 1024 : 1920; <!-- Starting grand if--> if (slider_list != null && slider_list.Count > 0) { <!-- section class Carousel Start--> <section class="Carousel"> <div id="HurupMultiCarousel" class="carousel slide" data-ride="carousel"> @if (slider_list.Count > 1) { <!-- Left and right controls --> <div class="carousel-control-container container"> <ol class="carousel-indicators"> @foreach (var i in slider_list) { string linavclass = navslidecounter == 0 ? "active" : string.Empty; <li data-target="#HurupMultiCarousel" data-slide-to="@navslidecounter" class="@linavclass"></li> navslidecounter++; } </ol> @if (sliderControls) { <a class="left carousel-control" href="#FavrskovCarousel" data-slide="prev"> <i class="fa fa-chevron-left"></i> <span class="sr-only">@Translate("Tidligere")</span> </a> <a class="right carousel-control" href="#FavrskovCarousel" data-slide="next"> <i class="fa fa-chevron-right"></i> <span class="sr-only">@Translate("Næste")</span> </a> } </div> } <!-- Wrapper for slides --> <div class="carousel-inner"> @foreach (var slide in slider_list) { string slide_image = slide.GetField("Image").GetString(); var slide_image_alt = slide.GetField("Image_Alt").GetString(); var slideCaption = slide.GetField("Image_Caption_Text").GetString(); if (string.IsNullOrWhiteSpace(slide_image)) { continue; } if (isMobile) { slide_image = "/Admin/Public/GetImage.ashx?Image=" + slide_image + "&Format=" + slide_image.Substring(slide_image.LastIndexOf(".")) + "&Width=600&Height=300&Crop=5&DoNotUpscale=1"; } else { slide_image = "/Admin/Public/GetImage.ashx?Image=" + slide_image + "&Format=" + slide_image.Substring(slide_image.LastIndexOf(".")) + "&Width=1920&Crop=0&DoNotUpscale=1"; } string slide_class = slideCounter == 0 ? "carousel-item active" : "carousel-item"; <div class="@slide_class"> <div class="img-overlayer"></div> <img class="img-fluid" src="@slide_image" alt="@slide_image_alt" width="@image_full_width" /> <div class="carousel-caption"> @*@if (!string.IsNullOrWhiteSpace(slide_heading)) { <h3>@slide_heading</h3> } @if (!string.IsNullOrWhiteSpace(slide_text)) { <h2>@slide_text</h2> }*@ </div> </div> slideCounter++; } </div> </div> </section> <!-- section class Carousel End--> } else { if (topPageSlider != null) { <section class="Carousel"> <div id="HurupMultiCarousel" class="carousel slide" data-ride="carousel"> @if (topPageSlider.Count() > 1) { <!-- Left and right controls --> <div class="carousel-control-container container"> <ol class="carousel-indicators"> @foreach (Dynamicweb.Content.Items.Item i in topPageSlider) { string linavclass = navslidecounter == 0 ? "active" : string.Empty; <li data-target="#HurupMultiCarousel" data-slide-to="@navslidecounter" class="@linavclass"></li> navslidecounter++; } </ol> @if (sliderControls) { <a class="left carousel-control" href="#FavrskovCarousel" data-slide="prev"> <i class="fa fa-chevron-left"></i> <span class="sr-only">@Translate("Tidligere")</span> </a> <a class="right carousel-control" href="#FavrskovCarousel" data-slide="next"> <i class="fa fa-chevron-right"></i> <span class="sr-only">@Translate("Næste")</span> </a> } </div> } <!-- Wrapper for slides --> <div class="carousel-inner"> @foreach (Dynamicweb.Content.Items.Item slide in topPageSlider) { string slide_image = slide["Image"].ToString(); var slide_image_alt = slide["Image_Alt"]; var slideCaption = slide["Image_Caption_Text"]; if (string.IsNullOrWhiteSpace(slide_image)) { continue; } if (isMobile) { slide_image = "/Admin/Public/GetImage.ashx?Image=" + slide_image + "&Format=" + slide_image.Substring(slide_image.LastIndexOf(".")) + "&Width=600&Height=300&Crop=0&DoNotUpscale=1"; } else { slide_image = "/Admin/Public/GetImage.ashx?Image=" + slide_image + "&Format=" + slide_image.Substring(slide_image.LastIndexOf(".")) + "&Width=1920&Crop=0&DoNotUpscale=1"; } string slide_class = slideCounter == 0 ? "carousel-item active" : "carousel-item"; <div class="@slide_class"> <div class="img-overlayer"></div> <img class="img-fluid" src="@slide_image" alt="@slide_image_alt" width="@image_full_width" /> <div class="carousel-caption"> @*@if (!string.IsNullOrWhiteSpace(slide_heading)) { <h3>@slide_heading</h3> } @if (!string.IsNullOrWhiteSpace(slide_text)) { <h2>@slide_text</h2> }*@ </div> </div> slideCounter++; } </div> </div> </section> } } <!-- Ending grand if--> } @helper Page_RenderSectionNavigation() { var sectionTopName = ""; var sectionTopId = 0; if (Model.TopPage.ID == 44) { sectionTopName = Dynamicweb.Services.Pages.GetPage(6).GetDisplayName(); sectionTopId = 6; } if (Model.TopPage.ID == 47) { sectionTopName = Dynamicweb.Services.Pages.GetPage(5).GetDisplayName(); sectionTopId = 5; } if (Model.TopPage.ID == 5 || Model.TopPage.ID == 6) { sectionTopId = Model.TopPage.ID; sectionTopName = Model.TopPage.Name; } <div class="container"> <div class="hm-toplevel-nav"> <div class="d-flex"> @if (Model.TopPage.ID == 5 || Model.TopPage.ID == 47) { //go up the tree <div class="menu-logo-wrapper"> @Page_RenderSportsLogo() </div> } @if (Model.TopPage.ID == 6 || Model.TopPage.ID == 44) { <div class="menu-logo-wrapper"> @Page_RenderCultureLogo() </div> } <div class="flex-fill align-self-center justify-content-middle" style="text-align:center;"> <h3>@sectionTopName </h3> </div> <i class="menu-arrow fas fa-angle-right align-self-center justify-content-end"></i> </div> <div class="hm-toplevel-dropdown"> <ul style="list-style:none"> @foreach (var t in Dynamicweb.Services.Pages.GetPagesByParentID(sectionTopId).Where(x => x.Active)) { string userAgent = Dynamicweb.Context.Current.Request.UserAgent.ToLower(); string userDevice = Dynamicweb.Frontend.Devices.DeviceInfo.ParseFromUserAgentString(userAgent).DeviceType.ToString(); if (t.Hidden || t.IsFolder || (userDevice == "Desktop" && t.HideForDesktops) || (userDevice == "Mobile" && t.HideForPhones) || (userDevice == "Tablet" && t.HideForTablets)) { continue; } <li><a href="/Default.aspx?ID=@t.ID">@t.MenuText</a></li> } </ul> </div> </div> </div> } @helper Page_RenderNewsSpots() { var newsSpotList = Dynamicweb.Services.Pages.GetPagesByParentID(15).Where(o => o.Active && o.IsFolder == false).OrderByDescending(x => x.Item["Publishing_Date_Start"]); int spotIndex = 0; <div class="news-spotcontainer"> @foreach (var i in newsSpotList.Take(2)) { <div class=""> <h3>@i.Item["Preview_Heading"]</h3> @i.Item["Preview_Text"] <a href="/default.aspx?id=@i.ID" class="ml-auto">Læs mere</a> </div> if (spotIndex <= 0) { <hr /> } spotIndex++; } </div> } @helper Page_RenderSponsors() { var sponsorImages = Model.Area.Item.GetItems("Sponsor_Images"); if (sponsorImages.Any() && Model.TopPage.ID != 6 && Model.TopPage.ID != 44 && Model.TopPage.ID != 47) { Random rnd = new Random(); int sponsorImageSeed = rnd.Next(0, sponsorImages.Count); <div class="sponsor-container d-flex flex-row"> <div class="col-12"> @sponsorImages[sponsorImageSeed].GetString("Text") </div> </div> } } @helper Test_Timer() { <p>Testing the timer...</p> } @helper Page_RenderCultureLogo() { <svg id="culture-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.82 35.82"><defs></defs><title>Asset 4Multi</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M20.79,35.82a.74.74,0,0,1-.41-.13C20,35.44,12,29.6,12.86,24.07c-.44-.12-.92-.27-1.44-.44C8,22.49,3.64,20.41,2.84,17L0,5.12A.7.7,0,0,1,.17,4.5a.68.68,0,0,1,.59-.25A31.61,31.61,0,0,0,19,.1a.69.69,0,0,1,.64,0,.74.74,0,0,1,.42.49l2.82,11.9A5.91,5.91,0,0,1,23,14.09a32.77,32.77,0,0,0,12,1.39.69.69,0,0,1,.59.25.72.72,0,0,1,.15.63L33,28.26c-1.28,5.41-11.61,7.46-12,7.55ZM16.06,16.67,14.32,24c-1,4.25,5.31,9.32,6.64,10.34,2.94-.63,9.78-2.8,10.63-6.42L34.2,17A32.91,32.91,0,0,1,16.92,13l-.77,3.26v.11A.8.8,0,0,1,16.06,16.67ZM1.63,5.72l2.6,11c.68,2.89,5.08,4.74,7.64,5.59.46.15.9.29,1.3.4L14.52,17a6.08,6.08,0,0,0-4.37,2.16.71.71,0,1,1-1-1,7.47,7.47,0,0,1,5.75-2.6l.9-3.79a.7.7,0,0,1,.41-.49.72.72,0,0,1,.64,0,30.4,30.4,0,0,0,4.79,2.28,3.7,3.7,0,0,0-.1-.83l-2.6-11A32.93,32.93,0,0,1,1.63,5.72Zm22,24.14a7.4,7.4,0,0,1-5.52-2.6.72.72,0,0,1,0-1,.71.71,0,0,1,1,0,6,6,0,0,0,7.14,1.61.72.72,0,0,1,.5,1.34A9.08,9.08,0,0,1,23.6,29.86Zm7.15-5.3a.7.7,0,0,1-.62-.37,2.71,2.71,0,0,0-1.59-1.51,2.72,2.72,0,0,0-2.11.67.71.71,0,0,1-1-.17.7.7,0,0,1,.17-1,4,4,0,0,1,3.25-.9,4,4,0,0,1,2.52,2.22.71.71,0,0,1-.28,1A.73.73,0,0,1,30.75,24.56Zm-8.68-2a.72.72,0,0,1-.62-.37,2.76,2.76,0,0,0-1.59-1.52,2.78,2.78,0,0,0-2.11.68.71.71,0,0,1-1-.17.7.7,0,0,1,.17-1,4,4,0,0,1,3.25-.9,4,4,0,0,1,2.52,2.21.72.72,0,0,1-.28,1A.73.73,0,0,1,22.07,22.59ZM6.87,12.36a5.5,5.5,0,0,1-2-.44.71.71,0,0,1,.53-1.32,2.78,2.78,0,0,0,2.24.17A2.63,2.63,0,0,0,8.8,9a.72.72,0,0,1,.87-.51.73.73,0,0,1,.51.88,4,4,0,0,1-1.91,2.71A3.09,3.09,0,0,1,6.87,12.36Zm8.52-1.77h-.13a4,4,0,0,1-2.89-1.73.71.71,0,0,1,1.1-.9,2.76,2.76,0,0,0,1.86,1.21,2.73,2.73,0,0,0,1.94-1,.71.71,0,0,1,1,0,.72.72,0,0,1,0,1A4.14,4.14,0,0,1,15.39,10.59Z" /></g></g></svg> } @helper Page_RenderSportsLogo() { <svg id="sports-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.82 35.79"><defs></defs><title>Asset 3Multi</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M35.7,19.36,35.65,19l-.09-.55a14.87,14.87,0,0,0-.88-2.89,14.46,14.46,0,0,0-3.13-4.63,14.55,14.55,0,0,0-7.73-4l-.41-.07-.56-.07A14.3,14.3,0,0,0,17,7.3a2.09,2.09,0,0,0-.46-1.14,2,2,0,0,0-1.38-.71h0a2,2,0,0,0-2.17-1.86A2.07,2.07,0,0,0,12,2.32a2,2,0,0,0-1.49-.26A2.07,2.07,0,0,0,9.48,1,2,2,0,0,0,8,1,2,2,0,0,0,6.75.06,2.06,2.06,0,0,0,5.21.28a2,2,0,0,0-.93,1.24C4.22,1.74,4,4.19,3.59,8.8a1.65,1.65,0,0,1-.06.32l-1,4a.77.77,0,0,0-.38.24L.75,14.92a3.11,3.11,0,0,0,.33,4.38l.22.19a3,3,0,0,0,2,.76h.23a3.06,3.06,0,0,0,2.12-1.07l1.38-1.59a.74.74,0,0,0,.17-.42l0,0a14.68,14.68,0,0,0-.58,4.08,14.45,14.45,0,0,0,3.93,10,9,9,0,0,0,.82.81,14.54,14.54,0,0,0,15.48,2.66l.83-.38.34-.17L28.3,34a14.38,14.38,0,0,0,3.25-2.45,14.69,14.69,0,0,0,3.13-4.63,14.47,14.47,0,0,0,1.14-5.67A14.64,14.64,0,0,0,35.7,19.36ZM32.24,14a14.56,14.56,0,0,1,1.91,4.6c.05.29.1.6.15.94l0,.37-4.12,3.4-2.87-.91-1.85-5.77,1.69-2.32ZM26,22.71l-4.7,3.43-4.68-3.42,1.81-5.5h5.81Zm5.28-10-3.94.24L25.76,8.86A13.3,13.3,0,0,1,31.23,12.67ZM17.16,10.88l.64-2.33.35-.09a13.54,13.54,0,0,1,3.1-.37c.57,0,1,0,1.44.06s.63.08,1,.14l.4.09,2,5.16-1.67,2.27H18.23L17,14.09l-.52-.72.11-.39ZM7.79,15.65l-2.08.88L6,17,4.79,18.4a1.91,1.91,0,0,1-2.71.21l-.23-.2a1.91,1.91,0,0,1-.67-1.31,1.94,1.94,0,0,1,.46-1.41l1.19-1.37.54.18,1.3-5.08a4.54,4.54,0,0,0,.09-.51c.43-5,.63-6.94.66-7.1a.81.81,0,0,1,.39-.51.84.84,0,0,1,.64-.1,1,1,0,0,1,.34.18A.84.84,0,0,1,7,1.74l.34.94.84-.54A.86.86,0,0,1,9,2.07a.83.83,0,0,1,.22.14.77.77,0,0,1,.28.48l.2,1,.91-.4a.82.82,0,0,1,.79,0l.1.07a.89.89,0,0,1,.31.64l0,1.06,1-.3a.84.84,0,0,1,.79.16.88.88,0,0,1,.29.58.6.6,0,0,1,0,.19l-.15,1,1.05-.14a.83.83,0,0,1,.66.19.94.94,0,0,1,.1.1.86.86,0,0,1,.17.77v0l-.17.07a14.56,14.56,0,0,0-7.22,6.64l-.21.4-.32.71A.42.42,0,0,1,7.79,15.65Zm8.4-6.57-1,3.75-4.24.27A13.43,13.43,0,0,1,16.19,9.08ZM8.77,17.16c.09-.28.17-.53.26-.76s.11-.3.17-.44c.16-.36.32-.69.49-1l.05-.09,0-.08a2.39,2.39,0,0,1,.13-.21l.49,0,4.95-.31.16.22,1.56,2.17-1.91,5.8-2.85.91L8.14,20.59A12.58,12.58,0,0,1,8.77,17.16Zm1.57,11.38a13.16,13.16,0,0,1-2.19-6.25l3.26,2.14Zm3.2,3.3q-.43-.32-.75-.57a12.58,12.58,0,0,1-1.23-1.18L11.44,30l1.37-5.28,2.79-.9,5,3.61v3L16.61,33.5A12.84,12.84,0,0,1,13.54,31.84ZM18.24,34l3.06-2.4,3.55,2.25A13.21,13.21,0,0,1,18.24,34ZM29,31.84c-.36.26-.68.48-1,.67s-.69.39-1.09.59l-.38.16L22,30.36v-3l4.95-3.62,2.91.93,1.68,4.74A13.14,13.14,0,0,1,29,31.84ZM32.5,28l-1.3-3.66,3.2-2.65A13,13,0,0,1,32.5,28Z" /></g></g></svg> } @{ var _Favicons = string.Empty; string designBasePath = Pageview.Layout.File.Location; string assetsBasePath = designBasePath + "Assets/"; var searchPageID = 20; string _userAgent = Dynamicweb.Context.Current.Request.UserAgent.ToLower(); string _userDevice = Dynamicweb.Frontend.Devices.DeviceInfo.ParseFromUserAgentString(_userAgent).DeviceType.ToString(); var headScripts = Model.Area.Item.GetString("ScriptsHead"); var bodyBeginScripts = Model.Area.Item.GetString("ScriptsBodyBegin"); var bodyEndScripts = Model.Area.Item.GetString("ScriptsBodyEnd"); List<string> resourceFiles = new List<string>() { assetsBasePath + "jquery/jquery.min.js", assetsBasePath + "popper.js/umd/popper.min.js", assetsBasePath + "twitter-bootstrap/js/bootstrap.min.js", assetsBasePath + "fontawesome/js/all.min.js", assetsBasePath + "fontawesome/css/all.min.css", designBasePath + "css/style.min.css" }; string resourceHtml = string.Empty; Dynamicweb.Controls.ControlResources resources = null; foreach (var i in resourceFiles) { Dynamicweb.Controls.ControlResources.AddResourceFile(i); } using (StringWriter sw = new StringWriter()) { using (HtmlTextWriter writer = new HtmlTextWriter(sw)) { resources = new Dynamicweb.Controls.ControlResources(); resources.IncludeUIStylesheet = false; resources.CombineOutput = true; resources.IncludeUtilities = false; resources.RenderControl(writer); } resourceHtml = sw.ToString().Insert(sw.ToString().IndexOf("type"), "async "); resourceHtml = resourceHtml.Insert(resourceHtml.IndexOf("rel"), "async "); } PushPromise(resourceHtml.Substring(resourceHtml.IndexOf("/Admin"), 95)); PushPromise(resourceHtml.Substring(resourceHtml.LastIndexOf("/Admin"), 95)); PushPromise(assetsBasePath + "twitter-bootstrap/css/bootstrap.min.css"); PushPromise(assetsBasePath + "fontawesome/webfonts/fa-brands-400.woff2"); PushPromise(assetsBasePath + "Assets/fontawesome/webfonts/fa-solid-900.woff2"); Dictionary<string, List<int>> favIcons = new Dictionary<string, List<int>>() { {"apple-touch-icon", new List<int>(){57,60,72,76,114,120,144,152,180 } }, {"icon", new List<int>(){192,32,96,16 } } }; } @helper iconLink(int size, string rel) { string iconfileurl = "/Files/Templates/Designs/hurupmulti/img/Design/Fav/logo_square.png"; string iconLink = "/Admin/Public/GetImage.ashx?Image=" + iconfileurl + "&Format=png&Width=" + size + "&Height=" + size + "&Crop=6&DoNotUpscale=1"; <link rel="@rel" type="image/png" sizes="@(size)x@(size)" href="@iconLink"> } <!DOCTYPE html> <html lang="da"> <head> @(headScripts) <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>@Model.TopPage.Name</title> @* Loading some needed scripts at top of page - rest before end of body tag *@ <!-- CSS & JS--> @resourceHtml <link href="/Files/Templates/Designs/hurupmulti/Assets/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" async /> <!--Fav Icon--> @foreach (var i in favIcons) { foreach (int t in i.Value) { @iconLink(t, i.Key) if (i.Key.ToLower().IndexOf("apple") > -1) { if (_userAgent.IndexOf("apple") > -1) { PushPromise("/Admin/Public/GetImage.ashx?Image=/Files/Templates/Designs/rgd201810/images/Design/Fav/logo_square.png&Format=png&Width=" + t + "&Height=" + t + "&Crop=6&DoNotUpscale=1"); } } else if (_userAgent.IndexOf("apple") == -1) { PushPromise("/Admin/Public/GetImage.ashx?Image=/Files/Templates/Designs/rgd201810/images/Design/Fav/logo_square.png&Format=png&Width=" + t + "&Height=" + t + "&Crop=6&DoNotUpscale=1"); } } } <link rel="manifest" href="@(designBasePath)/images/Design/Fav/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="/Admin/Public/GetImage.ashx?Image=/Files/Templates/Designs/rgd201810/images/Design/Fav/logo_square.png&Format=png&Width=144&Height=144&Crop=6&DoNotUpscale=1"> <meta name="theme-color" content="#ffffff"> </head> <body> @(bodyBeginScripts) <!-- MOBILE NAV --> <div id="Sidenav" class="sidenav"> <div class="header-sidenav"> <a href="/"> <img src="/Files/Images/Logo/hm-logo.png" alt="" class="img-responsive logo" /> </a> </div> <div class="top-sidenav"> <div id="search_container_mobile"> <div id="mobile-typeahead-wrapper" class="typeahead-wrapper"> <div class="typeahead-input"> <form method="get" action="/Default.aspx" role="search" class="input-group search-input-group" onsubmit="searchSubmit(this)"> <input type="hidden" name="Id" value="@searchPageID"> <input type="text" class="form-control" name="q" autocomplete="off" placeholder="Søg"> <span class="input-group-addon"> @*<button type="submit"><span class="fa fa-search"></span></button>*@ <button type="submit" class="btn btn-default" id="search-btn"><i class="fa fa-search"></i></button> </span> </form> </div> <div class="typeahead-menu tt-empty"></div> </div> </div> </div> <nav class="main-nav"> @RenderNavigation(new { startlevel = 1, endlevel = 2, template = "Primary-Mobile.xslt", expandmode = "All", parentid = 0, areaid = Pageview.AreaID, includemode = "All" }) @RenderNavigation(new { startlevel = 1, endlevel = 2, template = "TopBarNav-Mobile.xslt", expandmode = "All", parentid = 11, areaid = Pageview.AreaID, includemode = "All" }) </nav> @*<nav> @RenderNavigation(new { startlevel = 1, endlevel = 2, template = "TopBarNav-Mobile.xslt", expandmode = "All", parentid = 11, areaid = Pageview.AreaID, includemode = "All" }) </nav>*@ </div> <!-- / MOBILE NAV --> @RenderSnippet("Top") <div class="container-fluid banner-container"> @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @Title("Side") @Description("Side template") @{ var backgroundImage = Model.Item.GetString("Background_Image"); var headline = Model.Item.GetItem("Content").GetString("Title"); var text = Model.Item.GetItem("Content").GetString("Text"); var newsSpotList = Dynamicweb.Services.Pages.GetPagesByParentID(15).Where(o => o.Active && o.IsFolder == false).OrderByDescending(x => x.Item["Publishing_Date_Start"]); var bsColWidth = "col-sm-6"; //default with spots and sponsor images on right int spotIndex = 0; bool isMenuSection = false; if(Model.TopPage.ID == 5 || Model.TopPage.ID == 6) { isMenuSection = true; } else { bsColWidth = "col-sm-12"; } } <div class="container-fluid banner-container"> <div class="banner-wrapper"> @if(Model.TopPage.ID == 5 || Model.TopPage.ID == 6 || Model.TopPage.ID == 44 || Model.TopPage.ID == 47) { @Page_RenderSectionNavigation() } @Page_RenderSlider() </div> </div> <div class="top-page-container" style="background-image:url('@backgroundImage');background-size:cover;"> <div class="container"> <div class="row"> <div class="col-sm-12"> <ul itemscope="" itemtype="https://schema.org/BreadcrumbList" class="breadcrumb" data-itemtypes="Page"> <li itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem"> <a itemprop="item" href="/Default.aspx?ID=@Model.Area.FirstActivePage.ID" title="Forside"><span itemprop="name">@Model.Area.FirstActivePage.Name</span></a> </li> @foreach(var i in Model.Path) { var page = Dynamicweb.Services.Pages.GetPage(i.ID); if(!page.Active) { continue; } if(!page.IsFolder) { <li itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem" data-active="1" data-level="2" data-itemtype="Page" data-pageid="@i.ID"> <a itemprop="item" href="/Default.aspx?ID=@i.ID" title="@i.Name"> <span itemprop="name">&nbsp;/&nbsp;@i.Name</span> </a> </li> } } </ul> </div> <div class="@bsColWidth tp-left"> <h3>@headline</h3> @(text) <div class="row"> @Model.Placeholder("content", "Content", "default:true;sort:1") </div> </div> @if(isMenuSection) { @*<div class="col-sm-6"> @if (Model.ID == 6 || Model.ID == 5) { @Page_RenderNewsSpots() } </div>*@ <div class="col-sm-6"> @Page_RenderSponsors() </div> } </div> </div> </div> </div> @RenderSnippet("Footer") @* Scripts placed at the end of the page to make it load faster *@ @* COOKIE *@ <script type="text/javascript"> window.cookieconsent_options = { 'message': 'Denne hjemmeside anvender cookies til statistik og indstillinger. Ved at bruge hjemmesiden accepterer du dette.', 'dismiss': 'OK', 'learnMore': 'Klik og læs mere her', 'link': '/Default.aspx?id=22', 'target': '_self', 'theme': null, 'markup': [ '<div class="cookie-banner-wrapper">', '<div class="cookie-container">', '<div class="container">', '<div class="row">', '<div class="col-sm-9">', '<p class="cookie-message">', '{{options.message}} ', '<a data-cc-if="options.link" target="{{options.target}}" class="cookie-more-info" href="{{options.link || "#null"}}">{{options.learnMore}}</a>', '</p>', '</div>', '<div class="col-sm-3">', '<a href="/home" data-cc-event="click:dismiss" target="_blank" class="cookie-btn">{{options.dismiss}}</a>', '</div>', '</div>', '</div>', '</div>', '</div>' ] }; </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js"></script> @(bodyEndScripts) </body> </html> @SnippetStart("Footer") @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @using System.Text.RegularExpressions @{ var footer_AreaFirstPage = Model.Area.FirstActivePage.ID; var footer_CompanyName = Model.Area.Item.GetString("Footer_CompanyName"); var footer_Adress = Model.Area.Item.GetString("Footer_Adress"); var footer_CompanyPostal = Model.Area.Item.GetString("Footer_ZipcodeCity"); var footer_CompanyEmail = Model.Area.Item.GetString("Footer_Email"); var footer_CompanyPhone = Model.Area.Item.GetString("Telefon"); var footer_CompanyCVR = Model.Area.Item.GetString("Footer_CVR"); var facebook = Model.Area.Item.GetString("Facebook"); var footerLinks = Model.Area.Item.GetItems("Footer_Links"); var footer_CompanyName2 = Model.Area.Item.GetString("Footer_CompanyName_2"); var footer_Adress2 = Model.Area.Item.GetString("Footer_Adress_2"); var footer_CompanyPostal2 = Model.Area.Item.GetString("Footer_ZipcodeCity_2"); var footer_CompanyEmail2 = Model.Area.Item.GetString("Footer_Email_2"); var footer_CompanyPhone2 = Model.Area.Item.GetString("Footer_Phone_2"); var footer_CompanyCVR2 = Model.Area.Item.GetString("Footer_CVR_2"); var facebook2 = Model.Area.Item.GetString("Facebook_2"); var footerLinks2 = Model.Area.Item.GetItems("Footer_Links_2"); var instagram = Model.Area.Item.GetString("Instagram"); } <div class="footer"> <div class="container"> <div class="row"> <div class="col-sm-6 col-md-4"> @*<svg id="hm-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 251.387 102.922"> <defs> <linearGradient id="a" x1="1.104" y1="0.496" x2="0.089" y2="0.503" gradientUnits="objectBoundingBox"> <stop offset="0" stop-color="#4a838e" /> <stop offset="0.123" stop-color="#4e848c" /> <stop offset="0.265" stop-color="#5b8587" /> <stop offset="0.417" stop-color="#6d857c" /> <stop offset="0.576" stop-color="#84826b" /> <stop offset="0.74" stop-color="#9f7a52" /> <stop offset="0.906" stop-color="#bb6731" /> <stop offset="1" stop-color="#cc5516" /> </linearGradient> </defs> <path class="a" d="M2.2,1.1V99.073a1.1,1.1,0,1,1-2.2,0V1.1a1.1,1.1,0,0,1,2.2,0ZM7.289,21.594a1.1,1.1,0,0,0-1.1,1.1V72.08a1.1,1.1,0,1,0,2.2,0V22.7A1.1,1.1,0,0,0,7.289,21.594Zm6.2,0a1.1,1.1,0,0,0-1.1,1.1V72.08a1.1,1.1,0,1,0,2.2,0V22.7A1.1,1.1,0,0,0,13.485,21.594Zm6.188,0a1.1,1.1,0,0,0-1.1,1.1V72.08a1.1,1.1,0,0,0,2.2,0V22.7A1.1,1.1,0,0,0,19.673,21.594Zm6.188,0A1.306,1.306,0,0,0,24.556,22.9V71.875a1.306,1.306,0,1,0,2.612,0V22.9A1.306,1.306,0,0,0,25.862,21.594Zm6.2,0a1.51,1.51,0,0,0-1.511,1.511V71.67a1.511,1.511,0,0,0,3.022,0V23.105A1.515,1.515,0,0,0,32.057,21.594Zm6.188,0A1.714,1.714,0,0,0,36.53,23.31V98.465a1.716,1.716,0,0,0,3.432,0V23.31A1.724,1.724,0,0,0,38.246,21.594Zm6.188,0a1.923,1.923,0,0,0-1.921,1.921V98.26a1.921,1.921,0,0,0,3.842,0V23.515A1.923,1.923,0,0,0,44.434,21.594Zm6.188,0A2.127,2.127,0,0,0,48.5,23.72V98.055a2.126,2.126,0,0,0,4.252,0V23.72A2.127,2.127,0,0,0,50.622,21.594ZM56.818,0a2.127,2.127,0,0,0-2.126,2.126V98.055a2.126,2.126,0,0,0,4.252,0V2.126A2.132,2.132,0,0,0,56.818,0Z" /> <g transform="translate(71.495 21.526)"><g transform="translate(2.254 69.149)"><path class="b" d="M106.234,119.481a.087.087,0,0,0-.068-.046h-1.5a.069.069,0,0,0-.061.03l-.463.577a4.834,4.834,0,0,0-2.46-.623,4.335,4.335,0,0,0-3.318,1.329,4.954,4.954,0,0,0-1.23,3.508,5.071,5.071,0,0,0,1.086,3.348l-1.071,1.374a.081.081,0,0,0-.008.084.073.073,0,0,0,.068.046h1.5a.069.069,0,0,0,.061-.03l.478-.607a4.7,4.7,0,0,0,2.453.63,4.306,4.306,0,0,0,3.311-1.329,5.011,5.011,0,0,0,1.222-3.523,5.114,5.114,0,0,0-1.063-3.333l1.055-1.367C106.241,119.541,106.249,119.511,106.234,119.481Zm-4.541,8.216a2.789,2.789,0,0,1-1.519-.41l3.948-5.042a4.379,4.379,0,0,1,.425,2.012,3.868,3.868,0,0,1-.752,2.521A2.565,2.565,0,0,1,101.693,127.7Zm-2.111-5.945a2.6,2.6,0,0,1,2.1-.911,2.776,2.776,0,0,1,1.534.395l-3.948,5.057a4.188,4.188,0,0,1-.456-2.027A3.81,3.81,0,0,1,99.582,121.751Z" transform="translate(-97.129 -119.42)" /><path class="b" d="M113.408,125.7c-.046-.015-.129-.053-.251-.1a2.714,2.714,0,0,1-.251-.106c-.046-.023-.121-.053-.228-.106a2.2,2.2,0,0,1-.205-.106,2.171,2.171,0,0,0-.19-.121.56.56,0,0,1-.144-.114c-.03-.038-.068-.091-.106-.144a.859.859,0,0,1-.068-.152.632.632,0,0,1-.023-.167.608.608,0,0,1,.266-.516,1.252,1.252,0,0,1,.759-.205,3.6,3.6,0,0,1,1.777.387.069.069,0,0,0,.076,0,.08.08,0,0,0,.038-.068V122.96a.066.066,0,0,0-.046-.068,4.649,4.649,0,0,0-1.875-.311,3.052,3.052,0,0,0-1.845.539,1.748,1.748,0,0,0-.752,1.5c0,.9.592,1.587,1.762,2.042.387.159.683.281.858.364a1.871,1.871,0,0,1,.478.342.644.644,0,0,1,.22.486.6.6,0,0,1-.281.516,1.417,1.417,0,0,1-.828.205,4.1,4.1,0,0,1-2.058-.577.069.069,0,0,0-.076,0,.08.08,0,0,0-.038.068v1.276a.073.073,0,0,0,.046.068,5.073,5.073,0,0,0,2.194.418,3.072,3.072,0,0,0,1.921-.547,1.808,1.808,0,0,0,.721-1.519,1.6,1.6,0,0,0-.509-1.245A4.341,4.341,0,0,0,113.408,125.7Z" transform="translate(-100.309 -120.181)" /><path class="b" d="M122,127.722a1.565,1.565,0,0,1-.949.289.817.817,0,0,1-.934-.926v-3.751h1.845a.072.072,0,0,0,.076-.076v-1.04a.072.072,0,0,0-.076-.076h-1.845v-1.625a.072.072,0,0,0-.076-.076h-1.427a.072.072,0,0,0-.076.076v1.625h-1.063a.072.072,0,0,0-.076.076v1.04a.072.072,0,0,0,.076.076h1.063v3.721a2.038,2.038,0,0,0,2.339,2.255,2.6,2.6,0,0,0,1.2-.251.08.08,0,0,0,.038-.068v-1.207a.08.08,0,0,0-.038-.068A.092.092,0,0,0,122,127.722Z" transform="translate(-102.008 -119.666)" /><path class="b" d="M127.788,122.57a3.2,3.2,0,0,0-2.407.979,3.687,3.687,0,0,0-.942,2.68,3.471,3.471,0,0,0,1.033,2.6,3.818,3.818,0,0,0,2.764.995,4.572,4.572,0,0,0,2.172-.448.08.08,0,0,0,.038-.068v-1.207a.08.08,0,0,0-.038-.068.069.069,0,0,0-.076,0,3.392,3.392,0,0,1-1.906.509,2.782,2.782,0,0,1-1.632-.463,1.909,1.909,0,0,1-.759-1.245h4.715a.074.074,0,0,0,.076-.061,4.708,4.708,0,0,0,.084-.9,3.331,3.331,0,0,0-.843-2.445A3.069,3.069,0,0,0,127.788,122.57Zm-1.769,3.06a2.247,2.247,0,0,1,.615-1.314,1.658,1.658,0,0,1,1.184-.478,1.46,1.46,0,0,1,1.139.433,1.787,1.787,0,0,1,.425,1.192v.175h-3.364Z" transform="translate(-103.703 -120.178)" /><path class="b" d="M138.059,122.59a1.98,1.98,0,0,0-1.845,1.033v-.888a.072.072,0,0,0-.076-.076h-1.412a.072.072,0,0,0-.076.076v6.955a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-3.705a2.231,2.231,0,0,1,.463-1.42,1.4,1.4,0,0,1,1.154-.592,1.6,1.6,0,0,1,.645.121.071.071,0,0,0,.068-.008.094.094,0,0,0,.03-.061v-1.314a.082.082,0,0,0-.061-.076A2.438,2.438,0,0,0,138.059,122.59Z" transform="translate(-106.161 -120.183)" /><path class="b" d="M152.886,119.66H151.4a.072.072,0,0,0-.076.076v3.9H147.1v-3.9a.072.072,0,0,0-.076-.076h-1.488a.072.072,0,0,0-.076.076v9.241a.072.072,0,0,0,.076.076h1.488a.072.072,0,0,0,.076-.076v-3.971h4.222v3.971a.072.072,0,0,0,.076.076h1.488a.072.072,0,0,0,.076-.076v-9.241A.082.082,0,0,0,152.886,119.66Z" transform="translate(-108.763 -119.478)" /><path class="b" d="M163.66,122.678h-1.412a.072.072,0,0,0-.076.076v3.789a2.145,2.145,0,0,1-.478,1.5,1.611,1.611,0,0,1-1.26.524,1.289,1.289,0,0,1-.964-.357,1.446,1.446,0,0,1-.349-1.04v-4.419a.072.072,0,0,0-.076-.076h-1.427a.072.072,0,0,0-.076.076v4.746a2.312,2.312,0,0,0,.661,1.739,2.459,2.459,0,0,0,1.769.63,2.379,2.379,0,0,0,2.2-1.048v.888a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-6.955A.07.07,0,0,0,163.66,122.678Z" transform="translate(-111.67 -120.202)" /><path class="b" d="M171.239,122.59a1.98,1.98,0,0,0-1.845,1.033v-.888a.072.072,0,0,0-.076-.076h-1.412a.072.072,0,0,0-.076.076v6.955a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-3.705a2.231,2.231,0,0,1,.463-1.42,1.4,1.4,0,0,1,1.154-.592,1.6,1.6,0,0,1,.645.121.071.071,0,0,0,.068-.008.094.094,0,0,0,.03-.061v-1.314a.082.082,0,0,0-.061-.076A2.567,2.567,0,0,0,171.239,122.59Z" transform="translate(-114.147 -120.183)" /><path class="b" d="M180.16,122.678h-1.412a.072.072,0,0,0-.076.076v3.789a2.145,2.145,0,0,1-.478,1.5,1.611,1.611,0,0,1-1.26.524,1.289,1.289,0,0,1-.964-.357,1.446,1.446,0,0,1-.349-1.04v-4.419a.072.072,0,0,0-.076-.076h-1.427a.072.072,0,0,0-.076.076v4.746a2.312,2.312,0,0,0,.661,1.739,2.459,2.459,0,0,0,1.769.63,2.379,2.379,0,0,0,2.2-1.048v.888a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-6.955A.075.075,0,0,0,180.16,122.678Z" transform="translate(-115.642 -120.202)" /><path class="b" d="M190.4,123.577a2.913,2.913,0,0,0-2.339-1.017,2.574,2.574,0,0,0-2.172,1v-.828a.072.072,0,0,0-.076-.076h-1.412a.072.072,0,0,0-.076.076v9.613a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076V128.87a2.584,2.584,0,0,0,2.149.995,2.914,2.914,0,0,0,2.346-1.048,4.4,4.4,0,0,0,.015-5.239Zm-2.574.3a1.618,1.618,0,0,1,1.3.615,2.54,2.54,0,0,1,.516,1.67,2.614,2.614,0,0,1-.532,1.739,1.709,1.709,0,0,1-1.344.615,1.792,1.792,0,0,1-1.306-.585,2.427,2.427,0,0,1-.577-1.754,2.324,2.324,0,0,1,.577-1.746A1.936,1.936,0,0,1,187.83,123.881Z" transform="translate(-118.119 -120.176)" /></g><g transform="translate(0 29.202)"><path class="b" d="M104.858,66.81a10.175,10.175,0,0,0-7.79,3.136A11.687,11.687,0,0,0,94.16,78.2a11.673,11.673,0,0,0,2.923,8.291,11.282,11.282,0,0,0,15.611,0,11.782,11.782,0,0,0,2.885-8.284,11.744,11.744,0,0,0-2.87-8.269A10.17,10.17,0,0,0,104.858,66.81Zm4.692,17.031a5.677,5.677,0,0,1-4.662,2,5.745,5.745,0,0,1-4.632-2.027,8.4,8.4,0,0,1-1.746-5.6,8.484,8.484,0,0,1,1.7-5.588,6.424,6.424,0,0,1,9.324-.015,8.472,8.472,0,0,1,1.7,5.6A8.613,8.613,0,0,1,109.551,83.841Z" transform="translate(-94.16 -66.81)" /><path class="b" d="M139.277,85.869h-8.853V67.722a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h12.665a.373.373,0,0,0,.372-.372V86.234A.371.371,0,0,0,139.277,85.869Z" transform="translate(-101.882 -66.94)" /><path class="b" d="M159.545,67.35H155.6a.366.366,0,0,0-.327.2l-1.632,3.143c-1.83,3.417-3.007,5.687-3.561,6.879-.182-.418-.5-1.078-.957-2-.623-1.268-1.458-2.908-2.475-4.867l-1.6-3.143a.373.373,0,0,0-.327-.205h-3.941a.373.373,0,0,0-.319.182.363.363,0,0,0,0,.372l7.57,13.348v7.874a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V81.253L159.887,67.9a.363.363,0,0,0,0-.372A.4.4,0,0,0,159.545,67.35Z" transform="translate(-105.293 -66.94)" /><path class="b" d="M190.487,67.35h-4.077a.361.361,0,0,0-.342.235L182.924,75.4c-1.086,2.741-2.1,5.421-3.03,7.988l-.084-.243c-.266-.82-.668-2-1.207-3.485s-1.078-2.923-1.61-4.244L173.987,67.6a.364.364,0,0,0-.349-.235h-4.077a.372.372,0,0,0-.372.342l-1.739,21.4a.377.377,0,0,0,.1.281.368.368,0,0,0,.273.121h3.409a.378.378,0,0,0,.372-.342l.668-8.383q.33-4.351.456-6.575l2.4,6.674,3.037,7.973a.364.364,0,0,0,.349.235h2.7a.361.361,0,0,0,.342-.235l3.143-7.973c.957-2.445,1.86-4.806,2.7-7.031l.569,6.932.8,8.383a.366.366,0,0,0,.372.334h3.409a.368.368,0,0,0,.273-.121.36.36,0,0,0,.091-.289l-2.073-21.4A.353.353,0,0,0,190.487,67.35Z" transform="translate(-111.801 -66.94)" /><path class="b" d="M218.614,69.393a9.535,9.535,0,0,0-6.386-2.043h-6.446a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V81.906h2.84a9.351,9.351,0,0,0,6.165-1.989,6.521,6.521,0,0,0,2.422-5.239A6.709,6.709,0,0,0,218.614,69.393Zm-9.02,1.4H212.1a5.269,5.269,0,0,1,3.531,1.048,3.56,3.56,0,0,1,1.177,2.832,3.467,3.467,0,0,1-1.162,2.741,5.091,5.091,0,0,1-3.478,1.048H209.6V70.79Z" transform="translate(-120.939 -66.94)" /><path class="b" d="M232.791,67.35h-3.409a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.409a.373.373,0,0,0,.372-.372v-21.4A.378.378,0,0,0,232.791,67.35Z" transform="translate(-126.619 -66.94)" /><path class="b" d="M250.535,67.593a.37.37,0,0,0-.349-.243h-4.51a.37.37,0,0,0-.349.243L237.544,89a.389.389,0,0,0,.046.342.371.371,0,0,0,.3.159h3.645a.367.367,0,0,0,.349-.251l1.716-4.989h8.557l1.686,4.989a.367.367,0,0,0,.349.251h3.675a.371.371,0,0,0,.3-.159.389.389,0,0,0,.046-.342ZM248.7,73.979c.539,1.64,1.222,3.713,2.073,6.211l.205.592h-6.181l.2-.592c1.45-4.191,2.415-7.054,2.923-8.671C248.083,72.073,248.341,72.885,248.7,73.979Z" transform="translate(-128.669 -66.94)" /></g><path class="b" d="M120.32,50.617a.36.36,0,0,0,.091-.289l-2.073-21.4a.366.366,0,0,0-.372-.334h-4.077a.361.361,0,0,0-.342.235L110.4,36.639c-1.086,2.741-2.1,5.421-3.03,7.988l-.084-.243c-.266-.82-.668-2-1.207-3.485s-1.078-2.923-1.61-4.244l-3.007-7.813a.364.364,0,0,0-.349-.235H97.041a.372.372,0,0,0-.372.342l-1.739,21.4a.377.377,0,0,0,.1.281.368.368,0,0,0,.273.121h3.409a.378.378,0,0,0,.372-.342l.668-8.383q.33-4.351.456-6.575l2.4,6.674,3.037,7.973a.364.364,0,0,0,.349.235h2.7a.361.361,0,0,0,.342-.235l3.143-7.973c.957-2.445,1.86-4.806,2.7-7.031l.569,6.932.8,8.383a.366.366,0,0,0,.372.334h3.417A.44.44,0,0,0,120.32,50.617Z" transform="translate(-94.345 -28.408)" /><path class="b" d="M141.369,51.017a9.137,9.137,0,0,0,6.538-2.263c1.587-1.5,2.384-3.721,2.384-6.591V28.952a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372V42.224c0,3.386-1.549,5.027-4.746,5.027a4.886,4.886,0,0,1-3.409-1.162,4.793,4.793,0,0,1-1.268-3.713V28.96a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v13.47a8.32,8.32,0,0,0,2.392,6.386A9.224,9.224,0,0,0,141.369,51.017Z" transform="translate(-103.389 -28.405)" /><path class="b" d="M161.362,50.736h12.665a.373.373,0,0,0,.372-.372V47.471a.373.373,0,0,0-.372-.372h-8.853V28.952a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v21.4A.374.374,0,0,0,161.362,50.736Z" transform="translate(-110.246 -28.405)" /><path class="b" d="M176.694,32.058h5.512V50.364a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V32.058h5.543a.373.373,0,0,0,.372-.372V28.952a.373.373,0,0,0-.372-.372H176.7a.373.373,0,0,0-.372.372v2.733A.366.366,0,0,0,176.694,32.058Z" transform="translate(-113.939 -28.405)" /><path class="b" d="M204.353,50.367v-21.4a.373.373,0,0,0-.372-.372h-3.409a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.409A.373.373,0,0,0,204.353,50.367Z" transform="translate(-119.685 -28.408)" /><path class="b" d="M224.961,50.739h3.44a.373.373,0,0,0,.372-.372v-21.4a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372V37.8H215.2V28.962a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372v-9h9.385v9A.373.373,0,0,0,224.961,50.739Z" transform="translate(-122.289 -28.408)" /><path class="b" d="M248.359,51.017a9.137,9.137,0,0,0,6.538-2.263c1.587-1.5,2.384-3.721,2.384-6.591V28.952a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372V42.224c0,3.386-1.549,5.027-4.746,5.027a4.886,4.886,0,0,1-3.409-1.162,4.793,4.793,0,0,1-1.268-3.713V28.96a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v13.47a8.32,8.32,0,0,0,2.392,6.386A9.211,9.211,0,0,0,248.359,51.017Z" transform="translate(-129.142 -28.405)" /><path class="b" d="M279.25,40.02a15.616,15.616,0,0,0-1.853-1.192c-.539-.281-1.283-.615-2.217-1a15.435,15.435,0,0,1-3.1-1.61,2.044,2.044,0,0,1-.888-1.739,2.075,2.075,0,0,1,.9-1.754,4.421,4.421,0,0,1,2.673-.706,9.419,9.419,0,0,1,4.89,1.283.363.363,0,0,0,.372,0,.38.38,0,0,0,.19-.319V29.74a.369.369,0,0,0-.213-.334,12.414,12.414,0,0,0-5.338-1.055,9.078,9.078,0,0,0-5.619,1.663,5.522,5.522,0,0,0-2.232,4.617,5.076,5.076,0,0,0,.235,1.587,9.491,9.491,0,0,0,.486,1.245,3.844,3.844,0,0,0,.9,1.124,12.367,12.367,0,0,0,.979.812,9.2,9.2,0,0,0,1.238.729c.539.281.934.471,1.169.577s.645.289,1.222.539c.964.418,1.7.752,2.187.995a4.207,4.207,0,0,1,1.26.995,1.938,1.938,0,0,1,.539,1.329,2.3,2.3,0,0,1-.919,1.944,4.389,4.389,0,0,1-2.68.737,9.966,9.966,0,0,1-5.9-1.807.374.374,0,0,0-.387-.03.366.366,0,0,0-.2.326v3.4a.367.367,0,0,0,.19.326,12.925,12.925,0,0,0,6.325,1.412,9.093,9.093,0,0,0,5.672-1.693,5.662,5.662,0,0,0,2.247-4.738,5.934,5.934,0,0,0-.516-2.521A5.126,5.126,0,0,0,279.25,40.02Z" transform="translate(-135.721 -28.35)" /><path class="b" d="M303.161,47.264h-9.187V41.394h7.95a.373.373,0,0,0,.372-.372V38.289a.373.373,0,0,0-.372-.372h-7.95V32.048h9.02a.373.373,0,0,0,.372-.372V28.942a.373.373,0,0,0-.372-.372H290.162a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h13a.373.373,0,0,0,.372-.372V47.613A.374.374,0,0,0,303.161,47.264Z" transform="translate(-141.25 -28.403)" /><path class="b" d="M325.633,28.59H310.4a.373.373,0,0,0-.372.372V31.7a.373.373,0,0,0,.372.372h5.512V50.374a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V32.06h5.543a.373.373,0,0,0,.372-.372V28.954A.383.383,0,0,0,325.633,28.59Z" transform="translate(-146.122 -28.408)" /></g> </svg>*@ <a href="/default.aspx?id=4"> <img class="img-fluid" src="/Files/Images/Logo/hm-logo.png" /> </a> </div> <div class="col-sm-6 col-md-4"> <div class="footer-address"> <p> <span class="company-header">@(footer_CompanyName)</span><br /> @(footer_Adress) <br /> @(footer_CompanyPostal) <br /> <br /> @(footer_CompanyPhone) <br /> @(footer_CompanyEmail) <br /> @(footer_CompanyCVR) <br /> </p> @foreach (var i in footerLinks) { if (i != null) { <a href="@i.GetString("Footer_Link")">@i.GetString("Link_Text")</a><br /> } } <a href="@(facebook)"> <svg id="fb-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41.203 41.203"> <defs></defs> <g transform="translate(-903.2 -2819.999)"><path class="a" d="M20.6,0A20.6,20.6,0,1,0,41.2,20.6,20.587,20.587,0,0,0,20.6,0Zm5.443,20.518h-3.6V33.247H17.168V20.518H14.655V16h2.512V13.064c0-2.094,1-5.36,5.36-5.36h3.936v4.355H23.616c-.5,0-1.089.251-1.089,1.256V16h4.02Z" transform="translate(903.2 2819.999)" /></g> </svg> </a> </div> </div> <div class="col-sm-6 col-md-4"> <div class="footer-address"> <p> <span class="company-header">@(footer_CompanyName2)</span><br /> @(footer_Adress2) <br /> @(footer_CompanyPostal2) <br /> <br /> @(footer_CompanyPhone2) <br /> @(footer_CompanyEmail2) <br /> @(footer_CompanyCVR2) <br /> </p> @foreach (var i in footerLinks2) { if (i != null) { <a href="@i.GetString("Footer_Link")">@i.GetString("Link_Text")</a><br /> } } <a href="@(facebook2)"> <svg id="fb-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41.203 41.203"> <defs></defs> <g transform="translate(-903.2 -2819.999)"><path class="a" d="M20.6,0A20.6,20.6,0,1,0,41.2,20.6,20.587,20.587,0,0,0,20.6,0Zm5.443,20.518h-3.6V33.247H17.168V20.518H14.655V16h2.512V13.064c0-2.094,1-5.36,5.36-5.36h3.936v4.355H23.616c-.5,0-1.089.251-1.089,1.256V16h4.02Z" transform="translate(903.2 2819.999)" /></g> </svg> </a> </div> @*<a href="@(instagram)"> <svg id="ig-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41.202 41.201"> <defs></defs> <circle class="a" cx="3.685" cy="3.685" r="3.685" transform="translate(16.749 17.084)" /> <path class="a" d="M27.25,14H18.038a4.576,4.576,0,0,0-3.266,1.172A4.576,4.576,0,0,0,13.6,18.438V27.65A4.616,4.616,0,0,0,14.856,31a4.721,4.721,0,0,0,3.266,1.172H27.25A4.576,4.576,0,0,0,30.516,31a4.29,4.29,0,0,0,1.256-3.266V18.522A4.721,4.721,0,0,0,30.6,15.256,4.484,4.484,0,0,0,27.25,14ZM22.644,28.739a5.695,5.695,0,1,1,0-11.389,5.7,5.7,0,1,1,0,11.389Zm5.946-10.3a1.34,1.34,0,1,1,1.34-1.34A1.323,1.323,0,0,1,28.59,18.438Z" transform="translate(-2.211 -2.276)" /> <path class="a" d="M20.6,0A20.6,20.6,0,1,0,41.2,20.6,20.586,20.586,0,0,0,20.6,0Zm10.97,25.458a6.638,6.638,0,0,1-1.842,4.773,6.517,6.517,0,0,1-4.69,1.759H15.911a6.517,6.517,0,0,1-4.69-1.759,6.309,6.309,0,0,1-1.842-4.773V16.246a6.2,6.2,0,0,1,6.532-6.532h9.212a6.438,6.438,0,0,1,4.69,1.842,6.382,6.382,0,0,1,1.759,4.69S31.571,25.458,31.571,25.458Z" /> </svg> </a>*@ </div> </div> </div> </div> @SnippetEnd("Footer") @SnippetStart("OpenGraph") @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @{ var openGraph_Domain = Dynamicweb.Context.Current.Request.Url.Scheme + "://" + Dynamicweb.Context.Current.Request.Url.Host; var openGraph_Url = Model.Item.GetString("Item.Page.OgUrl"); var openGraph_Title = Model.Item.GetString("Item.Page.OgTitle"); var openGraph_Type = Model.Item.GetString("Item.Page.OgType"); var openGraph_Description = Model.Item.GetString("Item.Page.OgDescription"); var openGraph_Image = Model.Item.GetString("Item.Page.OgImage"); } @if (!string.IsNullOrWhiteSpace(openGraph_Url)) { <meta property="og:url" content="@(openGraph_Domain)/Default.aspx?ID=@(openGraph_Url)"> } @if (!string.IsNullOrWhiteSpace(openGraph_Title)) { <meta property="og:title" content="@(openGraph_Title)"> } @if (!string.IsNullOrWhiteSpace(openGraph_Type)) { <meta property="og:type" content="@(openGraph_Type)"> } @if (!string.IsNullOrWhiteSpace(openGraph_Description)) { <meta property="og:description" content="@(openGraph_Description)"> } @if (!string.IsNullOrWhiteSpace(openGraph_Image)) { <meta property="og:image" content="@(openGraph_Domain)@(openGraph_Image)"> } @SnippetEnd("OpenGraph") @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> @SnippetStart("Top") @{ string userAgent = Dynamicweb.Context.Current.Request.UserAgent.ToLower(); string userDevice = Dynamicweb.Frontend.Devices.DeviceInfo.ParseFromUserAgentString(userAgent).DeviceType.ToString(); } <header> <div class="container"> <div class="row"> @*<svg id="hm-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 251.387 102.922"><defs><linearGradient id="a" x1="1.104" y1="0.496" x2="0.089" y2="0.503" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#4a838e" /><stop offset="0.123" stop-color="#4e848c" /><stop offset="0.265" stop-color="#5b8587" /><stop offset="0.417" stop-color="#6d857c" /><stop offset="0.576" stop-color="#84826b" /><stop offset="0.74" stop-color="#9f7a52" /><stop offset="0.906" stop-color="#bb6731" /><stop offset="1" stop-color="#cc5516" /></linearGradient></defs><path class="a" d="M2.2,1.1V99.073a1.1,1.1,0,1,1-2.2,0V1.1a1.1,1.1,0,0,1,2.2,0ZM7.289,21.594a1.1,1.1,0,0,0-1.1,1.1V72.08a1.1,1.1,0,1,0,2.2,0V22.7A1.1,1.1,0,0,0,7.289,21.594Zm6.2,0a1.1,1.1,0,0,0-1.1,1.1V72.08a1.1,1.1,0,1,0,2.2,0V22.7A1.1,1.1,0,0,0,13.485,21.594Zm6.188,0a1.1,1.1,0,0,0-1.1,1.1V72.08a1.1,1.1,0,0,0,2.2,0V22.7A1.1,1.1,0,0,0,19.673,21.594Zm6.188,0A1.306,1.306,0,0,0,24.556,22.9V71.875a1.306,1.306,0,1,0,2.612,0V22.9A1.306,1.306,0,0,0,25.862,21.594Zm6.2,0a1.51,1.51,0,0,0-1.511,1.511V71.67a1.511,1.511,0,0,0,3.022,0V23.105A1.515,1.515,0,0,0,32.057,21.594Zm6.188,0A1.714,1.714,0,0,0,36.53,23.31V98.465a1.716,1.716,0,0,0,3.432,0V23.31A1.724,1.724,0,0,0,38.246,21.594Zm6.188,0a1.923,1.923,0,0,0-1.921,1.921V98.26a1.921,1.921,0,0,0,3.842,0V23.515A1.923,1.923,0,0,0,44.434,21.594Zm6.188,0A2.127,2.127,0,0,0,48.5,23.72V98.055a2.126,2.126,0,0,0,4.252,0V23.72A2.127,2.127,0,0,0,50.622,21.594ZM56.818,0a2.127,2.127,0,0,0-2.126,2.126V98.055a2.126,2.126,0,0,0,4.252,0V2.126A2.132,2.132,0,0,0,56.818,0Z" /><g transform="translate(71.495 21.526)"><g transform="translate(2.254 69.149)"><path class="b" d="M106.234,119.481a.087.087,0,0,0-.068-.046h-1.5a.069.069,0,0,0-.061.03l-.463.577a4.834,4.834,0,0,0-2.46-.623,4.335,4.335,0,0,0-3.318,1.329,4.954,4.954,0,0,0-1.23,3.508,5.071,5.071,0,0,0,1.086,3.348l-1.071,1.374a.081.081,0,0,0-.008.084.073.073,0,0,0,.068.046h1.5a.069.069,0,0,0,.061-.03l.478-.607a4.7,4.7,0,0,0,2.453.63,4.306,4.306,0,0,0,3.311-1.329,5.011,5.011,0,0,0,1.222-3.523,5.114,5.114,0,0,0-1.063-3.333l1.055-1.367C106.241,119.541,106.249,119.511,106.234,119.481Zm-4.541,8.216a2.789,2.789,0,0,1-1.519-.41l3.948-5.042a4.379,4.379,0,0,1,.425,2.012,3.868,3.868,0,0,1-.752,2.521A2.565,2.565,0,0,1,101.693,127.7Zm-2.111-5.945a2.6,2.6,0,0,1,2.1-.911,2.776,2.776,0,0,1,1.534.395l-3.948,5.057a4.188,4.188,0,0,1-.456-2.027A3.81,3.81,0,0,1,99.582,121.751Z" transform="translate(-97.129 -119.42)" /><path class="b" d="M113.408,125.7c-.046-.015-.129-.053-.251-.1a2.714,2.714,0,0,1-.251-.106c-.046-.023-.121-.053-.228-.106a2.2,2.2,0,0,1-.205-.106,2.171,2.171,0,0,0-.19-.121.56.56,0,0,1-.144-.114c-.03-.038-.068-.091-.106-.144a.859.859,0,0,1-.068-.152.632.632,0,0,1-.023-.167.608.608,0,0,1,.266-.516,1.252,1.252,0,0,1,.759-.205,3.6,3.6,0,0,1,1.777.387.069.069,0,0,0,.076,0,.08.08,0,0,0,.038-.068V122.96a.066.066,0,0,0-.046-.068,4.649,4.649,0,0,0-1.875-.311,3.052,3.052,0,0,0-1.845.539,1.748,1.748,0,0,0-.752,1.5c0,.9.592,1.587,1.762,2.042.387.159.683.281.858.364a1.871,1.871,0,0,1,.478.342.644.644,0,0,1,.22.486.6.6,0,0,1-.281.516,1.417,1.417,0,0,1-.828.205,4.1,4.1,0,0,1-2.058-.577.069.069,0,0,0-.076,0,.08.08,0,0,0-.038.068v1.276a.073.073,0,0,0,.046.068,5.073,5.073,0,0,0,2.194.418,3.072,3.072,0,0,0,1.921-.547,1.808,1.808,0,0,0,.721-1.519,1.6,1.6,0,0,0-.509-1.245A4.341,4.341,0,0,0,113.408,125.7Z" transform="translate(-100.309 -120.181)" /><path class="b" d="M122,127.722a1.565,1.565,0,0,1-.949.289.817.817,0,0,1-.934-.926v-3.751h1.845a.072.072,0,0,0,.076-.076v-1.04a.072.072,0,0,0-.076-.076h-1.845v-1.625a.072.072,0,0,0-.076-.076h-1.427a.072.072,0,0,0-.076.076v1.625h-1.063a.072.072,0,0,0-.076.076v1.04a.072.072,0,0,0,.076.076h1.063v3.721a2.038,2.038,0,0,0,2.339,2.255,2.6,2.6,0,0,0,1.2-.251.08.08,0,0,0,.038-.068v-1.207a.08.08,0,0,0-.038-.068A.092.092,0,0,0,122,127.722Z" transform="translate(-102.008 -119.666)" /><path class="b" d="M127.788,122.57a3.2,3.2,0,0,0-2.407.979,3.687,3.687,0,0,0-.942,2.68,3.471,3.471,0,0,0,1.033,2.6,3.818,3.818,0,0,0,2.764.995,4.572,4.572,0,0,0,2.172-.448.08.08,0,0,0,.038-.068v-1.207a.08.08,0,0,0-.038-.068.069.069,0,0,0-.076,0,3.392,3.392,0,0,1-1.906.509,2.782,2.782,0,0,1-1.632-.463,1.909,1.909,0,0,1-.759-1.245h4.715a.074.074,0,0,0,.076-.061,4.708,4.708,0,0,0,.084-.9,3.331,3.331,0,0,0-.843-2.445A3.069,3.069,0,0,0,127.788,122.57Zm-1.769,3.06a2.247,2.247,0,0,1,.615-1.314,1.658,1.658,0,0,1,1.184-.478,1.46,1.46,0,0,1,1.139.433,1.787,1.787,0,0,1,.425,1.192v.175h-3.364Z" transform="translate(-103.703 -120.178)" /><path class="b" d="M138.059,122.59a1.98,1.98,0,0,0-1.845,1.033v-.888a.072.072,0,0,0-.076-.076h-1.412a.072.072,0,0,0-.076.076v6.955a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-3.705a2.231,2.231,0,0,1,.463-1.42,1.4,1.4,0,0,1,1.154-.592,1.6,1.6,0,0,1,.645.121.071.071,0,0,0,.068-.008.094.094,0,0,0,.03-.061v-1.314a.082.082,0,0,0-.061-.076A2.438,2.438,0,0,0,138.059,122.59Z" transform="translate(-106.161 -120.183)" /><path class="b" d="M152.886,119.66H151.4a.072.072,0,0,0-.076.076v3.9H147.1v-3.9a.072.072,0,0,0-.076-.076h-1.488a.072.072,0,0,0-.076.076v9.241a.072.072,0,0,0,.076.076h1.488a.072.072,0,0,0,.076-.076v-3.971h4.222v3.971a.072.072,0,0,0,.076.076h1.488a.072.072,0,0,0,.076-.076v-9.241A.082.082,0,0,0,152.886,119.66Z" transform="translate(-108.763 -119.478)" /><path class="b" d="M163.66,122.678h-1.412a.072.072,0,0,0-.076.076v3.789a2.145,2.145,0,0,1-.478,1.5,1.611,1.611,0,0,1-1.26.524,1.289,1.289,0,0,1-.964-.357,1.446,1.446,0,0,1-.349-1.04v-4.419a.072.072,0,0,0-.076-.076h-1.427a.072.072,0,0,0-.076.076v4.746a2.312,2.312,0,0,0,.661,1.739,2.459,2.459,0,0,0,1.769.63,2.379,2.379,0,0,0,2.2-1.048v.888a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-6.955A.07.07,0,0,0,163.66,122.678Z" transform="translate(-111.67 -120.202)" /><path class="b" d="M171.239,122.59a1.98,1.98,0,0,0-1.845,1.033v-.888a.072.072,0,0,0-.076-.076h-1.412a.072.072,0,0,0-.076.076v6.955a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-3.705a2.231,2.231,0,0,1,.463-1.42,1.4,1.4,0,0,1,1.154-.592,1.6,1.6,0,0,1,.645.121.071.071,0,0,0,.068-.008.094.094,0,0,0,.03-.061v-1.314a.082.082,0,0,0-.061-.076A2.567,2.567,0,0,0,171.239,122.59Z" transform="translate(-114.147 -120.183)" /><path class="b" d="M180.16,122.678h-1.412a.072.072,0,0,0-.076.076v3.789a2.145,2.145,0,0,1-.478,1.5,1.611,1.611,0,0,1-1.26.524,1.289,1.289,0,0,1-.964-.357,1.446,1.446,0,0,1-.349-1.04v-4.419a.072.072,0,0,0-.076-.076h-1.427a.072.072,0,0,0-.076.076v4.746a2.312,2.312,0,0,0,.661,1.739,2.459,2.459,0,0,0,1.769.63,2.379,2.379,0,0,0,2.2-1.048v.888a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076v-6.955A.075.075,0,0,0,180.16,122.678Z" transform="translate(-115.642 -120.202)" /><path class="b" d="M190.4,123.577a2.913,2.913,0,0,0-2.339-1.017,2.574,2.574,0,0,0-2.172,1v-.828a.072.072,0,0,0-.076-.076h-1.412a.072.072,0,0,0-.076.076v9.613a.072.072,0,0,0,.076.076h1.412a.072.072,0,0,0,.076-.076V128.87a2.584,2.584,0,0,0,2.149.995,2.914,2.914,0,0,0,2.346-1.048,4.4,4.4,0,0,0,.015-5.239Zm-2.574.3a1.618,1.618,0,0,1,1.3.615,2.54,2.54,0,0,1,.516,1.67,2.614,2.614,0,0,1-.532,1.739,1.709,1.709,0,0,1-1.344.615,1.792,1.792,0,0,1-1.306-.585,2.427,2.427,0,0,1-.577-1.754,2.324,2.324,0,0,1,.577-1.746A1.936,1.936,0,0,1,187.83,123.881Z" transform="translate(-118.119 -120.176)" /></g><g transform="translate(0 29.202)"><path class="b" d="M104.858,66.81a10.175,10.175,0,0,0-7.79,3.136A11.687,11.687,0,0,0,94.16,78.2a11.673,11.673,0,0,0,2.923,8.291,11.282,11.282,0,0,0,15.611,0,11.782,11.782,0,0,0,2.885-8.284,11.744,11.744,0,0,0-2.87-8.269A10.17,10.17,0,0,0,104.858,66.81Zm4.692,17.031a5.677,5.677,0,0,1-4.662,2,5.745,5.745,0,0,1-4.632-2.027,8.4,8.4,0,0,1-1.746-5.6,8.484,8.484,0,0,1,1.7-5.588,6.424,6.424,0,0,1,9.324-.015,8.472,8.472,0,0,1,1.7,5.6A8.613,8.613,0,0,1,109.551,83.841Z" transform="translate(-94.16 -66.81)" /><path class="b" d="M139.277,85.869h-8.853V67.722a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h12.665a.373.373,0,0,0,.372-.372V86.234A.371.371,0,0,0,139.277,85.869Z" transform="translate(-101.882 -66.94)" /><path class="b" d="M159.545,67.35H155.6a.366.366,0,0,0-.327.2l-1.632,3.143c-1.83,3.417-3.007,5.687-3.561,6.879-.182-.418-.5-1.078-.957-2-.623-1.268-1.458-2.908-2.475-4.867l-1.6-3.143a.373.373,0,0,0-.327-.205h-3.941a.373.373,0,0,0-.319.182.363.363,0,0,0,0,.372l7.57,13.348v7.874a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V81.253L159.887,67.9a.363.363,0,0,0,0-.372A.4.4,0,0,0,159.545,67.35Z" transform="translate(-105.293 -66.94)" /><path class="b" d="M190.487,67.35h-4.077a.361.361,0,0,0-.342.235L182.924,75.4c-1.086,2.741-2.1,5.421-3.03,7.988l-.084-.243c-.266-.82-.668-2-1.207-3.485s-1.078-2.923-1.61-4.244L173.987,67.6a.364.364,0,0,0-.349-.235h-4.077a.372.372,0,0,0-.372.342l-1.739,21.4a.377.377,0,0,0,.1.281.368.368,0,0,0,.273.121h3.409a.378.378,0,0,0,.372-.342l.668-8.383q.33-4.351.456-6.575l2.4,6.674,3.037,7.973a.364.364,0,0,0,.349.235h2.7a.361.361,0,0,0,.342-.235l3.143-7.973c.957-2.445,1.86-4.806,2.7-7.031l.569,6.932.8,8.383a.366.366,0,0,0,.372.334h3.409a.368.368,0,0,0,.273-.121.36.36,0,0,0,.091-.289l-2.073-21.4A.353.353,0,0,0,190.487,67.35Z" transform="translate(-111.801 -66.94)" /><path class="b" d="M218.614,69.393a9.535,9.535,0,0,0-6.386-2.043h-6.446a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V81.906h2.84a9.351,9.351,0,0,0,6.165-1.989,6.521,6.521,0,0,0,2.422-5.239A6.709,6.709,0,0,0,218.614,69.393Zm-9.02,1.4H212.1a5.269,5.269,0,0,1,3.531,1.048,3.56,3.56,0,0,1,1.177,2.832,3.467,3.467,0,0,1-1.162,2.741,5.091,5.091,0,0,1-3.478,1.048H209.6V70.79Z" transform="translate(-120.939 -66.94)" /><path class="b" d="M232.791,67.35h-3.409a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.409a.373.373,0,0,0,.372-.372v-21.4A.378.378,0,0,0,232.791,67.35Z" transform="translate(-126.619 -66.94)" /><path class="b" d="M250.535,67.593a.37.37,0,0,0-.349-.243h-4.51a.37.37,0,0,0-.349.243L237.544,89a.389.389,0,0,0,.046.342.371.371,0,0,0,.3.159h3.645a.367.367,0,0,0,.349-.251l1.716-4.989h8.557l1.686,4.989a.367.367,0,0,0,.349.251h3.675a.371.371,0,0,0,.3-.159.389.389,0,0,0,.046-.342ZM248.7,73.979c.539,1.64,1.222,3.713,2.073,6.211l.205.592h-6.181l.2-.592c1.45-4.191,2.415-7.054,2.923-8.671C248.083,72.073,248.341,72.885,248.7,73.979Z" transform="translate(-128.669 -66.94)" /></g><path class="b" d="M120.32,50.617a.36.36,0,0,0,.091-.289l-2.073-21.4a.366.366,0,0,0-.372-.334h-4.077a.361.361,0,0,0-.342.235L110.4,36.639c-1.086,2.741-2.1,5.421-3.03,7.988l-.084-.243c-.266-.82-.668-2-1.207-3.485s-1.078-2.923-1.61-4.244l-3.007-7.813a.364.364,0,0,0-.349-.235H97.041a.372.372,0,0,0-.372.342l-1.739,21.4a.377.377,0,0,0,.1.281.368.368,0,0,0,.273.121h3.409a.378.378,0,0,0,.372-.342l.668-8.383q.33-4.351.456-6.575l2.4,6.674,3.037,7.973a.364.364,0,0,0,.349.235h2.7a.361.361,0,0,0,.342-.235l3.143-7.973c.957-2.445,1.86-4.806,2.7-7.031l.569,6.932.8,8.383a.366.366,0,0,0,.372.334h3.417A.44.44,0,0,0,120.32,50.617Z" transform="translate(-94.345 -28.408)" /><path class="b" d="M141.369,51.017a9.137,9.137,0,0,0,6.538-2.263c1.587-1.5,2.384-3.721,2.384-6.591V28.952a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372V42.224c0,3.386-1.549,5.027-4.746,5.027a4.886,4.886,0,0,1-3.409-1.162,4.793,4.793,0,0,1-1.268-3.713V28.96a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v13.47a8.32,8.32,0,0,0,2.392,6.386A9.224,9.224,0,0,0,141.369,51.017Z" transform="translate(-103.389 -28.405)" /><path class="b" d="M161.362,50.736h12.665a.373.373,0,0,0,.372-.372V47.471a.373.373,0,0,0-.372-.372h-8.853V28.952a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v21.4A.374.374,0,0,0,161.362,50.736Z" transform="translate(-110.246 -28.405)" /><path class="b" d="M176.694,32.058h5.512V50.364a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V32.058h5.543a.373.373,0,0,0,.372-.372V28.952a.373.373,0,0,0-.372-.372H176.7a.373.373,0,0,0-.372.372v2.733A.366.366,0,0,0,176.694,32.058Z" transform="translate(-113.939 -28.405)" /><path class="b" d="M204.353,50.367v-21.4a.373.373,0,0,0-.372-.372h-3.409a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.409A.373.373,0,0,0,204.353,50.367Z" transform="translate(-119.685 -28.408)" /><path class="b" d="M224.961,50.739h3.44a.373.373,0,0,0,.372-.372v-21.4a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372V37.8H215.2V28.962a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372v-9h9.385v9A.373.373,0,0,0,224.961,50.739Z" transform="translate(-122.289 -28.408)" /><path class="b" d="M248.359,51.017a9.137,9.137,0,0,0,6.538-2.263c1.587-1.5,2.384-3.721,2.384-6.591V28.952a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372V42.224c0,3.386-1.549,5.027-4.746,5.027a4.886,4.886,0,0,1-3.409-1.162,4.793,4.793,0,0,1-1.268-3.713V28.96a.373.373,0,0,0-.372-.372h-3.44a.373.373,0,0,0-.372.372v13.47a8.32,8.32,0,0,0,2.392,6.386A9.211,9.211,0,0,0,248.359,51.017Z" transform="translate(-129.142 -28.405)" /><path class="b" d="M279.25,40.02a15.616,15.616,0,0,0-1.853-1.192c-.539-.281-1.283-.615-2.217-1a15.435,15.435,0,0,1-3.1-1.61,2.044,2.044,0,0,1-.888-1.739,2.075,2.075,0,0,1,.9-1.754,4.421,4.421,0,0,1,2.673-.706,9.419,9.419,0,0,1,4.89,1.283.363.363,0,0,0,.372,0,.38.38,0,0,0,.19-.319V29.74a.369.369,0,0,0-.213-.334,12.414,12.414,0,0,0-5.338-1.055,9.078,9.078,0,0,0-5.619,1.663,5.522,5.522,0,0,0-2.232,4.617,5.076,5.076,0,0,0,.235,1.587,9.491,9.491,0,0,0,.486,1.245,3.844,3.844,0,0,0,.9,1.124,12.367,12.367,0,0,0,.979.812,9.2,9.2,0,0,0,1.238.729c.539.281.934.471,1.169.577s.645.289,1.222.539c.964.418,1.7.752,2.187.995a4.207,4.207,0,0,1,1.26.995,1.938,1.938,0,0,1,.539,1.329,2.3,2.3,0,0,1-.919,1.944,4.389,4.389,0,0,1-2.68.737,9.966,9.966,0,0,1-5.9-1.807.374.374,0,0,0-.387-.03.366.366,0,0,0-.2.326v3.4a.367.367,0,0,0,.19.326,12.925,12.925,0,0,0,6.325,1.412,9.093,9.093,0,0,0,5.672-1.693,5.662,5.662,0,0,0,2.247-4.738,5.934,5.934,0,0,0-.516-2.521A5.126,5.126,0,0,0,279.25,40.02Z" transform="translate(-135.721 -28.35)" /><path class="b" d="M303.161,47.264h-9.187V41.394h7.95a.373.373,0,0,0,.372-.372V38.289a.373.373,0,0,0-.372-.372h-7.95V32.048h9.02a.373.373,0,0,0,.372-.372V28.942a.373.373,0,0,0-.372-.372H290.162a.373.373,0,0,0-.372.372v21.4a.373.373,0,0,0,.372.372h13a.373.373,0,0,0,.372-.372V47.613A.374.374,0,0,0,303.161,47.264Z" transform="translate(-141.25 -28.403)" /><path class="b" d="M325.633,28.59H310.4a.373.373,0,0,0-.372.372V31.7a.373.373,0,0,0,.372.372h5.512V50.374a.373.373,0,0,0,.372.372h3.44a.373.373,0,0,0,.372-.372V32.06h5.543a.373.373,0,0,0,.372-.372V28.954A.383.383,0,0,0,325.633,28.59Z" transform="translate(-146.122 -28.408)" /></g></svg>*@ <div class="col-sm-3"> <a href="/default.aspx?id=4"><img id="top-logo-img" src="/Files/Images/Logo/hm-logo.png" /></a> </div> <div class="col-sm-9"> <div class="search-holder"> <form method="get" action="/Default.aspx" role="search" class="form-search hide"> <div class="form-group"> <input type="hidden" name="ID" value="@searchPageID" /> <div class="input-group"> <input type="text" class="form-control" name="q" placeholder='Søg' /> <span class="input-group-btn"> <button type="submit" class="btn btn-default" id="search-btn"><i class="fa fa-search"></i></button> </span> </div> </div> </form> </div> <div class="d-flex justify-content-end" id="topstickers"> @if(Model.TopPage.ID == 5 || Model.TopPage.ID == 47) { <a href="/default.aspx?id=6" id="left-sticker"> <div class="top-section-nav d-flex align-items-center"> <div class="logo-wrapper"> @Page_RenderCultureLogo() </div> <div> <p>@Translate("Kulturaktiviteter")</p> </div> </div> </a> } else if(Model.TopPage.ID == 6 || Model.TopPage.ID == 44) { <a href="/default.aspx?id=5" id="right-sticker"> <div class="top-section-nav d-flex align-items-center"> <div class="logo-wrapper"> @Page_RenderSportsLogo() </div> <div> <p>@Translate("Idrætsaktiviteter")</p> </div> </div> </a> } @*else if(Model.TopPage.ID != 4) { <a href="/default.aspx?id=6" id="left-sticker"> <div class="top-section-nav d-flex align-items-center"> <div class="logo-wrapper"> @Page_RenderCultureLogo() </div> <div> <p>@Translate("Kulturaktiviteter")</p> </div> </div> </a> <a href="/default.aspx?id=5" id="right-sticker"> <div class="top-section-nav d-flex align-items-center"> <div class="logo-wrapper"> @Page_RenderSportsLogo() </div> <div> <p>@Translate("Idrætsaktiviteter")</p> </div> </div> </a> }*@ </div> <div class="nav-wrap"> <div class="sticky-burger-tab hidden-lg hidden-md"> <div id="burger-btn" onclick="openNav()"> <span></span> <span></span> <span></span> </div> </div> @if(Model.ID != 4) { <nav class="navbar navbar-expand-lg navbar-light" id="top-bar-nav"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNav"> <ul class="nav navbar-nav ml-auto align-items-end"> @if (Model.TopPage.ID == 6 || Model.TopPage.ID == 44) { foreach (var t in Dynamicweb.Services.Pages.GetPagesByParentID(44).Where(x => x.Active && x.ItemType == "Top_Page")) { if (t.Hidden || t.IsFolder || (userDevice == "Desktop" && t.HideForDesktops) || (userDevice == "Mobile" && t.HideForPhones) || (userDevice == "Tablet" && t.HideForTablets)) { continue; } string pageClass = "nav-item"; if (t.ID == Pageview.ID) { pageClass += " active"; } <li class="@pageClass"> <a href="/Default.aspx?ID=@t.ID" class="nav-link">@t.MenuText</a> </li> } } else if(Model.TopPage.ID == 5 || Model.TopPage.ID == 47) { foreach (var t in Dynamicweb.Services.Pages.GetPagesByParentID(47).Where(x => x.Active)) { if (t.Hidden || t.IsFolder || (userDevice == "Desktop" && t.HideForDesktops) || (userDevice == "Mobile" && t.HideForPhones) || (userDevice == "Tablet" && t.HideForTablets)) { continue; } string pageClass = "nav-item"; if (t.ID == Pageview.ID) { pageClass += " active"; } <li class="@pageClass"> <a href="/Default.aspx?ID=@t.ID" class="nav-link">@t.MenuText</a> </li> } } <li class="nav-item" id="nav-search"> <a href="javascript:void(quickSearchFormToggle())"><i class="fa fa-search fa-fw"></i></a> </li> </ul> </div> </nav> } </div> </div> </div> </div> </header> @SnippetEnd("Top") <script type="text/javascript"> function hmToplevelClick() { //$('.hm-toplevel-nav').on('click', function () { // var icon = $('.menu-arrow'); // var icon_fa_icon = icon.attr('data-icon'); // console.log('icon: ' + icon_fa_icon); // $('.hm-toplevel-dropdown').toggle(); // if (icon_fa_icon === "angle-right") { // icon.attr('data-icon', 'angle-down'); // } else { // icon.attr('data-icon', 'angle-right'); // } //}); $('.hm-toplevel-nav').on('mouseenter mouseleave', function () { var icon = $('.menu-arrow'); var icon_fa_icon = icon.attr('data-icon'); console.log('icon: ' + icon_fa_icon); $('.hm-toplevel-dropdown').toggle(); if (icon_fa_icon === "angle-right") { icon.attr('data-icon', 'angle-down'); } else { icon.attr('data-icon', 'angle-right'); } }); } window.onload = hmToplevelClick; // SERVICE NAV DROP DOWN //$(".dropdown > a.dropdown-toggle").click(function (evt) { // console.log('toggle dropdown'); // evt.preventDefault(); // var hasActive = $(this).hasClass('active'); // $('.dropdown > a.dropdown-toggle').removeClass('active'); // if (!hasActive) { // $(this).addClass('active'); // } //}); function openNav() { var navElement = $('#Sidenav'); if (navElement.hasClass('sidenav-open')) { navElement.removeClass('sidenav-open'); //allow body scrolling $('body').css({ "overflow": "scroll" }); } else { navElement.addClass('sidenav-open'); //prevent body from scroling $('body').css({ "overflow": "hidden" }); } } function quickSearchFormToggle() { var $form = $('form.form-search'); var $icon = $('> a > .fa', '.menu-search'); $form.toggleClass('hide'); if (!$form.hasClass('hide')) { $('input[type="text"]', $form).focus(); $icon.removeClass('fa-search').addClass('fa-times'); } else { $icon.removeClass('fa-times').addClass('fa-search'); } } function checkPosition() { if (window.matchMedia('(max-width: 992px)').matches) { console.log('sm screen'); } else { //... } } $('.dropdown').on('show.bs.dropdown', function () { var icon = $(this).find(".dd-icon"); var icon_fa_icon = icon.attr('data-icon'); if (icon_fa_icon === "plus") { icon.attr('data-icon', 'minus'); } }) $('.dropdown').on('hide.bs.dropdown', function () { var icon = $(this).find(".dd-icon"); var icon_fa_icon = icon.attr('data-icon'); if (icon_fa_icon === "minus") { icon.attr('data-icon', 'plus'); } }) </script>