Error executing template "Designs/Condition/_parsed/Request Quote Form.parsed.cshtml"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Collections.Generic.List`1.Add(T item)
   at CompiledRazorTemplates.Dynamic.RazorEngine_41b4f1c23089417b99d8167edaeef60d.GUIDCheck() in D:\Websites\nstgroup.co.uk\Live\Files\Templates\Designs\Condition\_parsed\Request Quote Form.parsed.cshtml:line 792
   at CompiledRazorTemplates.Dynamic.RazorEngine_41b4f1c23089417b99d8167edaeef60d.Execute() in D:\Websites\nstgroup.co.uk\Live\Files\Templates\Designs\Condition\_parsed\Request Quote Form.parsed.cshtml:line 753
   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 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Dynamicweb 3 @using Dynamicweb.Content 4 @using NstWebsite 5 @using System.Web.Optimization 6 @using System.Web 7 @using System.Linq 8 <!DOCTYPE html> 9 <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> 10 <!--[if IE 7]> <html class="no-js ie7 lt-ie9 lt-ie8"> <![endif]--> 11 <!--[if IE 8]> <html class="no-js ie8 lt-ie9"> <![endif]--> 12 <!--[if IE 9]> <html class="no-js ie9"> <![endif]--> 13 <!--[if gt IE 9]> <html class="modern-browser no-js"><![endif]--> 14 @{ 15 bool social = true; 16 var areaId = (int)GetValue("DwAreaID"); 17 string loadingImage = "/Files/Images/Loading/NST_loading.gif"; 18 string logoAltText = "NST"; 19 var telNumber = GetString("Item.Area.Telephone"); 20 var telSEOAK = GetString("Item.Area.TelephoneSeoAccountId"); 21 var telSEOCL = GetString("Item.Area.TelephoneSeoPassword"); 22 var facebookPixelId = GetString("Item.Area.FacebookPixelId"); 23 var mobileRequestQuoteText = "Request quote"; 24 25 var twitterUN = GetString("Item.Area.TwitterAcc"); 26 var facebookUN = GetString("Item.Area.FacebookAcc"); 27 var flickrUN = GetString("Item.Area.FlickrAcc"); 28 var youtubeUN = GetString("Item.Area.YoutubeAcc"); 29 var instagramUN = GetString("Item.Area.InstagramAcc"); 30 var snapchatUN = GetString("Item.Area.SnapchatAcc"); 31 var tumblrUN = GetString("Item.Area.TumblrAcc"); 32 33 if (areaId == 2) 34 { 35 loadingImage = "/Files/Images/Loading/NSTIE_loading.gif"; 36 } 37 else if (areaId == 3) 38 { 39 loadingImage = "/Files/Images/Loading/Studylink_loading.gif"; 40 logoAltText = "StudyLink Tours"; 41 } 42 else if (areaId == 4) 43 { 44 loadingImage = "/Files/Images/Loading/EST_loading.gif"; 45 logoAltText = "European Study Tours"; 46 mobileRequestQuoteText = "REQUEST QUOTE"; 47 } 48 var brandLogoSmall = GetString("Item.Area.BrandLogoSmall"); 49 var brandNameSmall = GetString("Item.Area.TitleBrand"); 50 var enableChat = GetBoolean("Item.Area.EnableChat"); 51 var ChatGuid = GetString("Item.Area.ChatGuid"); 52 var chatTriggerPhrase = GetString("Item.Area.ChatTriggerPhrase"); 53 var OneTrustUrl = GetString("Item.Area.OneTrustScriptUrl"); 54 var OneTrustDataDomainScript = GetString("Item.Area.OneTrustDataDomainScript"); 55 var OneTrustAutoBlockScript = GetString("Item.Area.OneTrustAutoBlockScript"); 56 var GoogleTagManagerId = GetString("Item.Area.GoogleTagManagerId"); 57 58 //Put any details we have on the page into the request quote URL 59 //var quoteDetails = string.Format("/request-quote?Country={0}&Destination={1}&Subject={2}", countryEnq, "", ""); 60 61 FeefoInformation feefoInformation = null; 62 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FeefoApi")) && !string.IsNullOrWhiteSpace(GetString("Item.Area.FeefoImage"))) 63 { 64 feefoInformation = new FeefoInformation(GetString("Item.Area.FeefoApi")); 65 } 66 var theme = "uk"; 67 if (!string.IsNullOrEmpty(GetString("Item.Area.Theme"))) 68 { 69 theme = GetString("Item.Area.Theme"); 70 } 71 } 72 @helper GetOptimisedImage(string imgName) 73 { 74 //Banner image 75 string imgFormat = "webp"; 76 int imgHeight = 650; 77 int imgCompression = 75; 78 int imgQuality = 85; 79 bool doNotUpscale = true; 80 string imgPath = string.Empty; 81 if (!string.IsNullOrEmpty(imgName)) 82 { 83 imgPath = string.Format("/Admin/Public/GetImage.ashx?Image={0}&Crop=0&Format={1}&Height={2}&Compression={3}&Quality={5}&DoNotUpscale={4}", 84 imgName.Replace("&","%26"), imgFormat, imgHeight.ToString(), imgCompression.ToString(), doNotUpscale.ToString(), imgQuality); 85 } 86 @imgPath 87 } 88 <html class="modern-browser no-js" lang="en"> 89 <head> 90 <title> @GetValue("Title") | @GetValue("Item.Area.TitleBrand")</title> 91 @GetValue("MetaTags") 92 @GetValue("CopyRightNotice") 93 94 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 95 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 96 97 98 <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" defer="" async=""></script> 99 100 101 <script src='@Scripts.Url("~/bundles/jquery")'></script> 102 <script src='@Scripts.Url("~/bundles/slick")'></script> 103 <script src='@Scripts.Url("~/bundles/modernizr")'></script> 104 @if (!string.IsNullOrWhiteSpace(OneTrustUrl) && !string.IsNullOrWhiteSpace(OneTrustDataDomainScript)) 105 { 106 <!-- OneTrust Cookies Consent Notice start --> 107 if (!string.IsNullOrWhiteSpace(OneTrustAutoBlockScript)) 108 { 109 <script type="text/javascript" src="@OneTrustAutoBlockScript"></script> 110 } 111 <script src="@OneTrustUrl" type="text/javascript" charset="UTF-8" data-domain-script="@OneTrustDataDomainScript"></script> 112 <script type="text/javascript"> 113 114 function OptanonWrapper() { 115 // Get initial OnetrustActiveGroups ids 116 if (typeof OptanonWrapperCount == "undefined") { 117 otGetInitialGrps(); 118 } 119 120 //Delete cookies 121 otDeleteCookie(otIniGrps); 122 123 // Assign OnetrustActiveGroups to custom variable 124 function otGetInitialGrps() { 125 OptanonWrapperCount = ''; 126 otIniGrps = OnetrustActiveGroups; 127 // console.log("otGetInitialGrps", otIniGrps) 128 } 129 130 function otDeleteCookie(iniOptGrpId) { 131 var otDomainGrps = JSON.parse(JSON.stringify(Optanon.GetDomainData().Groups)); 132 var otDeletedGrpIds = otGetInactiveId(iniOptGrpId, OnetrustActiveGroups); 133 if (otDeletedGrpIds.length != 0 && otDomainGrps.length != 0) { 134 for (var i = 0; i < otDomainGrps.length; i++) { 135 //Check if CustomGroupId matches 136 if (otDomainGrps[i]['CustomGroupId'] != '' && otDeletedGrpIds.includes(otDomainGrps[i]['CustomGroupId'])) { 137 for (var j = 0; j < otDomainGrps[i]['Cookies'].length; j++) { 138 // console.log("otDeleteCookie",otDomainGrps[i]['Cookies'][j]['Name']) 139 //Delete cookie 140 eraseCookie(otDomainGrps[i]['Cookies'][j]['Name']); 141 } 142 } 143 144 //Check if Hostid matches 145 if (otDomainGrps[i]['Hosts'].length != 0) { 146 for (var j = 0; j < otDomainGrps[i]['Hosts'].length; j++) { 147 //Check if HostId presents in the deleted list and cookie array is not blank 148 if (otDeletedGrpIds.includes(otDomainGrps[i]['Hosts'][j]['HostId']) && otDomainGrps[i]['Hosts'][j]['Cookies'].length != 0) { 149 for (var k = 0; k < otDomainGrps[i]['Hosts'][j]['Cookies'].length; k++) { 150 //Delete cookie 151 eraseCookie(otDomainGrps[i]['Hosts'][j]['Cookies'][k]['Name']); 152 } 153 } 154 } 155 } 156 157 } 158 } 159 otGetInitialGrps(); //Reassign new group ids 160 } 161 162 //Get inactive ids 163 function otGetInactiveId(customIniId, otActiveGrp) { 164 //Initial OnetrustActiveGroups 165 // console.log("otGetInactiveId",customIniId) 166 customIniId = customIniId.split(","); 167 customIniId = customIniId.filter(Boolean); 168 169 //After action OnetrustActiveGroups 170 otActiveGrp = otActiveGrp.split(","); 171 otActiveGrp = otActiveGrp.filter(Boolean); 172 173 var result = []; 174 for (var i = 0; i < customIniId.length; i++) { 175 if (otActiveGrp.indexOf(customIniId[i]) <= -1) { 176 result.push(customIniId[i]); 177 } 178 } 179 return result; 180 } 181 182 //Delete cookie 183 function eraseCookie(name) { 184 //Delete root path cookies 185 domainName = window.location.hostname; 186 document.cookie = name + '=; Max-Age=-99999999; Path=/;Domain=' + domainName; 187 document.cookie = name + '=; Max-Age=-99999999; Path=/;'; 188 189 //Delete LSO incase LSO being used, cna be commented out. 190 localStorage.removeItem(name); 191 192 //Check for the current path of the page 193 pathArray = window.location.pathname.split('/'); 194 //Loop through path hierarchy and delete potential cookies at each path. 195 for (var i = 0; i < pathArray.length; i++) { 196 if (pathArray[i]) { 197 //Build the path string from the Path Array e.g /site/login 198 var currentPath = pathArray.slice(0, i + 1).join('/'); 199 document.cookie = name + '=; Max-Age=-99999999; Path=' + currentPath + ';Domain=' + domainName; 200 document.cookie = name + '=; Max-Age=-99999999; Path=' + currentPath + ';'; 201 //Maybe path has a trailing slash! 202 document.cookie = name + '=; Max-Age=-99999999; Path=' + currentPath + '/;Domain=' + domainName; 203 document.cookie = name + '=; Max-Age=-99999999; Path=' + currentPath + '/;'; 204 205 206 } 207 } 208 209 } 210 211 if (!OptanonActiveGroups.includes('C0004') || !OptanonActiveGroups.includes('C0003')) { 212 let iframes = document.getElementsByTagName("iframe"); 213 214 for (var i = 0; i < iframes.length; i++) { 215 iframes[i].classList.remove("optanon-category-C0004"); 216 217 iframes[i].classList.remove("optanon-category-C0003"); 218 let src = iframes[i].getAttribute('data-src'); 219 if (src && src.includes("youtube.com")) { 220 $(iframes[i]).removeAttr('data-src'); 221 $(iframes[i]).attr('src', src.replace('youtube.com', 'youtube-nocookie.com')); 222 223 } 224 } 225 } 226 227 228 } 229 230 function deleteAllCookies() { 231 var cookies = document.cookie.split("; "); 232 for (var c = 0; c < cookies.length; c++) { 233 var d = window.location.hostname.split("."); 234 while (d.length > 0) { 235 var cookieBase = encodeURIComponent(cookies[c].split(";")[0].split("=")[0]) + '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=' + d.join('.') + ' ;path='; 236 var p = location.pathname.split('/'); 237 document.cookie = cookieBase + '/'; 238 while (p.length > 0) { 239 document.cookie = cookieBase + p.join('/'); 240 p.pop(); 241 }; 242 d.shift(); 243 } 244 } 245 } 246 247 const getCookieValue = (name) => ( 248 document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)')?.pop() || '' 249 ) 250 251 const urlParams = new URLSearchParams(getCookieValue('OptanonConsent')); 252 const myParam = urlParams.get('datestamp'); 253 const consentdate = new Date(myParam); 254 const Resetdate = new Date('Thu Nov 07 2024 12:00:00 GMT+0000 (Greenwich Mean Time)'); 255 if (consentdate < Resetdate) { 256 deleteAllCookies(); 257 } 258 259 </script> 260 <!--OneTrust Cookies Consent Notice end --> 261 } 262 263 @{ 264 if (theme == "uk") 265 { 266 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/filsonpro/FilsonProRegular.otf" as="font" type="font/woff2"> 267 268 } 269 if (theme != "est") 270 { 271 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/montserrat/Montserrat-Bold.woff2" as="font" type="font/woff2"> 272 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/montserrat/Montserrat-Hairline.woff2" as="font" type="font/woff2"> 273 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/montserrat/Montserrat-Light.woff2" as="font" type="font/woff2"> 274 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/montserrat/Montserrat-Regular.woff2" as="font" type="font/woff2"> 275 } 276 @* dont currently have a woff2 277 else 278 { 279 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/raleway/raleway-regular.woff2" as="font" type="font/woff2"> 280 }*@ 281 282 } 283 284 285 <link rel="preload" crossorigin="anonymous" href="/Files/Templates/Designs/Condition/assets/fonts/icomoon.woff?wtdjes" as="font" type="font/woff"> 286 <script type="text/javascript"> 287 function loadScript(url, callback) { 288 289 var script = document.createElement("script") 290 script.type = "text/javascript"; 291 script.setAttribute('async', 'async') 292 if (script.readyState) { //IE 293 script.onreadystatechange = function () { 294 if (script.readyState == "loaded" || 295 script.readyState == "complete") { 296 script.onreadystatechange = null; 297 callback(); 298 } 299 }; 300 } else { //Others 301 script.onload = function () { 302 callback(); 303 }; 304 } 305 306 script.src = url; 307 document.getElementsByTagName("head")[0].appendChild(script); 308 } 309 </script> 310 <script src='@Scripts.Url("~/bundles/plugins")' defer=""></script> 311 312 @if (!string.IsNullOrWhiteSpace(GoogleTagManagerId)) 313 { 314 <!-- Google Tag Manager --> 315 <script type="text/javascript"> 316 setTimeout(function(){ 317 (function (w, d, s, l, i) { 318 w[l] = w[l] || []; w[l].push({ 319 'gtm.start': 320 new Date().getTime(), event: 'gtm.js' 321 }); var f = d.getElementsByTagName(s)[0], 322 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 323 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 324 })(window, document, 'script', 'dataLayer', '@GoogleTagManagerId'); 325 }, 2000); 326 </script> 327 <!-- End Google Tag Manager --> 328 } 329 330 @GetValue("Item.HrefLangMapping") 331 @RenderSnippet("hreflang") 332 333 <meta name="viewport" content="width=device-width, initial-scale=1"> 334 <meta name="format-detection" content="telephone=no"> 335 336 @if (theme == "uk") 337 { 338 <link rel="apple-touch-icon" sizes="192x192" href="/Images/Favicon/NST/favicon-nst-192x192.png"> 339 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NST/favicon-nst-192x192.png" sizes="192x192"> 340 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NST/favicon-nst-160x160.png" sizes="160x160"> 341 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NST/favicon-nst-96x96.png" sizes="96x96"> 342 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NST/favicon-nst-16x16.png" sizes="16x16"> 343 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NST/favicon-nst-32x32.png" sizes="32x32"> 344 } 345 else if (theme == "ie") 346 { 347 <link rel="apple-touch-icon" sizes="192x192" href="/Images/Favicon/NSTIE/favicon-nst-dublin-192x192.png"> 348 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NSTIE/favicon-nst-dublin-192x192.png" sizes="192x192"> 349 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NSTIE/favicon-nst-dublin-160x160.png" sizes="160x160"> 350 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NSTIE/favicon-nst-dublin-96x96.png" sizes="96x96"> 351 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NSTIE/favicon-nst-dublin-16x16.png" sizes="16x16"> 352 <link rel="icon" type="image/png" href="/Files/Images/Favicon/NSTIE/favicon-nst-dublin-32x32.png" sizes="32x32"> 353 } 354 else if (theme == "slk") 355 { 356 <link rel="apple-touch-icon" sizes="192x192" href="/Files/Images/Favicon/SLK/favicon-slk-192x192.png"> 357 <link rel="icon" type="image/png" href="/Files/Images/Favicon/SLK/favicon-slk-192x192.png" sizes="192x192"> 358 <link rel="icon" type="image/png" href="/Files/Images/Favicon/SLK/favicon-slk-160x160.png" sizes="160x160"> 359 <link rel="icon" type="image/png" href="/Files/Images/Favicon/SLK/favicon-slk-96x96.png" sizes="96x96"> 360 <link rel="icon" type="image/png" href="/Files/Images/Favicon/SLK/favicon-slk-16x16.png" sizes="16x16"> 361 <link rel="icon" type="image/png" href="/Files/Images/Favicon/SLK/favicon-slk-32x32.png" sizes="32x32"> 362 } 363 else if (theme == "est") 364 { 365 <link rel="apple-touch-icon" sizes="192x192" href="/Files/Images/Favicon/EST/favicon-est-192x192.png"> 366 <link rel="icon" type="image/png" href="/Files/Images/Favicon/EST/favicon-est-192x192.png" sizes="192x192"> 367 <link rel="icon" type="image/png" href="/Files/Images/Favicon/EST/favicon-est-160x160.png" sizes="160x160"> 368 <link rel="icon" type="image/png" href="/Files/Images/Favicon/EST/favicon-est-96x96.png" sizes="96x96"> 369 <link rel="icon" type="image/png" href="/Files/Images/Favicon/EST/favicon-est-16x16.png" sizes="16x16"> 370 <link rel="icon" type="image/png" href="/Files/Images/Favicon/EST/favicon-est-32x32.png" sizes="32x32"> 371 } 372 373 @Styles.Render(string.Format("~/bundles/{0}_css", theme)) 374 375 @Styles.Render("~/bundles/googlefonts_css") 376 @Styles.Render("~/bundles/bootstrap-carousel_css") 377 378 379 <!--[if lt IE 9]> 380 <script src="/assets/js/min/selectivizr-min.js"></script> 381 <![endif]--> 382 <!-- <link rel="stylesheet" href="/assets/css/jquery-ui.min.css"> --> 383 <!-- Google Analytics --> 384 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalyticsId"))) 385 { 386 <script type="text/plain" class="optanon-category-C0002"> 387 (function (i, s, o, g, r, a, m) { 388 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 389 (i[r].q = i[r].q || []).push(arguments) 390 }, i[r].l = 1 * new Date(); a = s.createElement(o), 391 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 392 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 393 394 ga('create', '@GetValue("Item.Area.GoogleAnalyticsId")', 'auto'); 395 ga('send', 'pageview'); 396 397 </script> 398 } 399 @if (!string.IsNullOrWhiteSpace(telSEOAK) && !string.IsNullOrWhiteSpace(telSEOCL)) 400 { 401 <script type="text/plain" class="optanon-category-C0002"> 402 (function (a, e, c, f, g, h, b, d) { 403 var k = { ak: "@telSEOAK", cl: "@telSEOCL", autoreplace: "@telNumber" }; 404 a[c] = a[c] || function () { (a[c].q = a[c].q || []).push(arguments) }; 405 a[g] || (a[g] = k.ak); b = e.createElement(h); b.async = 1; 406 b.src = "//www.gstatic.com/wcm/loader.js"; d = e.getElementsByTagName(h)[0]; 407 d.parentNode.insertBefore(b, d); a[f] = function (b, d, e) { a[c](2, b, k, d, null, new Date, e) }; 408 a[f]() 409 })(window, document, "_googWcmImpl", "_googWcmGet", "_googWcmAk", "script"); 410 411 </script> 412 } 413 414 415 @if (!string.IsNullOrWhiteSpace(facebookPixelId)) 416 { 417 <!-- Facebook Pixel Code --> 418 <script type="text/plain" class="optanon-category-C0004"> 419 !function (f, b, e, v, n, t, s) { 420 if (f.fbq) return; n = f.fbq = function () { 421 n.callMethod ? 422 n.callMethod.apply(n, arguments) : n.queue.push(arguments) 423 }; 424 if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0'; 425 n.queue = []; t = b.createElement(e); t.async = !0; 426 t.src = v; s = b.getElementsByTagName(e)[0]; 427 s.parentNode.insertBefore(t, s) 428 }(window, document, 'script', 429 'https://connect.facebook.net/en_US/fbevents.js'); 430 fbq('init', '@facebookPixelId'); 431 fbq('track', 'PageView'); 432 </script> 433 <!-- End Facebook Pixel Code --> 434 } 435 436 <script> 437 document.addEventListener("DOMContentLoaded", function (event) { 438 var frames = document.getElementsByTagName('iframe'); 439 for (var i = 0; i < frames.length; i++) { 440 frames[i].src = frames[i].src.replace("youtube.com", "youtube-nocookie.com"); 441 } 442 }); 443 </script> 444 445 446 @GetValue("Stylesheets") 447 @GetValue("Javascripts") 448 </head> 449 450 <body> 451 <div id="mainContent"> 452 <div class="header-push"></div> 453 <header> 454 <div class="container clearfix menu-container"> 455 @if (theme != "uk") 456 { 457 <a href="/"><img class="logo mobile-only" src="@brandLogoSmall" alt="@brandNameSmall"></a> 458 } 459 else 460 { 461 <div class="header-background desktop"></div> 462 } 463 <nav id="site-nav" class="clearfix"> 464 @if (theme == "slk") 465 { 466 <ul> 467 <li style="background-color:white;"> 468 <a href="/"> 469 <img src="/Files/Templates/Designs/Condition/assets/images/design/StudyLink_Logo_Reg.png" style="max-height:20px"> 470 </a> 471 </li> 472 </ul> 473 @GetValue("DwNavigation(slkNavMenu)") 474 <nav id="navTools" class="navTools"> 475 <ul> 476 <li class="contact no-mobile"><a href="javascript:;">Contact Us</a></li> 477 </ul> 478 </nav> 479 480 } 481 else if (theme == "est") 482 { 483 <ul> 484 <li> 485 <a href="/"> 486 <img src="/Files/Templates/Designs/Condition/assets/images/design/ESTLogo.png" style="max-height:50px; margin-top: -10px;"> 487 </a> 488 </li> 489 </ul> 490 @GetValue("DwNavigation(estNavMenu)") 491 <nav id="navTools" class="navTools"> 492 <ul> 493 <li class="contact no-mobile"><a href="javascript:;">Contact Us</a></li> 494 </ul> 495 </nav> 496 497 } 498 else if (theme == "pgl") 499 { 500 <ul> 501 <li class="logo-item"><a href="/"><img class="logo show-on-scroll-50 no-mobile small" src="@brandLogoSmall" alt="@brandNameSmall"></a></li> 502 </ul> 503 @GetValue("DwNavigation(pglNavMenu)") 504 <nav id="navTools" class="navTools"> 505 <ul> 506 <li class="contact no-mobile"><a href="javascript:;">Enquire</a></li> 507 </ul> 508 </nav> 509 } 510 else if (theme == "uk") 511 { 512 <svg class="position-absolute path-size"> 513 <defs> 514 <clippath id="smoothWave" clippathunits="objectBoundingBox"> 515 <path d="M0,0.2 C0.15,0.32 0.25,0.38 0.3,0.42 S0.5,0.78 0.7,0.95 S0.88,0.88 1,0.7 L1,0 L0,0 Z"></path> 516 </clippath> 517 </defs> 518 </svg> 519 <div class="header-top desktop"> 520 <div class="container d-flex justify-content-end align-items-center"> 521 <a href="/login" class="action-link mr-0"> 522 <img src="/Files/Templates/Designs/Condition/assets/images/design/icons/nst-login-icon.svg" alt="Login" class="pr-3"> 523 <p class="fs-55">Login</p> 524 </a> 525 <span class="divider"></span> 526 <a href='tel:@GetString("Item.Area.Telephone")' class="action-link mr-0"> 527 <img src="/Files/Templates/Designs/Condition/assets/images/design/icons/nst-phone-icon.svg" alt="Call us" class="pr-3"> 528 <p class="fs-55"><span class="no-desktop">@telNumber</span><span class="desktop-only">Call us</span></p> 529 </a> 530 <span class="divider"></span> 531 <a href="/contact-us" class="action-link mr-0"> 532 <img src="/Files/Templates/Designs/Condition/assets/images/design/icons/nst-message-icon.svg" alt="Get in touch" class="pr-3 mt-2"> 533 <p class="fs-55">Get in touch</p> 534 </a> 535 </div> 536 </div> 537 <nav class="header-bottom container d-flex justify-content-between align-items-center"> 538 <a href="/"> 539 <img class="logo" src="@brandLogoSmall" alt="@brandNameSmall"> 540 </a> 541 <div class="mt-6 header-text-color"> 542 @GetValue("DwNavigation(UkNstNavMenu)") 543 </div> 544 <ul class="mt-6"> 545 <li class="quote no-mobile"> 546 <a href="/request-quote">Request quote</a> 547 </li> 548 </ul> 549 </nav> 550 } 551 else 552 { 553 <ul> 554 <li class="logo-item"><a href="/"><img class="logo show-on-scroll-50 no-mobile small" src="@brandLogoSmall" alt="@brandNameSmall"></a></li> 555 </ul> 556 @GetValue("DwNavigation(IeNstNavMenu)") 557 <nav id="navTools" class="navTools"> 558 <ul> 559 <li class="contact no-mobile"><a href="javascript:;">Enquire</a></li> 560 </ul> 561 </nav> 562 } 563 564 <div class="right"> 565 <ul> 566 @if (theme == "est") 567 { 568 <li class="no-mobile align-center"> 569 <a href='tel:@GetString("Item.Area.Telephone")'>@GetString("Item.Area.Telephone")</a> 570 </li> 571 } 572 else if (theme == "uk") 573 { 574 575 } 576 else 577 { 578 <li class="call-number no-mobile"> 579 <a href='tel:@GetString("Item.Area.Telephone")'>@GetString("Item.Area.Telephone")</a> 580 </li> 581 } 582 @if (theme == "slk") 583 { 584 <li class="no-mobile" style="background-color:#414042;"> 585 <a href="http://slk.my-tour-manager.com" target="_blank"> 586 <span class="icon-user" style="font-size:1.5em; color:white;"></span> 587 </a> 588 </li> 589 <li class="quote no-mobile"> 590 <a href="/request-quote" style="color:white;"> 591 REQUEST A QUOTE 592 </a> 593 </li> 594 } 595 else if (theme == "est") 596 { 597 <li class="quote no-mobile"> 598 <a href="/request-quote" id="navQuoteButton"> 599 Request quote 600 </a> 601 </li> 602 } 603 else if (theme == "uk") 604 { 605 606 } 607 else 608 { 609 <li class="quote no-mobile"> 610 <a href="/request-quote"> 611 Request quote 612 </a> 613 </li> 614 } 615 </ul> 616 </div> 617 </nav> 618 619 @if (theme == "uk") 620 { 621 <svg class="position-absolute path-size"> 622 <defs> 623 <clippath id="smoothWaveMobile" clippathunits="objectBoundingBox"> 624 <path d="M0,0.2 C0.5,0.9 0.5,0.9 1,0.99 L1,0 L0,0 Z"></path> 625 </clippath> 626 </defs> 627 </svg> 628 <div class="header-top mobile mobile-only"> 629 <div class="container d-flex justify-content-end align-items-center"> 630 <a href="/login" class="action-link mr-0"> 631 <img src="/Files/Templates/Designs/Condition/assets/images/design/icons/nst-login-icon.svg" alt="Login" class="pr-3"> 632 </a> 633 <a href='tel:@GetString("Item.Area.Telephone")' class="action-link mr-0"> 634 <img src="/Files/Templates/Designs/Condition/assets/images/design/icons/nst-phone-icon.svg" alt="Call us" class="pr-3"> 635 </a> 636 <a href="/contact-us" class="action-link mr-0"> 637 <img src="/Files/Templates/Designs/Condition/assets/images/design/icons/nst-message-icon.svg" alt="Get in touch" class="pr-3 mt-2"> 638 </a> 639 </div> 640 </div> 641 642 <a class="mobile-only mobile-logo" href="/"> 643 <img class="logo" src="@brandLogoSmall" alt="@brandNameSmall"> 644 </a> 645 } 646 647 <div class="mobile-only right mobile-menu-button"></div> 648 649 @*<div class="search-activate mobile-only right"><a href="#"><span class="icon-search hidden"></span><span class="text">Search</span></a></div>*@ 650 651 <nav id="mobile-nav" class="clearfix"> 652 @GetValue("DwNavigation(mobilenav)") 653 <ul> 654 655 @if (theme == "slk") 656 { 657 <li class="mobile-only"><a href="http://slk.my-tour-manager.com" target="_blank">Login</a></li> 658 <li class="contact"><div class="nav-name"><a href="javascript:;">Contact us</a></div></li> 659 } 660 else if (theme == "est") 661 { 662 <li class="contact"><div class="nav-name"><a href="javascript:;">Contact us</a></div></li> 663 } 664 else if (theme == "uk") 665 { 666 <li class="mt-3"><div class="nav-name"><a href="http://nst.my-tour-manager.com" target="_blank">Login</a></div></li> 667 <li class=""><div class="nav-name"><a href="/contact-us">Get in touch</a></div></li> 668 669 <li class="mobile-contact mt-6"><a style="color: #ffffff !important" href='tel:@GetString("Item.Area.Telephone")'>Call us</a></li> 670 <li class="mobile-quote"><a style="color: #ffffff !important" href="/request-quote">Request quote</a></li> 671 } 672 else 673 { 674 <li class="contact"><div class="nav-name"><a href="javascript:;">Enquire</a></div></li> 675 } 676 677 @if (theme == "est") 678 { 679 <li class="standard"><div class="nav-name"><a href="https://www.euro-study-tours.co.uk/work-for-us">Work for Us</a></div></li> 680 } 681 else if (theme == "uk") 682 { 683 684 } 685 else 686 { 687 <li class="standard"><div class="nav-name"><a href="https://www.nstgroup.co.uk/work-for-us">Work for Us</a></div></li> 688 } 689 690 691 </ul> 692 </nav> 693 </div> 694 695 @if (theme == "uk") 696 { 697 698 } 699 else 700 { 701 <div class="container clearfix mobile-only mobile-contact-header"> 702 <div class="mobile-only mobile-number call-number"> 703 <a href='tel:@GetString("Item.Area.Telephone")'>@GetString("Item.Area.Telephone")</a> 704 </div> 705 <div class="button quote-button-background"> 706 <a href="/request-quote"> 707 @mobileRequestQuoteText 708 </a> 709 </div> 710 </div> 711 } 712 713 <div class="contact-bar-dropdown"> 714 <div class="container"> 715 <!-- <a class="mobile-only contact-button" href="/contact-us/request-a-quote"><span class="icon-calculator"></span> Request quote</a> --> 716 @if (areaId == 1) 717 { 718 <!--<a class="contact-button" href="/view-our-brochures"><span class="icon-brochure"></span> View our brochures</a>--> 719 } 720 <a class="contact-button no-mobile" href="/request-quote"><span class="icon-email"></span> Request quote</a> 721 <a class="contact-button" href="/get-in-touch"><span class="icon-email"></span> Get in touch</a> 722 </div> 723 </div> 724 725 <div class="search-bar-dropdown"> 726 <div class="container"> 727 @*<form action="/search-results"> 728 <label for="search">Search</label> 729 <input type="text" name="q" id="q" placeholder="Enter search term"> 730 <input type="submit" value="submit" name="submit" id="submit"> 731 </form>*@ 732 </div> 733 </div> 734 </header> 735 736 <div class="mobileMenuBkgndOverlay"></div> 737 738 <main class="mainContent"> 739 740 @using NstWebsite.Services 741 742 @{ 743 string title = (string)@GetValue("Title"); 744 var brandLogo = GetString("Item.Area.BrandLogo"); 745 var brandName = GetString("Item.Area.TitleBrand"); 746 747 var requirements = theme == "slk" ? "Destination, subject taught & group size" : "Destination, subject taught, group size including adults & age range"; 748 requirements = theme == "uk" || theme == "est" ? "Destination, subject taught & group size including adults" : requirements; 749 var nstReq = theme == "uk" || theme == "est" ? "required" : ""; 750 751 //Check for Spammers 752 int ipMatched = SpammerCheck(); 753 var spc = GUIDCheck(); 754 755 } 756 757 758 @functions{ 759 //Check for spammers 760 public int SpammerCheck() 761 { 762 var userIPAddress = System.Web.HttpContext.Current.Request.UserHostAddress; 763 764 var cacheItemKey = "IPAddresses"; 765 var ipAddresses = System.Web.Helpers.WebCache.Get(cacheItemKey) as List<string>; 766 var ipMatchCount = 0; 767 var maxMatchCount = System.Configuration.ConfigurationManager.AppSettings["IPSpamCheckMaxCount"]; 768 769 if (ipAddresses != null) 770 { 771 ipMatchCount = ipAddresses.Where(a => a == userIPAddress).Count(); 772 } 773 else 774 { ipMatchCount = 0; } 775 if (ipMatchCount >= Convert.ToInt32(maxMatchCount)) 776 { 777 //Redirect them to a page asking them to telephone us 778 System.Web.HttpContext.Current.Response.Redirect("~/quote-contact-us/"); 779 } 780 781 return ipMatchCount; 782 } 783 public string GUIDCheck() 784 { 785 var spamProtectionGUIDS = new List<string>(); 786 var spcGUID = System.Guid.NewGuid().ToString(); 787 var cacheItemKey = "SPC"; 788 spamProtectionGUIDS = System.Web.Helpers.WebCache.Get(cacheItemKey) as List<string>; 789 790 if (spamProtectionGUIDS != null) 791 { 792 spamProtectionGUIDS.Add(spcGUID); 793 } 794 else 795 { 796 spamProtectionGUIDS = new List<string>(); 797 spamProtectionGUIDS.Add(spcGUID); 798 } 799 System.Web.Helpers.WebCache.Set(cacheItemKey, spamProtectionGUIDS); 800 return spcGUID; 801 } 802 803 } 804 805 <style> 806 #emailConfirm { 807 display: none; 808 } 809 </style> 810 811 } 812 813 <div class="masthead no-slider"> 814 <!-- Logo Overlay --> 815 @if (theme != "slk") 816 { 817 818 <div class="clearfix logo"> 819 <div class="container"> 820 <a href="/"><img class="hide-on-scroll-50 no-mobile" src="@brandLogo" alt="@brandName"></a> 821 </div> 822 </div> 823 } 824 </div> 825 826 <section class="breadcrumbs clearfix container"> 827 <p><span class="bold">You are here:</span></p> 828 @GetValue("DwNavigation(breadcrumbnav)") 829 <a href="#" class="go-back"><p>Go back</p></a> 830 </section> 831 832 <!-- section --> 833 <section id="standard" class="page-content"> 834 <!-- container --> 835 <div class="container clearfix"> 836 <div class="row form"> 837 <div style="max-width: 540px; margin: 40px auto;"> 838 <form method="POST" id="quoteForm" class="itinerary-form validate"> 839 <input type="hidden" id="turnstiletoken" value=""> 840 841 <div id="nstContent">@GetValue("DwContent(nstContent)")</div> 842 843 844 <div class="padding-20 secondary-grey-background clearfix form"> 845 <!-- itin pod --> 846 <div class="itinerary-pod border-bottom clearfix your-info"> 847 848 <div class="inputs"> 849 850 <h3>Information about you</h3> 851 852 <div class="form-input required select"> 853 <label for="title">Title:</label> 854 <div class="field"> 855 <select name="title" id="title"> 856 <option value="">Please select</option> 857 <option value="Mr">Mr</option> 858 <option value="Mrs">Mrs</option> 859 <option value="Ms">Ms</option> 860 <option value="Miss">Miss</option> 861 <option value="Dr">Dr</option> 862 <option value="Mx">Mx</option> 863 <option value="Professor">Professor</option> 864 <option value="other">Other</option> 865 </select> 866 </div> 867 </div> 868 869 <div class="form-input required"> 870 <label for="firstname">First name:</label> 871 <div class="field"> 872 <input name="firstname" type="text" maxlength="50" id="firstname"> 873 <span class="icon-cross close"></span> 874 </div> 875 </div> 876 877 <div class="form-input required"> 878 <label for="lastname">Last name:</label> 879 <div class="field"> 880 <input name="lastname" type="text" maxlength="50" id="lastname"> 881 <span class="icon-cross close"></span> 882 </div> 883 </div> 884 885 <div style="clear:both;"></div> 886 887 888 889 <div class="form-input required"> 890 @if (theme == "slk") 891 { 892 <label for="school">College / university name:</label> 893 } 894 else 895 { 896 <label for="school">School / college / group name:</label> 897 } 898 <div class="field"> 899 <input name="school" type="text" maxlength="100" id="school"> 900 <span class="icon-cross close"></span> 901 </div> 902 </div> 903 904 <div class="form-input"> 905 @if (theme == "slk") 906 { 907 <label for="postcode">Campus name:</label> 908 } 909 else 910 { 911 <label for="postcode">School / college / group postcode:</label> 912 } 913 <div class="field"> 914 <input name="postcode" type="text" maxlength="50" id="postcode"> 915 <span class="icon-cross close"></span> 916 </div> 917 </div> 918 919 <div class="form-input required"> 920 <label for="email">Email address:</label> 921 <div class="field"> 922 <input name="email" type="text" maxlength="100" id="email"> 923 <label id="emailConfirm"> 924 Email confirm:<input name="email2" type="text" maxlength="100" id="email2"> 925 <input name="spc" type="text" maxlength="100" id="spc" value="@spc" style="display:none;"> 926 </label> 927 <span class="icon-cross close"></span> 928 </div> 929 </div> 930 931 932 933 <div class="form-input"> 934 <label for="telephonenumber">Mobile number</label> 935 <div class="field"> 936 <input name="telephonenumber" type="text" maxlength="20" id="telephonenumber"> 937 <span class="icon-cross close"></span> 938 </div> 939 </div> 940 941 942 </div> 943 944 945 @if (theme == "ie") 946 { 947 948 <div class="form-input required"> 949 <label for="schooltelephonenumber">School telephone number</label> 950 <div class="field"> 951 <input name="schooltelephonenumber" type="text" maxlength="20" id="schooltelephonenumber"> 952 <span class="icon-cross close"></span> 953 </div> 954 </div> 955 } 956 957 958 </div> 959 <!-- end itin pod --> 960 <!-- Itinerary Pod --> 961 <div class="itinerary-pod border-bottom clearfix your-info"> 962 <div class="inputs"> 963 <h3>Travel details</h3><div class="form-input required" style="width: 100%;"> 964 965 <label for="requirements"> 966 @requirements 967 </label> 968 <div class="field"> 969 <textarea name="requirements" rows="2" cols="20" id="requirements"></textarea> 970 </div> 971 </div> 972 973 <!-- .form-input --> 974 @if (theme == "uk" || theme == "est") 975 { 976 <div class="form-input @nstReq"> 977 <label for="ageRange">Age range of students</label> 978 <div class="field"> 979 <input name="ageRange" type="text" maxlength="30" id="ageRange"> 980 <span class="icon-cross close"></span> 981 </div> 982 </div> 983 } 984 <!-- .form-input --> 985 @if (theme == "uk") 986 { 987 <div class="form-input"> 988 <label for="budget">Estimated budget per trip</label> 989 <div class="field"> 990 <input name="budget" type="text" maxlength="20" id="budget"> 991 <span class="icon-cross close"></span> 992 </div> 993 </div> 994 } 995 <!-- .form-input --> 996 <div class="form-input required"> 997 <label for="datefrom">Outbound travel date: </label> 998 <div class="field required"> 999 <input name="datefrom" type="text" maxlength="50" id="datefrom" class="datepicker datePickerStart picker__input" placeholder="dd/mm/yyyy" readonly="" aria-haspopup="true" aria-expanded="false" aria-readonly="false" aria-owns="ctl01_datefrom_root"> 1000 <div class="picker" id="ctl01_datefrom_root" aria-hidden="true"> 1001 <div class="picker__holder" tabindex="-1"> 1002 <div class="picker__frame"> 1003 <div class="picker__wrap"> 1004 <div class="picker__box"> 1005 <div class="picker__header"> 1006 <div class="picker__month">August</div> 1007 <div class="picker__year">2017</div> 1008 <div class="picker__nav--prev" data-nav="-1" role="button" aria-controls="ctl01_datefrom_table" title="Previous month"> </div><div class="picker__nav--next picker__nav--disabled" data-nav="1" role="button" aria-controls="ctl01_datefrom_table" title="Next month"> </div> 1009 </div><table class="picker__table" id="ctl01_datefrom_table" role="grid" aria-controls="ctl01_datefrom" aria-readonly="true"><thead><tr><th class="picker__weekday" scope="col" title="Sunday">Sun</th><th class="picker__weekday" scope="col" title="Monday">Mon</th><th class="picker__weekday" scope="col" title="Tuesday">Tue</th><th class="picker__weekday" scope="col" title="Wednesday">Wed</th><th class="picker__weekday" scope="col" title="Thursday">Thu</th><th class="picker__weekday" scope="col" title="Friday">Fri</th><th class="picker__weekday" scope="col" title="Saturday">Sat</th></tr></thead><tbody><tr><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1501369200000" role="gridcell" aria-label="30/07/17">30</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1501455600000" role="gridcell" aria-label="31/07/17">31</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1501542000000" role="gridcell" aria-label="01/08/17">1</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1501628400000" role="gridcell" aria-label="02/08/17">2</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1501714800000" role="gridcell" aria-label="03/08/17">3</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1501801200000" role="gridcell" aria-label="04/08/17">4</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1501887600000" role="gridcell" aria-label="05/08/17">5</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1501974000000" role="gridcell" aria-label="06/08/17">6</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502060400000" role="gridcell" aria-label="07/08/17">7</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502146800000" role="gridcell" aria-label="08/08/17">8</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502233200000" role="gridcell" aria-label="09/08/17">9</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502319600000" role="gridcell" aria-label="10/08/17">10</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502406000000" role="gridcell" aria-label="11/08/17">11</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502492400000" role="gridcell" aria-label="12/08/17">12</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502578800000" role="gridcell" aria-label="13/08/17">13</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502665200000" role="gridcell" aria-label="14/08/17">14</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502751600000" role="gridcell" aria-label="15/08/17">15</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502838000000" role="gridcell" aria-label="16/08/17">16</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1502924400000" role="gridcell" aria-label="17/08/17">17</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--selected picker__day--highlighted" data-pick="1503010800000" role="gridcell" aria-label="18/08/17" aria-selected="true" aria-activedescendant="true">18</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503097200000" role="gridcell" aria-label="19/08/17">19</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503183600000" role="gridcell" aria-label="20/08/17">20</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503270000000" role="gridcell" aria-label="21/08/17">21</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503356400000" role="gridcell" aria-label="22/08/17">22</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503442800000" role="gridcell" aria-label="23/08/17">23</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503529200000" role="gridcell" aria-label="24/08/17">24</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1503615600000" role="gridcell" aria-label="25/08/17" aria-disabled="true">25</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1503702000000" role="gridcell" aria-label="26/08/17" aria-disabled="true">26</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1503788400000" role="gridcell" aria-label="27/08/17" aria-disabled="true">27</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1503874800000" role="gridcell" aria-label="28/08/17" aria-disabled="true">28</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1503961200000" role="gridcell" aria-label="29/08/17" aria-disabled="true">29</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1504047600000" role="gridcell" aria-label="30/08/17" aria-disabled="true">30</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1504134000000" role="gridcell" aria-label="31/08/17" aria-disabled="true">31</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504220400000" role="gridcell" aria-label="01/09/17" aria-disabled="true">1</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504306800000" role="gridcell" aria-label="02/09/17" aria-disabled="true">2</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504393200000" role="gridcell" aria-label="03/09/17" aria-disabled="true">3</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504479600000" role="gridcell" aria-label="04/09/17" aria-disabled="true">4</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504566000000" role="gridcell" aria-label="05/09/17" aria-disabled="true">5</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504652400000" role="gridcell" aria-label="06/09/17" aria-disabled="true">6</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504738800000" role="gridcell" aria-label="07/09/17" aria-disabled="true">7</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504825200000" role="gridcell" aria-label="08/09/17" aria-disabled="true">8</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1504911600000" role="gridcell" aria-label="09/09/17" aria-disabled="true">9</div></td></tr></tbody></table><div class="picker__footer"><button class="picker__button--today" type="button" data-pick="1482105600000" disabled="" aria-controls="ctl01_datefrom">Today</button><button class="picker__button--clear" type="button" data-clear="1" disabled="" aria-controls="ctl01_datefrom">Clear</button><button class="picker__button--close" type="button" data-close="true" disabled="" aria-controls="ctl01_datefrom">Close</button></div> 1010 </div> 1011 </div> 1012 </div> 1013 </div> 1014 </div><input type="hidden" name="ctl01$datefrom_submit" value="18/08/17"> 1015 <div id="date-container"></div> 1016 </div> 1017 </div> 1018 <!-- .form-input --> 1019 <div class="form-input required"> 1020 <label for="dateto">Return travel date: </label> 1021 <div class="field"> 1022 <input name="dateto" type="text" maxlength="50" id="dateto" class="datepicker datePickerEnd picker__input" placeholder="dd/mm/yyyy" readonly="" aria-haspopup="true" aria-expanded="false" aria-readonly="false" aria-owns="ctl01_dateto_root"> 1023 <div class="picker" id="ctl01_dateto_root" aria-hidden="true"><div class="picker__holder" tabindex="-1"><div class="picker__frame"><div class="picker__wrap"><div class="picker__box"><div class="picker__header"><div class="picker__month">August</div><div class="picker__year">2017</div><div class="picker__nav--prev picker__nav--disabled" data-nav="-1" role="button" aria-controls="ctl01_dateto_table" title="Previous month"> </div><div class="picker__nav--next" data-nav="1" role="button" aria-controls="ctl01_dateto_table" title="Next month"> </div></div><table class="picker__table" id="ctl01_dateto_table" role="grid" aria-controls="ctl01_dateto" aria-readonly="true"><thead><tr><th class="picker__weekday" scope="col" title="Sunday">Sun</th><th class="picker__weekday" scope="col" title="Monday">Mon</th><th class="picker__weekday" scope="col" title="Tuesday">Tue</th><th class="picker__weekday" scope="col" title="Wednesday">Wed</th><th class="picker__weekday" scope="col" title="Thursday">Thu</th><th class="picker__weekday" scope="col" title="Friday">Fri</th><th class="picker__weekday" scope="col" title="Saturday">Sat</th></tr></thead><tbody><tr><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1501369200000" role="gridcell" aria-label="30/07/17" aria-disabled="true">30</div></td><td role="presentation"><div class="picker__day picker__day--outfocus picker__day--disabled" data-pick="1501455600000" role="gridcell" aria-label="31/07/17" aria-disabled="true">31</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1501542000000" role="gridcell" aria-label="01/08/17" aria-disabled="true">1</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1501628400000" role="gridcell" aria-label="02/08/17" aria-disabled="true">2</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1501714800000" role="gridcell" aria-label="03/08/17" aria-disabled="true">3</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1501801200000" role="gridcell" aria-label="04/08/17" aria-disabled="true">4</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1501887600000" role="gridcell" aria-label="05/08/17" aria-disabled="true">5</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1501974000000" role="gridcell" aria-label="06/08/17" aria-disabled="true">6</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502060400000" role="gridcell" aria-label="07/08/17" aria-disabled="true">7</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502146800000" role="gridcell" aria-label="08/08/17" aria-disabled="true">8</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502233200000" role="gridcell" aria-label="09/08/17" aria-disabled="true">9</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502319600000" role="gridcell" aria-label="10/08/17" aria-disabled="true">10</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502406000000" role="gridcell" aria-label="11/08/17" aria-disabled="true">11</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502492400000" role="gridcell" aria-label="12/08/17" aria-disabled="true">12</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502578800000" role="gridcell" aria-label="13/08/17" aria-disabled="true">13</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502665200000" role="gridcell" aria-label="14/08/17" aria-disabled="true">14</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502751600000" role="gridcell" aria-label="15/08/17" aria-disabled="true">15</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502838000000" role="gridcell" aria-label="16/08/17" aria-disabled="true">16</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--disabled" data-pick="1502924400000" role="gridcell" aria-label="17/08/17" aria-disabled="true">17</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503010800000" role="gridcell" aria-label="18/08/17">18</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503097200000" role="gridcell" aria-label="19/08/17">19</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503183600000" role="gridcell" aria-label="20/08/17">20</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503270000000" role="gridcell" aria-label="21/08/17">21</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503356400000" role="gridcell" aria-label="22/08/17">22</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503442800000" role="gridcell" aria-label="23/08/17">23</div></td><td role="presentation"><div class="picker__day picker__day--infocus picker__day--selected picker__day--highlighted" data-pick="1503529200000" role="gridcell" aria-label="24/08/17" aria-selected="true" aria-activedescendant="true">24</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503615600000" role="gridcell" aria-label="25/08/17">25</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503702000000" role="gridcell" aria-label="26/08/17">26</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503788400000" role="gridcell" aria-label="27/08/17">27</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503874800000" role="gridcell" aria-label="28/08/17">28</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1503961200000" role="gridcell" aria-label="29/08/17">29</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1504047600000" role="gridcell" aria-label="30/08/17">30</div></td><td role="presentation"><div class="picker__day picker__day--infocus" data-pick="1504134000000" role="gridcell" aria-label="31/08/17">31</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504220400000" role="gridcell" aria-label="01/09/17">1</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504306800000" role="gridcell" aria-label="02/09/17">2</div></td></tr><tr><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504393200000" role="gridcell" aria-label="03/09/17">3</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504479600000" role="gridcell" aria-label="04/09/17">4</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504566000000" role="gridcell" aria-label="05/09/17">5</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504652400000" role="gridcell" aria-label="06/09/17">6</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504738800000" role="gridcell" aria-label="07/09/17">7</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504825200000" role="gridcell" aria-label="08/09/17">8</div></td><td role="presentation"><div class="picker__day picker__day--outfocus" data-pick="1504911600000" role="gridcell" aria-label="09/09/17">9</div></td></tr></tbody></table><div class="picker__footer"><button class="picker__button--today" type="button" data-pick="1482105600000" disabled="disabled" aria-controls="ctl01_dateto">Today</button><button class="picker__button--clear" type="button" data-clear="1" aria-controls="ctl01_dateto" disabled="disabled">Clear</button><button class="picker__button--close" type="button" data-close="true" aria-controls="ctl01_dateto" disabled="disabled">Close</button></div></div></div></div></div></div><input type="hidden" name="ctl01$dateto_submit" value="24/08/17"> 1024 <div id="date-container"></div> 1025 </div> 1026 </div> 1027 <!-- .form-input --> 1028 @if (theme != "slk") 1029 { 1030 <div class="form-input" style="width: 100%; margin-bottom: 20px;"> 1031 <label for="flexible" style="display: block; text-align: center;"> 1032 Flexible travel dates?&nbsp; 1033 <input id="flexible" type="checkbox" name="flexible" style="width: auto;"> 1034 </label> 1035 </div> 1036 } 1037 <br> 1038 <br> 1039 </div> 1040 <div class="inputs"> 1041 1042 1043 </div> 1044 <!-- .form-input --> 1045 </div> 1046 1047 <!-- end itin pod --> 1048 <!-- Itinerary Pod --> 1049 <!-- end itin pod --> 1050 <!-- Itinerary Pod --> 1051 <div class="itinerary-pod border-bottom clearfix"> 1052 <div class="form-input fullSize"> 1053 <div class="form-input fullSize"> 1054 <p>To learn how we use your data, view our privacy statement <a class="bold" href='/privacy-statement' title='read more' target='_blank'> here </a></p> 1055 <input id="dataOptIn" type="checkbox" checked="checked" style="display:none;" name="dataOptIn"> 1056 </div> 1057 </div> 1058 </div> 1059 <div class="itinerary-pod clearfix"> 1060 1061 @if (theme == "uk") 1062 { 1063 <p style="margin: 0 auto 10px; text-align: center;"> 1064 Click <strong>Request quote</strong> and we'll be in touch with your quote today (if received before 3pm). 1065 </p> 1066 } 1067 else 1068 { 1069 <p style="margin: 0 auto 10px; text-align: center;"> 1070 Click <strong>Request quote</strong> and we'll be in touch with your quote within one working day 1071 </p> 1072 } 1073 <div id="errorMessage" style="text-align: center; color:red;"></div> 1074 <input type="submit" name="submitQuote" value="Request quote" id="submitQuote" class="quote"> 1075 1076 </div> 1077 1078 1079 <div> 1080 <div id="turnstile-container" style="text-align:center;margin-top:24px;"></div> 1081 </div> 1082 <br> 1083 1084 1085 <div class="row clearfix smallPrint"> 1086 1087 </div> 1088 <!-- end itin pod --> 1089 </div> 1090 1091 1092 </form> 1093 1094 1095 </div> 1096 1097 </div> 1098 1099 </div> 1100 <div class="row"> 1101 <a href="#" class="back-to-top scrolldown">Back to top</a> 1102 </div> 1103 <script type="text/javascript"> 1104 setTimeout(function () { 1105 loadScript('@System.Web.Optimization.Scripts.Url("~/bundles/requestquote")', function () { initRequestQuoteForm(); }); 1106 1107 }, 2000); 1108 1109 1110 $('#submitQuote').prop('disabled','disabled'); 1111 setTimeout(function() { 1112 window.tswid = turnstile.render("#turnstile-container", { 1113 sitekey: "@(TurnstileService.GetTurnstileSiteKey(System.Web.HttpContext.Current.Request.Url.Host))", 1114 theme: "light", 1115 callback: function(token) { 1116 $('#submitQuote').removeProp('disabled'); 1117 }, 1118 }); 1119 }, 3000); 1120 1121 </script> 1122 </section> 1123 1124 </main> 1125 1126 <footer> 1127 1128 @{ 1129 var hasFeefo = false; 1130 1131 var thisPageId = (int)GetValue("DwPageID"); 1132 var paragraphService = new ParagraphService(); 1133 hasFeefo = paragraphService.GetParagraphsByPageId(thisPageId) 1134 .Any(p => p.ShowParagraph && string.Equals(p.ItemType, "Feefo_Reviews", StringComparison.OrdinalIgnoreCase)); 1135 1136 } 1137 1138 @if (!hasFeefo && feefoInformation != null && feefoInformation.NumberOfReviews > 0) 1139 { 1140 string userReviews = feefoInformation.NumberOfReviews > 1 ? "user reviews" : "user review"; 1141 string userRatings = feefoInformation.NumberOfRatings > 1 ? "ratings" : "rating"; 1142 string image = GetString("Item.Area.FeefoImage"); 1143 <section class="preFooter"> 1144 <div class="row container padding-bottom-0"> 1145 <div class="col col-width-6 feefo-markup"> 1146 <div> 1147 <strong><span>@feefoInformation.CompanyName</span></strong><br> 1148 <span> 1149 <span>@feefoInformation.Score</span> out of <span>5</span> 1150 </span> 1151 based on <span>@feefoInformation.NumberOfRatings</span> @userRatings.<br> 1152 <span>@feefoInformation.NumberOfReviews</span> @userReviews. 1153 </div> 1154 </div> 1155 <div class="col col-width-6 feefo-badge"> 1156 <a href="@feefoInformation.ReviewsUrl" target="_blank" rel="noopener"><img class="lazy" data-original="@image"></a> 1157 </div> 1158 </div> 1159 </section> 1160 } 1161 <div class="upper row padding-bottom-0 container"> 1162 1163 @if (theme != "uk") 1164 { 1165 <div class="col col-width-4 no-mobile"> 1166 <img data-original='@GetString("Item.Area.FooterLogo")' class="footerLogo lazy" alt="@logoAltText"> 1167 </div> 1168 1169 <div class="col col-width-4 margin-bottom-0 certificates"> 1170 <img data-original='@GetString("Item.Area.AccreditationLogos")' alt="Certificates" class="footerCertificates lazy"> 1171 1172 @if (social) 1173 { 1174 <div class="clear margin-20 social-follow"> 1175 @if (!string.IsNullOrWhiteSpace(twitterUN)) 1176 { 1177 <a href="https://www.twitter.com/@twitterUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-twitter.svg" alt="Twitter"></a> 1178 } 1179 @if (!string.IsNullOrWhiteSpace(facebookUN)) 1180 { 1181 <a href="https://www.facebook.com/@facebookUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-facebook.svg" alt="Facebook"></a> 1182 } 1183 @if (!string.IsNullOrWhiteSpace(flickrUN)) 1184 { 1185 <a href="https://www.flickr.com/photos/@flickrUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-flickr.svg" alt="Flickr"></a> 1186 } 1187 @if (!string.IsNullOrWhiteSpace(youtubeUN)) 1188 { 1189 <a href="https://www.youtube.com/channel/@youtubeUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-youtube.svg" alt="Youtube"></a> 1190 } 1191 @if (!string.IsNullOrWhiteSpace(instagramUN)) 1192 { 1193 <a href="https://www.instagram.com/@instagramUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-instagram.svg" alt="Instagram"></a> 1194 } 1195 @if (!string.IsNullOrWhiteSpace(snapchatUN)) 1196 { 1197 <a href="https://www.snapchat.com/add/@snapchatUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-snapchat.svg" alt="Snapchat"></a> 1198 } 1199 @if (!string.IsNullOrWhiteSpace(tumblrUN)) 1200 { 1201 tumblrUN = tumblrUN + ".tumblr.com"; 1202 <a href="https://@tumblrUN" target="_blank" rel="noopener"><img class="footersocial margin-right-5 lazy" data-original="/Files/Templates/Designs/Condition/assets/images/Icons/social-tumblr.svg" alt="Tumblr"></a> 1203 } 1204 </div> 1205 } 1206 </div> 1207 1208 } 1209 1210 1211 1212 @if (theme == "uk") 1213 { 1214 <div class="footer-clip-container d-flex align-bottom no-small-mobile"> 1215 <img src="@brandLogoSmall" class="lazy nst-footer-logo"> 1216 <img src="/Files/Files/Footer-Images/footer-clip-path.png" class="lazy clip-image"> 1217 <div class="col col-width-4 margin-bottom-20 contacts"> 1218 <p class="bold">Tel <span class="regular"><a class="phone" href='tel:@GetString("Item.Area.TelephoneOther")'>@GetString("Item.Area.TelephoneOther")</a></span></p> 1219 <p class="bold"> 1220 Email <span class="regular"> 1221 <a href='mailto:@GetString("Item.Area.Email")'>@GetString("Item.Area.Email")</a> 1222 </span> 1223 </p> 1224 </div> 1225 </div> 1226 1227 1228 <div class="footer-clip-container footer-clip-container-mobile"> 1229 <img src="@brandLogoSmall" class="lazy nst-footer-logo"> 1230 <img src="/Files/Files/Footer-Images/footer-clip-path.png" class="lazy clip-image"> 1231 <div class="col col-width-4 margin-bottom-20 contacts"> 1232 <p class="bold">Tel <span class="regular"><a class="phone" href='tel:@GetString("Item.Area.TelephoneOther")'>@GetString("Item.Area.TelephoneOther")</a></span></p> 1233 <p class="bold"> 1234 Email <span class="regular"> 1235 <a href='mailto:@GetString("Item.Area.Email")'>@GetString("Item.Area.Email")</a> 1236 </span> 1237 </p> 1238 </div> 1239 </div> 1240 } 1241 else 1242 { 1243 <div class="col col-width-4 margin-bottom-20 contacts"> 1244 <p class="bold">Tel <span class="regular"><a class="phone" href='tel:@GetString("Item.Area.TelephoneOther")'>@GetString("Item.Area.TelephoneOther")</a></span></p> 1245 1246 <p class="bold">Fax <span class="regular">@GetString("Item.Area.Fax")</span></p> 1247 <p class="bold"> 1248 Email <span class="regular"> 1249 <a href='mailto:@GetString("Item.Area.Email")'>@GetString("Item.Area.Email")</a> 1250 </span> 1251 </p> 1252 </div> 1253 } 1254 1255 </div> 1256 1257 1258 @if (theme == "uk") 1259 { 1260 <div class="beyond-footer-container"> 1261 <div class="beyond-footer-padding"> 1262 <div class="beyond-footer-image-container "> 1263 <a href="https://pglbeyond.com" target="_blank"><img class="beyond-footer-beyond-image" src="/Files/Files/Footer-Images/PGL-Beyond.png"></a> 1264 </div> 1265 <div class="beyond-footer-image-container "> 1266 <a href="https://pglbeyond.com" target="_blank"><img class="beyond-footer-brand-image" src="/Files/Files/Footer-Images/All-Brands.png"></a> 1267 </div> 1268 </div> 1269 </div> 1270 } 1271 1272 <div class="lower row centralise padding-top-40 container"> 1273 <nav class="footer-nav"> 1274 <ul class="clearfix"> 1275 <li><a href="/about-us">About Us</a></li> 1276 @if (theme == "est") 1277 { 1278 1279 <li><a href="https://www.euro-study-tours.co.uk/work-for-us">Work for Us</a></li> 1280 } 1281 else 1282 { 1283 <li><a href="https://www.nstgroup.co.uk/work-for-us">Work for Us</a></li> 1284 } 1285 1286 <li><a href="/cookie-policy">Cookie Policy</a></li> 1287 <li><a href="/privacy-statement">Privacy Statement</a></li> 1288 <li><a href="/legal-information">Legal Information</a></li> 1289 <li><a href="/modern-slavery">Modern Slavery</a></li> 1290 @if (theme == "uk" || theme == "slk" || theme == "est") 1291 { 1292 <li> 1293 <a href="https://www.gov.uk/foreign-travel-advice" target="_blank" rel="noopener">Foreign Travel Advice</a> 1294 </li> 1295 } 1296 else 1297 { 1298 <li> 1299 <a style="padding:0px 0px 0px 20px;">Foreign Travel Advice</a> <a href="https://www.dfa.ie/travel/travel-advice/" style="padding:0px 0px; text-decoration:underline;" target="_blank">ROI</a> <a style="padding:0px 0px;"> & </a> <a href="https://www.gov.uk/foreign-travel-advice" style="padding:0px 0px; text-decoration:underline;" target="_blank">NI</a> 1300 </li> 1301 } 1302 1303 <li><a href="/sitemap">Sitemap</a></li> 1304 <li><a class="ot-sdk-show-settings" style="cursor:pointer;">Cookies Settings</a></li> 1305 </ul> 1306 </nav> 1307 <p class="company-disclaimer" style="padding-top: 25px;">@GetString("Item.Area.CompanyRegistration")</p> 1308 <!-- <p class="copyright">© 2014 NST Travel Group Ltd</p> --> 1309 <p class="footer-company-address"> 1310 @GetString("Item.Area.CompanyAddress") 1311 </p> 1312 </div> 1313 @{ 1314 PageService affiliatepages = new PageService(); 1315 var allffiliatepages = affiliatepages.GetPagesByTitle("Affiliation Logos"); 1316 1317 if (theme != "uk") 1318 { 1319 1320 foreach (var page in allffiliatepages.Where(x => x.AreaId == Convert.ToInt32(GetGlobalValue("Global:Area.ID")))) 1321 { 1322 <div id="Affiliation-Logos">@RenderPageContent(page.ID)</div> 1323 } 1324 } 1325 } 1326 </footer> 1327 1328 @if (theme != "uk") 1329 { 1330 <div class="beyond-footer-container"> 1331 <div class="beyond-footer-curved-edge"> &nbsp; </div> 1332 <div class="beyond-footer-padding"> 1333 <div class="beyond-footer-image-container "> 1334 <a href="https://pglbeyond.com" target="_blank"><img class="beyond-footer-beyond-image" src="/Files/Files/Footer-Images/PGL-Beyond.png"></a> 1335 </div> 1336 <div class="beyond-footer-image-container "> 1337 <a href="https://pglbeyond.com" target="_blank"><img class="beyond-footer-brand-image" src="/Files/Files/Footer-Images/All-Brands.png"></a> 1338 </div> 1339 </div> 1340 </div> 1341 } 1342 </div> 1343 <div id="loadingOverlay"> 1344 <div style="width: 100%; height: 100%; background-position: center; background-repeat: no-repeat; background-image: url('@loadingImage')"></div> 1345 </div> 1346 <script> 1347 function displayLoadingOverlay() { 1348 //var scrollposition = window.sc 1349 $("#loadingOverlay").css("top", window.scrollY); 1350 $("#loadingOverlay").fadeIn(); 1351 $("body").css("overflow-y", "hidden"); 1352 } 1353 1354 function hideLoadingOverlay() { 1355 $("#loadingOverlay").fadeOut(); 1356 $("body").css("overflow-y", "initial"); 1357 } 1358 1359 //$("img.lazy").each(function () { 1360 // $(this).attr("src", $(this).attr("data-original"); 1361 // //$(this).attr("data-original", $(this).attr("src")); 1362 // // $(this).attr("src", "/Files/Images/Loading/NST_loading.gif"); 1363 // //$(this).removeAttr("src"); 1364 //}); 1365 1366 //$(function() { 1367 // $('.tile-inner-content').hover(function () { 1368 // console.log("oooooh"); 1369 // $(this).fadeOut(); 1370 // }, function () { 1371 // $(this).fadeIn(); 1372 // }); 1373 //}); 1374 1375 </script> 1376 1377 <script src='@Scripts.Url("~/bundles/picker")'></script> 1378 <script src='@Scripts.Url("~/bundles/mainJS")'></script> @* dont put mainJS in async, it breaks FastClick and Slickify *@ 1379 <script type="text/javascript"> 1380 setTimeout(function () { 1381 var nodes = document.querySelectorAll('.mpp-lazy img'); 1382 var arr = Array.prototype.slice.call(nodes); 1383 arr.forEach(function (obj) { obj.classList.add('lazy'); }); 1384 }, 10); 1385 </script> 1386 1387 <!-- begin SnapEngage code --> 1388 @if (enableChat && !String.IsNullOrEmpty(ChatGuid)) 1389 { 1390 <script type="text/plain" class="optanon-category-C0003"> 1391 setTimeout(function () { 1392 loadScript('@Scripts.Url("~/bundles/snapengage")', function () { initSnapEnagage('@ChatGuid'); }); 1393 }, 2000); 1394 </script> 1395 } 1396 <!-- end SnapEngage code --> 1397 1398 1399 @{ 1400 1401 var ctx = HttpContext.Current; 1402 var mergedFaqs = ctx.Items["AllFAQs"] as List<NstWebsite.Model.FAQ_Question_Answer>; 1403 1404 if (mergedFaqs != null && mergedFaqs.Any()) 1405 { 1406 var faqJSON = string.Format("<script type='application/ld+json'>" + 1407 "{0}" + 1408 "{{{0}" + 1409 @"""@context"": ""https://schema.org"",{0}" + 1410 @"""@type"": ""FAQPage"",{0}" + 1411 @"""mainEntity"": [{0}", Environment.NewLine); 1412 1413 var noOfQuestions = mergedFaqs.Count; 1414 var count = 1; 1415 foreach (NstWebsite.Model.FAQ_Question_Answer i in mergedFaqs) 1416 { 1417 var splitterChar = count < noOfQuestions ? "," : ""; 1418 faqJSON += string.Format("{{{0}" + 1419 @"""@type"": ""Question"",{0}" + 1420 @"""name"": ""{1}"",{0}" + 1421 @"""acceptedAnswer"" : {{{0}" + 1422 @"""@type"" : ""Answer"",{0}" + 1423 @"""text"" : ""{2}""{0}" + 1424 "}}{0}" + 1425 "}}{3}{0}", 1426 Environment.NewLine, 1427 i.Question, 1428 i.Answer, 1429 splitterChar); 1430 1431 count++; 1432 } 1433 faqJSON += string.Format("]{0}}}{0}</script>", Environment.NewLine); 1434 @faqJSON 1435 1436 } 1437 1438 1439 } 1440 1441 1442 </body> 1443 </html> 1444