Error compiling template "Designs/TwenteBranding/_parsed/BaseArticle.parsed.cshtml"
Line 1191: No overload for method 'GetSidebarPage' takes 3 arguments
Line 1193: No overload for method 'GetTwenteBrandingItemForPage' takes 5 arguments
Line 1202: 'TwenteBrandingItemModel' does not contain a definition for 'GoalType' and no accessible extension method 'GoalType' accepting a first argument of type 'TwenteBrandingItemModel' could be found (are you missing a using directive or an assembly reference?)
Line 1203: 'TwenteBrandingItemModel' does not contain a definition for 'GoalGradientCss' and no accessible extension method 'GoalGradientCss' accepting a first argument of type 'TwenteBrandingItemModel' could be found (are you missing a using directive or an assembly reference?)

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 15 #line 520 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 16 using System.Linq; 17 18 #line default 19 #line hidden 20 21 #line 519 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 22 using TwenteBranding.Repository.Helpers; 23 24 #line default 25 #line hidden 26 27 #line 298 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 28 using TwenteBranding.Models.Constants; 29 30 #line default 31 #line hidden 32 33 #line 4 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 34 using TwenteBranding.Models.Items.Pages; 35 36 #line default 37 #line hidden 38 39 #line 136 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 40 using Dynamicweb.Frontend; 41 42 #line default 43 #line hidden 44 45 #line 137 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 46 using Dynamicweb.Frontend.Navigation; 47 48 #line default 49 #line hidden 50 51 #line 138 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 52 using Dynamicweb.Security.Permissions; 53 54 #line default 55 #line hidden 56 57 #line 518 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 58 using Dynamicweb.Core; 59 60 #line default 61 #line hidden 62 63 #line 521 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 64 using TwenteBranding.Models.ViewModels; 65 66 #line default 67 #line hidden 68 69 70 public class RazorEngine_b33fac2bd09641c1af95b4223c6d4662 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 71 72 #line hidden 73 74 public RazorEngine_b33fac2bd09641c1af95b4223c6d4662() { 75 } 76 77 public override void Execute() { 78 79 #line 6 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 80 81 Title("Master view model template"); 82 Description("Master view model template"); 83 var currentPageView = Dynamicweb.Frontend.PageView.Current(); 84 var contentLanguage = currentPageView.GlobalTags.GetTagByName("Global:Area.Lang").Value; 85 var scheme = currentPageView.GlobalTags.GetTagByName("Global:Request.Scheme").Value; 86 var host = currentPageView.GlobalTags.GetTagByName("Global:Request.Host").Value; 87 var requestHost = string.Format("{0}://{1}", scheme, host); 88 var metaDescription = Model.Description; 89 var metaKeywords = Model.Keywords; 90 var homepage = Dynamicweb.Services.Pages.GetPageByNavigationTag(Model.Area.ID, StringConstants.NavigationTags.Homepage); 91 var homepageUrl = SearchEngineFriendlyURLs.GetFriendlyUrl(homepage.ID); 92 93 var appJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.js"); 94 var appCss = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.css"); 95 var customJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/custom.js"); 96 97 98 99 #line default 100 #line hidden 101 WriteLiteral(" <html"); 102 103 WriteAttribute("lang", Tuple.Create(" lang=\"", 1324), Tuple.Create("\"", 1347) 104 105 #line 23 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 106 , Tuple.Create(Tuple.Create("", 1331), Tuple.Create<System.Object, System.Int32>(contentLanguage 107 108 #line default 109 #line hidden 110 , 1331), false) 111 ); 112 113 WriteLiteral(">\r\n\r\n <head>\r\n <title>"); 114 115 116 #line 26 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 117 Write(Model.Title); 118 119 120 #line default 121 #line hidden 122 WriteLiteral("</title>\r\n"); 123 124 125 #line 27 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 126 127 128 #line default 129 #line hidden 130 131 #line 27 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 132 if (!string.IsNullOrWhiteSpace(metaDescription)) 133 { 134 135 136 #line default 137 #line hidden 138 WriteLiteral(" <meta"); 139 140 WriteLiteral(" name=\"description\""); 141 142 WriteAttribute("content", Tuple.Create(" content=\"", 1508), Tuple.Create("\"", 1534) 143 144 #line 29 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 145 , Tuple.Create(Tuple.Create("", 1518), Tuple.Create<System.Object, System.Int32>(metaDescription 146 147 #line default 148 #line hidden 149 , 1518), false) 150 ); 151 152 WriteLiteral(" />\r\n"); 153 154 155 #line 30 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 156 } 157 158 159 #line default 160 #line hidden 161 WriteLiteral(" "); 162 163 164 #line 31 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 165 if (!string.IsNullOrWhiteSpace(metaKeywords)) 166 { 167 168 169 #line default 170 #line hidden 171 WriteLiteral(" <meta"); 172 173 WriteLiteral(" name=\"keywords\""); 174 175 WriteAttribute("content", Tuple.Create(" content=\"", 1651), Tuple.Create("\"", 1674) 176 177 #line 33 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 178 , Tuple.Create(Tuple.Create("", 1661), Tuple.Create<System.Object, System.Int32>(metaKeywords 179 180 #line default 181 #line hidden 182 , 1661), false) 183 ); 184 185 WriteLiteral(" />\r\n"); 186 187 188 #line 34 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 WriteLiteral(" <meta"); 195 196 WriteLiteral(" http-equiv=\"content-language\""); 197 198 WriteAttribute("content", Tuple.Create(" content=\'", 1734), Tuple.Create("\'", 1760) 199 200 #line 35 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 201 , Tuple.Create(Tuple.Create("", 1744), Tuple.Create<System.Object, System.Int32>(contentLanguage 202 203 #line default 204 #line hidden 205 , 1744), false) 206 ); 207 208 WriteLiteral(" />\r\n <meta"); 209 210 WriteLiteral(" http-equiv=\"content-type\""); 211 212 WriteLiteral(" content=\"text/html; charset=UTF-8\""); 213 214 WriteLiteral(" />\r\n <meta"); 215 216 WriteLiteral(" http-equiv=\"imagetoolbar\""); 217 218 WriteLiteral(" content=\"no\""); 219 220 WriteLiteral(" />\r\n <meta"); 221 222 WriteLiteral(" http-equiv=\"x-dns-prefetch-control\""); 223 224 WriteLiteral(" content=\"on\""); 225 226 WriteLiteral(" />\r\n <meta"); 227 228 WriteLiteral(" http-equiv=\"x-ua-compatible\""); 229 230 WriteLiteral(" content=\"ie=edge\""); 231 232 WriteLiteral(" />\r\n <meta"); 233 234 WriteLiteral(" name=\"viewport\""); 235 236 WriteLiteral(" content=\"width=device-width,initial-scale=1\""); 237 238 WriteLiteral(">\r\n <meta"); 239 240 WriteLiteral(" name=\"application-name\""); 241 242 WriteLiteral(" content=\"innovadis.com\""); 243 244 WriteLiteral(" />\r\n <meta"); 245 246 WriteLiteral(" name=\"author\""); 247 248 WriteLiteral(" content=\"Innovadis BV, Enschede\""); 249 250 WriteLiteral(" />\r\n <meta"); 251 252 WriteLiteral(" name=\"copyright\""); 253 254 WriteAttribute("content", Tuple.Create(" content=\'", 2272), Tuple.Create("\'", 2324) 255 , Tuple.Create(Tuple.Create("", 2282), Tuple.Create("Innovadis", 2282), true) 256 , Tuple.Create(Tuple.Create(" ", 2291), Tuple.Create("BV,", 2292), true) 257 , Tuple.Create(Tuple.Create(" ", 2295), Tuple.Create("Enschede,", 2296), true) 258 259 #line 43 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 260 , Tuple.Create(Tuple.Create(" ", 2305), Tuple.Create<System.Object, System.Int32>(DateTime.Now.Year 261 262 #line default 263 #line hidden 264 , 2306), false) 265 ); 266 267 WriteLiteral(" />\r\n <meta"); 268 269 WriteLiteral(" name=\"web_author\""); 270 271 WriteLiteral(" content=\"Innovadis BV, Enschede\""); 272 273 WriteLiteral(" />\r\n <link"); 274 275 WriteLiteral(" rel=\"dns-prefetch\""); 276 277 WriteAttribute("href", Tuple.Create(" href=\'", 2431), Tuple.Create("\'", 2450) 278 279 #line 45 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 280 , Tuple.Create(Tuple.Create("", 2438), Tuple.Create<System.Object, System.Int32>(requestHost 281 282 #line default 283 #line hidden 284 , 2438), false) 285 ); 286 287 WriteLiteral(" />\r\n <link"); 288 289 WriteLiteral(" rel=\"icon\""); 290 291 WriteLiteral(" href=\"/favicon.ico\""); 292 293 WriteLiteral(" type=\"image/x-icon\""); 294 295 WriteLiteral(" />\r\n <link"); 296 297 WriteLiteral(" rel=\"shortcut icon\""); 298 299 WriteLiteral(" href=\"/favicon.ico\""); 300 301 WriteLiteral(" type=\"image/x-icon\""); 302 303 WriteLiteral(" />\r\n <link"); 304 305 WriteLiteral(" rel=\"stylesheet\""); 306 307 WriteLiteral(" type=\"text/css\""); 308 309 WriteAttribute("href", Tuple.Create(" href=\"", 2649), Tuple.Create("\"", 2663) 310 311 #line 48 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 312 , Tuple.Create(Tuple.Create("", 2656), Tuple.Create<System.Object, System.Int32>(appCss 313 314 #line default 315 #line hidden 316 , 2656), false) 317 ); 318 319 WriteLiteral(" />\r\n <link"); 320 321 WriteLiteral(" href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Ubuntu:300" + 322 "i,400,500,700&display=swap\""); 323 324 WriteLiteral("\r\n rel=\"stylesheet\""); 325 326 WriteLiteral(">\r\n <script"); 327 328 WriteLiteral(" rel=\"prefetch\""); 329 330 WriteLiteral(" src=\"https://cdn.jsdelivr.net/jquery/2.2.4/jquery.min.js\""); 331 332 WriteLiteral("\r\n integrity=\"sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=\"" + 333 ""); 334 335 WriteLiteral(" crossorigin=\"anonymous\""); 336 337 WriteLiteral("></script>\r\n <script acync"); 338 339 WriteLiteral(" rel=\"prefetch\""); 340 341 WriteLiteral("\r\n src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/boot" + 342 "strap.bundle.min.js\""); 343 344 WriteLiteral("></script>\r\n <script"); 345 346 WriteLiteral(" rel=\"prefetch\""); 347 348 WriteLiteral(" type=\"text/javascript\""); 349 350 WriteLiteral("\r\n src=\"//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery." + 351 "lazy.min.js\""); 352 353 WriteLiteral("></script>\r\n <script"); 354 355 WriteLiteral(" rel=\"prefetch\""); 356 357 WriteLiteral(" type=\"text/javascript\""); 358 359 WriteLiteral("\r\n src=\"//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery." + 360 "lazy.plugins.min.js\""); 361 362 WriteLiteral("></script>\r\n"); 363 364 365 #line 59 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 366 367 368 #line default 369 #line hidden 370 371 #line 59 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 372 var gaHeadCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleAnalyticsTrackingCode); 373 if (!string.IsNullOrWhiteSpace(gaHeadCode)) 374 { 375 376 377 #line default 378 #line hidden 379 WriteLiteral(@" <script> 380 (function (i, s, o, g, r, a, m) { 381 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 382 (i[r].q = i[r].q || []).push(arguments) 383 }, i[r].l = 1 * new Date(); a = s.createElement(o), 384 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 385 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); 386 387 ga('create', '"); 388 389 390 #line 70 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 391 Write(gaHeadCode); 392 393 394 #line default 395 #line hidden 396 WriteLiteral("\', \'auto\');\r\n ga(\'send\', \'pageview\');\r\n </script>\r\n"); 397 398 399 #line 73 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 400 } 401 402 403 #line default 404 #line hidden 405 WriteLiteral("\r\n"); 406 407 408 #line 75 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 409 410 411 #line default 412 #line hidden 413 414 #line 75 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 415 var gtmHeadCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 416 if (!string.IsNullOrWhiteSpace(gtmHeadCode)) 417 { 418 419 420 #line default 421 #line hidden 422 WriteLiteral(@" <script> 423 (function (w, d, s, l, i) { 424 w[l] = w[l] || []; w[l].push({ 425 'gtm.start': 426 new Date().getTime(), event: 'gtm.js' 427 }); var f = d.getElementsByTagName(s)[0], 428 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 429 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 430 })(window, document, 'script', 'dataLayer', '"); 431 432 433 #line 86 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 434 Write(gtmHeadCode); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\');</script>\r\n"); 440 441 442 #line 87 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 443 } 444 445 446 #line default 447 #line hidden 448 WriteLiteral("\r\n"); 449 450 WriteLiteral(" "); 451 452 453 #line 89 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 454 Write(RenderSnippet("HeadSection")); 455 456 457 #line default 458 #line hidden 459 WriteLiteral("\r\n\r\n "); 460 461 WriteLiteral("\r\n"); 462 463 WriteLiteral(" "); 464 465 466 #line 92 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 467 Write(LanguageHelper.GetMasterLanguageTags(Model.ID)); 468 469 470 #line default 471 #line hidden 472 WriteLiteral("\r\n"); 473 474 475 #line 93 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 476 477 478 #line default 479 #line hidden 480 481 #line 93 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 482 var gtmBodyCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 483 if (!string.IsNullOrWhiteSpace(gtmBodyCode)) 484 { 485 var gtmUrl = string.Format("https://www.googletagmanager.com/ns.html?id={0}", gtmBodyCode); 486 487 488 #line default 489 #line hidden 490 WriteLiteral(" <noscript>\r\n <iframe"); 491 492 WriteAttribute("src", Tuple.Create(" src=\"", 5790), Tuple.Create("\"", 5803) 493 494 #line 98 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 495 , Tuple.Create(Tuple.Create("", 5796), Tuple.Create<System.Object, System.Int32>(gtmUrl 496 497 #line default 498 #line hidden 499 , 5796), false) 500 ); 501 502 WriteLiteral(" height=\"0\""); 503 504 WriteLiteral(" width=\"0\""); 505 506 WriteLiteral(" style=\"display:none;visibility:hidden\""); 507 508 WriteLiteral("></iframe>\r\n </noscript>\r\n"); 509 510 511 #line 100 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 512 } 513 514 515 #line default 516 #line hidden 517 WriteLiteral("\r\n \r\n"); 518 519 520 #line 103 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 521 522 523 #line default 524 #line hidden 525 526 #line 103 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 527 528 var hotjarKey = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Hotjar.Key); 529 if (!string.IsNullOrWhiteSpace(hotjarKey)) 530 { 531 532 533 #line default 534 #line hidden 535 WriteLiteral(" <!-- Hotjar Tracking Code for https://twente.com/ -->\r\n"); 536 537 WriteLiteral(@" <script> 538 (function(h,o,t,j,a,r){ 539 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 540 h._hjSettings={hjid:3196747,hjsv:6}; 541 a=o.getElementsByTagName('head')[0]; 542 r=o.createElement('script');r.async=1; 543 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 544 a.appendChild(r); 545 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 546 </script> 547 "); 548 549 550 #line 118 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 551 } 552 553 554 #line default 555 #line hidden 556 WriteLiteral("\r\n\r\n\r\n\r\n <script>\r\n window.STORE_DATA = {\r\n googleMapsApiToken: " + 557 "\""); 558 559 560 #line 125 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 561 Write(AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.GoogleMaps.GoogleMapsApiToken)); 562 563 564 #line default 565 #line hidden 566 WriteLiteral("\"\r\n }\r\n</script>\r\n\r\n </head>\r\n\r\n <body>\r\n <div"); 567 568 WriteLiteral(" id=\'app\'"); 569 570 WriteLiteral(">\r\n"); 571 572 573 #line 133 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 574 575 576 #line default 577 #line hidden 578 579 #line 133 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 580 if ((Model.ItemType != nameof(CampaignPage) && Model.ItemType != nameof(MiniWebsitePage)) || Model.Item.GetBoolean("ShowMainMenu")) 581 { 582 583 584 #line default 585 #line hidden 586 WriteLiteral(" "); 587 588 WriteLiteral("\r\n"); 589 590 591 #line 136 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 592 593 594 #line default 595 #line hidden 596 597 #line 141 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 598 599 List<Dynamicweb.Content.Page> topNavigationPages = null; 600 var topNavigationFolderId = GetPageIdByNavigationTag("TopNavigation"); 601 var searchResultsPageId = AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.PageIds.SearchResults); 602 var searchUrl = $"/Default.aspx?ID={searchResultsPageId}"; 603 var languagePages = Dynamicweb.Services.Pages.GetLanguagePages(Model.ID); 604 var navigationModel = Navigation.GetNavigationViewModel(new NavigationSettings { StartLevel = 1, StopLevel = 1, ExpandMode = ExpandMode.All }); 605 var masterAreaPage = Dynamicweb.Services.Pages.GetPagesByAreaID(1).SingleOrDefault(page => page.GetLanguageVersion(Model.Area.ID) != null && page.GetLanguageVersion(Model.Area.ID).ID.Equals(Model.ID)); 606 607 if (topNavigationFolderId > 0) 608 { 609 var topNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationFolderId); 610 if (topNavigationPageList != null && topNavigationPageList.Any()) 611 { 612 topNavigationPages = topNavigationPageList.Where(p => p.Active).ToList(); 613 } 614 } 615 616 617 618 #line default 619 #line hidden 620 WriteLiteral(" <header"); 621 622 WriteLiteral(" class=\"navigation-header\""); 623 624 WriteLiteral(">\r\n <div"); 625 626 WriteLiteral(" class=\"navigation-header__container container\""); 627 628 WriteLiteral(">\r\n <div"); 629 630 WriteLiteral(" class=\"navigation-header__top-bar\""); 631 632 WriteLiteral(">\r\n"); 633 634 635 #line 162 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 636 637 638 #line default 639 #line hidden 640 641 #line 162 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 642 if (topNavigationPages != null && topNavigationPages.Any()) 643 { 644 foreach (var topNavigationPage in topNavigationPages) 645 { 646 if (topNavigationPage.GetPermission() != PermissionLevel.None) 647 { 648 var topNavigationPageName = topNavigationPage.GetDisplayName(); 649 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 650 651 652 #line default 653 #line hidden 654 WriteLiteral(" <a"); 655 656 WriteLiteral(" class=\"navigation-header__top-bar__item\""); 657 658 WriteAttribute("href", Tuple.Create("\r\n href=\"", 9322), Tuple.Create("\"", 9423) 659 660 #line 171 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 661 , Tuple.Create(Tuple.Create("", 9361), Tuple.Create<System.Object, System.Int32>(SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID) 662 663 #line default 664 #line hidden 665 , 9361), false) 666 ); 667 668 WriteAttribute("title", Tuple.Create("\r\n title=\"", 9424), Tuple.Create("\"", 9487) 669 670 #line 172 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 671 , Tuple.Create(Tuple.Create("", 9464), Tuple.Create<System.Object, System.Int32>(topNavigationPageTitle 672 673 #line default 674 #line hidden 675 , 9464), false) 676 ); 677 678 WriteLiteral(" target=\"_top\""); 679 680 WriteLiteral(">\r\n"); 681 682 WriteLiteral(" "); 683 684 685 #line 173 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 686 Write(topNavigationPageName); 687 688 689 #line default 690 #line hidden 691 WriteLiteral("\r\n </a>\r\n"); 692 693 694 #line 175 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 695 } 696 } 697 } 698 699 700 #line default 701 #line hidden 702 WriteLiteral("\r\n"); 703 704 705 #line 179 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 706 707 708 #line default 709 #line hidden 710 711 #line 179 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 712 foreach (var language in Model.Area.Languages) 713 { 714 var lang = language.Culture.Split('-')[0]; 715 var link = ""; 716 var listClass = language.IsCurrent ? "active" : ""; 717 var langTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name}".JsEncode(); 718 719 if (language.IsMaster && !language.IsCurrent) 720 { 721 if (masterAreaPage != null) 722 { 723 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 724 } 725 } 726 else if (language.IsCurrent) 727 { 728 link = "javascript:void(0);"; 729 } 730 else 731 { 732 foreach (var languagePage in languagePages) 733 { 734 var languageAreaId = language.ID; 735 if (languageAreaId == languagePage.AreaId) 736 { 737 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 738 } 739 } 740 } 741 742 743 #line default 744 #line hidden 745 WriteLiteral(" <a"); 746 747 WriteAttribute("class", Tuple.Create(" class=\"", 11021), Tuple.Create("\"", 11072) 748 , Tuple.Create(Tuple.Create("", 11029), Tuple.Create("navigation-header__top-bar__item", 11029), true) 749 750 #line 208 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 751 , Tuple.Create(Tuple.Create(" ", 11061), Tuple.Create<System.Object, System.Int32>(listClass 752 753 #line default 754 #line hidden 755 , 11062), false) 756 ); 757 758 WriteAttribute("title", Tuple.Create(" title=\"", 11073), Tuple.Create("\"", 11091) 759 760 #line 208 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 761 , Tuple.Create(Tuple.Create("", 11081), Tuple.Create<System.Object, System.Int32>(langTitle 762 763 #line default 764 #line hidden 765 , 11081), false) 766 ); 767 768 WriteAttribute("href", Tuple.Create(" href=\"", 11092), Tuple.Create("\"", 11104) 769 770 #line 208 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 771 , Tuple.Create(Tuple.Create("", 11099), Tuple.Create<System.Object, System.Int32>(link 772 773 #line default 774 #line hidden 775 , 11099), false) 776 ); 777 778 WriteLiteral(" target=\"_top\""); 779 780 WriteLiteral(">"); 781 782 783 #line 208 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 784 Write(lang); 785 786 787 #line default 788 #line hidden 789 WriteLiteral("</a>\r\n"); 790 791 792 #line 209 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 793 } 794 795 796 #line default 797 #line hidden 798 WriteLiteral(" </div>\r\n\r\n <div"); 799 800 WriteLiteral(" class=\"navigation-header__menu\""); 801 802 WriteLiteral(">\r\n <a"); 803 804 WriteLiteral(" class=\"navigation-header__logo\""); 805 806 WriteAttribute("href", Tuple.Create(" href=\"", 11273), Tuple.Create("\"", 11292) 807 808 #line 213 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 809 , Tuple.Create(Tuple.Create("", 11280), Tuple.Create<System.Object, System.Int32>(homepageUrl 810 811 #line default 812 #line hidden 813 , 11280), false) 814 ); 815 816 WriteLiteral(">\r\n <img"); 817 818 WriteLiteral(" src=\"/Files/Templates/Designs/TwenteBranding/Images/logo/LogoTwenteRGB.svg\""); 819 820 WriteLiteral(" alt=\"Twente Logo\""); 821 822 WriteLiteral(">\r\n </a>\r\n <div"); 823 824 WriteLiteral(" class=\"navigation-header__menu__items\""); 825 826 WriteLiteral(">\r\n"); 827 828 829 #line 217 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 830 831 832 #line default 833 #line hidden 834 835 #line 217 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 836 foreach (var node in navigationModel.Nodes) 837 { 838 839 840 #line default 841 #line hidden 842 WriteLiteral(" <a"); 843 844 WriteAttribute("href", Tuple.Create(" href=\"", 11616), Tuple.Create("\"", 11633) 845 846 #line 219 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 847 , Tuple.Create(Tuple.Create("", 11623), Tuple.Create<System.Object, System.Int32>(node.Link 848 849 #line default 850 #line hidden 851 , 11623), false) 852 ); 853 854 WriteLiteral(" class=\"navigation-header__menu__items__item button button--white-border\""); 855 856 WriteLiteral(">"); 857 858 859 #line 219 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 860 Write(node.Name); 861 862 863 #line default 864 #line hidden 865 WriteLiteral("</a>\r\n"); 866 867 868 #line 220 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 869 } 870 871 872 #line default 873 #line hidden 874 WriteLiteral(" </div>\r\n <div"); 875 876 WriteLiteral(" class=\"navigation-header__menu__langselector hidden\""); 877 878 WriteLiteral(">\r\n"); 879 880 881 #line 223 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 882 883 884 #line default 885 #line hidden 886 887 #line 223 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 888 foreach (var language in Model.Area.Languages) 889 { 890 var lang = language.Culture.Split('-')[0]; 891 var link = ""; 892 var listClass = language.IsCurrent ? "active" : ""; 893 var langTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name}".JsEncode(); 894 895 if (language.IsMaster && !language.IsCurrent) 896 { 897 if (masterAreaPage != null) 898 { 899 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 900 } 901 } 902 else if (language.IsCurrent) 903 { 904 link = "javascript:void(0);"; 905 } 906 else 907 { 908 foreach (var languagePage in languagePages) 909 { 910 var languageAreaId = language.ID; 911 if (languageAreaId == languagePage.AreaId) 912 { 913 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 914 } 915 } 916 } 917 918 919 #line default 920 #line hidden 921 WriteLiteral(" <a"); 922 923 WriteAttribute("class", Tuple.Create(" class=\"", 13318), Tuple.Create("\"", 13415) 924 , Tuple.Create(Tuple.Create("", 13326), Tuple.Create("mobile-menu__items__footer__item", 13326), true) 925 , Tuple.Create(Tuple.Create(" ", 13358), Tuple.Create("mobile-menu__items__footer__item--lang", 13359), true) 926 , Tuple.Create(Tuple.Create(" ", 13397), Tuple.Create("button", 13398), true) 927 928 #line 252 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 929 , Tuple.Create(Tuple.Create(" ", 13404), Tuple.Create<System.Object, System.Int32>(listClass 930 931 #line default 932 #line hidden 933 , 13405), false) 934 ); 935 936 WriteAttribute("title", Tuple.Create(" title=\"", 13416), Tuple.Create("\"", 13434) 937 938 #line 252 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 939 , Tuple.Create(Tuple.Create("", 13424), Tuple.Create<System.Object, System.Int32>(langTitle 940 941 #line default 942 #line hidden 943 , 13424), false) 944 ); 945 946 WriteAttribute("href", Tuple.Create(" href=\"", 13435), Tuple.Create("\"", 13447) 947 948 #line 252 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 949 , Tuple.Create(Tuple.Create("", 13442), Tuple.Create<System.Object, System.Int32>(link 950 951 #line default 952 #line hidden 953 , 13442), false) 954 ); 955 956 WriteLiteral(" target=\"_top\""); 957 958 WriteLiteral(">"); 959 960 961 #line 252 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 962 Write(lang.ToUpper()); 963 964 965 #line default 966 #line hidden 967 WriteLiteral("</a>\r\n"); 968 969 970 #line 253 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 971 } 972 973 974 #line default 975 #line hidden 976 WriteLiteral(" </div>\r\n <div"); 977 978 WriteLiteral(" class=\"navigation-header__menu__search\""); 979 980 WriteLiteral(">\r\n <search-form"); 981 982 WriteAttribute("search-url", Tuple.Create(" search-url=\"", 13626), Tuple.Create("\"", 13649) 983 984 #line 256 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 985 , Tuple.Create(Tuple.Create("", 13639), Tuple.Create<System.Object, System.Int32>(searchUrl 986 987 #line default 988 #line hidden 989 , 13639), false) 990 ); 991 992 WriteAttribute("placeholder-text", Tuple.Create(" placeholder-text=\"", 13650), Tuple.Create("\"", 13718) 993 994 #line 256 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 995 , Tuple.Create(Tuple.Create("", 13669), Tuple.Create<System.Object, System.Int32>(Translate("searchTwente", "Doorzoek Twente.com") 996 997 #line default 998 #line hidden 999 , 13669), false) 1000 ); 1001 1002 WriteLiteral("></search-form>\r\n </div>\r\n <mobile-menu"); 1003 1004 WriteAttribute("close-button-text", Tuple.Create(" close-button-text=\"", 13788), Tuple.Create("\"", 13836) 1005 1006 #line 258 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1007 , Tuple.Create(Tuple.Create("", 13808), Tuple.Create<System.Object, System.Int32>(Translate("Close", "Sluit") 1008 1009 #line default 1010 #line hidden 1011 , 13808), false) 1012 ); 1013 1014 WriteLiteral(">\r\n <template v-slot:default>\r\n"); 1015 1016 1017 #line 260 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1018 1019 1020 #line default 1021 #line hidden 1022 1023 #line 260 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1024 foreach (var node in navigationModel.Nodes) 1025 { 1026 1027 1028 #line default 1029 #line hidden 1030 WriteLiteral(" <a"); 1031 1032 WriteAttribute("href", Tuple.Create(" href=\"", 14014), Tuple.Create("\"", 14031) 1033 1034 #line 262 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1035 , Tuple.Create(Tuple.Create("", 14021), Tuple.Create<System.Object, System.Int32>(node.Link 1036 1037 #line default 1038 #line hidden 1039 , 14021), false) 1040 ); 1041 1042 WriteLiteral(" class=\"mobile-menu__items__button button button--white-border\""); 1043 1044 WriteLiteral(">"); 1045 1046 1047 #line 262 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1048 Write(node.Name); 1049 1050 1051 #line default 1052 #line hidden 1053 WriteLiteral("</a>\r\n"); 1054 1055 1056 #line 263 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1057 } 1058 1059 1060 #line default 1061 #line hidden 1062 WriteLiteral(" <search-form"); 1063 1064 WriteAttribute("search-url", Tuple.Create(" search-url=\"", 14175), Tuple.Create("\"", 14198) 1065 1066 #line 264 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1067 , Tuple.Create(Tuple.Create("", 14188), Tuple.Create<System.Object, System.Int32>(searchUrl 1068 1069 #line default 1070 #line hidden 1071 , 14188), false) 1072 ); 1073 1074 WriteAttribute("placeholder-text", Tuple.Create(" placeholder-text=\"", 14199), Tuple.Create("\"", 14267) 1075 1076 #line 264 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1077 , Tuple.Create(Tuple.Create("", 14218), Tuple.Create<System.Object, System.Int32>(Translate("searchTwente", "Doorzoek Twente.com") 1078 1079 #line default 1080 #line hidden 1081 , 14218), false) 1082 ); 1083 1084 WriteLiteral("></search-form>\r\n </template>\r\n <template v" + 1085 "-slot:footer>\r\n"); 1086 1087 1088 #line 267 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1089 1090 1091 #line default 1092 #line hidden 1093 1094 #line 267 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1095 if (topNavigationPages != null && topNavigationPages.Any()) 1096 { 1097 foreach (var topNavigationPage in topNavigationPages) 1098 { 1099 if (topNavigationPage.GetPermission() != PermissionLevel.None) 1100 { 1101 var topNavigationPageName = topNavigationPage.GetDisplayName(); 1102 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 1103 1104 1105 #line default 1106 #line hidden 1107 WriteLiteral(" <a"); 1108 1109 WriteLiteral(" class=\"mobile-menu__items__footer__item\""); 1110 1111 WriteAttribute("href", Tuple.Create("\r\n href=\"", 15056), Tuple.Create("\"", 15165) 1112 1113 #line 276 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1114 , Tuple.Create(Tuple.Create("", 15103), Tuple.Create<System.Object, System.Int32>(SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID) 1115 1116 #line default 1117 #line hidden 1118 , 15103), false) 1119 ); 1120 1121 WriteAttribute("title", Tuple.Create("\r\n title=\"", 15166), Tuple.Create("\"", 15237) 1122 1123 #line 277 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1124 , Tuple.Create(Tuple.Create("", 15214), Tuple.Create<System.Object, System.Int32>(topNavigationPageTitle 1125 1126 #line default 1127 #line hidden 1128 , 15214), false) 1129 ); 1130 1131 WriteLiteral(" target=\"_top\""); 1132 1133 WriteLiteral(">\r\n"); 1134 1135 WriteLiteral(" "); 1136 1137 1138 #line 278 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1139 Write(topNavigationPageName); 1140 1141 1142 #line default 1143 #line hidden 1144 WriteLiteral("\r\n </a>\r\n"); 1145 1146 1147 #line 280 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1148 } 1149 } 1150 } 1151 1152 1153 #line default 1154 #line hidden 1155 WriteLiteral("\r\n </template>\r\n </mobile-menu>\r\n </" + 1156 "div>\r\n </div>\r\n <hr />\r\n </header>\r\n"); 1157 1158 1159 #line 290 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1160 1161 1162 #line default 1163 #line hidden 1164 WriteLiteral("\r\n\r\n "); 1165 1166 WriteLiteral("\r\n"); 1167 1168 1169 #line 293 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1170 } 1171 1172 1173 #line default 1174 #line hidden 1175 WriteLiteral("\r\n <main>\r\n"); 1176 1177 1178 #line 296 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1179 1180 1181 #line default 1182 #line hidden 1183 1184 #line 301 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1185 1186 var pService = new Dynamicweb.Content.PageService(); 1187 var iService = new Dynamicweb.Content.ItemService(); 1188 var pageView = Dynamicweb.Frontend.PageView.Current(); 1189 var culture = pageView.GlobalTags.GetTagByName("Global:Area.LongLang").Value; 1190 var itemPageId = pageView.ID; 1191 var sidebar = SidebarHelper.GetSidebarPage(pageView, StringConstants.NavigationTags.BaseArticleSidebar, pService); 1192 1193 var item = ItemHelper.GetTwenteBrandingItemForPage(Model.ItemId, itemPageId.ToString(), culture, pService, iService); 1194 if (item != null) 1195 { 1196 var hashtag = item.MainHashtag.IsNotNullOrEmpty() ? string.Format("{0}", item.MainHashtag) : string.Format("{0}", item.MainHashtagEnglish); 1197 var goalName = item.GoalName; 1198 var background = goalName.FixNameForClass(); 1199 var goalIcon = item.GoalIcon; 1200 var goalUrl = item.GoalUrl; 1201 var goalIconHeader = item.GoalIconHeader; 1202 var goalType = item.GoalType; 1203 var gradientCss = item.GoalGradientCss; 1204 var video = item.Video; 1205 var title = item.Title; 1206 var introduction = Model.Item.GetString("Text"); 1207 var headerImage = ""; 1208 var headerImageMobile = ""; 1209 var headerImagePath = ""; 1210 var headerImageMobilePath = ""; 1211 1212 if (Model.Item.Fields.Where(x => x.SystemName.Contains("Image")).Count() > 0) 1213 { 1214 headerImagePath = Model.Item.GetFile("ImageLarge")?.Path; 1215 headerImageMobilePath = Model.Item.GetFile("Image")?.Path; 1216 1217 if (string.IsNullOrWhiteSpace(headerImagePath)) 1218 { 1219 headerImagePath = Model.Item.GetFile("ImageWide")?.Path; 1220 if (string.IsNullOrWhiteSpace(headerImagePath)) 1221 { 1222 headerImagePath = Model.Item.GetFile("Image")?.Path; 1223 } 1224 } 1225 1226 headerImage = $"/Admin/Public/GetImage.ashx?Image={headerImagePath}&Format=webp&Width=700&Height=-1&Quality=100&Crop=0&t=2"; 1227 headerImageMobile = $"/Admin/Public/GetImage.ashx?Image={headerImageMobilePath}&Format=webp&Width=300&Height=-1&Quality=100&Crop=0&t=2"; 1228 } 1229 1230 1231 1232 #line default 1233 #line hidden 1234 1235 #line 346 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1236 Write(SnippetStart("ImageOrVideo")); 1237 1238 1239 #line default 1240 #line hidden 1241 1242 #line 346 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1243 1244 if (string.IsNullOrWhiteSpace(video)) 1245 { 1246 if (!string.IsNullOrWhiteSpace(headerImageMobilePath)) 1247 { 1248 // navigation SM 1249 1250 1251 #line default 1252 #line hidden 1253 WriteLiteral(" <div"); 1254 1255 WriteLiteral(" class=\"header-image lazy d-block d-md-none\""); 1256 1257 WriteLiteral(" data-src=\""); 1258 1259 1260 #line 352 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1261 Write(headerImageMobile); 1262 1263 1264 #line default 1265 #line hidden 1266 WriteLiteral("\""); 1267 1268 WriteLiteral(">\r\n <h4"); 1269 1270 WriteLiteral(" class=\"item-hashtag\""); 1271 1272 WriteLiteral(">"); 1273 1274 1275 #line 353 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1276 Write(hashtag); 1277 1278 1279 #line default 1280 #line hidden 1281 WriteLiteral("</h4>\r\n"); 1282 1283 WriteLiteral(" "); 1284 1285 1286 #line 354 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1287 Write(TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl)); 1288 1289 1290 #line default 1291 #line hidden 1292 WriteLiteral("\r\n <div"); 1293 1294 WriteAttribute("class", Tuple.Create(" class=\"", 18561), Tuple.Create("\"", 18581) 1295 1296 #line 355 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1297 , Tuple.Create(Tuple.Create("", 18569), Tuple.Create<System.Object, System.Int32>(gradientCss 1298 1299 #line default 1300 #line hidden 1301 , 18569), false) 1302 ); 1303 1304 WriteLiteral("></div>\r\n </div>\r\n"); 1305 1306 1307 #line 357 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1308 } 1309 if (!string.IsNullOrWhiteSpace(headerImagePath)) 1310 { 1311 // navigation MD+ 1312 1313 1314 #line default 1315 #line hidden 1316 WriteLiteral(" <div"); 1317 1318 WriteLiteral(" class=\"header-image lazy d-none d-md-block\""); 1319 1320 WriteLiteral(" data-src=\""); 1321 1322 1323 #line 361 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1324 Write(headerImage); 1325 1326 1327 #line default 1328 #line hidden 1329 WriteLiteral("\""); 1330 1331 WriteLiteral(">\r\n <h4"); 1332 1333 WriteLiteral(" class=\"item-hashtag\""); 1334 1335 WriteLiteral(">"); 1336 1337 1338 #line 362 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1339 Write(hashtag); 1340 1341 1342 #line default 1343 #line hidden 1344 WriteLiteral("</h4>\r\n"); 1345 1346 WriteLiteral(" "); 1347 1348 1349 #line 363 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1350 Write(TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl)); 1351 1352 1353 #line default 1354 #line hidden 1355 WriteLiteral("\r\n <div"); 1356 1357 WriteAttribute("class", Tuple.Create(" class=\"", 19039), Tuple.Create("\"", 19059) 1358 1359 #line 364 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1360 , Tuple.Create(Tuple.Create("", 19047), Tuple.Create<System.Object, System.Int32>(gradientCss 1361 1362 #line default 1363 #line hidden 1364 , 19047), false) 1365 ); 1366 1367 WriteLiteral("></div>\r\n </div>\r\n"); 1368 1369 1370 #line 366 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1371 } 1372 } 1373 else 1374 { 1375 1376 1377 #line default 1378 #line hidden 1379 WriteLiteral(" <div"); 1380 1381 WriteLiteral(" class=\"header-video\""); 1382 1383 WriteLiteral(">\r\n <iframe"); 1384 1385 WriteAttribute("src", Tuple.Create(" src=\"", 19211), Tuple.Create("\"", 19223) 1386 1387 #line 371 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1388 , Tuple.Create(Tuple.Create("", 19217), Tuple.Create<System.Object, System.Int32>(video 1389 1390 #line default 1391 #line hidden 1392 , 19217), false) 1393 ); 1394 1395 WriteLiteral("></iframe>\r\n </div>\r\n"); 1396 1397 1398 #line 373 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1399 } 1400 1401 1402 #line default 1403 #line hidden 1404 1405 #line 374 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1406 Write(SnippetEnd("ImageOrVideo")); 1407 1408 1409 #line default 1410 #line hidden 1411 1412 #line 374 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1413 1414 1415 1416 1417 #line default 1418 #line hidden 1419 WriteLiteral(" <div"); 1420 1421 WriteLiteral(" class=\"main-container\""); 1422 1423 WriteLiteral(">\r\n\r\n <div"); 1424 1425 WriteLiteral(" class=\"top d-block d-md-none\""); 1426 1427 WriteLiteral(">\r\n"); 1428 1429 WriteLiteral(" "); 1430 1431 1432 #line 379 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1433 Write(RenderSnippet("ImageOrVideo")); 1434 1435 1436 #line default 1437 #line hidden 1438 WriteLiteral("\r\n </div>\r\n\r\n <div"); 1439 1440 WriteAttribute("class", Tuple.Create(" class=\"", 19481), Tuple.Create("\"", 19537) 1441 , Tuple.Create(Tuple.Create("", 19489), Tuple.Create("page-title", 19489), true) 1442 , Tuple.Create(Tuple.Create(" ", 19499), Tuple.Create("article-title", 19500), true) 1443 , Tuple.Create(Tuple.Create(" ", 19513), Tuple.Create("background--", 19514), true) 1444 1445 #line 382 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1446 , Tuple.Create(Tuple.Create("", 19526), Tuple.Create<System.Object, System.Int32>(background 1447 1448 #line default 1449 #line hidden 1450 , 19526), false) 1451 ); 1452 1453 WriteLiteral(">\r\n <div"); 1454 1455 WriteLiteral(" class=\"container\""); 1456 1457 WriteLiteral(">\r\n <div"); 1458 1459 WriteLiteral(" class=\"grid header-grid \""); 1460 1461 WriteLiteral(">\r\n <div"); 1462 1463 WriteLiteral(" class=\"title\""); 1464 1465 WriteLiteral(">\r\n <h1"); 1466 1467 WriteLiteral(" class=\"font-color--white\""); 1468 1469 WriteLiteral(">"); 1470 1471 1472 #line 386 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1473 Write(title); 1474 1475 1476 #line default 1477 #line hidden 1478 WriteLiteral("</h1>\r\n"); 1479 1480 1481 #line 387 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1482 1483 1484 #line default 1485 #line hidden 1486 1487 #line 387 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1488 if (!string.IsNullOrWhiteSpace(introduction)) 1489 { 1490 1491 1492 #line default 1493 #line hidden 1494 WriteLiteral(" <div"); 1495 1496 WriteLiteral(" class=\"sub-header font-color--white\""); 1497 1498 WriteLiteral(">"); 1499 1500 1501 #line 389 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1502 Write(introduction); 1503 1504 1505 #line default 1506 #line hidden 1507 WriteLiteral("</div>\r\n"); 1508 1509 1510 #line 390 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1511 } 1512 1513 1514 #line default 1515 #line hidden 1516 WriteLiteral(" <div"); 1517 1518 WriteLiteral(" class=\"read-full-article font-color--white\""); 1519 1520 WriteLiteral(">"); 1521 1522 1523 #line 391 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1524 Write(Translate("BaseArticle_Read_Entire_Article", "Lees hieronder het hele artikel")); 1525 1526 1527 #line default 1528 #line hidden 1529 WriteLiteral("<div"); 1530 1531 WriteLiteral(" class=\"icon--arrow-down\""); 1532 1533 WriteLiteral(">&nbsp;</div></div>\r\n\r\n </div>\r\n <d" + 1534 "iv"); 1535 1536 WriteLiteral(" class=\"image\""); 1537 1538 WriteLiteral("><img"); 1539 1540 WriteLiteral(" alt=\"global goal icon\""); 1541 1542 WriteLiteral(" class=\"lazy\""); 1543 1544 WriteLiteral(" data-src=\""); 1545 1546 1547 #line 394 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1548 Write(goalIconHeader); 1549 1550 1551 #line default 1552 #line hidden 1553 WriteLiteral("\""); 1554 1555 WriteLiteral(" /></div>\r\n </div>\r\n\r\n </div>\r\n </di" + 1556 "v>\r\n <div"); 1557 1558 WriteLiteral(" class=\"page-content container\""); 1559 1560 WriteLiteral(">\r\n <div"); 1561 1562 WriteLiteral(" class=\"grid detail-grid-container\""); 1563 1564 WriteLiteral(">\r\n\r\n"); 1565 1566 1567 #line 402 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1568 1569 1570 #line default 1571 #line hidden 1572 1573 #line 402 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1574 if (Model.Placeholder("Content").Any()) 1575 { 1576 1577 1578 #line default 1579 #line hidden 1580 WriteLiteral(" <div"); 1581 1582 WriteLiteral(" class=\"content\""); 1583 1584 WriteLiteral(">\r\n <div"); 1585 1586 WriteLiteral(" class=\"top d-none d-md-block\""); 1587 1588 WriteLiteral(">\r\n"); 1589 1590 WriteLiteral(" "); 1591 1592 1593 #line 406 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1594 Write(RenderSnippet("ImageOrVideo")); 1595 1596 1597 #line default 1598 #line hidden 1599 WriteLiteral("\r\n </div>\r\n"); 1600 1601 WriteLiteral(" "); 1602 1603 1604 #line 408 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1605 Write(Model.Placeholder("Content")); 1606 1607 1608 #line default 1609 #line hidden 1610 WriteLiteral("\r\n </div>\r\n"); 1611 1612 1613 #line 410 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1614 } 1615 else 1616 { 1617 1618 1619 #line default 1620 #line hidden 1621 WriteLiteral(" <!-- PL: Wouter, een video wordt dus niet getoond als er " + 1622 "geen paragrafen zijn gekoppeld? -->\r\n"); 1623 1624 WriteLiteral(" <div"); 1625 1626 WriteLiteral(" class=\"content\""); 1627 1628 WriteLiteral("></div>\r\n"); 1629 1630 1631 #line 415 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1632 } 1633 1634 1635 #line default 1636 #line hidden 1637 WriteLiteral("\r\n"); 1638 1639 1640 #line 417 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1641 1642 1643 #line default 1644 #line hidden 1645 1646 #line 417 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1647 1648 if (sidebar != null) 1649 { 1650 1651 1652 #line default 1653 #line hidden 1654 WriteLiteral(" <div"); 1655 1656 WriteLiteral(" class=\"sidebar\""); 1657 1658 WriteLiteral(">\r\n"); 1659 1660 WriteLiteral(" "); 1661 1662 1663 #line 421 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1664 Write(RenderPageContent(sidebar.ID)); 1665 1666 1667 #line default 1668 #line hidden 1669 WriteLiteral("\r\n </div>\r\n"); 1670 1671 1672 #line 423 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1673 } 1674 1675 1676 #line default 1677 #line hidden 1678 WriteLiteral("\r\n\r\n"); 1679 1680 1681 #line 426 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1682 1683 1684 #line default 1685 #line hidden 1686 1687 #line 426 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1688 if (Model.Placeholder("Bottom").Any()) 1689 { 1690 1691 1692 #line default 1693 #line hidden 1694 WriteLiteral(" <div"); 1695 1696 WriteLiteral(" class=\"bottom\""); 1697 1698 WriteLiteral(">\r\n"); 1699 1700 WriteLiteral(" "); 1701 1702 1703 #line 429 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1704 Write(Model.Placeholder("Bottom")); 1705 1706 1707 #line default 1708 #line hidden 1709 WriteLiteral("\r\n </div>\r\n"); 1710 1711 1712 #line 431 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1713 } 1714 1715 1716 #line default 1717 #line hidden 1718 WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n"); 1719 1720 1721 #line 436 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1722 } 1723 else 1724 { 1725 1726 1727 #line default 1728 #line hidden 1729 WriteLiteral(" <div>No-Item</div>\r\n"); 1730 1731 1732 #line 440 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1733 } 1734 1735 1736 #line default 1737 #line hidden 1738 WriteLiteral("\r\n </main>\r\n\r\n"); 1739 1740 1741 #line 444 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1742 1743 1744 #line default 1745 #line hidden 1746 1747 #line 446 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1748 1749 var homepageLinkTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {Translate("Homelink_Title", "De homepage")}"; 1750 1751 1752 #line default 1753 #line hidden 1754 WriteLiteral("\r\n<footer"); 1755 1756 WriteLiteral(" class=\"background--black flex flex-align-center\""); 1757 1758 WriteLiteral(">\r\n <div"); 1759 1760 WriteLiteral(" class=\"container\""); 1761 1762 WriteLiteral(">\r\n"); 1763 1764 1765 #line 451 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1766 1767 1768 #line default 1769 #line hidden 1770 1771 #line 454 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1772 if (Model.Area.Item != null) 1773 { 1774 1775 1776 #line default 1777 #line hidden 1778 WriteLiteral(" <div"); 1779 1780 WriteLiteral(" class=\'social-media-icons flex\'"); 1781 1782 WriteLiteral(">\r\n"); 1783 1784 1785 #line 457 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1786 1787 1788 #line default 1789 #line hidden 1790 1791 #line 457 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1792 foreach (var field in Model.Area.Item.Fields.Where(f => f.SystemName.StartsWith("Sm_"))) 1793 { 1794 if (!string.IsNullOrEmpty(field.GetString())) 1795 { 1796 1797 1798 #line default 1799 #line hidden 1800 WriteLiteral(" <a"); 1801 1802 WriteLiteral(" class=\'mr-05\'"); 1803 1804 WriteLiteral(" rel=\"noopener\""); 1805 1806 WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 22680), Tuple.Create("\"", 22715) 1807 1808 #line 461 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1809 , Tuple.Create(Tuple.Create("", 22693), Tuple.Create<System.Object, System.Int32>(field.Name.JsEncode() 1810 1811 #line default 1812 #line hidden 1813 , 22693), false) 1814 ); 1815 1816 WriteAttribute("href", Tuple.Create(" href=\"", 22716), Tuple.Create("\"", 22741) 1817 1818 #line 461 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1819 , Tuple.Create(Tuple.Create("", 22723), Tuple.Create<System.Object, System.Int32>(field.GetString() 1820 1821 #line default 1822 #line hidden 1823 , 22723), false) 1824 ); 1825 1826 WriteAttribute("title", Tuple.Create(" title=\"", 22742), Tuple.Create("\"", 22772) 1827 1828 #line 461 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1829 , Tuple.Create(Tuple.Create("", 22750), Tuple.Create<System.Object, System.Int32>(field.Name.JsEncode() 1830 1831 #line default 1832 #line hidden 1833 , 22750), false) 1834 ); 1835 1836 WriteLiteral(" target=\"_blank\""); 1837 1838 WriteLiteral(">\r\n <div"); 1839 1840 WriteAttribute("class", Tuple.Create(" class=\"", 22814), Tuple.Create("\"", 22869) 1841 , Tuple.Create(Tuple.Create("", 22822), Tuple.Create("icon--", 22822), true) 1842 1843 #line 462 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1844 , Tuple.Create(Tuple.Create("", 22828), Tuple.Create<System.Object, System.Int32>(field.SystemName.ToLower() 1845 1846 #line default 1847 #line hidden 1848 , 22828), false) 1849 , Tuple.Create(Tuple.Create(" ", 22855), Tuple.Create("icon-size--x2", 22856), true) 1850 ); 1851 1852 WriteLiteral("></div>\r\n </a>\r\n"); 1853 1854 1855 #line 464 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1856 } 1857 } 1858 1859 1860 #line default 1861 #line hidden 1862 WriteLiteral(" </div>\r\n"); 1863 1864 1865 #line 467 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1866 } 1867 1868 1869 #line default 1870 #line hidden 1871 WriteLiteral("\r\n <div"); 1872 1873 WriteLiteral(" class=\"footer-link-container\""); 1874 1875 WriteLiteral(">\r\n"); 1876 1877 1878 #line 470 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1879 1880 1881 #line default 1882 #line hidden 1883 1884 #line 470 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1885 1886 var footerNavigationFolderId = GetPageIdByNavigationTag(TwenteBranding.Models.Constants.StringConstants.NavigationTags.FooterNavigation); 1887 if (footerNavigationFolderId > 0) 1888 { 1889 var footerNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(footerNavigationFolderId); 1890 if (footerNavigationPageList != null && footerNavigationPageList.Any()) 1891 { 1892 var footerNavigationPages = footerNavigationPageList.Where(page => page.Active).ToList(); 1893 if (footerNavigationPages.Any()) 1894 { 1895 var footerLinkCounter = 1; 1896 foreach (var footerNavigationPage in footerNavigationPages) 1897 { 1898 var footerNavigationPageName = footerNavigationPage.GetDisplayName(); 1899 var footerNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {footerNavigationPageName}".JsEncode(); 1900 var footerNavigationPageLink = $"/Default.aspx?ID={footerNavigationPage.ID}"; 1901 1902 // place last link and copyright together to prevent wrapping on phone 1903 if (footerNavigationPages.Count() == footerLinkCounter) 1904 { 1905 var copyRight = string.Format(Translate("Footer_CopyRight", "&copy; {0} Twente Branding"), DateTime.Now.Year); 1906 1907 1908 1909 #line default 1910 #line hidden 1911 WriteLiteral(" <div"); 1912 1913 WriteLiteral(" class=\'wrapper\'"); 1914 1915 WriteLiteral(">\r\n <a"); 1916 1917 WriteAttribute("href", Tuple.Create(" href=\"", 24695), Tuple.Create("\"", 24727) 1918 1919 #line 493 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1920 , Tuple.Create(Tuple.Create("", 24702), Tuple.Create<System.Object, System.Int32>(footerNavigationPageLink 1921 1922 #line default 1923 #line hidden 1924 , 24702), false) 1925 ); 1926 1927 WriteAttribute("title", Tuple.Create(" title=\"", 24728), Tuple.Create("\"", 24762) 1928 1929 #line 493 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1930 , Tuple.Create(Tuple.Create("", 24736), Tuple.Create<System.Object, System.Int32>(footerNavigationPageTitle 1931 1932 #line default 1933 #line hidden 1934 , 24736), false) 1935 ); 1936 1937 WriteLiteral(">"); 1938 1939 1940 #line 493 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1941 Write(footerNavigationPageName); 1942 1943 1944 #line default 1945 #line hidden 1946 WriteLiteral("</a>\r\n <span>"); 1947 1948 1949 #line 494 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1950 Write(copyRight); 1951 1952 1953 #line default 1954 #line hidden 1955 WriteLiteral("</span>\r\n </div>\r\n"); 1956 1957 1958 #line 496 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1959 } 1960 else 1961 { 1962 1963 1964 #line default 1965 #line hidden 1966 WriteLiteral(" <a"); 1967 1968 WriteAttribute("href", Tuple.Create(" href=\"", 25050), Tuple.Create("\"", 25082) 1969 1970 #line 499 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1971 , Tuple.Create(Tuple.Create("", 25057), Tuple.Create<System.Object, System.Int32>(footerNavigationPageLink 1972 1973 #line default 1974 #line hidden 1975 , 25057), false) 1976 ); 1977 1978 WriteAttribute("title", Tuple.Create(" title=\"", 25083), Tuple.Create("\"", 25117) 1979 1980 #line 499 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1981 , Tuple.Create(Tuple.Create("", 25091), Tuple.Create<System.Object, System.Int32>(footerNavigationPageTitle 1982 1983 #line default 1984 #line hidden 1985 , 25091), false) 1986 ); 1987 1988 WriteLiteral(">"); 1989 1990 1991 #line 499 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1992 Write(footerNavigationPageName); 1993 1994 1995 #line default 1996 #line hidden 1997 WriteLiteral("</a>\r\n"); 1998 1999 2000 #line 500 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2001 } 2002 footerLinkCounter++; 2003 } 2004 } 2005 } 2006 } 2007 2008 2009 #line default 2010 #line hidden 2011 WriteLiteral("\r\n </div>\r\n </div>\r\n <a"); 2012 2013 WriteLiteral(" class=\'twente-logo\'"); 2014 2015 WriteAttribute("href", Tuple.Create(" href=\"", 25408), Tuple.Create("\"", 25427) 2016 2017 #line 509 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2018 , Tuple.Create(Tuple.Create("", 25415), Tuple.Create<System.Object, System.Int32>(homepageUrl 2019 2020 #line default 2021 #line hidden 2022 , 25415), false) 2023 ); 2024 2025 WriteAttribute("title", Tuple.Create(" title=\"", 25428), Tuple.Create("\"", 25454) 2026 2027 #line 509 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2028 , Tuple.Create(Tuple.Create("", 25436), Tuple.Create<System.Object, System.Int32>(homepageLinkTitle 2029 2030 #line default 2031 #line hidden 2032 , 25436), false) 2033 ); 2034 2035 WriteLiteral(">\r\n <img"); 2036 2037 WriteAttribute("src", Tuple.Create(" src=\"", 25470), Tuple.Create("\"", 25517) 2038 2039 #line 510 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2040 , Tuple.Create(Tuple.Create("", 25476), Tuple.Create<System.Object, System.Int32>(IconHelper.GetSvgPath("twente", "logo/") 2041 2042 #line default 2043 #line hidden 2044 , 25476), false) 2045 ); 2046 2047 WriteLiteral(" />\r\n </a>\r\n</footer>\r\n\r\n </div>\r\n\r\n <aside>\r\n"); 2048 2049 2050 #line 517 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2051 2052 2053 #line default 2054 #line hidden 2055 WriteLiteral("\r\n"); 2056 2057 2058 #line 523 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2059 2060 var newsletterSubscriptionModalPageId = GetPageIdByNavigationTag("NewsletterSubscriptionModal"); 2061 var jobAlertSubscriptionModalPageId = GetPageIdByNavigationTag("JobAlertSubscriptionModal"); 2062 var jobOffersPageId = GetPageIdByNavigationTag("JobOffers"); 2063 var jobOfferParentPageId = Dynamicweb.Frontend.PageView.Current().Page.ParentPageId; 2064 var utmCampaign = System.Web.HttpContext.Current.Request.QueryString.Get("utm_campaign"); 2065 var mainHashtagModal = ""; 2066 2067 // Specific pages which must not show a subscription modal (jobalert/newsletter) 2068 var twenteLeeftPageId = GetPageIdByNavigationTag("MOT_TwenteLeeft"); 2069 var jobAlertSubscription = GetPageIdByNavigationTag("JobAlertSubscription"); 2070 var pageIdsWithoutModal = new List<int> { twenteLeeftPageId, jobAlertSubscription }; 2071 2072 // Get the item for the current page 2073 TwenteBrandingItemModel pItem = null; 2074 if (Model.ItemId != "1") //Item with ID 1 gives error 2075 { 2076 pItem = ItemHelper.GetTwenteBrandingItemForPage( 2077 Model.ItemId, 2078 Dynamicweb.Frontend.PageView.Current().ID.ToString(), 2079 Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Area.LongLang").Value 2080 ); 2081 } 2082 2083 if (pItem != null) 2084 { 2085 // Get main hashtag of the current page item 2086 var mainHashtagId = pItem.MainHashtagIds.FirstOrDefault(); 2087 if (!string.IsNullOrEmpty(mainHashtagId)) 2088 { 2089 var hashtagItem = Dynamicweb.Content.Items.Item.GetItemById(TwenteBranding.Models.Constants.StringConstants.ItemInstanceType.Hashtag, mainHashtagId); 2090 mainHashtagModal = $"{ItemHelper.GetItemValue<string>(hashtagItem, TwenteBranding.Models.Constants.StringConstants.CustomItemTypes.BaseArticle.Title)}"; 2091 } 2092 } 2093 2094 // Dont show a modal on the following pages 2095 if (pageIdsWithoutModal.Contains(Model.ID) || mainHashtagModal == "talent") 2096 { 2097 //do noting 2098 } 2099 else 2100 { 2101 // Show modal with link to vacancysubscription page on vacancy page and pages with #talent hashtag 2102 if ((Model.ID == jobOffersPageId || jobOfferParentPageId == jobOffersPageId) 2103 && jobAlertSubscriptionModalPageId > 0) 2104 { 2105 2106 2107 #line default 2108 #line hidden 2109 2110 #line 569 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2111 Write(RenderPageContent(jobAlertSubscriptionModalPageId)); 2112 2113 2114 #line default 2115 #line hidden 2116 2117 #line 569 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2118 2119 } 2120 // If the jobalert modal pageId has a value and utmCampaing matches the specified value 2121 else if (jobAlertSubscriptionModalPageId > 0 && utmCampaign == "Remarketing vacaturebank") 2122 { 2123 2124 2125 #line default 2126 #line hidden 2127 2128 #line 574 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2129 Write(RenderPageContent(jobAlertSubscriptionModalPageId)); 2130 2131 2132 #line default 2133 #line hidden 2134 2135 #line 574 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2136 2137 } 2138 // Else if the newsletter pageId has a value, show the newsletter subscription modal 2139 else if (newsletterSubscriptionModalPageId > 0) 2140 { 2141 2142 2143 #line default 2144 #line hidden 2145 2146 #line 579 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2147 Write(RenderPageContent(newsletterSubscriptionModalPageId)); 2148 2149 2150 #line default 2151 #line hidden 2152 2153 #line 579 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2154 2155 } 2156 } 2157 2158 2159 #line default 2160 #line hidden 2161 WriteLiteral("\r\n </aside>\r\n\r\n <script"); 2162 2163 WriteAttribute("src", Tuple.Create(" src=\"", 28714), Tuple.Create("\"", 28729) 2164 2165 #line 585 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2166 , Tuple.Create(Tuple.Create("", 28720), Tuple.Create<System.Object, System.Int32>(customJs 2167 2168 #line default 2169 #line hidden 2170 , 28720), false) 2171 ); 2172 2173 WriteLiteral("></script>\r\n <script"); 2174 2175 WriteAttribute("src", Tuple.Create(" src=\"", 28757), Tuple.Create("\"", 28769) 2176 2177 #line 586 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2178 , Tuple.Create(Tuple.Create("", 28763), Tuple.Create<System.Object, System.Int32>(appJs 2179 2180 #line default 2181 #line hidden 2182 , 28763), false) 2183 ); 2184 2185 WriteLiteral("></script>\r\n"); 2186 2187 WriteLiteral(" "); 2188 2189 2190 #line 587 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2191 Write(RenderSnippet("JavascriptBottom")); 2192 2193 2194 #line default 2195 #line hidden 2196 WriteLiteral("\r\n </body>\r\n\r\n </html>\r\n"); 2197 2198 2199 #line 591 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2200 2201 2202 #line default 2203 #line hidden 2204 WriteLiteral("\r\n"); 2205 2206 } 2207 } 2208 } 2209

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 2 @using TwenteBranding.Repository.Helpers 3 @using TwenteBranding.Models.Constants 4 @using TwenteBranding.Models.Items.Pages 5 @using Dynamicweb.Frontend 6 @{ 7 Title("Master view model template"); 8 Description("Master view model template"); 9 var currentPageView = Dynamicweb.Frontend.PageView.Current(); 10 var contentLanguage = currentPageView.GlobalTags.GetTagByName("Global:Area.Lang").Value; 11 var scheme = currentPageView.GlobalTags.GetTagByName("Global:Request.Scheme").Value; 12 var host = currentPageView.GlobalTags.GetTagByName("Global:Request.Host").Value; 13 var requestHost = string.Format("{0}://{1}", scheme, host); 14 var metaDescription = Model.Description; 15 var metaKeywords = Model.Keywords; 16 var homepage = Dynamicweb.Services.Pages.GetPageByNavigationTag(Model.Area.ID, StringConstants.NavigationTags.Homepage); 17 var homepageUrl = SearchEngineFriendlyURLs.GetFriendlyUrl(homepage.ID); 18 19 var appJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.js"); 20 var appCss = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.css"); 21 var customJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/custom.js"); 22 23 <html lang="@contentLanguage"> 24 25 <head> 26 <title>@Model.Title</title> 27 @if (!string.IsNullOrWhiteSpace(metaDescription)) 28 { 29 <meta name="description" content="@metaDescription" /> 30 } 31 @if (!string.IsNullOrWhiteSpace(metaKeywords)) 32 { 33 <meta name="keywords" content="@metaKeywords" /> 34 } 35 <meta http-equiv="content-language" content='@contentLanguage' /> 36 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 37 <meta http-equiv="imagetoolbar" content="no" /> 38 <meta http-equiv="x-dns-prefetch-control" content="on" /> 39 <meta http-equiv="x-ua-compatible" content="ie=edge" /> 40 <meta name="viewport" content="width=device-width,initial-scale=1"> 41 <meta name="application-name" content="innovadis.com" /> 42 <meta name="author" content="Innovadis BV, Enschede" /> 43 <meta name="copyright" content='Innovadis BV, Enschede, @DateTime.Now.Year' /> 44 <meta name="web_author" content="Innovadis BV, Enschede" /> 45 <link rel="dns-prefetch" href='@requestHost' /> 46 <link rel="icon" href="/favicon.ico" type="image/x-icon" /> 47 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> 48 <link rel="stylesheet" type="text/css" href="@appCss" /> 49 <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Ubuntu:300i,400,500,700&display=swap" 50 rel="stylesheet"> 51 <script rel="prefetch" src="https://cdn.jsdelivr.net/jquery/2.2.4/jquery.min.js" 52 integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> 53 <script acync rel="prefetch" 54 src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script> 55 <script rel="prefetch" type="text/javascript" 56 src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery.lazy.min.js"></script> 57 <script rel="prefetch" type="text/javascript" 58 src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery.lazy.plugins.min.js"></script> 59 @{ var gaHeadCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleAnalyticsTrackingCode); 60 if (!string.IsNullOrWhiteSpace(gaHeadCode)) 61 { 62 <script> 63 (function (i, s, o, g, r, a, m) { 64 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 65 (i[r].q = i[r].q || []).push(arguments) 66 }, i[r].l = 1 * new Date(); a = s.createElement(o), 67 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 68 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); 69 70 ga('create', '@gaHeadCode', 'auto'); 71 ga('send', 'pageview'); 72 </script> 73 } 74 } 75 @{ var gtmHeadCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 76 if (!string.IsNullOrWhiteSpace(gtmHeadCode)) 77 { 78 <script> 79 (function (w, d, s, l, i) { 80 w[l] = w[l] || []; w[l].push({ 81 'gtm.start': 82 new Date().getTime(), event: 'gtm.js' 83 }); var f = d.getElementsByTagName(s)[0], 84 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 85 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 86 })(window, document, 'script', 'dataLayer', '@gtmHeadCode');</script> 87 } 88 } 89 @RenderSnippet("HeadSection") 90 91 @* Print alternate links and content-language meta tags *@ 92 @LanguageHelper.GetMasterLanguageTags(Model.ID) 93 @{ var gtmBodyCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 94 if (!string.IsNullOrWhiteSpace(gtmBodyCode)) 95 { 96 var gtmUrl = string.Format("https://www.googletagmanager.com/ns.html?id={0}", gtmBodyCode); 97 <noscript> 98 <iframe src="@gtmUrl" height="0" width="0" style="display:none;visibility:hidden"></iframe> 99 </noscript> 100 } 101 } 102 103 @{ 104 var hotjarKey = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Hotjar.Key); 105 if (!string.IsNullOrWhiteSpace(hotjarKey)) 106 { 107 <!-- Hotjar Tracking Code for https://twente.com/ --> 108 <script> 109 (function(h,o,t,j,a,r){ 110 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 111 h._hjSettings={hjid:3196747,hjsv:6}; 112 a=o.getElementsByTagName('head')[0]; 113 r=o.createElement('script');r.async=1; 114 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 115 a.appendChild(r); 116 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 117 </script> 118 } 119 } 120 121 122 123 <script> 124 window.STORE_DATA = { 125 googleMapsApiToken: "@AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.GoogleMaps.GoogleMapsApiToken)" 126 } 127 </script> 128 129 </head> 130 131 <body> 132 <div id='app'> 133 @if ((Model.ItemType != nameof(CampaignPage) && Model.ItemType != nameof(MiniWebsitePage)) || Model.Item.GetBoolean("ShowMainMenu")) 134 { 135 <text> 136 @using Dynamicweb.Frontend 137 @using Dynamicweb.Frontend.Navigation 138 @using Dynamicweb.Security.Permissions 139 @using TwenteBranding.Repository.Helpers 140 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 141 @{ 142 List<Dynamicweb.Content.Page> topNavigationPages = null; 143 var topNavigationFolderId = GetPageIdByNavigationTag("TopNavigation"); 144 var searchResultsPageId = AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.PageIds.SearchResults); 145 var searchUrl = $"/Default.aspx?ID={searchResultsPageId}"; 146 var languagePages = Dynamicweb.Services.Pages.GetLanguagePages(Model.ID); 147 var navigationModel = Navigation.GetNavigationViewModel(new NavigationSettings { StartLevel = 1, StopLevel = 1, ExpandMode = ExpandMode.All }); 148 var masterAreaPage = Dynamicweb.Services.Pages.GetPagesByAreaID(1).SingleOrDefault(page => page.GetLanguageVersion(Model.Area.ID) != null && page.GetLanguageVersion(Model.Area.ID).ID.Equals(Model.ID)); 149 150 if (topNavigationFolderId > 0) 151 { 152 var topNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationFolderId); 153 if (topNavigationPageList != null && topNavigationPageList.Any()) 154 { 155 topNavigationPages = topNavigationPageList.Where(p => p.Active).ToList(); 156 } 157 } 158 159 <header class="navigation-header"> 160 <div class="navigation-header__container container"> 161 <div class="navigation-header__top-bar"> 162 @if (topNavigationPages != null && topNavigationPages.Any()) 163 { 164 foreach (var topNavigationPage in topNavigationPages) 165 { 166 if (topNavigationPage.GetPermission() != PermissionLevel.None) 167 { 168 var topNavigationPageName = topNavigationPage.GetDisplayName(); 169 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 170 <a class="navigation-header__top-bar__item" 171 href="@SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID)" 172 title="@topNavigationPageTitle" target="_top"> 173 @topNavigationPageName 174 </a> 175 } 176 } 177 } 178 179 @foreach (var language in Model.Area.Languages) 180 { 181 var lang = language.Culture.Split('-')[0]; 182 var link = ""; 183 var listClass = language.IsCurrent ? "active" : ""; 184 var langTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name}".JsEncode(); 185 186 if (language.IsMaster && !language.IsCurrent) 187 { 188 if (masterAreaPage != null) 189 { 190 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 191 } 192 } 193 else if (language.IsCurrent) 194 { 195 link = "javascript:void(0);"; 196 } 197 else 198 { 199 foreach (var languagePage in languagePages) 200 { 201 var languageAreaId = language.ID; 202 if (languageAreaId == languagePage.AreaId) 203 { 204 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 205 } 206 } 207 } 208 <a class="navigation-header__top-bar__item @listClass" title="@langTitle" href="@link" target="_top">@lang</a> 209 } 210 </div> 211 212 <div class="navigation-header__menu"> 213 <a class="navigation-header__logo" href="@homepageUrl"> 214 <img src="/Files/Templates/Designs/TwenteBranding/Images/logo/LogoTwenteRGB.svg" alt="Twente Logo"> 215 </a> 216 <div class="navigation-header__menu__items"> 217 @foreach (var node in navigationModel.Nodes) 218 { 219 <a href="@node.Link" class="navigation-header__menu__items__item button button--white-border">@node.Name</a> 220 } 221 </div> 222 <div class="navigation-header__menu__langselector hidden"> 223 @foreach (var language in Model.Area.Languages) 224 { 225 var lang = language.Culture.Split('-')[0]; 226 var link = ""; 227 var listClass = language.IsCurrent ? "active" : ""; 228 var langTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name}".JsEncode(); 229 230 if (language.IsMaster && !language.IsCurrent) 231 { 232 if (masterAreaPage != null) 233 { 234 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 235 } 236 } 237 else if (language.IsCurrent) 238 { 239 link = "javascript:void(0);"; 240 } 241 else 242 { 243 foreach (var languagePage in languagePages) 244 { 245 var languageAreaId = language.ID; 246 if (languageAreaId == languagePage.AreaId) 247 { 248 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 249 } 250 } 251 } 252 <a class="mobile-menu__items__footer__item mobile-menu__items__footer__item--lang button @listClass" title="@langTitle" href="@link" target="_top">@lang.ToUpper()</a> 253 } 254 </div> 255 <div class="navigation-header__menu__search"> 256 <search-form search-url="@searchUrl" placeholder-text="@Translate("searchTwente", "Doorzoek Twente.com")"></search-form> 257 </div> 258 <mobile-menu close-button-text="@Translate("Close", "Sluit")"> 259 <template v-slot:default> 260 @foreach (var node in navigationModel.Nodes) 261 { 262 <a href="@node.Link" class="mobile-menu__items__button button button--white-border">@node.Name</a> 263 } 264 <search-form search-url="@searchUrl" placeholder-text="@Translate("searchTwente", "Doorzoek Twente.com")"></search-form> 265 </template> 266 <template v-slot:footer> 267 @if (topNavigationPages != null && topNavigationPages.Any()) 268 { 269 foreach (var topNavigationPage in topNavigationPages) 270 { 271 if (topNavigationPage.GetPermission() != PermissionLevel.None) 272 { 273 var topNavigationPageName = topNavigationPage.GetDisplayName(); 274 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 275 <a class="mobile-menu__items__footer__item" 276 href="@SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID)" 277 title="@topNavigationPageTitle" target="_top"> 278 @topNavigationPageName 279 </a> 280 } 281 } 282 } 283 284 </template> 285 </mobile-menu> 286 </div> 287 </div> 288 <hr /> 289 </header> 290 } 291 292 </text> 293 } 294 295 <main> 296 @using Dynamicweb.Core 297 @using TwenteBranding.Repository.Helpers 298 @using TwenteBranding.Models.Constants 299 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 300 301 @{ 302 var pService = new Dynamicweb.Content.PageService(); 303 var iService = new Dynamicweb.Content.ItemService(); 304 var pageView = Dynamicweb.Frontend.PageView.Current(); 305 var culture = pageView.GlobalTags.GetTagByName("Global:Area.LongLang").Value; 306 var itemPageId = pageView.ID; 307 var sidebar = SidebarHelper.GetSidebarPage(pageView, StringConstants.NavigationTags.BaseArticleSidebar, pService); 308 309 var item = ItemHelper.GetTwenteBrandingItemForPage(Model.ItemId, itemPageId.ToString(), culture, pService, iService); 310 if (item != null) 311 { 312 var hashtag = item.MainHashtag.IsNotNullOrEmpty() ? string.Format("{0}", item.MainHashtag) : string.Format("{0}", item.MainHashtagEnglish); 313 var goalName = item.GoalName; 314 var background = goalName.FixNameForClass(); 315 var goalIcon = item.GoalIcon; 316 var goalUrl = item.GoalUrl; 317 var goalIconHeader = item.GoalIconHeader; 318 var goalType = item.GoalType; 319 var gradientCss = item.GoalGradientCss; 320 var video = item.Video; 321 var title = item.Title; 322 var introduction = Model.Item.GetString("Text"); 323 var headerImage = ""; 324 var headerImageMobile = ""; 325 var headerImagePath = ""; 326 var headerImageMobilePath = ""; 327 328 if (Model.Item.Fields.Where(x => x.SystemName.Contains("Image")).Count() > 0) 329 { 330 headerImagePath = Model.Item.GetFile("ImageLarge")?.Path; 331 headerImageMobilePath = Model.Item.GetFile("Image")?.Path; 332 333 if (string.IsNullOrWhiteSpace(headerImagePath)) 334 { 335 headerImagePath = Model.Item.GetFile("ImageWide")?.Path; 336 if (string.IsNullOrWhiteSpace(headerImagePath)) 337 { 338 headerImagePath = Model.Item.GetFile("Image")?.Path; 339 } 340 } 341 342 headerImage = $"/Admin/Public/GetImage.ashx?Image={headerImagePath}&Format=webp&Width=700&Height=-1&Quality=100&Crop=0&t=2"; 343 headerImageMobile = $"/Admin/Public/GetImage.ashx?Image={headerImageMobilePath}&Format=webp&Width=300&Height=-1&Quality=100&Crop=0&t=2"; 344 } 345 346 @SnippetStart("ImageOrVideo") 347 if (string.IsNullOrWhiteSpace(video)) 348 { 349 if (!string.IsNullOrWhiteSpace(headerImageMobilePath)) 350 { 351 // navigation SM 352 <div class="header-image lazy d-block d-md-none" data-src="@headerImageMobile"> 353 <h4 class="item-hashtag">@hashtag</h4> 354 @TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl) 355 <div class="@gradientCss"></div> 356 </div> 357 } 358 if (!string.IsNullOrWhiteSpace(headerImagePath)) 359 { 360 // navigation MD+ 361 <div class="header-image lazy d-none d-md-block" data-src="@headerImage"> 362 <h4 class="item-hashtag">@hashtag</h4> 363 @TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl) 364 <div class="@gradientCss"></div> 365 </div> 366 } 367 } 368 else 369 { 370 <div class="header-video"> 371 <iframe src="@video"></iframe> 372 </div> 373 } 374 @SnippetEnd("ImageOrVideo") 375 376 <div class="main-container"> 377 378 <div class="top d-block d-md-none"> 379 @RenderSnippet("ImageOrVideo") 380 </div> 381 382 <div class="page-title article-title background--@background"> 383 <div class="container"> 384 <div class="grid header-grid "> 385 <div class="title"> 386 <h1 class="font-color--white">@title</h1> 387 @if (!string.IsNullOrWhiteSpace(introduction)) 388 { 389 <div class="sub-header font-color--white">@introduction</div> 390 } 391 <div class="read-full-article font-color--white">@Translate("BaseArticle_Read_Entire_Article", "Lees hieronder het hele artikel")<div class="icon--arrow-down">&nbsp;</div></div> 392 393 </div> 394 <div class="image"><img alt="global goal icon" class="lazy" data-src="@goalIconHeader" /></div> 395 </div> 396 397 </div> 398 </div> 399 <div class="page-content container"> 400 <div class="grid detail-grid-container"> 401 402 @if (Model.Placeholder("Content").Any()) 403 { 404 <div class="content"> 405 <div class="top d-none d-md-block"> 406 @RenderSnippet("ImageOrVideo") 407 </div> 408 @Model.Placeholder("Content") 409 </div> 410 } 411 else 412 { 413 <!-- PL: Wouter, een video wordt dus niet getoond als er geen paragrafen zijn gekoppeld? --> 414 <div class="content"></div> 415 } 416 417 @{ 418 if (sidebar != null) 419 { 420 <div class="sidebar"> 421 @RenderPageContent(sidebar.ID) 422 </div> 423 } 424 } 425 426 @if (Model.Placeholder("Bottom").Any()) 427 { 428 <div class="bottom"> 429 @Model.Placeholder("Bottom") 430 </div> 431 } 432 433 </div> 434 </div> 435 </div> 436 } 437 else 438 { 439 <div>No-Item</div> 440 } 441 } 442 </main> 443 444 @using TwenteBranding.Repository.Helpers 445 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 446 @{ 447 var homepageLinkTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {Translate("Homelink_Title", "De homepage")}"; 448 } 449 <footer class="background--black flex flex-align-center"> 450 <div class="container"> 451 @using TwenteBranding.Repository.Helpers 452 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 453 454 @if (Model.Area.Item != null) 455 { 456 <div class='social-media-icons flex'> 457 @foreach (var field in Model.Area.Item.Fields.Where(f => f.SystemName.StartsWith("Sm_"))) 458 { 459 if (!string.IsNullOrEmpty(field.GetString())) 460 { 461 <a class='mr-05' rel="noopener" aria-label="@field.Name.JsEncode()" href="@field.GetString()" title="@field.Name.JsEncode()" target="_blank"> 462 <div class="icon--@field.SystemName.ToLower() icon-size--x2"></div> 463 </a> 464 } 465 } 466 </div> 467 } 468 469 <div class="footer-link-container"> 470 @{ 471 var footerNavigationFolderId = GetPageIdByNavigationTag(TwenteBranding.Models.Constants.StringConstants.NavigationTags.FooterNavigation); 472 if (footerNavigationFolderId > 0) 473 { 474 var footerNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(footerNavigationFolderId); 475 if (footerNavigationPageList != null && footerNavigationPageList.Any()) 476 { 477 var footerNavigationPages = footerNavigationPageList.Where(page => page.Active).ToList(); 478 if (footerNavigationPages.Any()) 479 { 480 var footerLinkCounter = 1; 481 foreach (var footerNavigationPage in footerNavigationPages) 482 { 483 var footerNavigationPageName = footerNavigationPage.GetDisplayName(); 484 var footerNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {footerNavigationPageName}".JsEncode(); 485 var footerNavigationPageLink = $"/Default.aspx?ID={footerNavigationPage.ID}"; 486 487 // place last link and copyright together to prevent wrapping on phone 488 if (footerNavigationPages.Count() == footerLinkCounter) 489 { 490 var copyRight = string.Format(Translate("Footer_CopyRight", "&copy; {0} Twente Branding"), DateTime.Now.Year); 491 492 <div class='wrapper'> 493 <a href="@footerNavigationPageLink" title="@footerNavigationPageTitle">@footerNavigationPageName</a> 494 <span>@copyRight</span> 495 </div> 496 } 497 else 498 { 499 <a href="@footerNavigationPageLink" title="@footerNavigationPageTitle">@footerNavigationPageName</a> 500 } 501 footerLinkCounter++; 502 } 503 } 504 } 505 } 506 } 507 </div> 508 </div> 509 <a class='twente-logo' href="@homepageUrl" title="@homepageLinkTitle"> 510 <img src="@IconHelper.GetSvgPath("twente", "logo/")" /> 511 </a> 512 </footer> 513 514 </div> 515 516 <aside> 517 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 518 @using Dynamicweb.Core 519 @using TwenteBranding.Repository.Helpers 520 @using System.Linq; 521 @using TwenteBranding.Models.ViewModels 522 523 @{ 524 var newsletterSubscriptionModalPageId = GetPageIdByNavigationTag("NewsletterSubscriptionModal"); 525 var jobAlertSubscriptionModalPageId = GetPageIdByNavigationTag("JobAlertSubscriptionModal"); 526 var jobOffersPageId = GetPageIdByNavigationTag("JobOffers"); 527 var jobOfferParentPageId = Dynamicweb.Frontend.PageView.Current().Page.ParentPageId; 528 var utmCampaign = System.Web.HttpContext.Current.Request.QueryString.Get("utm_campaign"); 529 var mainHashtagModal = ""; 530 531 // Specific pages which must not show a subscription modal (jobalert/newsletter) 532 var twenteLeeftPageId = GetPageIdByNavigationTag("MOT_TwenteLeeft"); 533 var jobAlertSubscription = GetPageIdByNavigationTag("JobAlertSubscription"); 534 var pageIdsWithoutModal = new List<int> { twenteLeeftPageId, jobAlertSubscription }; 535 536 // Get the item for the current page 537 TwenteBrandingItemModel pItem = null; 538 if (Model.ItemId != "1") //Item with ID 1 gives error 539 { 540 pItem = ItemHelper.GetTwenteBrandingItemForPage( 541 Model.ItemId, 542 Dynamicweb.Frontend.PageView.Current().ID.ToString(), 543 Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Area.LongLang").Value 544 ); 545 } 546 547 if (pItem != null) 548 { 549 // Get main hashtag of the current page item 550 var mainHashtagId = pItem.MainHashtagIds.FirstOrDefault(); 551 if (!string.IsNullOrEmpty(mainHashtagId)) 552 { 553 var hashtagItem = Dynamicweb.Content.Items.Item.GetItemById(TwenteBranding.Models.Constants.StringConstants.ItemInstanceType.Hashtag, mainHashtagId); 554 mainHashtagModal = $"{ItemHelper.GetItemValue<string>(hashtagItem, TwenteBranding.Models.Constants.StringConstants.CustomItemTypes.BaseArticle.Title)}"; 555 } 556 } 557 558 // Dont show a modal on the following pages 559 if (pageIdsWithoutModal.Contains(Model.ID) || mainHashtagModal == "talent") 560 { 561 //do noting 562 } 563 else 564 { 565 // Show modal with link to vacancysubscription page on vacancy page and pages with #talent hashtag 566 if ((Model.ID == jobOffersPageId || jobOfferParentPageId == jobOffersPageId) 567 && jobAlertSubscriptionModalPageId > 0) 568 { 569 @RenderPageContent(jobAlertSubscriptionModalPageId) 570 } 571 // If the jobalert modal pageId has a value and utmCampaing matches the specified value 572 else if (jobAlertSubscriptionModalPageId > 0 && utmCampaign == "Remarketing vacaturebank") 573 { 574 @RenderPageContent(jobAlertSubscriptionModalPageId) 575 } 576 // Else if the newsletter pageId has a value, show the newsletter subscription modal 577 else if (newsletterSubscriptionModalPageId > 0) 578 { 579 @RenderPageContent(newsletterSubscriptionModalPageId) 580 } 581 } 582 } 583 </aside> 584 585 <script src="@customJs"></script> 586 <script src="@appJs"></script> 587 @RenderSnippet("JavascriptBottom") 588 </body> 589 590 </html> 591 } 592