Error compiling template "Designs/Triora_NL/_parsed/NewsDetail.parsed.cshtml"
Line 640: A local variable named 'clinic' cannot be declared in this scope because it would give a different meaning to 'clinic', which is already used in a 'child' scope to denote something else

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Dynamicweb; 3 @using System.Web; 4 5 <!DOCTYPE html> 6 @{ 7 var lang = GetString("Lang"); 8 var bodyclass = Pageview.Page.ID == GetInteger("DwAreaFirstPageID") ? "home" : string.Empty; 9 10 var httpdomain = Base.GetHttpDomain(); 11 var ogurl = string.Format("{0}{1}", httpdomain, GetGlobalValue("Global:Pageview.Url")); 12 } 13 <html lang="@lang"> 14 15 <head prefix="og: http://ogp.me/ns#"> 16 <meta charset="utf-8"> 17 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 18 <meta name="viewport" content="width=device-width, initial-scale=1"> 19 20 <meta property="og:site_name" content="Triora"> 21 <meta property="og:url" content="@ogurl"> 22 @RenderSnippet("ogTags") 23 24 <title>@GetValue("Title")</title> 25 @GetValue("MetaTags") 26 @GetValue("CopyRightNotice") 27 28 <meta name="theme-color" content="#5C7893"> 29 30 <link href="/dist/triora_nl.css" rel="stylesheet"> 31 <link rel="icon" href="/Files/Templates/Designs/Triora_NL/img/favicon.png" type="image/x-icon"> 32 33 @GetString("Item.Area.Custom_Html_Head") 34 @GetValue("Stylesheets") 35 @GetValue("Javascripts") 36 </head> 37 38 <body class="@bodyclass"> 39 @GetString("Item.Area.Google_Tag_Manager") 40 41 @if (!string.IsNullOrWhiteSpace(GetString("Item.Page.UpdateAddiction"))) 42 { 43 HttpContext.Current.Session["addiction"] = GetString("Item.Page.UpdateAddiction"); 44 } 45 46 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 47 @using Dynamicweb; 48 49 @{ 50 var phonenumber_title = !string.IsNullOrWhiteSpace(GetString("Item.Area.Phonenumber_Title")) ? " - " + GetString("Item.Area.Phonenumber_Title") : ""; 51 var phonenumber2_title = !string.IsNullOrWhiteSpace(GetString("Item.Area.Phonenumber2_Title")) ? " - " + GetString("Item.Area.Phonenumber2_Title") : ""; 52 var phonenumber = (GetString("Item.Area.ProfessionalPage.Value") == GetString("DwTopPageID")) ? GetString("Item.Area.Phonenumber_Professionals") : GetString("Item.Area.Phonenumber"); 53 var phonenumber2 = (GetString("Item.Area.ProfessionalPage.Value") == GetString("DwTopPageID")) ? GetString("Item.Area.Phonenumber_Professionals") : GetString("Item.Area.Phonenumber2"); 54 var phonenumber_link = GetString("Item.Area.Phonenumber_Link"); 55 var phonenumber2_link = GetString("Item.Area.Phonenumber2_Link"); 56 57 var phonenumberstriped = phonenumber.Replace("(", "").Replace(")", "").Replace(" ", ""); 58 var phonenumberstriped2 = phonenumber2.Replace("(", "").Replace(")", "").Replace(" ", ""); 59 60 var searchpageidNL = GetString("Item.Area.SearchPage"); 61 62 // Select items with USP's and paragraph item with parnassia group info 63 int uspParentPageIDNL = 0; 64 int.TryParse(Pageview.Area.Item["USP_Parent_Page"].ToString(), out uspParentPageIDNL); 65 66 var uspsNL = new Dynamicweb.Content.Items.Queries.Repository("USP").SelectByParentPageId(uspParentPageIDNL); 67 68 var phoneNumbers = GetLoop("Item.Area.PhoneNumbers"); 69 var phoneNumbersCount = GetLoop("Item.Area.PhoneNumbers").Count(); 70 71 var phoneNumbersClinics = phoneNumbers.Where(p => p.GetString("Item.Area.PhoneNumbers.Category") == "1"); 72 var phoneNumbersFacilities = phoneNumbers.Where(p => p.GetString("Item.Area.PhoneNumbers.Category") == "2"); 73 string clinicsTitle = Translate("Clinics"); 74 string facilitiesTitle = Translate("Facilities"); 75 } 76 77 <!-- Begin top-menu --> 78 <nav class="topmenu" id="topmenu"> 79 <div class="topmenu__container"> 80 <div class="topmenu__usp"> 81 <ul class="topmenu__usp__list"> 82 @foreach (var usp in uspsNL) 83 { 84 <li class="topmenu__usp__list-item">@usp["Title"]</li> 85 } 86 </ul> 87 </div> 88 @GetValue("DwNavigation(topnavigation)") 89 <div class="dropdown topmenu__language"> 90 <button id="ddl" class="topmenu__language-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 91 @{ 92 var currentLangFlag = string.Format("/Admin/Images/Flags/flag_{0}.png", GetString("LongLang").Substring(3, 2)); 93 <span class="topmenu__language-btn--flag" style="background-image: url(@currentLangFlag);"></span> 94 } 95 </button> 96 <ul class="dropdown-menu topmenu__language-dropdown" aria-labelledby="ddl"> 97 @foreach (var item in GetLoop("Languages")) 98 { 99 var PageID = item.GetInteger("PageID"); 100 PageID = (PageID.Equals(0)) ? Convert.ToInt32(item.GetString("FirstPageID")) : PageID; 101 var Culture = item.GetString("Culture"); 102 var IsCurrent = item.GetBoolean("IsCurrent") ? "active" : ""; 103 var CultureShort = item.GetString("Culture").Substring(3, 2); 104 var CultureFlag = string.Format("/Admin/Images/Flags/flag_{0}.png", CultureShort.ToLower()); 105 var Domain = item.GetString("PrimaryDomain"); 106 var url = string.Format("/Default.aspx?ID={0}&amp;Culture={1}", PageID, Culture); 107 if (item.GetString("FirstPageID").Equals(PageID.ToString())) 108 { 109 url = string.Format("//{0}", Domain); 110 } 111 112 if (!item.GetBoolean("IsCurrent")) 113 { 114 <li> 115 <a href="@url" class="topmenu__language-dropdown--item @IsCurrent" style="background-image: url(@CultureFlag);"></a> 116 </li> 117 } 118 } 119 </ul> 120 </div> 121 </div> 122 </nav> 123 <!-- End Begin top-menu --> 124 <!-- Begin header --> 125 <header class="header"> 126 <section class="header__container container"> 127 <div class="header__section--left col-lg-3"> 128 <a href="/" title="Homepage"><img class="header__logo" src="/Files/Templates/Designs/Triora_NL/img/logo.png"></a> 129 </div> 130 <div class="header__section--middle search__box col-lg-4"> 131 @* @{var searchpage = GetString("Item.Area.SearchPage"); 132 <div class="header__search"> 133 <a href="#" class="mainmenu__search-toggle dropdown-toggle" data-toggle="dropdown" id="btnSearch" role="button" aria-haspopup="true" aria-expanded="false"><span class="fal fa-search"></span></a> 134 <form class="mainmenu__search-dd dropdown-menu" aria-labelledby="btnSearch" method="get" action="/Default.aspx"> 135 <input type="hidden" name="ID" value="@searchpage"> 136 <input type="text" name="q" value="" placeholder="" class="mainmenu__search-input"> 137 <button type="submit" class="btn btn-blue mainmenu__search-button"><i class="fal fa-inverse fa-search"></i></button> 138 </form> 139 </div> 140 }*@ 141 142 143 @{var searchpageNL = GetString("Item.Area.SearchPage"); 144 <div class="header__search"> 145 <form class="dropdown-menu__top-header" aria-labelledby="btnSearch" method="get" action="/Default.aspx"> 146 <input type="hidden" name="ID" value="@searchpageNL"> 147 <input type="text" name="q" value="" placeholder="@Translate(" searchplaceholder")"="" class="mainmenu__search-input"> 148 <button type="submit" class="mainmenu__search-button"><i class="fal fa-inverse fa-search"></i></button> 149 </form> 150 </div> 151 } 152 153 154 155 </div> 156 <div class="dropdown header__call-to-action col-lg-3"> 157 @if (phoneNumbers.Any()) 158 { 159 160 if (phoneNumbersCount > 1) 161 { 162 <img src="/Files/Templates/Designs/Triora_NL/img/icon__phone.png" class="call-to-action__icon-phone"> 163 <button id="ddl2" class="topmenu__callus-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">@Translate("Call us")</button> 164 <ul class="dropdown-menu header__call-phonenumbers"> 165 @if (phoneNumbersClinics.Any()) 166 { 167 <li class="phonenumber__clinics-header"> 168 @clinicsTitle 169 </li> 170 foreach (var clinic in phoneNumbersClinics) 171 { 172 string clinicPhonenumberNumber = clinic.GetString("Item.Area.PhoneNumbers.Phone_Number"); 173 string clinicPhonenumberTitle = clinic.GetString("Item.Area.PhoneNumbers.Title"); 174 string clinicPhonenumberLink = clinic.GetString("Item.Area.PhoneNumbers.Link"); 175 176 <li class="phonenumber__clinics"> 177 <span><b>@clinicPhonenumberTitle</b></span> 178 <a href="tel:@clinicPhonenumberLink" class="call-to-action__link"> 179 @clinicPhonenumberNumber 180 </a> 181 </li> 182 } 183 } 184 @if (phoneNumbersFacilities.Any()) 185 { 186 <li class="phonenumber__facilities-header"> 187 @facilitiesTitle 188 </li> 189 foreach (var facility in phoneNumbersFacilities) 190 { 191 string facilityPhonenumberNumber = facility.GetString("Item.Area.PhoneNumbers.Phone_Number"); ; 192 string facilityPhonenumberTitle = facility.GetString("Item.Area.PhoneNumbers.Title"); ; 193 string facilityPhonenumberLink = facility.GetString("Item.Area.PhoneNumbers.Link"); 194 195 <li class="phonenumber__facilities"> 196 <span><b>@facilityPhonenumberTitle</b></span> 197 <a href="tel:@facilityPhonenumberLink" class="call-to-action__link"> 198 @facilityPhonenumberNumber 199 </a> 200 </li> 201 } 202 } 203 </ul> 204 205 } 206 else 207 { 208 <img src="/Files/Templates/Designs/Triora_NL/img/icon__phone.png" class="call-to-action__icon-phone"> 209 210 foreach (var l in phoneNumbers) 211 { 212 var listPhoneNumberNumber = l.GetString("Item.Area.PhoneNumbers.Phone_Number"); 213 var listPhoneNumberTitle = l.GetString("Item.Area.PhoneNumbers.Phone_Number"); 214 var listPhoneNumberLink = l.GetString("Item.Area.PhoneNumbers.Phone_Number"); 215 216 217 <span style="display: inline-block;"><a href="tel:@listPhoneNumberLink" class="call-to-action__link">@listPhoneNumberNumber</a></span> 218 219 } 220 } 221 } 222 223 224 <span class="header__availability hidden"> 225 <i class="header__availability--icon"></i> 226 <span class="header__availability-text"> 227 @Translate("Availability", "Available") 228 </span> 229 </span> 230 </div> 231 <nav class="header__section--middle col-lg-2"> 232 @foreach (var btn in GetLoop("Item.Area.HeaderButtons")) 233 { 234 var txt = btn.GetString("Item.Area.HeaderButtons.Text"); 235 var link = btn.GetString("Item.Area.HeaderButtons.Link"); 236 var style = !string.IsNullOrWhiteSpace(btn.GetString("Item.Area.HeaderButtons.Style")) ? string.Format("btn-{0}", btn.GetString("Item.Area.HeaderButtons.Style")) : "btn-normal"; 237 238 if (!string.IsNullOrWhiteSpace(txt) && !string.IsNullOrWhiteSpace(link)) 239 {<a href="@link" class="btn @style">@txt</a> } 240 } 241 </nav> 242 243 </section> 244 </header> 245 <!-- End header --> 246 247 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 248 @using Dynamicweb; 249 250 251 @{ 252 var mobileClinicLinkRaw = Pageview.Area.Item["ClinicMobileFooter"].ToString(); 253 var mobileClinicLink = (!String.IsNullOrEmpty(mobileClinicLinkRaw)) ? mobileClinicLinkRaw : ""; 254 var mobileBrochureRaw = Pageview.Area.Item["BrochureMobileFooter"].ToString(); 255 var mobileBrochure = (!String.IsNullOrEmpty(mobileBrochureRaw)) ? mobileBrochureRaw : ""; 256 var hideMenuRawNL = GetString("Item.Page.HideMenu").ToString(); 257 var hideMenuNL = (!String.IsNullOrEmpty(hideMenuRawNL)) ? hideMenuRawNL : "1"; 258 var menuClassNL = "menu_hidden"; 259 var hideMenuNLDecisionNL = hideMenuNL == "2" ? menuClassNL : ""; 260 } 261 262 <div class="@hideMenuNLDecisionNL"> 263 <section class="mainmenu"> 264 265 <div class="mainmenu__lightbox"></div> 266 <div class="mainmenu__container"> 267 <nav class="clearfix"> 268 269 <div class="mainmenu_wrapper"> 270 <div class="mainmenu--mobile"> 271 272 <i class="mainmenu__icon mainmenu__icon--bars fal fa-bars" id="mainmenu__icon-bars"><span class="mainmenu__icon--text">Menu</span></i> 273 @*<a href="/" title="Triora" class="mainmenu__anchor"> 274 <i class="mainmenu__icon mainmenu__icon--home fal fa-home"></i> 275 </a>*@ 276 277 <a class="mainmenu--mobile__search-footer hidden" id="mobile_search-footer"> 278 <i class="fal fa-search"><span class="mainmenu--mobile__search-footer--text">Search</span></i> 279 <div class="mainmenu--mobile_searchbox"> 280 281 @{var searchpageMobileFooter = GetString("Item.Area.SearchPage"); 282 <div class="header__search header__section--middle" id="mobile_search-toggle"> 283 <form class="dropdown-menu__top-header" aria-labelledby="btnSearch" method="get" action="/Default.aspx"> 284 <input type="hidden" name="ID" value="@searchpageMobileFooter"> 285 <input type="text" name="q" value="" placeholder="@Translate(" searchplaceholder")"="" class="mainmenu__search-input"> 286 <button type="submit" class="mainmenu__search-button"><i class="fal fa-inverse fa-search"></i></button> 287 </form> 288 </div> 289 } 290 291 </div> 292 293 294 </a> 295 296 297 <div class="mainmenu--mobile__call-footer hidden" id="mobile_footer-contact"> 298 <i class="fal fa-phone"><span class="mainmenu--mobile__call-footer--text">Contact</span></i> 299 300 @if (phoneNumbers.Any()) 301 { 302 <button id="ddl2" class="topmenu__callus-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">@Translate("Call us")</button> 303 <ul class="dropdown-menu header__call-phonenumbers--footer" id="mobile_contact-wrapper"> 304 @if (phoneNumbersClinics.Any()) 305 { 306 <li class="phonenumber__clinics-header"> 307 @clinicsTitle 308 </li> 309 foreach (var clinic in phoneNumbersClinics) 310 { 311 string clinicPhonenumberNumber = clinic.GetString("Item.Area.PhoneNumbers.Phone_Number"); 312 string clinicPhonenumberTitle = clinic.GetString("Item.Area.PhoneNumbers.Title"); 313 string clinicPhonenumberLink = clinic.GetString("Item.Area.PhoneNumbers.Link"); 314 315 <li class="phonenumber__clinics"> 316 <span><b>@clinicPhonenumberTitle</b></span> 317 <a href="tel:@clinicPhonenumberLink" class="call-to-action__link"> 318 @clinicPhonenumberNumber 319 </a> 320 </li> 321 } 322 } 323 @if (phoneNumbersFacilities.Any()) 324 { 325 <li class="phonenumber__facilities-header"> 326 @facilitiesTitle 327 </li> 328 foreach (var facility in phoneNumbersFacilities) 329 { 330 string facilityPhonenumberNumber = facility.GetString("Item.Area.PhoneNumbers.Phone_Number"); ; 331 string facilityPhonenumberTitle = facility.GetString("Item.Area.PhoneNumbers.Title"); ; 332 string facilityPhonenumberLink = facility.GetString("Item.Area.PhoneNumbers.Link"); 333 334 <li class="phonenumber__facilities"> 335 <span><b>@facilityPhonenumberTitle</b></span> 336 <a href="tel:@facilityPhonenumberLink" class="call-to-action__link"> 337 @facilityPhonenumberNumber 338 </a> 339 </li> 340 } 341 } 342 </ul> 343 } 344 345 </div> 346 347 348 349 <a href="@mobileClinicLink" class="mainmenu--mobile__building-footer hidden"><i class="fal fa-building"><span class="mainmenu--mobile__building-footer--text">Clinics</span></i></a> 350 <a href="@mobileBrochure" class="mainmenu--mobile__book-footer hidden"><i class="fal fa-book"><span class="mainmenu--mobile__book-footer--text">Brochure</span></i></a> 351 352 353 <div class="mainmenu__search dropdown hidden"> 354 <a href="javascript:void(0);" class="mainmenu__search-toggle dropdown-toggle" data-toggle="dropdown" id="btnSearch" role="button" aria-haspopup="true" aria-expanded="false"><span class="fal fa-search"></span></a> 355 <form class="mainmenu__search-dd dropdown-menu" aria-labelledby="btnSearch" method="get" action="/Default.aspx" style="display: none;"> 356 <input type="hidden" name="ID" value="1382"> 357 <input type="text" name="q" value="" placeholder="" class="mainmenu__search-input"> 358 <button type="submit" class="btn btn-blue mainmenu__search-button"><i class="fal fa-inverse fa-search"></i></button> 359 </form> 360 </div> 361 362 363 <a href="/" title="Homepage" class="mainmenu--mobile__logo-wrapper"><img class="mainmenu--mobile__header-logo" src="/Files/Templates/Designs/Triora_NL/img/Triora-logo-white.png"><span class="mainmenu--mobile__header-logo--text">meaningful life</span></a> 364 365 366 <div class="mainmenu--mobile_call--wrapper"> 367 <div href="#" class="header__call-to-action top" id="mobile-phone-collapse"> 368 369 @if (phoneNumbers.Any()) 370 { 371 <div class="call-to-action__icon-phone" id="phone-action-top"><i class="fal fa-phone-volume"></i></div> 372 <button id="ddl2" class="topmenu__callus-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">@Translate("Call us")</button> 373 <ul class="dropdown-menu header__call-phonenumbers"> 374 @if (phoneNumbersClinics.Any()) 375 { 376 <li class="phonenumber__clinics-header"> 377 @clinicsTitle 378 </li> 379 foreach (var clinic in phoneNumbersClinics) 380 { 381 string clinicPhonenumberNumber = clinic.GetString("Item.Area.PhoneNumbers.Phone_Number"); 382 string clinicPhonenumberTitle = clinic.GetString("Item.Area.PhoneNumbers.Title"); 383 string clinicPhonenumberLink = clinic.GetString("Item.Area.PhoneNumbers.Link"); 384 385 <li class="phonenumber__clinics"> 386 <span><b>@clinicPhonenumberTitle</b></span> 387 <a href="tel:@clinicPhonenumberLink" class="call-to-action__link"> 388 @clinicPhonenumberNumber 389 </a> 390 </li> 391 } 392 } 393 @if (phoneNumbersFacilities.Any()) 394 { 395 <li class="phonenumber__facilities-header"> 396 @facilitiesTitle 397 </li> 398 foreach (var facility in phoneNumbersFacilities) 399 { 400 string facilityPhonenumberNumber = facility.GetString("Item.Area.PhoneNumbers.Phone_Number"); ; 401 string facilityPhonenumberTitle = facility.GetString("Item.Area.PhoneNumbers.Title"); ; 402 string facilityPhonenumberLink = facility.GetString("Item.Area.PhoneNumbers.Link"); 403 404 <li class="phonenumber__facilities"> 405 <span><b>@facilityPhonenumberTitle</b></span> 406 <a href="tel:@facilityPhonenumberLink" class="call-to-action__link"> 407 @facilityPhonenumberNumber 408 </a> 409 </li> 410 } 411 } 412 </ul> 413 } 414 <span class="header__availability hidden"> 415 <i class="header__availability--icon hidden"></i> 416 <span class="header__availability-text hidden"> 417 @Translate("Availability", "Available") 418 </span> 419 </span> 420 421 422 423 424 425 </div> 426 427 @*<span class="header__availability mainmenu__availability hidden"> 428 <i class="header__availability--icon"></i> 429 <span class="header__availability-text"> 430 @Translate("Availability", "Available") 431 </span> 432 </span>*@ 433 </div> 434 435 </div> 436 437 <div class="mainmenu--mobile_searchbox"> 438 439 @{var searchpageMobile = GetString("Item.Area.SearchPage"); 440 <div class="header__search header__section--middle"> 441 <form class="dropdown-menu__top-header" aria-labelledby="btnSearch" method="get" action="/Default.aspx"> 442 <input type="hidden" name="ID" value="@searchpageMobile"> 443 <input type="text" name="q" value="" placeholder="@Translate(" searchplaceholder")"="" class="mainmenu__search-input"> 444 <button type="submit" class="mainmenu__search-button"><i class="fal fa-inverse fa-search"></i></button> 445 </form> 446 </div> 447 } 448 449 </div> 450 451 452 453 </div> 454 455 @if (GetString("Item.Area.ProfessionalPage.Value") == GetString("DwTopPageID")) 456 { 457 @GetValue("DwNavigation(topmenuprofessional)") 458 } 459 else 460 { 461 @GetValue("DwNavigation(topmenu)") 462 } 463 464 465 466 @if (GetInteger("DW_extranet_AccessUserID") > 0) 467 { 468 <a href="/Admin/Public/ExtranetLogoff.aspx" class="mainmenu__signout">@Translate("SignOut", "Sign Out")</a>} 469 </nav> 470 </div> 471 472 <section class="phonedropdown"> 473 @if (!string.IsNullOrWhiteSpace(phonenumber)) 474 { 475 <a href="tel:@phonenumber_link"><strong>@phonenumber</strong> @phonenumber_title</a> <br> 476 } 477 @if (!string.IsNullOrWhiteSpace(phonenumber2)) 478 { 479 <a href="tel:@phonenumber2_link"><strong>@phonenumber2</strong> @phonenumber2_title</a> 480 } 481 <i class="submenu__icon submenu__icon--close phonedropdown__close"></i> 482 </section> 483 484 </section> 485 </div> 486 487 <!-- End main menu --> 488 <!-- Begin side-menu --> 489 <nav class="side-menu"> 490 <a class="side-menu__tag" id="side-menu__tag"> 491 @GetString("Item.Area.SidemenuLabel") 492 <!-- <i class="btl bt-angle-up mobile__btn-scroll-to-top"></i> --> 493 </a> 494 <div class="side-menu__body"> 495 <div class="side-menu__close-button"> 496 <i class="fal fa-times" id="side-menu__close-button"></i> 497 </div> 498 @foreach (var i in GetLoop("Item.Area.Buttons")) 499 { 500 var link = i.GetString("Item.Area.Buttons.Link"); 501 var text = i.GetString("Item.Area.Buttons.Text"); 502 var style = i.GetString("Item.Area.Buttons.Style"); 503 504 <a href="@link" title="@text" class="btn btn-@style">@text</a>} 505 </div> 506 </nav> 507 <!-- End side-menu --> 508 509 <div class="backdrop backdrop__mainmenu"></div> 510 511 512 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 513 @using Dynamicweb; 514 515 516 @{ 517 var imgurl = GetString("Item.Image.Value"); 518 var heading = GetString("Item.Heading"); 519 var headerImage = GetString("Item.HeaderImage"); 520 var headerimagetext = GetString("Item.HeaderImageText"); 521 var margin = ""; 522 523 if (string.IsNullOrWhiteSpace(headerImage)) 524 { 525 margin = "news-events-topmargin"; 526 } 527 528 // Paging 529 var siblings = Pageview.Page.Parent.Children.Where(a=>Dynamicweb.Frontend.Page.IsActive(a.ID)).OrderByDescending(x => x.Item["Date"]).ToList(); 530 var currentID = Pageview.Page.ID; 531 532 int previousIdx = 0; 533 int nextIdx = siblings.Count - 1; 534 int idx = 0; 535 536 for (int i = 0; i < siblings.Count; i++) 537 { 538 if (siblings[i].ID == currentID) 539 { 540 idx = i; 541 } 542 } 543 previousIdx = idx == previousIdx ? previousIdx : idx - 1; 544 nextIdx = idx == nextIdx ? nextIdx : idx + 1; 545 546 var previousID = siblings[previousIdx].ID; 547 var nextID = siblings[nextIdx].ID; 548 var overview = "/Default.aspx?ID=" + Pageview.Page.Parent.ID; 549 } 550 551 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 552 @using Dynamicweb; 553 @using System.Linq; 554 555 @{ 556 var ogdesc = GetString("Meta.Description"); 557 var ogtitle = GetString("Meta.Title"); 558 559 var og_item_image = GetString("Item.Image"); 560 var ogimage = !string.IsNullOrWhiteSpace(og_item_image) ? string.Format("{0}{1}", httpdomain, og_item_image) : string.Format("{0}{1}", httpdomain, GetString("Item.Page.HeaderImage.Value")); //httpdomain is declared in Master.cshtml 561 } 562 563 @SnippetStart("ogTags") 564 <meta property="og:title" content="@ogtitle"> 565 <meta property="og:description" content="@ogdesc"> 566 <meta property="og:type" content="website"> 567 <meta property="og:image" content="@ogimage"> 568 @SnippetEnd("ogTags") 569 570 571 @if (!string.IsNullOrWhiteSpace(headerImage)) 572 { 573 <div class="container-fluid detailcontent__header-img" style="background-image: url('@headerImage')"> 574 <div class="header-image-payoff">@headerimagetext</div> 575 </div> 576 } 577 578 <div class="container @margin"> 579 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 580 581 @if (!GetBoolean("Item.Page.HideBreadcrumbs")) 582 { 583 <nav class="breadcrumbnav"> 584 @GetValue("DwNavigation(breadcrumblist)") 585 </nav> 586 } 587 588 <div class="row"> 589 <div class="col-xs-12 col-sm-7 detailcontent"> 590 <div class="detailcontent-nav text-right"> 591 <a href="@overview" class="detailcontent-overview"> 592 @Translate("ToOverview", "NAAR OVERZICHT") 593 </a> 594 </div> 595 596 <h1>@heading</h1> 597 598 @GetString("Item.Text") 599 600 @if (!string.IsNullOrWhiteSpace(imgurl)) 601 { 602 <img data-src="@imgurl" alt="@heading" class="img-responsive lozad"> 603 } 604 605 @GetString("Item.Text_1") 606 607 <hr class="horizontal-line"> 608 609 <div class="row detailcontent-nav"> 610 611 <div class="col-xs-6 col-sm-6 col-md-4"> 612 @if (!(previousID == currentID || previousID == 0)) 613 { 614 var back = "/Default.aspx?ID=" + previousID; 615 <a href="@back" class="detailcontent-prev"> 616 @Translate("Previous", "VORIGE") 617 </a> 618 } 619 </div> 620 621 <div class="col-xs-6 col-sm-6 col-md-4 col-md-push-4"> 622 @if (!(nextID == currentID || nextID == 0)) 623 { 624 var forward = "/Default.aspx?ID=" + nextID; 625 <a href="@forward" class="detailcontent-next"> 626 @Translate("Next", "VOLGENDE") 627 </a> 628 } 629 </div> 630 631 <div class="col-xs-12 col-sm-12 col-md-4 col-md-pull-4"> 632 <a href="@overview" class="detailcontent-overview"> 633 @Translate("ToOverview", "NAAR OVERZICHT") 634 </a> 635 </div> 636 </div> 637 638 @{ 639 var category = GetString("Item.Category"); 640 var clinic = GetString("Item.Clinic"); 641 642 if (!string.IsNullOrWhiteSpace(category)) 643 { 644 @Translate("NewsDetail.Category", "Category")<text>: </text> 645 <a href="default.aspx?ID=@Pageview.Page.Parent.ID&Category=@category" class="detailcontent-tag">@Translate(string.Format("NewsFilter.{0}", category))</a> 646 } 647 648 if (!string.IsNullOrWhiteSpace(clinic)) 649 { 650 @Translate("NewsDetail.Clinic", "Clinic")<text>: </text> 651 <a href="default.aspx?ID=@Pageview.Page.Parent.ID&Clinic=@clinic" class="detailcontent-tag">@Translate(string.Format("NewsFilter.{0}", clinic))</a> 652 } 653 } 654 </div> 655 656 <div class="col-xs-12 col-sm-5 submenu"> 657 <strong class="submenu-title"> 658 @Translate("LatestNews", "LAATSTE NIEUWSBERICHTEN") 659 </strong> 660 <div class="submenu-items"> 661 @RenderItemList(new 662 { 663 ItemType = "News", 664 ListSourceType = "Page", 665 ListSourcePage = Pageview.Page.Parent.ID, 666 ItemFieldsList = "*", 667 ListTemplate = "ItemPublisher/List/List-news-detail.cshtml", 668 ListPageSize = 5, 669 ListOrderBy = "Date", 670 ListOrderByDirection = "Descending" 671 672 }) 673 </div> 674 </div> 675 676 <div class="col-xs-12 col-sm-5 submenu submenu__extra"> 677 <div id="side-content">@GetValue("DwContent(sidecontent)")</div> 678 </div> 679 680 @if (!string.IsNullOrWhiteSpace(GetString("DwContent(usps)"))) 681 { 682 <div class="mirage-treatment"> 683 <div class="col-xs-12 col-sm-5 submenu"> 684 <div class="usps clearfix"> 685 <div id="usps">@GetValue("DwContent(usps)")</div> 686 </div> 687 </div> 688 </div> 689 } 690 691 </div> 692 </div> 693 694 695 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 696 @using Dynamicweb; 697 698 @if (!GetBoolean("Item.Page.HideMirageTreatment")) 699 { 700 <div class="container"> 701 <div class="row"> 702 @{ 703 var mirageid = Pageview.Area.Item["MirageTreatmentID"]; 704 if (mirageid != null) 705 { 706 <hr> 707 @RenderParagraphContent(Convert.ToInt32(mirageid)) 708 } 709 } 710 </div> 711 </div> 712 } 713 714 @*@if (!GetBoolean("Item.Page.Hide_CTAFooterbar")) 715 { 716 <div class="container"> 717 <div class="row"> 718 @{ 719 var mirageid = Pageview.Area.Item["MirageTreatmentID"]; 720 if (mirageid != null) 721 { 722 <hr> 723 @RenderParagraphContent(Convert.ToInt32(mirageid)) 724 } 725 } 726 </div> 727 </div> 728 }*@ 729 730 @if (!GetBoolean("Item.Page.HideFooterLogos")) 731 { 732 var footerLogos = GetLoop("Item.Area.Logos_List"); 733 int footerLogosRowSize = Pageview.Area.Item["Logos_List_Row_Size"] != null ? Convert.ToInt32(Pageview.Area.Item["Logos_List_Row_Size"]) : 0;//Item.Area.Logos_List_Row_Size 734 int footerLoopCount = footerLogos.Count(); 735 string footerLogoRowClass = footerLogosRowSize == 0 ? "col-md-" + (12 / footerLoopCount) + " col-sm-6" : "col -md-" + (12 / footerLogosRowSize) + " col-sm-6"; 736 if (footerLogos.Any()) 737 { 738 <section class="section__footer-logos"> 739 <div class="container"> 740 @foreach (var footerLogo in footerLogos) 741 { 742 var footerLogoImage = footerLogo.GetString("Item.Area.Logos_List.Image"); 743 var footerLogoTitle = footerLogo.GetString("Item.Area.Logos_List.Title"); 744 <div class="@footerLogoRowClass footer-logos"> 745 <img src='@footerLogoImage' class="footer-logos-logo" alt="@footerLogoTitle"> 746 </div> 747 } 748 </div> 749 </section> 750 751 } 752 } 753 754 @{ 755 // Select items with USP's and paragraph item with parnassia group info 756 int uspParentPageID = 0; 757 int.TryParse(Pageview.Area.Item["USP_Parent_Page"].ToString(), out uspParentPageID); 758 759 int parnassiaGroupItemID = 0; 760 int.TryParse(Pageview.Area.Item["ParnassiaGroupItemID"].ToString(), out parnassiaGroupItemID); 761 762 var usps = new Dynamicweb.Content.Items.Queries.Repository("USP").SelectByParentPageId(uspParentPageID); 763 var parnassiaGroup = new Dynamicweb.Content.Items.Queries.Repository("Paragraph").SelectById(parnassiaGroupItemID.ToString()); 764 } 765 766 <footer> 767 <a href="#" class="scroll_to_top"><span>@Translate("BackToTop", "Terug naar boven")</span></a> 768 <div class="container"> 769 <div class="row footer"> 770 <div class="col-md-3 col-sm-6 footer-usps"> 771 <ul class="row footer-usps__list"> 772 @foreach (var usp in usps) 773 { 774 <li class="footer-usps__list-item">@usp["Title"]</li> 775 } 776 </ul> 777 </div> 778 779 @GetValue("DwNavigation(footernavigation)") 780 781 @if (parnassiaGroup != null) 782 { 783 <div class="col-md-3 col-sm-6 footer-about-parnassia"> 784 <a href="/rss-feed.xml" class="footer-about-parnassia__rss"><i class="footer-about-parnassia__rss--icon"></i></a> 785 <img src='@parnassiaGroup["Image"]' class="footer-about-parnassia__logo" alt="Parnassia logo"> 786 <p class="text-center">@parnassiaGroup["Content"]</p> 787 </div> 788 } 789 </div> 790 </div> 791 792 <div class="bottom-bar"> 793 <div class="container"> 794 @{ 795 var termsandconditions = GetString("Item.Area.TermsAndConditions"); 796 var disclaimer = GetString("Item.Area.Disclaimer"); 797 var privacy = GetString("Item.Area.PrivacyStatement"); 798 } 799 <nav class="footer__bottom-menu col-xs-12 col-sm-6 col-md-4"> 800 <a href="@termsandconditions" class="Footer__bottom-menu-link">@Translate("Algemene voorwaarden", "Algemene voorwaarden")</a> 801 | 802 <a href="@disclaimer" class="Footer__bottom-menu-link">@Translate("Disclaimer", "Disclaimer")</a> 803 | 804 <a href="@privacy" class="Footer__bottom-menu-link">@Translate("Privacy Policy", "Privacy Policy")</a> 805 </nav> 806 807 <div class="col-xs-12 col-md-8 col-sm-6"> 808 <span itemtype="http://data-vocabulary.org/Review-aggregate" itemscope=""> 809 <span itemprop="itemreviewed">@GetString("Item.Area.ReviewedName")</span> 810 <span itemprop="rating" itemscope="" itemtype="http://data-vocabulary.org/Rating"> 811 @GetString("Item.Area.ReviewedPreText") 812 <span itemprop="average">@GetString("Item.Area.ReviewedAverage")</span> 813 <meta itemprop="best" content="10"> 814 <meta itemprop="worst" content="1">@GetString("Item.Area.ReviewedMiddleText") 815 </span> 816 817 <span itemprop="votes">@GetString("Item.Area.ReviewedVotes")</span> @GetString("Item.Area.ReviewedAfterText") 818 </span> 819 &#169 @DateTime.Now.Year @Base.GetHttpDomain().Replace("http://", "").Replace("https://", "") 820 821 <div class="social"> 822 @{ 823 var fb = GetString("Item.Area.Facebook"); 824 var twitter = GetString("Item.Area.Twitter"); 825 var linkedin = GetString("Item.Area.Linkedin"); 826 if (!string.IsNullOrWhiteSpace(fb)) 827 { 828 <a href="@fb" target="_blank"> 829 <span class="fa-stack icons"> 830 <i class="fab fa-facebook-square fa-stack-2x"></i> 831 </span> 832 </a> 833 } 834 if (!string.IsNullOrWhiteSpace(twitter)) 835 { 836 <a href="@twitter" target="_blank"> 837 <span class="fa-stack icons"> 838 <i class="fab fa-twitter-square fa-stack-2x"></i> 839 </span> 840 </a> 841 } 842 if (!string.IsNullOrWhiteSpace(linkedin)) 843 { 844 <a href="@linkedin" target="_blank"> 845 <span class="fa-stack icons"> 846 <i class="fab fa-linkedin fa-stack-2x"></i> 847 </span> 848 </a> 849 } 850 } 851 </div> 852 </div> 853 </div> 854 </div> 855 </footer> 856 857 858 @renderRichSnippet() 859 860 <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQ4_GsU-hHH9eGuyOxC5qNMlasYcpVfM0" type="text/javascript"></script> 861 <script type="text/javascript" src="/dist/triora_nl.bundle.js"></script> 862 </body> 863 864 </html> 865 866 <!-- Structured Data JSON-LD --> 867 @helper renderRichSnippet() 868 { 869 <script type="application/ld+json"> 870 [{ 871 "@@context": "http://schema.org", 872 "@@type": "Organization", 873 "name" : "@GetString("DwAreaName")", 874 "url": "@Base.GetHttpDomain()", 875 "sameAs" : "@GetString("Item.Area.Facebook")", 876 "logo": "https://triora.es/Files/Templates/Designs/Triora_NL/img/logo.png", 877 "contactPoint" : [{ 878 "@@type" : "ContactPoint", 879 "telephone" : "@GetString("Item.Area.Phonenumber")", 880 "contactType" : "customer service" , 881 "@@context": "http://schema.org", 882 "@@type": "ContactPoint", 883 "@@id": "@Base.GetHttpDomain()", 884 "name": "@GetString("DwAreaName")" 885 }], 886 "address": { 887 "@@type": "PostalAddress", 888 "streetAddress": "@GetString("Item.Area.StreetAddress")", 889 "addressLocality": "@GetString("Item.Area.AddressLocality")", 890 "addressRegion": "@GetString("Item.Area.AddressRegion")", 891 "postalCode": " @GetString("Item.Area.PostalCode")", 892 "addressCountry": "@GetString("Item.Area.AddressCountry")" 893 } 894 }, 895 { 896 "@@context": "http://schema.org", 897 "@@type": "WebSite", 898 "name" : "@GetString("DwAreaName")", 899 "alternateName" : "Triora Alicante", 900 "url": "@Base.GetHttpDomain()", 901 "potentialAction": { 902 "@@type": "SearchAction", 903 "target": " /default.aspx?id=@GetString("Item.Area.SearchPage")&q={search_term_string}", 904 "query-input": "required name=search_term_string" 905 } 906 }] 907 </script> 908 } 909