Velkommen til Toftlund - Arrild - Tirslunds Pastorat
Pastoratet beliggende i hjertet af Sønderjylland, tilhørende Tønder provsti.

 Vi glæder os til at byde dig velkommen i pastoratet til gudstjenester

 

 

Error executing template "Designs/Dwsimple/Paragraph/Kalender.cshtml"
System.Net.WebException: The remote server returned an error: (404) Not Found.
   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_30a6facbb83b4af3af41a2f1e208c4f7.b__14_0(TextWriter __razor_helper_writer) in E:\dynamicweb.net\solutions\SkovboData\toftlund.net.dynamicweb-cms.com\files\Templates\Designs\Dwsimple\Paragraph\Kalender.cshtml:line 242
   at CompiledRazorTemplates.Dynamic.RazorEngine_30a6facbb83b4af3af41a2f1e208c4f7.b__13_0(TextWriter __razor_helper_writer) in E:\dynamicweb.net\solutions\SkovboData\toftlund.net.dynamicweb-cms.com\files\Templates\Designs\Dwsimple\Paragraph\Kalender.cshtml:line 205
   at CompiledRazorTemplates.Dynamic.RazorEngine_30a6facbb83b4af3af41a2f1e208c4f7.Execute() in E:\dynamicweb.net\solutions\SkovboData\toftlund.net.dynamicweb-cms.com\files\Templates\Designs\Dwsimple\Paragraph\Kalender.cshtml:line 110
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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

Kirkerne vil også i dagtimerne være låste pga. Corona, indtil andet besluttes.     

Friluftsgudstjenesten 2 Pinsedag er aflyst. Til gengæld er der gudstjeneste Kl. 14.00 i Toftlund Kirke                      

Mobilpay 873959  

Onlinegudstjeneste

 

Sundhedssyrelsens hjemmeside

 

Sjælesorg på Nettet

 

 

Børnekoret har et godt tilbud, se mere  HER

 
 
 

Ugens Salme

Søndagens tekst

 

 

 

Arrild Kirke er også på Facebook. Er du det også, skulle du prøve at trykke på Logoet ovenover og aflægge dem et besøg..

 

 
  Tekstfelt:             Kirkebil 7483 3640

Alle der ønsker at være med til gudstjeneste, men har svært ved at komme hen til en af kirkerne, er meget velkomne til at benytte kirkebilen. Menighedsrådedene afholder udgiften.

Man skal blot ringe til Agerskov Taxa på ovenstående nummer og gerne dagen før.

 

 

 

 

 

 

 

 

Kontaktoplysninger

  • Toftlund Arrild Tirslund Pastorat
  • Telefon: 74831443
  • Email: mz@km.dk
 

Sociale links