Exception in template (Designs/Skanderborg/_parsed/IndexDagsordner.parsed.cshtml): System.Exception: Request has failed. Url: /api/integration/publication/agenda/9308942a-f08d-4010-af3f-e08880a8ee92. Message: Unauthorized
   at FirstAgendaImport.Service.HttpService.HandleRequestError(String path, HttpResponseMessage response)
   at FirstAgendaImport.Service.HttpService.Get[T](String path, Boolean ignoreErrors)
   at FirstAgendaImport.Service.AgendaService.GetById(String agendaId)
   at CompiledRazorTemplates.Dynamic.ecbcbdbcbedacfee.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@inherits RazorTemplateBase<RazorTemplateModel<Template>> @using System.Text.RegularExpressions; @using System.Web.UI.HtmlControls; @{ // Get the Design folder name string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); } @functions{ public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "DesignName") { Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); string currDevice = currentPageview.Device.ToString(), alternativeImage = currentPageview.Area.Item["NoImage"] != null ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg", widthString = "", heightString = "", getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; int getImageWidth = imageWidth != 0 ? imageWidth : 0, getImageHeight = imageHeight != 0 ? imageHeight : 0; if (currDevice == Dynamicweb.Frontend.PageView.DeviceType.Tablet.ToString()) { getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; } else if (currDevice == Dynamicweb.Frontend.PageView.DeviceType.Mobile.ToString()) { getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; } if (getImageWidth != 0) { widthString = "&amp;Width=" + getImageWidth; } if (getImageHeight != 0) { heightString = "&amp;Height=" + getImageHeight; } string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; return output; } } @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering; @helper HtmlHead(string designName) { string designFolder = GetString("Template:DesignBaseUrl"), robots = ""; robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoIndex")) ? CommaSplittedString(robots, "noindex") : ""; robots += (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoFollow")) ? CommaSplittedString(robots, "nofollow") : ""; <head> <title>@GetValue("Title")</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"> @{string areaid = Pageview.GlobalTags.GetTagByName("Global:Area.ID").Value.ToString();} @if(areaid == "9"){ @*<meta http-equiv="Cache-control" content="public, max-age=3600, must-revalidate">*@ } @if (GetBoolean("Item.Page.Socialshares")) { <meta property="og:image" content="https://www.skanderborg.dk/Files/Templates/Designs/Skanderborg/images/logoFB.png"> <meta property="og:image:width" content="273"> } @if (!string.IsNullOrEmpty(robots)) { <meta name="robots" content="@robots"> } @GetString("MetaTags") @GetString("CopyRightNotice") @GetString("Stylesheets") @RenderSnippet("outScripts") @GetString("Javascripts") @if (string.IsNullOrEmpty("Item.Page.CludoSearchfieldType") || GetString("Item.Page.CludoSearchfieldType") ==""){ if (!string.IsNullOrEmpty(GetString("Item.Page.CludoCrawltype")) && GetString("Item.Page.CludoCrawltype") != "None") { <!--Cludo crawling meta start--> var crawltype = GetString("Item.Page.CludoCrawltype"); <meta name="cludo:PageType" content="@crawltype"> <!--Cludo crawling meta end--> } } <link rel="shortcut icon" href="@(designFolder)images/faviconTop.ico" type="image/x-icon"> @*<link rel="stylesheet" type="text/css" href="/public/aTools.ashx?a=min&amp;f=@(designFolder)css&amp;ex=_bak,ie.css&amp;m=0&amp;c=0">*@ <link rel="stylesheet" type="text/css" href="@(designFolder)css/style.min.css"> @*<script src="/public/aTools.ashx?a=min&amp;f=@(designFolder)js/&amp;ex=_bak,exceptions&amp;out=j&amp;m=0&amp;c=0"></script>*@ <script src="@(designFolder)js/scripts.min.js"></script> <!-- www.Cludo.com search start CSS --> <link href="//customer.cludo.com/css/66/77/cludo-search-new.min.css" type="text/css" rel="stylesheet"> <!-- www.Cludo.com search end CSS --> <!-- www.Cludo.com search start JS --> <!--[if lte IE 9]> <script src="//api.cludo.com/scripts/xdomain.js" slave="//api.cludo.com/proxy.html"></script> <![endif]--> <!-- www.Cludo.com search end JS --> @SnippetStart("outScripts") @SnippetEnd("outScripts") <!--[if lte IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> <script src="@(designFolder)js/libraries/exceptions/01_ie.js"></script> <link href="@(designFolder)less/ie.css" rel="stylesheet" type="text/css" media="screen" /> <![endif]--> <script> @RenderSnippet("jsVariables") @SnippetStart("jsVariables") @SnippetEnd("jsVariables") var obj_pages = { str_globalTranslates: '@GetString("Item.Area.GlobalTranslates")' } $(function () { @RenderSnippet("jsOnLoadVariables") @SnippetStart("jsOnLoadVariables") @SnippetEnd("jsOnLoadVariables") @RenderSnippet("jsOnLoad") @SnippetStart("jsOnLoad") @SnippetEnd("jsOnLoad") }); @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalytics"))) { <text> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', '@GetString("Item.Area.GoogleAnalytics")', 'auto'); ga('send', 'pageview'); </text> } </script> <script async="" src='https://www.google.com/recaptcha/api.js'></script> @GetString("Item.Page.Header") </head> } @helper Logo(string cssclass, string companyName) { <figure class="@cssclass"> <a href="/"> <img class="img-responsive" src="/Files/Templates/Designs/Skanderborg/images/svg/logo.svg" alt="@companyName" title="@companyName"> </a> </figure> } @helper DemoBanner() { if (GetBoolean("Item.Area.DemoBanner")) { <div class="demoMode">Demo</div> } } @helper Copyright() { <div class="col-xs-12 text-center copyright">@GetString("Item.Area.CompanyName") - @GetString("Item.Area.Copyright")</div> } @functions { private string CommaSplittedString(string CommaSplittedString, string NewString) { if (!string.IsNullOrEmpty(CommaSplittedString)) { CommaSplittedString += ", "; } CommaSplittedString = NewString; return CommaSplittedString; } public static string StripHtml(string source) { return Regex.Replace(source, "<.*?>", string.Empty); } } @{ string device = Pageview.Device.ToString(), homeOrSubpage = GetString("DwAreaFirstPageID") == GetString("Global:Page.ID") ? "home" : "subpage", longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(), phone = GetString("Item.Area.Phone"), companyName = GetString("Item.Area.CompanyName"), phoneNumber = GetString("Item.Area.Phone.Value"), address = GetString("Item.Area.Address.Value"), loadingImageSrc = GetString("Template:DesignBaseUrl") + "/images/loading.gif", mainNews = GetString("Item.Area.NewsList.Value"), searchPage = GetString("Item.Area.SearchPage.Value"), loader = GetString("Item.Page.Loader.Value"); loader = loader.Equals("True") ? "waitPreloadPage();" : ""; List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"), websiteLanguages = GetLoop("WebsiteLanguages"); } <!DOCTYPE HTML> <!--[if lt IE 8 ]><html class="ie7" lang="@(longLang)"><![endif]--><!--[if IE 8 ]><html class="ie8" lang="@(longLang)"><![endif]--><!--[if IE 9 ]><html class="ie9" lang="@(longLang)"><![endif]--><!--[if (gt IE 9)|!(IE)]><!--> <html lang="@(longLang)" prefix="og: http://ogp.me/ns#"> <!--<![endif]--> @HtmlHead(designName) <body class="@device @homeOrSubpage" onload="@loader"> @if (loader == "waitPreloadPage();") { <!--PAGE LOADER START--> <div id="prepage"> <div> <div class="loader"></div> </div> </div> <script type="text/javascript"> function waitPreloadPage() { $('#prepage').hide(); } </script> <!--PAGE LOADER END--> } @if (!string.IsNullOrEmpty(GetString("Item.Area.GTMID"))) { <!-- Google Tag Manager --> <noscript><iframe src='//www.googletagmanager.com/ns.html?id=@GetString("Item.Area.GTMID")' height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = '//www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '@GetString("Item.Area.GTMID")');</script> <!-- End Google Tag Manager --> } <div class="wrap"> <header id="headerContainer" role="navigation" aria-labelledby="headerContainer" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> <div> @if (homeOrSubpage == "home") { <h1 class="hidden">@GetString("Title")</h1> } <div id="topHeaderContainer"> <div id="leftHeader" class="col-xs-6 leftHeader noPadding"> <figure class="menuToggle"> <a href="#"><img src="/Files/Templates/Designs/Skanderborg/images/svg/nav.svg" alt='@Translate("str_home")' title='@Translate("str_home")'></a> </figure> <span class="menuToggle">@Translate("str_home")</span> <span class="menuToggle closeMenu hidden">@Translate("str_close")</span> <figure class="menuSearch" id="menuSearch" onclick="$('#searchInput').focus();"> <a href="#" "=""><img src="/Files/Templates/Designs/Skanderborg/images/svg/search.svg" alt='@Translate("str_search")' title='@Translate("str_search")'></a> </figure> <span class="searchToggle">@Translate("str_search")</span> <span class="searchToggle searchMenu hidden">@Translate("str_close")</span> </div> <div class="col-lg-offset-3 col-lg-3 col-xs-6 noPadding"> @Logo("col-xs-12 noPaddingLeft", @companyName) </div> </div> </div> @if (!String.IsNullOrEmpty(GetString("DwPageID_2"))) { @Breadcrumb() } </header> @if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMain)")) && String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"])) { <section id="menuOverlay" role="navigation" aria-labelledby="menuOverlay"> <div class="container"> <strong>@Translate("menu", "Menu")</strong> <nav role="navigation" aria-labelledby="menuMain"> @GetValue("DwNavigation(menuMain)") </nav> @if (!string.IsNullOrEmpty(GetString("DwNavigation(bottomMenu)"))) { <nav role="navigation" aria-labelledby="footer"> @GetValue("DwNavigation(bottomMenu)") </nav> } </div> </section> <section id="searchOverlay" role="search" aria-labelledby="searchOverlay"> <article> <div class="searchContainer container-fluid"> <div id="cludoForm" class="col-lg-6 col-lg-offset-2 col-md-8 col-md-offset-1 col-xs-12 noPadding"> <label for="searchInput">S&#248;g <figure class="fa fa-search" title="Søg"></figure> </label> <input id="searchInput" name="searchrequest" class="col-xs-12 formInput" type="text" title="Skriv hvad du s&#248;ger" placeholder="Skriv hvad du s&#248;ger" autocomplete="off"> <span id="search-clear" class="hidden"></span> <button class="btn search_dagsordner" type="button" onclick="$('#searchResults').hide();location.href = '/Default.aspx?ID=1788'; return false;" title="Søg i dagsordener">Søg i dagsordener</button> </div> </div> </article> <!-- ------------------ --> <!-- CLUDO SEARCH START --> <!-- ------------------ --> <article id="searchContainer" class="container"> <div id="searchFilters" class="search-filters col-xs-12"></div> <header id="searchHeader" class="search-result-count col-xs-12"></header> <div class="search-did-you-mean"></div> <div id="searchResults" class="search-results col-xs-12"></div> </article> <!-- ------------------ --> <!-- CLUDO SEARCH START --> <!-- ------------------ --> </section> } <section id="contentWrapper" class="container-fluid noPadding" role="contentinfo" aria-labelledby="contentWrapper"> @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering; @using Dynamicweb.Content.Items; @using System.Web; @using System.Web.UI; @using FirstAgendaImport.Service; @{ var description = String.IsNullOrEmpty(GetString("Item.Page.Description")) ? GetString("Item.Description") : GetString("Item.Page.Description"); string contentClass = !String.IsNullOrEmpty(GetString("DwContent(outContent)")) ? " contentOut" : ""; var pageLinks = GetLoop("Item.Page.Links"); bool includePageLinks = false; string pageLinksTitle = GetString("Item.Page.Title"), mediaVideo = GetString("Item.Page.Video.Value"), mediaImage = GetString("Item.Page.Image.Value"), mediaTitle = GetString("Item.Page.TitleVideo.Value"), mediaDescription = GetString("Item.Page.ImageDescription.Value"), textColor = GetString("Item.Page.TextColor.Value"), hideGreyBox = GetString("Item.Page.HideGreyBox.Value"), isUdvalgPage = GetString("Item.Page.UdvalgPage.Value"), isLevelFour = GetString("DwPageName_4"), currentUrl = HttpContext.Current.Request.Url.AbsoluteUri.ToString(), pageTitle = GetString("DwPageName"); hideGreyBox = hideGreyBox.Equals("True") ? "hideGreyBox" : ""; isUdvalgPage = isUdvalgPage.Equals("False") ? "" : "udvalgPage"; string LevelFour = string.IsNullOrEmpty(isLevelFour) ? "notlevelFour" : "levelFour"; string infoBorger = string.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "infoBorger" : ""; string textStyle = string.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "" : "color:#000"; string committeeid = currentUrl.Contains("committeeId") ? "200px" : "400px"; var isPdf = System.Web.HttpContext.Current.Request["ispdf"] == "true"; var isPdfHeader = System.Web.HttpContext.Current.Request["ispdfheader"] == "true"; var isDocPage = pageTitle.Contains(".pdf") || pageTitle.Contains(".docx"); var levelFiveNameLength = GetString("DwPageName_5").Length; var isLevelFive = levelFiveNameLength != 0; var agendaId = System.Web.HttpContext.Current.Request["agendaId"]; FirstAgenda.Api.Model.Agenda agenda = null; if (!string.IsNullOrEmpty(agendaId)) { var agendaService = new AgendaService(); agenda = agendaService.GetById(agendaId); } } <script> function clearUdvalgsList() { $(this).closest('.udvalgList').find('.year').show(); $('.noresult').hide(); } var title = "@pageTitle"; var isDocPage = "@isDocPage"; var levelFiveNameLenght = "@levelFiveNameLength"; var isLevelFive = "@isLevelFive"; console.log(title); console.log(isDocPage=="True"); console.log(levelFiveNameLenght); console.log(isLevelFive=="True"); if (isDocPage=="True" || isLevelFive=="True") { window.location.href = "https://www.skanderborg.dk/Default.aspx?ID=1788"; isDocPage = false; } </script> @if (homeOrSubpage.Equals("subpage")) { if (!currentUrl.ToLower().Contains("newsmain")) { <div class='container-fluid @infoBorger noPadding dagsordner @contentClass @hideGreyBox @isUdvalgPage @LevelFour' style='height:@committeeid;'> @if (isPdfHeader || !isPdf) { <div class="container headerBorger"> <h1 style="@textStyle">@(agenda == null ? GetString("DwPageName") : agenda.Name)</h1> @if (!String.IsNullOrEmpty(@description)) { <p id="headerText" class="col-xs-9 col-sm-9 col-md-9 col-lg-6 noPadding"> @description </p> } </div> } @if (!String.IsNullOrEmpty(mediaImage) && !String.IsNullOrEmpty(mediaTitle)) { <div id="mediaContainer" class="@textColor"> @if (!String.IsNullOrEmpty(mediaVideo) && !String.IsNullOrEmpty(textColor)) { <figure id="playVideo"> @if (textColor.Equals("none")) { <img src="/Files/Templates/Designs/Skanderborg/images/svg/play.svg" alt='@Translate("str_playVideo")' title='@Translate("str_playVideo")'> } else if (textColor.Equals("blackText")) { <img src="/Files/Templates/Designs/Skanderborg/images/svg/playBlack.svg" alt='@Translate("str_playVideo")' title='@Translate("str_playVideo")'> } </figure> } <div class="backgroundCover" style='background-image: url("@mediaImage")'> <div class="col-lg-4 col-sm-5 col-xs-12 noPadding"> @if (!String.IsNullOrEmpty(mediaVideo)) { mediaVideo += "&responsive=y&start=0"; <span class="hidden" id="iframeLink" data-url="@mediaVideo">&nbsp;</span> <span> @Translate("str_videoReference", "Video //") </span> } <h2> @mediaTitle </h2> @if (!String.IsNullOrEmpty(mediaDescription)) { <p> @Truncate(mediaDescription, 150) </p> } </div> </div> </div> <div class="mobileHeader col-xs-12 col-xs-hidden noPadding"> @if (!String.IsNullOrEmpty(mediaVideo)) { <span> @Translate("str_videoReference", "Video //") </span> } <strong> @mediaTitle </strong> </div> } @CentralContentDagsordner() </div> } if (!String.IsNullOrEmpty(GetString("DwContent(outContent)"))) { <div class="container-fluid noPadding"> <section id="outContainer" class="col-xs-12 noPadding"> <div id="outContent">@GetValue("DwContent(outContent)")</div> </section> </div> } if (pageLinks.Any() && includePageLinks) { <div class="container-fluid pageOtherLinks"> <div class="container"> <div class="col-xs-6 pull-right noPadding"> @if (!String.IsNullOrEmpty(pageLinksTitle)) { <h2>@pageLinksTitle</h2> } <ul class="col-xs-12 noPadding"> @foreach (LoopItem link in pageLinks) { string linkText = link.GetString("Item.Page.Links.LinkText.Value"), linkUrl = link.GetString("Item.Page.Links.Link.Value"), linkTarget = (linkUrl.Contains("http:") || linkUrl.Contains("https:")) ? "_blank" : "_self"; <li class="col-xs-6 noPadding"> <a href="@linkUrl" target="@linkTarget" title="@linkText" class="specialButton">@linkText</a> </li> } </ul> </div> </div> </div> } } @inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering; @helper Breadcrumb(int startLevel = 1) { if (!String.IsNullOrEmpty(GetString("DwNavigation(breadCrumbsMenu2)"))) { <div class="container breadcrumbContainer"> <nav id="breadMenuContainer" class="col-xs-12 noPadding"> <ul id="breadCrumbsMenu"> @GetValue("DwNavigation(breadCrumbsMenu2)") </ul> </nav> </div> } } @helper PageTitle() { <div class="h1">@GetString("Title")</div> } @helper CentralContent(string centralClass = "col-xs-12") { if (!String.IsNullOrEmpty(GetString("DwContent(centralContent)"))) { <section id="centralContainer" class="@centralClass noPadding"> <div id="centralContent">@GetValue("DwContent(centralContent)")</div> </section> } } @helper CentralContentDagsordner(string centralClass = "col-xs-12") { if (!String.IsNullOrEmpty(GetString("DwContent(centralContentDagsordner)"))) { <section id="centralContainerDagsordner" class="@centralClass noPadding" role="list" aria-labelledby="centralContainerDagsordner"> <div id="centralContentDagsordner">@GetValue("DwContent(centralContentDagsordner)")</div> </section> } } @helper Truncate(string str_input, int num_length) { if (str_input.Length <= num_length) { @str_input } else { @str_input.Substring(0, num_length)<text>...</text> } } @SnippetStart("jsOnLoad") //onLoadMainNavigation(); animateFourLevelMenu(); @SnippetEnd("jsOnLoad") </section> <footer id="footer" class="container" style='display:@(String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["ispdf"]) ? "block" : "none")'> <div class="col-md-4 col-sm-6 col-xs-12 noPadding"> <h2>@Translate("str_bottomMenuTitle")</h2> @if (!string.IsNullOrEmpty(GetString("DwNavigation(bottomMenuFooter)"))) { <nav> @GetValue("DwNavigation(bottomMenuFooter)") </nav> } </div> <div id="contactList" class="col-md-4 col-sm-6 col-xs-12 noPadding"> @*<h2>@Translate("str_contactFooter")</h2>*@ @if (!String.IsNullOrEmpty(address)) { @address } </div> <div class="col-md-4 col-md-offset-0 col-sm-offset-6 col-sm-6 col-xs-12 socialContainer"> <h2 class="hidden-sm hidden-xs">@Translate("str_followUs")</h2> @* Social Media *@ @if (socialMedia.Any()) { @SnippetStart("socialMedia") <ul class="noPadding" id="socialMedia"> @foreach (LoopItem socialItem in socialMedia) { string className = socialItem.GetString("Item.Area.SocialNetworks.Icon"), socialName = socialItem.GetString("Item.Area.SocialNetworks.Name"), socialLink = socialItem.GetString("Item.Area.SocialNetworks.Link"); socialLink = !string.IsNullOrEmpty(socialLink) ? socialLink : "#"; <li><a title="@socialName" class="@className" target="_blank" href="@socialLink">&nbsp;</a></li> } </ul> @SnippetEnd("socialMedia") @RenderSnippet("socialMedia") } </div> </footer></div> @DemoBanner() @GetString("Item.Page.BeforeBodyEnd") </body> </html> <!-- @Pageview.GlobalTags.GetTagByName("Global:Request.PathAndQuery").Value --> <!-- @Pageview.GlobalTags.GetTagByName("Global:Request.Url").Value --> @SnippetStart("jsOnLoad") onLoadCludoNews(); @SnippetEnd("jsOnLoad") @if (GetString("DwAreaID") == "1" || GetString("DwAreaID") == "9") { <script type="text/javascript"> /*<![CDATA[*/ (function () { var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; sz.src = '//siteimproveanalytics.com/js/siteanalyze_273560.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); })(); /*]]>*/ </script> } @if ((GetString("DwAreaID") == "4") || (GetString("DwAreaID") == "8")) { <!--MINIMAPS KOMMUNEPLANER--> <!--MINIMAPS CENTERBYERNE--> @*<script type="text/javascript" src="https://kort.skanderborg.dk/clientapi/minimap2/2.3/minimap.js"></script>*@ <script src="https://kort.skanderborg.dk/clientapi/minimap2/mmloader.js"></script> } @if (GetString("DwAreaID") == "1" || GetString("DwAreaID") == "9") { <!--MINIMAPS SKANDERBORG KOMMUNE--> @*<script type="text/javascript" src="https://kort.skanderborg.dk/clientapi/minimap2/2.5.x/minimap.js"></script>*@ <script src="https://kort.skanderborg.dk/clientapi/minimap2/mmloader.js"></script> } <script type="text/javascript" src="/Files/Templates/Designs/Skanderborg/js/minimap_v2.js"></script> <!-- www.Cludo.com Search body init script start --> <script type="text/javascript" src="//customer.cludo.com/scripts/bundles/search-script.min.js"></script> @if (string.IsNullOrEmpty(GetString("Item.Page.CludoSearchfieldType"))) { } <script> var CludoSearch; (function () { var cludoSettings = { customerId: 66, engineId: 77, type: 'customOverlay', ovarlayResultsWrapperOpenClass: 'open', useStandardSearchTemplate: false, searchInputs: ["cludoForm"], searchResultsWrapper: "searchContainer", initSearchBoxText: "Skriv hvad du søger", loading: "<img src='//customer.cludo.com/img/loading.gif' class='loading' />", }; CludoSearch = new Cludo(cludoSettings); CludoSearch.init(); })(); </script> @if (GetString("Item.Page.CludoSearchfieldType") == "SearchDR") { <script> var CludoSearchDR; (function () { var cludoSettingsDR = { customerId: 66, engineId: 77, filters: { "PageType": ["News"] }, customerTemplate: "ListTemplate", searchResultsWrapper: "newsSearch", initFacets: { "Category": [null] }, searchInputs: ["cludo-search-form-nyheder"], searchUrl: "/politik-og-faellesskab/dagsordener-og-referater", initSearchBoxText: "", loading: "<img src='//customer.cludo.com/img/loading.gif' class='loading' />", }; CludoSearchDR = new Cludo(cludoSettingsDR); CludoSearchDR.init(); })(); </script> } @if (GetString("Item.Page.CludoSearchfieldType") == "SearchNews") { <script> var CludoSearchNews; (function () { var cludoSettingsNews = { customerId: 66, engineId: 77, filters: { "PageType": ["News"] }, customerTemplate: "ListTemplate", searchResultsWrapper: "newsSearch", initFacets: { "Category": [null] }, searchInputs: ["cludo-search-form-nyheder"], searchUrl: "/nyheder-1", initSearchBoxText: "", loading: "<img src='//customer.cludo.com/img/loading.gif' class='loading' />", }; CludoSearchNews = new Cludo(cludoSettingsNews); CludoSearchNews.init(); })(); </script> } @if (GetString("Item.Page.CludoSearchfieldType") == "SearchHearings") { <script> var CludoSearchHearings; (function () { var cludoSettingsHearings = { customerId: 66, engineId: 77, filters: { "PageType": ["Hearing"] }, customerTemplate: "ListTemplate", searchResultsWrapper: "newsSearch", initFacets: { "Category": [null] }, searchInputs: ["cludo-search-form-nyheder"], searchUrl: "/aktuelle-hoeringer-og-afgoerelser", initSearchBoxText: "", loading: "<img src='//customer.cludo.com/img/loading.gif' class='loading' />", }; CludoSearchHearings = new Cludo(cludoSettingsHearings); CludoSearchHearings.init(); })(); </script> } @if (!String.IsNullOrEmpty(GetString("DwPageID_3"))) { } <script> // create the back to top button $('body').prepend('<a href="#" id="toTop" class="back-to-top" title="Til toppen" role="link" aria-labelledby="toTop">Back to Top</a>'); var amountScrolled = 300; $(window).scroll(function () { if ($(window).scrollTop() > amountScrolled) { $('a.back-to-top').fadeIn('slow'); } else { $('a.back-to-top').fadeOut('slow'); } }); $('a.back-to-top, a.simple-back-to-top').click(function () { $('html, body').animate({ scrollTop: 0 }, 700); $("#menuTop").removeClass("posFixedTop"); $("#contentWrapper").removeClass("fixedMenuTop"); return false; }); </script> <!-- www.Cludo.com Search body init script end -->