NORDVESTFALSTER PASTORAT

Velkommen til Nordvestfalster sogn. Et sogn der omkranses af Guldborgsund i vest og Storstrømmen i nord og med 2 broer, som bindeled til de nærliggende øer. 1 sogn med 6 fantastiske kirker med hver sit særpræg. Klik her og læs mere om vore spændende kirker.

6 kirker – vidt forskellige – herlige steder at besøge som kirkegænger eller turist. smiley

Error executing template "Designs/Dwsimple/Paragraph/Kalender.cshtml"
System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
   at System.Net.HttpWebRequest.GetResponse()
   at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at CompiledRazorTemplates.Dynamic.RazorEngine_e2953d7470844f16b520820834a28bff.<kasse>b__17_0(TextWriter __razor_helper_writer) in E:\dynamicweb.net\solutions\SkovboData\nvfp.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Kalender.cshtml:line 619
   at CompiledRazorTemplates.Dynamic.RazorEngine_e2953d7470844f16b520820834a28bff.<kalendertype>b__14_0(TextWriter __razor_helper_writer) in E:\dynamicweb.net\solutions\SkovboData\nvfp.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Kalender.cshtml:line 347
   at CompiledRazorTemplates.Dynamic.RazorEngine_e2953d7470844f16b520820834a28bff.Execute() in E:\dynamicweb.net\solutions\SkovboData\nvfp.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\Kalender.cshtml:line 242
   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.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @using System.Xml.Linq; 2 @using System.Text; 3 @using System.Globalization; 4 5 @using System.Text.RegularExpressions 6 @using System.Web 7 8 9 @functions{ 10 public class WrapMethods 11 { 12 //Gets the contrasting color 13 public static string getContrastYIQ(string hexcolor) 14 { 15 if (hexcolor != "") 16 { 17 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 18 19 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 20 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 21 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 22 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 23 24 if (yiq >= 128) 25 { 26 return "black"; 27 } 28 else 29 { 30 return "white"; 31 } 32 } 33 else 34 { 35 return "black"; 36 } 37 } 38 39 40 //Truncate text 41 public static string Truncate (string value, int count, bool strip=true) 42 { 43 if (strip == true){ 44 value = StripHtmlTagByCharArray(value); 45 } 46 47 if (value.Length > count) 48 { 49 value = value.Substring(0, count + 1) + "..."; 50 } 51 52 return value; 53 } 54 55 56 //Strip text from HTML 57 public static string StripHtmlTagByCharArray(string htmlString) 58 { 59 char[] array = new char[htmlString.Length]; 60 int arrayIndex = 0; 61 bool inside = false; 62 63 for (int i = 0; i < htmlString.Length; i++) 64 { 65 char let = htmlString[i]; 66 if (let == '<') 67 { 68 inside = true; 69 continue; 70 } 71 if (let == '>') 72 { 73 inside = false; 74 continue; 75 } 76 if (!inside) 77 { 78 array[arrayIndex] = let; 79 arrayIndex++; 80 } 81 } 82 return new string(array, 0, arrayIndex); 83 } 84 85 //Make the correct count of columns 86 public static string ColumnMaker(int Col, string ScreenSize) 87 { 88 string Columns = ""; 89 90 switch (Col) 91 { 92 case 1: 93 Columns = "col-"+ScreenSize+"-12"; 94 break; 95 96 case 2: 97 Columns = "col-"+ScreenSize+"-6"; 98 break; 99 100 case 3: 101 Columns = "col-"+ScreenSize+"-4"; 102 break; 103 104 case 4: 105 Columns = "col-"+ScreenSize+"-3"; 106 break; 107 108 default: 109 Columns = "col-"+ScreenSize+"-3"; 110 break; 111 } 112 113 return Columns; 114 } 115 116 117 private string Custom(string firstoption, string secondoption) 118 { 119 if (firstoption == "custom") 120 { 121 return secondoption; 122 } 123 else 124 { 125 return firstoption; 126 } 127 } 128 } 129 } 130 131 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 132 @{ 133 init(); 134 } 135 136 @functions { 137 private int columnsWritten { get; set; } 138 private int columns { get; set; } 139 140 public void init() 141 { 142 columnsWritten = Dynamicweb.Core.Converter.ToInt32(System.Web.HttpContext.Current.Items["currentColumns"]); 143 columns = GetInteger("Item.Width"); 144 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + GetInteger("Item.Width"); 145 } 146 147 public void Fluid() 148 { 149 columnsWritten = Dynamicweb.Core.Converter.ToInt32(System.Web.HttpContext.Current.Items["currentColumns"]); 150 columns = 12; 151 System.Web.HttpContext.Current.Items["currentColumns"] = columnsWritten + 12; 152 } 153 154 public string ColumnClass() 155 { 156 if (GetString("Item.WidthMobile") == "hide"){ 157 return "col-md-" + GetString("Item.Width") + " hidden-xs"; 158 } else { 159 return "col-md-" + GetString("Item.Width") + " col-xs-" + GetString("Item.WidthMobile"); 160 } 161 } 162 163 public string NewRow() 164 { 165 //return columns + " - " + columnsWritten + ">"; 166 167 if (columns + columnsWritten > 12) 168 { 169 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 170 return "</div><div class=\"row\">"; 171 } 172 else 173 { 174 return string.Empty; 175 } 176 177 } 178 179 public string NewRowParagraphExtended() 180 { 181 if (columns + columnsWritten > 12) 182 { 183 System.Web.HttpContext.Current.Items["currentColumns"] = columns; 184 return "</div><div class=\"flex-container\">"; 185 } 186 else if (columnsWritten == 0) 187 { 188 return "<div class=\"flex-container\">"; 189 } 190 else 191 { 192 return string.Empty; 193 } 194 195 } 196 } 197 198 @{ 199 <style> 200 .datobgcolor { 201 background-color: @GetString("Item.DatoBGColor.Color"); 202 } 203 </style> 204 } 205 206 @NewRowParagraphExtended() 207 208 <div class="@ColumnClass() dist2nxtblk"> 209 210 211 212 @if (@GetString("Item.EqualContentHeight")=="True") 213 { 214 <text> 215 <div class="@GetString("Item.ContentStyle") Special-Col-Style Special-Col-height" style="background-color: @GetString("Item.BackgroundColor.Color")"> 216 </text> 217 } 218 else 219 { 220 <text> 221 <div class="@GetString("Item.ContentStyle") Special-Col-Style" style="background-color: @GetString("Item.BackgroundColor.Color")"> 222 </text> 223 224 } 225 226 @if (GetString("Item.Order") == "title-first" || GetString("Item.Order") == "") 227 { 228 229 if (GetBoolean("Item.VisTitel") != false){ 230 if (!string.IsNullOrEmpty(GetString("Item.Titel"))) { 231 <h1 class="dw-section-title"> 232 <span>@GetString("Item.Titel")</span> 233 </h1> 234 <br> 235 } 236 } else { 237 <h1 class="dw-section-title"><span></span></h1> 238 } 239 240 241 @RenderImage() 242 @kalendertype() 243 } 244 245 @if (GetString("Item.Order") == "image-first") 246 { 247 @RenderImage() 248 if (GetBoolean("Item.VisTitel") != false){ 249 if (!string.IsNullOrEmpty(GetString("Item.Titel"))) { 250 <h1 class="dw-section-title"> 251 <span>@GetString("Item.Titel")</span> 252 </h1> 253 <br> 254 } 255 } else { 256 <h1 class="dw-section-title"><span></span></h1> 257 } 258 259 260 @kalendertype() 261 } 262 263 @if (GetString("Item.Order") == "icon-xs") 264 { 265 <div class="col-md-2"> 266 @RenderImage() 267 </div> 268 269 <div class="col-md-10"> 270 if (GetBoolean("Item.VisTitel") != false){ 271 if (!string.IsNullOrEmpty(GetString("Item.Titel"))) { 272 <h1 class="dw-section-title"> 273 <span>@GetString("Item.Titel")</span> 274 </h1> 275 <br> 276 } 277 } else { 278 <h1 class="dw-section-title"><span></span></h1> 279 } 280 281 @kalendertype() 282 </div> 283 } 284 285 @if (GetString("Item.Order") == "icon-sm") 286 { 287 288 <div class="col-md-3"> 289 @RenderImage() 290 </div> 291 292 <div class="col-md-9"> 293 if (GetBoolean("Item.VisTitel") != false){ 294 if (!string.IsNullOrEmpty(GetString("Item.Titel"))) { 295 <h1 class="dw-section-title"> 296 <span>@GetString("Item.Titel")</span> 297 <br> 298 </h1> 299 <br> 300 } 301 } else { 302 <h1 class="dw-section-title"><span></span></h1> 303 } 304 305 @kalendertype() 306 </div> 307 } 308 309 @if (GetString("Item.Order") == "icon-md") 310 { 311 312 <div class="col-md-4"> 313 @RenderImage() 314 </div> 315 316 <div class="col-md-8"> 317 if (GetBoolean("Item.VisTitel") != false){ 318 if (!string.IsNullOrEmpty(GetString("Item.Titel"))) { 319 <h1 class="dw-section-title"> 320 <span>@GetString("Item.Titel")</span> 321 </h1> 322 <br> 323 } 324 } else { 325 <h1 class="dw-section-title"><span></span></h1> 326 } 327 328 329 @kalendertype() 330 </div> 331 } 332 </div> 333 </div> 334 335 @helper kalendertype(){ 336 if (@GetString("Item.LayoutMode") == "ballon") { 337 @Ballon() 338 } 339 340 if (@GetString("Item.LayoutMode") == "list") { 341 <p class="list-item-info nomargin">(Tryk på aktiviten for at se detaljer)</p><p></p> 342 343 @list() 344 } 345 346 if (@GetString("Item.LayoutMode") == "kasse") { 347 @kasse() 348 } 349 } 350 351 @helper Ballon(){ 352 353 <ul class="list-listings blog-list"> 354 @{ 355 DateTime EndDate = DateTime.Now.AddDays(GetInteger("Item.Days")); 356 String StartDate = DateTime.Now.ToString("dd/MM/yyyy"); 357 String Limit = int.Parse(GetString("Item.CountLimit"), NumberStyles.AllowThousands).ToString(); 358 String sognekode = GetString("Item.Sognekode"); 359 string kalenderkonto = GetString("Item.AccountNumber"); 360 361 362 if (GetBoolean("Item.StartDateNow") == false){ 363 EndDate = Convert.ToDateTime(GetString("Item.StartDate")).AddDays(GetInteger("Item.Days")); 364 StartDate = GetString("Item.StartDate"); 365 } 366 367 string linkstring = GetString("Item.FeedLink")+"&InKontonr="+kalenderkonto+"&InMaksAntalAftaler="+Limit+"&InDatoFra="+StartDate+"&InDatoTil="+EndDate.ToString("dd/MM/yyyy")+"&InSognekode="+sognekode; 368 369 370 if (GetString("Item.Show.Filter") != "alle"){ 371 linkstring += "&InAftaletypeID=" + GetString("Item.Show.Filter"); 372 } 373 374 XDocument xdoc = XDocument.Load(linkstring); 375 var elements = xdoc.Element("DATA").Elements("AFTALE"); 376 377 foreach (var el in elements) 378 { 379 string id = "0"; 380 string type = "alle"; 381 DateTime date; 382 string title = "Title"; 383 string description = "Description"; 384 string fulldate = "Date"; 385 string cleanDate = ""; 386 string day = ""; 387 string month = ""; 388 string location = ""; 389 string document = ""; 390 string document_type = "document"; 391 string ShowInfo = "Closed"; 392 393 if (el.Elements("ID").Any()){ 394 id = el.Element("ID").Value; 395 } 396 397 if (el.Elements("AFTALETYPE").Any()){ 398 type = el.Element("AFTALETYPE").Value; 399 } 400 401 if (el.Elements("DATO_FRA").Any() && el.Elements("KL_FRA").Any()) { 402 date = DateTime.Parse(el.Element("DATO_FRA").Value + " " + el.Element("KL_FRA").Value, new CultureInfo("da-DK")); 403 cleanDate = date.ToString("dddd 'd.' d. MMMM kl. HH:mm", new CultureInfo("da-DK")); 404 day = date.ToString(" d", new CultureInfo("da-DK")); 405 month = date.ToString("MMM", new CultureInfo("da-DK")); 406 } 407 408 if (el.Elements("OVERSKRIFT").Any()){ 409 title = el.Element("OVERSKRIFT").Value; 410 } 411 412 if (el.Elements("BESKRIVELSE").Any()){ 413 description = el.Element("BESKRIVELSE").Value; 414 } 415 416 if (el.Elements("DATO_FORMATERET").Any()){ 417 fulldate = el.Element("DATO_FORMATERET").Value; 418 } 419 420 if (el.Elements("STED").Any()){ 421 location = el.Element("STED").Value; 422 } 423 424 if (el.Elements("OFFENTLIGE_DOKUMENTER").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Elements("DOKUMENT").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Elements("URL").Any()){ 425 document = "https://kalender.brandsoft.dk/bska/" + el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Element("URL").Value; 426 } 427 428 if (el.Elements("OFFENTLIGE_DOKUMENTER").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Elements("DOKUMENT").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Elements("DOKUMENTTYPE").Any()){ 429 document_type = el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Element("DOKUMENTTYPE").Value; 430 } 431 432 433 434 <a href="javascript:void(0);" onclick="toggle_visibility('@id');"> 435 <div class="row"> 436 437 <div class="media col-md-12"> 438 439 <div class="media-left"> 440 441 <div class="media-object calendar-date datobgcolor text-center"><span>@day</span> @month</div> 442 443 </div> 444 <div class="media-body"> 445 <h2 class="media-heading">@title</h2> 446 447 <p class="list-item-info">@type</p> 448 <p class="list-item-info nomargin"><i class="fa fa-fw fa-calendar-o"></i> @cleanDate</p> 449 <p class="list-item-info nomargin"><i class="fa fa-fw fa-map-marker"></i> @location</p> 450 451 452 @{ 453 string isHidden = ""; 454 if (ShowInfo == "Closed" || ShowInfo == "Hidden"){ 455 isHidden = "style=\"display:none;\""; 456 } 457 } 458 459 <div id="@id" @isHidden> 460 <p>@description</p> 461 </div> 462 463 464 </div> 465 <div class="media-right" style="width: 33%;"> 466 @if (document != ""){ 467 if (document_type == "OFFENTLIGT_AFTALE_BILLEDE"){ 468 <img class="img-responsive" src="@document" alt="" id="@(id)_img" style="max-height: 100px; float:right; position: relative;"></img> 469 } 470 } 471 </div> 472 473 </div> 474 </div> 475 476 @if (!string.IsNullOrWhiteSpace(description) || !string.IsNullOrWhiteSpace(document)){ 477 if (ShowInfo == "Open"){ 478 <p id="@(id)_chevron" class="text-center chevron"></p> 479 } else if (ShowInfo == "Closed") { 480 <p id="@(id)_chevron" class="text-center chevron bottom"></p> 481 } 482 } 483 484 485 </a> 486 <hr> 487 488 489 } 490 } 491 </ul> 492 493 494 495 } 496 497 @helper list(){ 498 <ul class="list-listings blog-list"> 499 @{ 500 DateTime EndDate = DateTime.Now.AddDays(GetInteger("Item.Days")); 501 String StartDate = DateTime.Now.ToString("dd/MM/yyyy"); 502 String Limit = int.Parse(GetString("Item.CountLimit"), NumberStyles.AllowThousands).ToString(); 503 String sognekode = GetString("Item.Sognekode"); 504 string kalenderkonto = GetString("Item.AccountNumber"); 505 506 if (GetBoolean("Item.StartDateNow") == false){ 507 EndDate = Convert.ToDateTime(GetString("Item.StartDate")).AddDays(GetInteger("Item.Days")); 508 StartDate = GetString("Item.StartDate"); 509 } 510 511 string linkstring = GetString("Item.FeedLink")+"&InKontonr="+kalenderkonto+"&InMaksAntalAftaler="+Limit+"&InDatoFra="+StartDate+"&InDatoTil="+EndDate.ToString("dd/MM/yyyy")+"&InSognekode="+sognekode; 512 513 514 if (GetString("Item.Show.Filter") != "alle"){ 515 linkstring += "&InAftaletypeID=" + GetString("Item.Show.Filter"); 516 } 517 518 XDocument xdoc = XDocument.Load(linkstring); 519 var elements = xdoc.Element("DATA").Elements("AFTALE"); 520 521 foreach (var el in elements) 522 { 523 string id = "0"; 524 string type = "alle"; 525 DateTime date; 526 string title = "Title"; 527 string description = "Description"; 528 string fulldate = "Date"; 529 string cleanDate = ""; 530 string day = ""; 531 string month = ""; 532 string location = ""; 533 string document = ""; 534 string document_type = "document"; 535 536 if (el.Elements("ID").Any()){ 537 id = el.Element("ID").Value; 538 } 539 540 if (el.Elements("AFTALETYPE").Any()){ 541 type = el.Element("AFTALETYPE").Value; 542 } 543 544 if (el.Elements("DATO_FRA").Any() && el.Elements("KL_FRA").Any()) { 545 date = DateTime.Parse(el.Element("DATO_FRA").Value + " " + el.Element("KL_FRA").Value, new CultureInfo("da-DK")); 546 cleanDate = date.ToString("dddd 'd.' d. MMMM kl. HH:mm", new CultureInfo("da-DK")); 547 day = date.ToString(" d", new CultureInfo("da-DK")); 548 month = date.ToString("MMM", new CultureInfo("da-DK")); 549 } 550 551 if (el.Elements("OVERSKRIFT").Any()){ 552 title = el.Element("OVERSKRIFT").Value; 553 } 554 555 if (el.Elements("BESKRIVELSE").Any()){ 556 description = el.Element("BESKRIVELSE").Value; 557 } 558 559 if (el.Elements("DATO_FORMATERET").Any()){ 560 fulldate = el.Element("DATO_FORMATERET").Value; 561 } 562 563 if (el.Elements("STED").Any()){ 564 location = el.Element("STED").Value; 565 } 566 567 if (el.Elements("OFFENTLIGE_DOKUMENTER").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Elements("DOKUMENT").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Elements("URL").Any()){ 568 document = "https://kalender.brandsoft.dk/bska/" + el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Element("URL").Value; 569 } 570 571 if (el.Elements("OFFENTLIGE_DOKUMENTER").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Elements("DOKUMENT").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Elements("DOKUMENTTYPE").Any()){ 572 document_type = el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Element("DOKUMENTTYPE").Value; 573 } 574 575 576 <a href="Kalenderaftale?kalenderkonto=@kalenderkonto&aftaleid=@id" data-toggle="tooltip" data-placement="right" data-html="true" title="@title &#013; &#013Beskrivelse: &#013;@description &#013; &#013;@fulldate"> 577 <div class="row"> 578 <div class="media col-md-12"> 579 580 581 <div class="media-body"> 582 583 <p class="list-item-info nomargin"><i class="fa fa-fw fa-calendar-o"></i> @cleanDate</p> 584 <h2 class="media-heading">@title</h2> 585 586 <p class="list-item-info nomargin"><i class="fa fa-fw fa-map-marker"></i> @location</p> 587 588 </div> 589 <br> 590 </div> 591 </div> 592 </a> 593 } 594 } 595 </ul> 596 } 597 598 @helper kasse(){ 599 <div class="sqcalendar"> 600 @{ 601 DateTime EndDate = DateTime.Now.AddDays(GetInteger("Item.Days")); 602 String StartDate = DateTime.Now.ToString("dd/MM/yyyy"); 603 String Limit = int.Parse(GetString("Item.CountLimit"), NumberStyles.AllowThousands).ToString(); 604 String sognekode = GetString("Item.Sognekode"); 605 string kalenderkonto = GetString("Item.AccountNumber"); 606 607 608 if (GetBoolean("Item.StartDateNow") == false){ 609 EndDate = Convert.ToDateTime(GetString("Item.StartDate")).AddDays(GetInteger("Item.Days")); 610 StartDate = GetString("Item.StartDate"); 611 } 612 613 string linkstring = GetString("Item.FeedLink")+"&InKontonr="+kalenderkonto+"&InMaksAntalAftaler="+Limit+"&InDatoFra="+StartDate+"&InDatoTil="+EndDate.ToString("dd/MM/yyyy")+"&InSognekode="+sognekode; 614 615 if (GetString("Item.Show.Filter") != "alle"){ 616 linkstring += "&InAftaletypeID=" + GetString("Item.Show.Filter"); 617 } 618 619 XDocument xdoc = XDocument.Load(linkstring); 620 var elements = xdoc.Element("DATA").Elements("AFTALE"); 621 622 foreach (var el in elements) 623 { 624 string id = "0"; 625 string type = "alle"; 626 DateTime date; 627 string title = "Title"; 628 string description = "Description"; 629 string fulldate = "Date"; 630 string cleanDate = ""; 631 string day = ""; 632 string month = ""; 633 string location = ""; 634 string document = ""; 635 string document_type = "document"; 636 637 if (el.Elements("ID").Any()){ 638 id = el.Element("ID").Value; 639 } 640 641 if (el.Elements("AFTALETYPE").Any()){ 642 type = el.Element("AFTALETYPE").Value; 643 } 644 645 if (el.Elements("DATO_FRA").Any() && el.Elements("KL_FRA").Any()) { 646 date = DateTime.Parse(el.Element("DATO_FRA").Value + " " + el.Element("KL_FRA").Value, new CultureInfo("da-DK")); 647 cleanDate = date.ToString("dddd 'd.' d. MMMM kl. HH:mm", new CultureInfo("da-DK")); 648 day = date.ToString(" d", new CultureInfo("da-DK")); 649 month = date.ToString("MMM", new CultureInfo("da-DK")); 650 } 651 652 if (el.Elements("OVERSKRIFT").Any()){ 653 title = el.Element("OVERSKRIFT").Value; 654 } 655 656 if (el.Elements("BESKRIVELSE").Any()){ 657 description = el.Element("BESKRIVELSE").Value; 658 } 659 660 if (el.Elements("DATO_FORMATERET").Any()){ 661 fulldate = el.Element("DATO_FORMATERET").Value; 662 } 663 664 if (el.Elements("STED").Any()){ 665 location = el.Element("STED").Value; 666 } 667 668 if (el.Elements("OFFENTLIGE_DOKUMENTER").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Elements("DOKUMENT").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Elements("URL").Any()){ 669 document = "https://kalender.brandsoft.dk/bska/" + el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Element("URL").Value; 670 } 671 672 if (el.Elements("OFFENTLIGE_DOKUMENTER").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Elements("DOKUMENT").Any() && el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Elements("DOKUMENTTYPE").Any()){ 673 document_type = el.Element("OFFENTLIGE_DOKUMENTER").Element("DOKUMENT").Element("DOKUMENTTYPE").Value; 674 } 675 676 677 <div class="sqcalendar-item sqkalender-liste-item-odd"> 678 <a class="sqcalendar-link" href="Kalenderaftale?kalenderkonto=@kalenderkonto&aftaleid=@id" data-toggle="tooltip" data-placement="right" data-html="true" title="@title &#013; &#013Beskrivelse: &#013;@description &#013; &#013;@cleanDate"> 679 680 681 682 <div class="sqcalendar-date datobgcolor sqevent-date--hide-year"> 683 <div class="sqdate-center"> 684 685 <span class="sqdate">@day</span><span class="sqmonth">@month</span> 686 687 </div> 688 </div> 689 <div class="sqcalendar-desc"> 690 <div class="sqcalendar-item-info"> 691 <span class="sqmedia-heading">@title</span> 692 693 694 <p class="list-item-info nomargin"><i class="fa fa-fw fa-calendar-o"></i> @cleanDate</p> 695 <p class="list-item-info nomargin"><i class="fa fa-fw fa-map-marker"></i> @location</p> 696 697 698 @{ 699 string isHidden = ""; 700 if (GetString("Item.ShowInfo") == "Closed" || GetString("Item.ShowInfo") == "Hidden"){ 701 isHidden = "style=\"display:none;\""; 702 } 703 } 704 705 <!-- 706 <div id="@id" @isHidden> 707 <p>@WrapMethods.Truncate(description, 40) Tryk for at se mere</p> 708 </div> 709 --> 710 </div> 711 </div> 712 <div class="media-right" style="width: 33%;"> 713 @if (document != ""){ 714 if (document_type == "OFFENTLIGT_AFTALE_BILLEDE"){ 715 <img class="img-responsive" src="@document" alt="" id="@(id)_img" style="max-height: 100px; float:right; position: relative;"></img> 716 } 717 } 718 </div> 719 720 721 722 @if (!string.IsNullOrWhiteSpace(description) || !string.IsNullOrWhiteSpace(document)){ 723 if (GetString("Item.ShowInfo") == "Open"){ 724 <p id="@(id)_chevron" class="text-center chevron"></p> 725 } else if (GetString("Item.ShowInfo") == "Closed") { 726 <p id="@(id)_chevron" class="text-center chevron bottom"></p> 727 } 728 } 729 730 731 </a> 732 </div> 733 734 735 736 } 737 } 738 </div> 739 } 740 741 @helper RenderImage() 742 { 743 if (!string.IsNullOrEmpty(GetString("Item.Image"))) 744 { 745 var image = System.Web.HttpContext.Current.Server.UrlEncode(GetString("Item.Image")); 746 747 <!-- Choosing the smallest possible width that will work with responsive sizes --> 748 string optimizedwidth = "1280"; 749 switch (GetString("Item.Width")){ 750 case "12": 751 optimizedwidth = "1280"; 752 break; 753 case "9": 754 optimizedwidth = "960"; 755 break; 756 case "6": 757 optimizedwidth = "722"; 758 break; 759 case "3": 760 optimizedwidth = "722"; 761 break; 762 case "8": 763 optimizedwidth = "960"; 764 break; 765 case "4": 766 optimizedwidth = "722"; 767 break; 768 } 769 770 if (GetString("Item.ImageStyle") == "ball") { 771 optimizedwidth = "500&height=500"; 772 } 773 774 775 if (string.IsNullOrEmpty(GetString("Item.Link"))) 776 { 777 <div class="img-responsive dw-std-image"> 778 <img class="content-image img-responsive img-centered" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&crop=1&Compression=75&image=@image" class="img-responsive" alt=""></img> 779 </div> 780 } else { 781 <a href="@GetString("Item.Link")"> 782 <div class="img-responsive dw-std-image"> 783 <img class="content-image img-responsive img-centered" style="@GetImageBorderCss()" src="/Admin/Public/GetImage.ashx?width=@optimizedwidth&crop=1&Compression=75&image=@image" class="img-responsive" alt=""></img> 784 </div> 785 </a> 786 } 787 } 788 } 789 @functions { 790 private string GetImageBorderCss() 791 { 792 if (GetString("Item.ImageStyle") == "cover") 793 { 794 return "padding: 8px"; 795 } 796 else if (GetString("Item.ImageStyle") == "cover-border") 797 { 798 return "padding: 4px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 799 } 800 else if (GetString("Item.ImageStyle") == "frame") 801 { 802 return "padding: 6px; border: 1px solid #e1e1e1; border-radius: 0px !important"; 803 } 804 else if (GetString("Item.ImageStyle") == "rounded") 805 { 806 return "border-radius: 8px !important"; 807 } 808 else if (GetString("Item.ImageStyle") == "ball") 809 { 810 return "border-radius: 1000px !important"; 811 } 812 else if (GetString("Item.ImageStyle") == "shadow") 813 { 814 return "box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2)"; 815 } 816 else 817 { 818 return string.Empty; 819 } 820 } 821 private string GetParagraphWidth() 822 { 823 string PctWidth = "100%"; 824 switch (GetString("Item.Width")){ 825 case "12": 826 PctWidth = "100%"; 827 break; 828 case "9": 829 PctWidth = "75%"; 830 break; 831 case "6": 832 PctWidth = "50%"; 833 break; 834 case "3": 835 PctWidth = "25%"; 836 break; 837 case "8": 838 PctWidth = "66%"; 839 break; 840 case "4": 841 PctWidth = "33%"; 842 break; 843 } 844 return PctWidth; 845 } 846 847 } 848 <script type="text/javascript"> 849 function toggle_visibility(id) { 850 if($('#' + id + "_chevron").length){ 851 $('#' + id).stop().slideToggle('slow'); 852 $('#' + id + "_chevron").toggleClass('bottom'); 853 854 855 if(!$('#' + id + "_img").hasClass('bigPic')){ 856 857 var container_width = 269; 858 var image_height; 859 var natural_width = document.getElementById(id + "_img").naturalWidth; 860 var natural_height = document.getElementById(id + "_img").naturalHeight; 861 862 if(natural_width < container_width){ //> 863 container_width = natural_width; 864 } 865 866 var res = container_width / natural_width; 867 //console.log(res); 868 869 image_height = natural_height * res; 870 //console.log(image_height); 871 872 if(image_height > 400){ 873 image_height = 400; 874 } 875 876 //console.log(natural_width + " x " + natural_height); 877 //console.log(image_height); 878 $('#' + id + "_img").addClass('bigPic'); 879 $('#' + id + "_img").css('max-height', image_height + "px"); 880 }else{ 881 $('#' + id + "_img").removeClass('bigPic'); 882 $('#' + id + "_img").css('max-height', "100px"); 883 } 884 } 885 } 886 </script> 887 888

AKTUELT FRA PRÆSTERNE

Går du i 3. eller 4. klasse og bor i Nordvestfalster sogn? Så kan du blive minikonfirmand hos os. Vi starter den 18. februar og lige om lidt vil du eller dine forældre kunne læse invitationen længere nede på siden. Tilmeld dig til Dorte Hedegaard på 21 32 22 58.

Vigtigt! Send aldrig personfølsomme oplysninger via en almindelig mailforbindelse. Det kan for eksempel være oplysninger i forbindelse med dåb, konfirmation eller dit medlemskab i folkekirken.  

Hvis du vil sende en mail med personfølsomme oplysninger til præsterne, så brug "send sikker mail til ..." under kontakt.

FASTELAVN I STADAGER KIRKE

Søndag den 15. februar kl. 14 markerer vi fastelavn i Stadager kirke. Ved gudstjenesten synger vi vintersange og runder af med fastelavnsboller, kaffe og te.

 

EN AFTEN MED FILMMUSIK OG SPISNING

Nordvestfalster Menighedspleje inviterer til en glad aften med musikalsk nostalgi i Vålse Sognehus/konfirmandstuen mandag den 2. marts 2026 kl. 16.30

Kom og vær med til en hyggelig musikalsk rejse igennem filmhistoriens største melodier når pianist Rikke Juul Morild og sanger Stine Nygaard Bergqvist fremfører ikoniske sange fra klassiske film fra 1930 til 1967.

Efter det musikalske indslag byder vi på mad.

Tilmelding til Pernille på tlf 28 60 16 71, senest den 16. februar 2026

Vi glæder os til at se jer!

MINIKONFIRMANDER 2026

Går du i 3. eller 4. klasse og bor i Nordvestfalster sogn (os med de seks kirker), så inviteres du til at gå til minikonfirmand.

Vi begynder onsdag den 18. februar kl. 14.30 i Vålse konfirmandstue. Som minikonfirmand hører du fortællinger fra Biblen, vi klipper, klistrer og leger.

Vi slutter forløbet med en familiegudstjeneste søndag den 22. marts kl. 14.

Hvis du vil være minikonfirmand, skal du tilmelde dig ved at sende sms til præst Dorte Hedegaard på 21 32 22 58. Vi glæder os til at se jer

Eva Heyn og Dorte Hedegaard

.

KONFIRMANDGUDSTJENESTE

Tirsdag den 24. februar kl. 19 i Nørre Vedby kirke

Årets konfirmander holder deres gudstjeneste. De unge mennesker står for oplæsning og et par optrin og derefter er der orientering vedrørende konfirmationerne. Menighedsrådet byder på kaffe og kage. Alle er velkomne til at se og høre vores dygtige konfirmander og det spændende tema som vi har arbejdet med.

 


Kontakt os

  • Nordvestfalster Pastorat
  • Find adresser, tlf.numre og mailadresser i menuen under Kontakt

 

Sociale links