Error compiling template "Designs/TwenteBranding/_parsed/BaseArticle.parsed.cshtml"
Line 96: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 96: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 619: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 619: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 621: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 621: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 622: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 622: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 623: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 623: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 624: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 624: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 625: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 625: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 626: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 626: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 627: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 627: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 628: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 628: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 632: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 632: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 677: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 684: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 692: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 692: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 825: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 1440: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 1447: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 1455: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 1455: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 1573: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 1782: No overload for method 'GetSidebarPage' takes 3 arguments
Line 1784: No overload for method 'GetTwenteBrandingItemForPage' takes 5 arguments
Line 1793: '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 1794: '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?)
Line 2480: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 2480: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'

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 638 "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 637 "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 419 "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 129 "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 130 "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 131 "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 133 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 58 using Dynamicweb.Security.UserManagement; 59 60 #line default 61 #line hidden 62 63 #line 417 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 64 using Dynamicweb.Core; 65 66 #line default 67 #line hidden 68 69 #line 639 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 70 using TwenteBranding.Models.ViewModels; 71 72 #line default 73 #line hidden 74 75 76 public class RazorEngine_3dcfdd06f3b646f3a39b03820d9992c0 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 77 78 #line hidden 79 80 public RazorEngine_3dcfdd06f3b646f3a39b03820d9992c0() { 81 } 82 83 public override void Execute() { 84 85 #line 6 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 86 87 Title("Master view model template"); 88 Description("Master view model template"); 89 var currentPageView = Dynamicweb.Frontend.PageView.Current(); 90 var contentLanguage = currentPageView.GlobalTags.GetTagByName("Global:Area.Lang").Value; 91 var scheme = currentPageView.GlobalTags.GetTagByName("Global:Request.Scheme").Value; 92 var host = currentPageView.GlobalTags.GetTagByName("Global:Request.Host").Value; 93 var requestHost = string.Format("{0}://{1}", scheme, host); 94 var metaDescription = Model.Description; 95 var metaKeywords = Model.Keywords; 96 var homepage = Dynamicweb.Services.Pages.GetPageByNavigationTag(Model.Area.ID, StringConstants.NavigationTags.Homepage); 97 var homepageUrl = SearchEngineFriendlyURLs.GetFriendlyUrl(homepage.ID); 98 var appJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.js"); 99 var appCss = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.css"); 100 var customJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/custom.js"); 101 var showMainNavigation = true; // default show main navigation 102 if (Equals(Model.ItemType, nameof(CampaignPage)) && !Model.Item.GetBoolean("ShowMainMenu")) { showMainNavigation = false; } // campaign page items have option to show main navigation, where the default is hide 103 if (Equals(Model.ItemType, nameof(MiniWebsitePage)) && Model.Item.GetBoolean("HideMainMenu")) { showMainNavigation = false; } // mini website page items have option to hide main navigation, where the default is show 104 105 106 #line default 107 #line hidden 108 WriteLiteral(" <html"); 109 110 WriteAttribute("lang", Tuple.Create(" lang=\"", 1834), Tuple.Create("\"", 1857) 111 112 #line 24 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 113 , Tuple.Create(Tuple.Create("", 1841), Tuple.Create<System.Object, System.Int32>(contentLanguage 114 115 #line default 116 #line hidden 117 , 1841), false) 118 ); 119 120 WriteLiteral(">\r\n <head>\r\n <title>"); 121 122 123 #line 26 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 124 Write(Model.Title); 125 126 127 #line default 128 #line hidden 129 WriteLiteral("</title>\r\n"); 130 131 132 #line 27 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 133 134 135 #line default 136 #line hidden 137 138 #line 27 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 139 if (!string.IsNullOrWhiteSpace(metaDescription)) 140 { 141 142 143 #line default 144 #line hidden 145 WriteLiteral(" <meta"); 146 147 WriteLiteral(" name=\"description\""); 148 149 WriteAttribute("content", Tuple.Create(" content=\"", 2016), Tuple.Create("\"", 2042) 150 151 #line 29 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 152 , Tuple.Create(Tuple.Create("", 2026), Tuple.Create<System.Object, System.Int32>(metaDescription 153 154 #line default 155 #line hidden 156 , 2026), false) 157 ); 158 159 WriteLiteral(" />\r\n"); 160 161 162 #line 30 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 163 } 164 165 166 #line default 167 #line hidden 168 WriteLiteral(" "); 169 170 171 #line 31 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 172 if (!string.IsNullOrWhiteSpace(metaKeywords)) 173 { 174 175 176 #line default 177 #line hidden 178 WriteLiteral(" <meta"); 179 180 WriteLiteral(" name=\"keywords\""); 181 182 WriteAttribute("content", Tuple.Create(" content=\"", 2159), Tuple.Create("\"", 2182) 183 184 #line 33 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 185 , Tuple.Create(Tuple.Create("", 2169), Tuple.Create<System.Object, System.Int32>(metaKeywords 186 187 #line default 188 #line hidden 189 , 2169), false) 190 ); 191 192 WriteLiteral(" />\r\n"); 193 194 195 #line 34 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 196 } 197 198 199 #line default 200 #line hidden 201 WriteLiteral(" <meta"); 202 203 WriteLiteral(" http-equiv=\"content-language\""); 204 205 WriteAttribute("content", Tuple.Create(" content=\'", 2242), Tuple.Create("\'", 2268) 206 207 #line 35 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 208 , Tuple.Create(Tuple.Create("", 2252), Tuple.Create<System.Object, System.Int32>(contentLanguage 209 210 #line default 211 #line hidden 212 , 2252), false) 213 ); 214 215 WriteLiteral(" />\r\n <meta"); 216 217 WriteLiteral(" http-equiv=\"content-type\""); 218 219 WriteLiteral(" content=\"text/html; charset=UTF-8\""); 220 221 WriteLiteral(" />\r\n <meta"); 222 223 WriteLiteral(" http-equiv=\"imagetoolbar\""); 224 225 WriteLiteral(" content=\"no\""); 226 227 WriteLiteral(" />\r\n <meta"); 228 229 WriteLiteral(" http-equiv=\"x-dns-prefetch-control\""); 230 231 WriteLiteral(" content=\"on\""); 232 233 WriteLiteral(" />\r\n <meta"); 234 235 WriteLiteral(" http-equiv=\"x-ua-compatible\""); 236 237 WriteLiteral(" content=\"ie=edge\""); 238 239 WriteLiteral(" />\r\n <meta"); 240 241 WriteLiteral(" name=\"viewport\""); 242 243 WriteLiteral(" content=\"width=device-width,initial-scale=1\""); 244 245 WriteLiteral(">\r\n <meta"); 246 247 WriteLiteral(" name=\"application-name\""); 248 249 WriteLiteral(" content=\"innovadis.com\""); 250 251 WriteLiteral(" />\r\n <meta"); 252 253 WriteLiteral(" name=\"author\""); 254 255 WriteLiteral(" content=\"Innovadis BV, Enschede\""); 256 257 WriteLiteral(" />\r\n <meta"); 258 259 WriteLiteral(" name=\"copyright\""); 260 261 WriteAttribute("content", Tuple.Create(" content=\'", 2780), Tuple.Create("\'", 2832) 262 , Tuple.Create(Tuple.Create("", 2790), Tuple.Create("Innovadis", 2790), true) 263 , Tuple.Create(Tuple.Create(" ", 2799), Tuple.Create("BV,", 2800), true) 264 , Tuple.Create(Tuple.Create(" ", 2803), Tuple.Create("Enschede,", 2804), true) 265 266 #line 43 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 267 , Tuple.Create(Tuple.Create(" ", 2813), Tuple.Create<System.Object, System.Int32>(DateTime.Now.Year 268 269 #line default 270 #line hidden 271 , 2814), false) 272 ); 273 274 WriteLiteral(" />\r\n <meta"); 275 276 WriteLiteral(" name=\"web_author\""); 277 278 WriteLiteral(" content=\"Innovadis BV, Enschede\""); 279 280 WriteLiteral(" />\r\n <link"); 281 282 WriteLiteral(" rel=\"dns-prefetch\""); 283 284 WriteAttribute("href", Tuple.Create(" href=\'", 2939), Tuple.Create("\'", 2958) 285 286 #line 45 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 287 , Tuple.Create(Tuple.Create("", 2946), Tuple.Create<System.Object, System.Int32>(requestHost 288 289 #line default 290 #line hidden 291 , 2946), false) 292 ); 293 294 WriteLiteral(" />\r\n <link"); 295 296 WriteLiteral(" rel=\"icon\""); 297 298 WriteLiteral(" href=\"/favicon.ico\""); 299 300 WriteLiteral(" type=\"image/x-icon\""); 301 302 WriteLiteral(" />\r\n <link"); 303 304 WriteLiteral(" rel=\"shortcut icon\""); 305 306 WriteLiteral(" href=\"/favicon.ico\""); 307 308 WriteLiteral(" type=\"image/x-icon\""); 309 310 WriteLiteral(" />\r\n <link"); 311 312 WriteLiteral(" rel=\"stylesheet\""); 313 314 WriteLiteral(" type=\"text/css\""); 315 316 WriteAttribute("href", Tuple.Create(" href=\"", 3157), Tuple.Create("\"", 3171) 317 318 #line 48 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 319 , Tuple.Create(Tuple.Create("", 3164), Tuple.Create<System.Object, System.Int32>(appCss 320 321 #line default 322 #line hidden 323 , 3164), false) 324 ); 325 326 WriteLiteral(" />\r\n <link"); 327 328 WriteLiteral(" href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Ubuntu:300" + 329 "i,400,500,700&display=swap\""); 330 331 WriteLiteral("\r\n rel=\"stylesheet\""); 332 333 WriteLiteral(">\r\n <script"); 334 335 WriteLiteral(" rel=\"prefetch\""); 336 337 WriteLiteral(" src=\"https://cdn.jsdelivr.net/jquery/2.2.4/jquery.min.js\""); 338 339 WriteLiteral("\r\n integrity=\"sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=\"" + 340 ""); 341 342 WriteLiteral(" crossorigin=\"anonymous\""); 343 344 WriteLiteral("></script>\r\n <script acync"); 345 346 WriteLiteral(" rel=\"prefetch\""); 347 348 WriteLiteral("\r\n src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/boot" + 349 "strap.bundle.min.js\""); 350 351 WriteLiteral("></script>\r\n <script"); 352 353 WriteLiteral(" rel=\"prefetch\""); 354 355 WriteLiteral(" type=\"text/javascript\""); 356 357 WriteLiteral("\r\n src=\"//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery." + 358 "lazy.min.js\""); 359 360 WriteLiteral("></script>\r\n <script"); 361 362 WriteLiteral(" rel=\"prefetch\""); 363 364 WriteLiteral(" type=\"text/javascript\""); 365 366 WriteLiteral("\r\n src=\"//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery." + 367 "lazy.plugins.min.js\""); 368 369 WriteLiteral("></script>\r\n"); 370 371 372 #line 59 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 373 374 375 #line default 376 #line hidden 377 378 #line 59 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 379 var gaHeadCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleAnalyticsTrackingCode); 380 if (!string.IsNullOrWhiteSpace(gaHeadCode)) 381 { 382 383 384 #line default 385 #line hidden 386 WriteLiteral(@" <script> 387 (function (i, s, o, g, r, a, m) { 388 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 389 (i[r].q = i[r].q || []).push(arguments) 390 }, i[r].l = 1 * new Date(); a = s.createElement(o), 391 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 392 })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); 393 394 ga('create', '"); 395 396 397 #line 70 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 398 Write(gaHeadCode); 399 400 401 #line default 402 #line hidden 403 WriteLiteral("\', \'auto\');\r\n ga(\'send\', \'pageview\');\r\n </script>\r\n"); 404 405 406 #line 73 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 407 } 408 409 410 #line default 411 #line hidden 412 WriteLiteral("\r\n"); 413 414 415 #line 75 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 416 417 418 #line default 419 #line hidden 420 421 #line 75 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 422 var gtmHeadCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 423 if (!string.IsNullOrWhiteSpace(gtmHeadCode)) 424 { 425 426 427 #line default 428 #line hidden 429 WriteLiteral(@" <script> 430 (function (w, d, s, l, i) { 431 w[l] = w[l] || []; w[l].push({ 432 'gtm.start': 433 new Date().getTime(), event: 'gtm.js' 434 }); var f = d.getElementsByTagName(s)[0], 435 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 436 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 437 })(window, document, 'script', 'dataLayer', '"); 438 439 440 #line 86 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 441 Write(gtmHeadCode); 442 443 444 #line default 445 #line hidden 446 WriteLiteral("\');</script>\r\n"); 447 448 449 #line 87 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 450 } 451 452 453 #line default 454 #line hidden 455 WriteLiteral("\r\n"); 456 457 WriteLiteral(" "); 458 459 460 #line 89 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 461 Write(RenderSnippet("HeadSection")); 462 463 464 #line default 465 #line hidden 466 WriteLiteral("\r\n "); 467 468 WriteLiteral("\r\n"); 469 470 WriteLiteral(" "); 471 472 473 #line 91 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 474 Write(LanguageHelper.GetMasterLanguageTags(Model.ID)); 475 476 477 #line default 478 #line hidden 479 WriteLiteral("\r\n"); 480 481 482 #line 92 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 483 484 485 #line default 486 #line hidden 487 488 #line 92 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 489 var gtmBodyCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 490 if (!string.IsNullOrWhiteSpace(gtmBodyCode)) 491 { 492 var gtmUrl = string.Format("https://www.googletagmanager.com/ns.html?id={0}", gtmBodyCode); 493 494 495 #line default 496 #line hidden 497 WriteLiteral(" <noscript>\r\n <iframe"); 498 499 WriteAttribute("src", Tuple.Create(" src=\"", 6296), Tuple.Create("\"", 6309) 500 501 #line 97 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 502 , Tuple.Create(Tuple.Create("", 6302), Tuple.Create<System.Object, System.Int32>(gtmUrl 503 504 #line default 505 #line hidden 506 , 6302), false) 507 ); 508 509 WriteLiteral(" height=\"0\""); 510 511 WriteLiteral(" width=\"0\""); 512 513 WriteLiteral(" style=\"display:none;visibility:hidden\""); 514 515 WriteLiteral("></iframe>\r\n </noscript>\r\n"); 516 517 518 #line 99 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 519 } 520 521 522 #line default 523 #line hidden 524 WriteLiteral("\r\n"); 525 526 527 #line 101 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 528 529 530 #line default 531 #line hidden 532 533 #line 101 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 534 535 var hotjarKey = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Hotjar.Key); 536 if (!string.IsNullOrWhiteSpace(hotjarKey)) 537 { 538 539 540 #line default 541 #line hidden 542 WriteLiteral(" <!-- Hotjar Tracking Code -->\r\n"); 543 544 WriteLiteral(" <script>\r\n (function(h,o,t,j,a,r){\r\n h.hj=h.hj||fun" + 545 "ction(){(h.hj.q=h.hj.q||[]).push(arguments)};\r\n h._hjSettings={hjid:"); 546 547 548 #line 109 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 549 Write(hotjarKey); 550 551 552 #line default 553 #line hidden 554 WriteLiteral(@",hjsv:6}; 555 a=o.getElementsByTagName('head')[0]; 556 r=o.createElement('script');r.async=1; 557 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 558 a.appendChild(r); 559 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 560 </script> 561 "); 562 563 564 #line 116 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 565 } 566 567 568 #line default 569 #line hidden 570 WriteLiteral("\r\n <script>\r\n window.STORE_DATA = {\r\n googleMapsApiToken: \""); 571 572 573 #line 120 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 574 Write(AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.GoogleMaps.GoogleMapsApiToken)); 575 576 577 #line default 578 #line hidden 579 WriteLiteral("\"\r\n }\r\n</script>\r\n </head>\r\n <body>\r\n <div"); 580 581 WriteLiteral(" id=\'app\'"); 582 583 WriteLiteral(">\r\n"); 584 585 586 #line 126 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 587 588 589 #line default 590 #line hidden 591 592 #line 126 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 593 if (showMainNavigation) 594 { 595 596 597 #line default 598 #line hidden 599 WriteLiteral(" "); 600 601 WriteLiteral("\r\n"); 602 603 604 #line 129 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 605 606 607 #line default 608 #line hidden 609 WriteLiteral("\r\n"); 610 611 612 #line 136 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 613 614 List<Dynamicweb.Content.Page> topNavigationPages = null; 615 var areaId = Dynamicweb.Frontend.PageView.Current().AreaID; 616 var topNavigationFolderId = GetPageIdByNavigationTag("TopNavigation"); 617 var searchResultsPageId = AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.PageIds.SearchResults); 618 var searchUrl = $"/Default.aspx?ID={searchResultsPageId}"; 619 var languagePages = Dynamicweb.Services.Pages.GetLanguagePages(Model.ID); 620 var navigationModel = Navigation.GetNavigationViewModel(new NavigationSettings { StartLevel = 1, StopLevel = 1, ExpandMode = ExpandMode.All }); 621 var masterAreaPage = Dynamicweb.Services.Pages.GetPagesByAreaID(1).SingleOrDefault(page => page.GetLanguageVersion(Model.Area.ID) != null && page.GetLanguageVersion(Model.Area.ID).ID.Equals(Model.ID)); 622 var loginPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.LoginPage)?.ID ?? 0; 623 var logoffPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.LogoffPage)?.ID ?? 0; 624 var myTwentePageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.MyTwentePage)?.ID ?? 0; 625 var profilePageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.CompanyProfile)?.ID ?? 0; 626 var cartPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.Cart)?.ID ?? 0; 627 var cartPartnerProductsPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.CartPartnerProducts)?.ID ?? 0; 628 var matchmakerPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.TwentseMatchMakerPage)?.ID ?? 0; 629 630 if (topNavigationFolderId > 0) 631 { 632 var topNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationFolderId); 633 if (topNavigationPageList != null && topNavigationPageList.Any()) 634 { 635 topNavigationPages = topNavigationPageList.Where(p => p.Active).ToList(); 636 } 637 } 638 639 var extranetPageIds = new List<int>(); 640 extranetPageIds.Add(logoffPageId); 641 extranetPageIds.Add(matchmakerPageId); 642 643 644 645 #line default 646 #line hidden 647 WriteLiteral(" <header"); 648 649 WriteLiteral(" class=\"navigation-header\""); 650 651 WriteLiteral(">\r\n <div"); 652 653 WriteLiteral(" class=\"navigation-header__container container\""); 654 655 WriteLiteral(">\r\n\r\n <div"); 656 657 WriteLiteral(" class=\"navigation-header__top-bar\""); 658 659 WriteLiteral(">\r\n"); 660 661 662 #line 170 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 663 664 665 #line default 666 #line hidden 667 668 #line 170 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 669 if (topNavigationPages != null && topNavigationPages.Any()) 670 { 671 foreach (var topNavigationPage in topNavigationPages) 672 { 673 // NOTE: For login-, logoff- and profilepage permissions have been configured in the CMS. But sometimes the links appear when they should not. 674 // Therefore some lame continues have been added to force them not to render when they shouldn't 675 676 // Preventing us from rendering the login page link when the user is already logged in 677 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 678 Equals(topNavigationPage.ID, loginPageId)) 679 { 680 continue; 681 } 682 683 // Preventing us from rendering the extranet content when the user is not logged in 684 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 685 extranetPageIds.Contains(topNavigationPage.ID)) 686 { 687 continue; 688 } 689 690 var topNavigationPageName = topNavigationPage.GetDisplayName(); 691 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 692 var subPages = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationPage.ID); 693 694 695 #line default 696 #line hidden 697 WriteLiteral(" <div"); 698 699 WriteLiteral(" class=\"navigation-header__top-bar__item\""); 700 701 WriteLiteral(">\r\n"); 702 703 704 #line 195 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 705 706 707 #line default 708 #line hidden 709 710 #line 195 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 711 if (topNavigationPage.Allowclick) 712 { 713 714 715 #line default 716 #line hidden 717 WriteLiteral(" <a"); 718 719 WriteAttribute("href", Tuple.Create(" href=\"", 12350), Tuple.Create("\"", 12419) 720 721 #line 197 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 722 , Tuple.Create(Tuple.Create("", 12357), Tuple.Create<System.Object, System.Int32>(SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID) 723 724 #line default 725 #line hidden 726 , 12357), false) 727 ); 728 729 WriteAttribute("title", Tuple.Create("\r\n title=\"", 12420), Tuple.Create("\"", 12487) 730 731 #line 198 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 732 , Tuple.Create(Tuple.Create("", 12464), Tuple.Create<System.Object, System.Int32>(topNavigationPageTitle 733 734 #line default 735 #line hidden 736 , 12464), false) 737 ); 738 739 WriteLiteral(" target=\"_top\""); 740 741 WriteLiteral(">\r\n"); 742 743 WriteLiteral(" "); 744 745 746 #line 199 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 747 Write(topNavigationPageName); 748 749 750 #line default 751 #line hidden 752 WriteLiteral("\r\n </a>\r\n"); 753 754 755 #line 201 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 756 } 757 else 758 { 759 760 761 #line default 762 #line hidden 763 WriteLiteral(" <span"); 764 765 WriteAttribute("title", Tuple.Create(" title=\"", 12736), Tuple.Create("\"", 12767) 766 767 #line 204 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 768 , Tuple.Create(Tuple.Create("", 12744), Tuple.Create<System.Object, System.Int32>(topNavigationPageTitle 769 770 #line default 771 #line hidden 772 , 12744), false) 773 ); 774 775 WriteLiteral(" target=\"_top\""); 776 777 WriteLiteral(">\r\n"); 778 779 WriteLiteral(" "); 780 781 782 #line 205 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 783 Write(topNavigationPageName); 784 785 786 #line default 787 #line hidden 788 WriteLiteral("\r\n </span>\r\n"); 789 790 791 #line 207 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 792 } 793 794 795 #line default 796 #line hidden 797 WriteLiteral(" "); 798 799 800 #line 208 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 801 if (subPages.Any()) 802 { 803 804 805 #line default 806 #line hidden 807 WriteLiteral(" <div"); 808 809 WriteLiteral(" class=\"navigation-header__top-bar__item__subnav\""); 810 811 WriteLiteral(">\r\n"); 812 813 814 #line 211 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 815 816 817 #line default 818 #line hidden 819 820 #line 211 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 821 foreach (var subPage in subPages) 822 { 823 824 // Preventing us from rendering the extranet content when the user is not logged in 825 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 826 extranetPageIds.Contains(subPage.ID)) 827 { 828 continue; 829 } 830 831 var topNavigationSubpageName = subPage.GetDisplayName(); 832 var topNavigationSubpageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationSubpageName}".JsEncode(); 833 834 835 #line default 836 #line hidden 837 WriteLiteral(" <a"); 838 839 WriteAttribute("href", Tuple.Create(" href=\"", 13968), Tuple.Create("\"", 14027) 840 841 #line 223 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 842 , Tuple.Create(Tuple.Create("", 13975), Tuple.Create<System.Object, System.Int32>(SearchEngineFriendlyURLs.GetFriendlyUrl(subPage.ID) 843 844 #line default 845 #line hidden 846 , 13975), false) 847 ); 848 849 WriteAttribute("title", Tuple.Create("\r\n title=\"", 14028), Tuple.Create("\"", 14106) 850 851 #line 224 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 852 , Tuple.Create(Tuple.Create("", 14080), Tuple.Create<System.Object, System.Int32>(topNavigationSubpageTitle 853 854 #line default 855 #line hidden 856 , 14080), false) 857 ); 858 859 WriteLiteral(" target=\"_top\""); 860 861 WriteLiteral(">"); 862 863 864 #line 224 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 865 Write(topNavigationSubpageName); 866 867 868 #line default 869 #line hidden 870 WriteLiteral("</a>\r\n"); 871 872 873 #line 225 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 874 } 875 876 877 #line default 878 #line hidden 879 WriteLiteral(" </div>\r\n"); 880 881 882 #line 227 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 883 } 884 885 886 #line default 887 #line hidden 888 WriteLiteral(" </div>\r\n"); 889 890 891 #line 229 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 892 893 } 894 } 895 896 897 #line default 898 #line hidden 899 WriteLiteral("\r\n"); 900 901 902 #line 233 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 903 904 905 #line default 906 #line hidden 907 908 #line 233 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 909 foreach (var language in Model.Area.Languages) 910 { 911 var lang = language.Culture.Split('-')[0]; 912 var link = ""; 913 var listClass = language.IsCurrent ? "active" : ""; 914 var langTitle = language.IsCurrent ? string.Empty : $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name.ToUpper()}".JsEncode(); 915 var flag = $"<img src=\"/Admin/Public/GetImage.ashx?Image=/Admin/Images/Flags/flag_{language.Culture.Split('-')[1].ToLower()}.png&Crop=0&Format=webP&Height=20&Width=20&Quality=90\" border=\"0\" alt=\"{langTitle}\" />"; 916 917 if (language.IsMaster && !language.IsCurrent) 918 { 919 if (masterAreaPage != null) 920 { 921 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 922 } 923 } 924 else if (language.IsCurrent) 925 { 926 link = "javascript:void(0);"; 927 } 928 else 929 { 930 foreach (var languagePage in languagePages) 931 { 932 var languageAreaId = language.ID; 933 if (languageAreaId == languagePage.AreaId) 934 { 935 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 936 } 937 } 938 } 939 940 941 #line default 942 #line hidden 943 WriteLiteral(" <div"); 944 945 WriteAttribute("class", Tuple.Create(" class=\"", 16026), Tuple.Create("\"", 16086) 946 , Tuple.Create(Tuple.Create("", 16034), Tuple.Create("navigation-header__top-bar__item", 16034), true) 947 , Tuple.Create(Tuple.Create(" ", 16066), Tuple.Create("language", 16067), true) 948 949 #line 263 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 950 , Tuple.Create(Tuple.Create(" ", 16075), Tuple.Create<System.Object, System.Int32>(listClass 951 952 #line default 953 #line hidden 954 , 16076), false) 955 ); 956 957 WriteLiteral("><a"); 958 959 WriteAttribute("title", Tuple.Create(" title=\"", 16090), Tuple.Create("\"", 16108) 960 961 #line 263 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 962 , Tuple.Create(Tuple.Create("", 16098), Tuple.Create<System.Object, System.Int32>(langTitle 963 964 #line default 965 #line hidden 966 , 16098), false) 967 ); 968 969 WriteAttribute("href", Tuple.Create(" href=\"", 16109), Tuple.Create("\"", 16121) 970 971 #line 263 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 972 , Tuple.Create(Tuple.Create("", 16116), Tuple.Create<System.Object, System.Int32>(link 973 974 #line default 975 #line hidden 976 , 16116), false) 977 ); 978 979 WriteLiteral(" target=\"_top\""); 980 981 WriteLiteral(">"); 982 983 984 #line 263 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 985 Write(flag); 986 987 988 #line default 989 #line hidden 990 WriteLiteral("</a></div> \r\n"); 991 992 993 #line 264 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 994 } 995 996 997 #line default 998 #line hidden 999 WriteLiteral(" "); 1000 1001 1002 #line 265 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1003 if (cartPageId > 0 && cartPartnerProductsPageId > 0) 1004 { 1005 1006 1007 #line default 1008 #line hidden 1009 WriteLiteral(" <a"); 1010 1011 WriteAttribute("href", Tuple.Create(" href=\"", 16286), Tuple.Create("\"", 16380) 1012 1013 #line 267 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1014 , Tuple.Create(Tuple.Create("", 16293), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPartnerProductsPageId) 1015 1016 #line default 1017 #line hidden 1018 , 16293), false) 1019 ); 1020 1021 WriteLiteral(" class=\"cart-pp-link hidden\""); 1022 1023 WriteLiteral("><span"); 1024 1025 WriteLiteral(" class=\"icon icon--cart icon-color--white\""); 1026 1027 WriteLiteral("></span></a>\r\n"); 1028 1029 WriteLiteral(" <a"); 1030 1031 WriteAttribute("href", Tuple.Create(" href=\"", 16493), Tuple.Create("\"", 16572) 1032 1033 #line 268 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1034 , Tuple.Create(Tuple.Create("", 16500), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPageId) 1035 1036 #line default 1037 #line hidden 1038 , 16500), false) 1039 ); 1040 1041 WriteLiteral(" class=\"cart-link hidden\""); 1042 1043 WriteLiteral("><span"); 1044 1045 WriteLiteral(" class=\"icon icon--cart icon-color--white\""); 1046 1047 WriteLiteral("></span></a>\r\n"); 1048 1049 WriteLiteral(" <span"); 1050 1051 WriteLiteral(" class=\"cart-selector hidden\""); 1052 1053 WriteLiteral(" onclick=\"EcomHelper.ShowCartSelectorModal();\""); 1054 1055 WriteLiteral("><span"); 1056 1057 WriteLiteral(" class=\"icon icon--cart icon-color--white\""); 1058 1059 WriteLiteral("></span></span>\r\n"); 1060 1061 1062 #line 270 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1063 } 1064 1065 1066 #line default 1067 #line hidden 1068 WriteLiteral(" </div>\r\n\r\n <div"); 1069 1070 WriteLiteral(" class=\"navigation-header__menu\""); 1071 1072 WriteLiteral(">\r\n <a"); 1073 1074 WriteLiteral(" class=\"navigation-header__logo\""); 1075 1076 WriteAttribute("href", Tuple.Create(" href=\"", 16967), Tuple.Create("\"", 16986) 1077 1078 #line 274 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1079 , Tuple.Create(Tuple.Create("", 16974), Tuple.Create<System.Object, System.Int32>(homepageUrl 1080 1081 #line default 1082 #line hidden 1083 , 16974), false) 1084 ); 1085 1086 WriteLiteral(">\r\n <img"); 1087 1088 WriteLiteral(" src=\"/Files/Templates/Designs/TwenteBranding/Images/logo/LogoTwenteRGB.svg\""); 1089 1090 WriteLiteral(" alt=\"Twente Logo\""); 1091 1092 WriteLiteral(">\r\n </a>\r\n <div"); 1093 1094 WriteLiteral(" class=\"navigation-header__menu__items\""); 1095 1096 WriteLiteral(">\r\n"); 1097 1098 1099 #line 278 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1100 1101 1102 #line default 1103 #line hidden 1104 1105 #line 278 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1106 foreach (var node in navigationModel.Nodes) 1107 { 1108 1109 1110 #line default 1111 #line hidden 1112 WriteLiteral(" <a"); 1113 1114 WriteAttribute("href", Tuple.Create(" href=\"", 17310), Tuple.Create("\"", 17327) 1115 1116 #line 280 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1117 , Tuple.Create(Tuple.Create("", 17317), Tuple.Create<System.Object, System.Int32>(node.Link 1118 1119 #line default 1120 #line hidden 1121 , 17317), false) 1122 ); 1123 1124 WriteLiteral(" class=\"navigation-header__menu__items__item button button--white-border\""); 1125 1126 WriteLiteral(">"); 1127 1128 1129 #line 280 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1130 Write(node.Name); 1131 1132 1133 #line default 1134 #line hidden 1135 WriteLiteral("</a>\r\n"); 1136 1137 1138 #line 281 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1139 } 1140 1141 1142 #line default 1143 #line hidden 1144 WriteLiteral(" </div>\r\n <div"); 1145 1146 WriteLiteral(" class=\"navigation-header__menu__langselector hidden\""); 1147 1148 WriteLiteral(">\r\n"); 1149 1150 1151 #line 284 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1152 1153 1154 #line default 1155 #line hidden 1156 1157 #line 284 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1158 foreach (var language in Model.Area.Languages) 1159 { 1160 var lang = language.Culture.Split('-')[0]; 1161 var link = ""; 1162 var listClass = language.IsCurrent ? "active" : ""; 1163 var langTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name}".JsEncode(); 1164 var flag = $"<img src=\"/Admin/Public/GetImage.ashx?Image=/Admin/Images/Flags/flag_{language.Culture.Split('-')[1].ToLower()}.png&Crop=0&Format=webP&Height=32&Width=32&Quality=90\" border=\"0\" alt=\"{langTitle}\" />"; 1165 if (language.IsMaster && !language.IsCurrent) 1166 { 1167 if (masterAreaPage != null) 1168 { 1169 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 1170 } 1171 } 1172 else if (language.IsCurrent) 1173 { 1174 link = "javascript:void(0);"; 1175 } 1176 else 1177 { 1178 foreach (var languagePage in languagePages) 1179 { 1180 var languageAreaId = language.ID; 1181 if (languageAreaId == languagePage.AreaId) 1182 { 1183 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 1184 } 1185 } 1186 } 1187 1188 1189 #line default 1190 #line hidden 1191 WriteLiteral(" <a"); 1192 1193 WriteAttribute("class", Tuple.Create(" class=\"", 19254), Tuple.Create("\"", 19351) 1194 , Tuple.Create(Tuple.Create("", 19262), Tuple.Create("mobile-menu__items__footer__item", 19262), true) 1195 , Tuple.Create(Tuple.Create(" ", 19294), Tuple.Create("mobile-menu__items__footer__item--lang", 19295), true) 1196 , Tuple.Create(Tuple.Create(" ", 19333), Tuple.Create("button", 19334), true) 1197 1198 #line 313 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1199 , Tuple.Create(Tuple.Create(" ", 19340), Tuple.Create<System.Object, System.Int32>(listClass 1200 1201 #line default 1202 #line hidden 1203 , 19341), false) 1204 ); 1205 1206 WriteAttribute("title", Tuple.Create(" title=\"", 19352), Tuple.Create("\"", 19370) 1207 1208 #line 313 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1209 , Tuple.Create(Tuple.Create("", 19360), Tuple.Create<System.Object, System.Int32>(langTitle 1210 1211 #line default 1212 #line hidden 1213 , 19360), false) 1214 ); 1215 1216 WriteAttribute("href", Tuple.Create(" href=\"", 19371), Tuple.Create("\"", 19383) 1217 1218 #line 313 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1219 , Tuple.Create(Tuple.Create("", 19378), Tuple.Create<System.Object, System.Int32>(link 1220 1221 #line default 1222 #line hidden 1223 , 19378), false) 1224 ); 1225 1226 WriteLiteral(" target=\"_top\""); 1227 1228 WriteLiteral(">"); 1229 1230 1231 #line 313 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1232 Write(flag); 1233 1234 1235 #line default 1236 #line hidden 1237 WriteLiteral("</a>\r\n"); 1238 1239 1240 #line 314 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1241 } 1242 1243 1244 #line default 1245 #line hidden 1246 WriteLiteral(" "); 1247 1248 1249 #line 315 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1250 if (cartPageId > 0 && cartPartnerProductsPageId > 0) 1251 { 1252 1253 1254 #line default 1255 #line hidden 1256 WriteLiteral(" <a"); 1257 1258 WriteAttribute("href", Tuple.Create(" href=\"", 19557), Tuple.Create("\"", 19651) 1259 1260 #line 317 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1261 , Tuple.Create(Tuple.Create("", 19564), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPartnerProductsPageId) 1262 1263 #line default 1264 #line hidden 1265 , 19564), false) 1266 ); 1267 1268 WriteLiteral(" class=\"cart-pp-link hidden\""); 1269 1270 WriteLiteral("><span"); 1271 1272 WriteLiteral(" class=\"icon icon--cart icon-color--white\""); 1273 1274 WriteLiteral("></span></a>\r\n"); 1275 1276 WriteLiteral(" <a"); 1277 1278 WriteAttribute("href", Tuple.Create(" href=\"", 19768), Tuple.Create("\"", 19847) 1279 1280 #line 318 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1281 , Tuple.Create(Tuple.Create("", 19775), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPageId) 1282 1283 #line default 1284 #line hidden 1285 , 19775), false) 1286 ); 1287 1288 WriteLiteral(" class=\"cart-link hidden\""); 1289 1290 WriteLiteral("><span"); 1291 1292 WriteLiteral(" class=\"icon icon--cart icon-color--white\""); 1293 1294 WriteLiteral("></span></a>\r\n"); 1295 1296 WriteLiteral(" <span"); 1297 1298 WriteLiteral(" class=\"cart-selector hidden\""); 1299 1300 WriteLiteral(" onclick=\"EcomHelper.ShowCartSelectorModal();\""); 1301 1302 WriteLiteral("><span"); 1303 1304 WriteLiteral(" class=\"icon icon--cart icon-color--white\""); 1305 1306 WriteLiteral("></span></span>\r\n"); 1307 1308 1309 #line 320 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1310 } 1311 1312 1313 #line default 1314 #line hidden 1315 WriteLiteral(" </div>\r\n <div"); 1316 1317 WriteLiteral(" class=\"navigation-header__menu__search\""); 1318 1319 WriteLiteral(">\r\n <search-form"); 1320 1321 WriteAttribute("search-url", Tuple.Create(" search-url=\"", 20246), Tuple.Create("\"", 20269) 1322 1323 #line 323 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1324 , Tuple.Create(Tuple.Create("", 20259), Tuple.Create<System.Object, System.Int32>(searchUrl 1325 1326 #line default 1327 #line hidden 1328 , 20259), false) 1329 ); 1330 1331 WriteAttribute("placeholder-text", Tuple.Create(" placeholder-text=\"", 20270), Tuple.Create("\"", 20338) 1332 1333 #line 323 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1334 , Tuple.Create(Tuple.Create("", 20289), Tuple.Create<System.Object, System.Int32>(Translate("searchTwente", "Doorzoek Twente.com") 1335 1336 #line default 1337 #line hidden 1338 , 20289), false) 1339 ); 1340 1341 WriteLiteral("></search-form>\r\n </div>\r\n <mobile-menu"); 1342 1343 WriteAttribute("close-button-text", Tuple.Create(" close-button-text=\"", 20408), Tuple.Create("\"", 20456) 1344 1345 #line 325 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1346 , Tuple.Create(Tuple.Create("", 20428), Tuple.Create<System.Object, System.Int32>(Translate("Close", "Sluit") 1347 1348 #line default 1349 #line hidden 1350 , 20428), false) 1351 ); 1352 1353 WriteLiteral(">\r\n <template v-slot:default>\r\n"); 1354 1355 1356 #line 327 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1357 1358 1359 #line default 1360 #line hidden 1361 1362 #line 327 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1363 foreach (var node in navigationModel.Nodes) 1364 { 1365 1366 1367 #line default 1368 #line hidden 1369 WriteLiteral(" <a"); 1370 1371 WriteAttribute("href", Tuple.Create(" href=\"", 20634), Tuple.Create("\"", 20651) 1372 1373 #line 329 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1374 , Tuple.Create(Tuple.Create("", 20641), Tuple.Create<System.Object, System.Int32>(node.Link 1375 1376 #line default 1377 #line hidden 1378 , 20641), false) 1379 ); 1380 1381 WriteLiteral(" class=\"mobile-menu__items__button button button--white-border\""); 1382 1383 WriteLiteral(">"); 1384 1385 1386 #line 329 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1387 Write(node.Name); 1388 1389 1390 #line default 1391 #line hidden 1392 WriteLiteral("</a>\r\n"); 1393 1394 1395 #line 330 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1396 } 1397 1398 1399 #line default 1400 #line hidden 1401 WriteLiteral(" <search-form"); 1402 1403 WriteAttribute("search-url", Tuple.Create(" search-url=\"", 20795), Tuple.Create("\"", 20818) 1404 1405 #line 331 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1406 , Tuple.Create(Tuple.Create("", 20808), Tuple.Create<System.Object, System.Int32>(searchUrl 1407 1408 #line default 1409 #line hidden 1410 , 20808), false) 1411 ); 1412 1413 WriteAttribute("placeholder-text", Tuple.Create(" placeholder-text=\"", 20819), Tuple.Create("\"", 20887) 1414 1415 #line 331 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1416 , Tuple.Create(Tuple.Create("", 20838), Tuple.Create<System.Object, System.Int32>(Translate("searchTwente", "Doorzoek Twente.com") 1417 1418 #line default 1419 #line hidden 1420 , 20838), false) 1421 ); 1422 1423 WriteLiteral("></search-form>\r\n </template>\r\n <template v" + 1424 "-slot:footer>\r\n"); 1425 1426 1427 #line 334 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1428 1429 1430 #line default 1431 #line hidden 1432 1433 #line 334 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1434 if (topNavigationPages != null && topNavigationPages.Any()) 1435 { 1436 foreach (var topNavigationPage in topNavigationPages) 1437 { 1438 1439 // Preventing us from rendering the login page link when the user is already logged in 1440 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 1441 Equals(topNavigationPage.ID, loginPageId)) 1442 { 1443 continue; 1444 } 1445 1446 // Preventing us from rendering the extranet content when the user is not logged in 1447 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 1448 extranetPageIds.Contains(topNavigationPage.ID)) 1449 { 1450 continue; 1451 } 1452 1453 var topNavigationPageName = topNavigationPage.GetDisplayName(); 1454 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 1455 var topNavigationPageSubPages = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationPage.ID); 1456 1457 1458 #line default 1459 #line hidden 1460 WriteLiteral(" <div"); 1461 1462 WriteLiteral(" class=\"mobile-menu__items__footer__item\""); 1463 1464 WriteLiteral(">\r\n"); 1465 1466 1467 #line 357 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1468 1469 1470 #line default 1471 #line hidden 1472 1473 #line 357 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1474 if (topNavigationPage.Allowclick) 1475 { 1476 1477 1478 #line default 1479 #line hidden 1480 WriteLiteral(" <a"); 1481 1482 WriteAttribute("href", Tuple.Create(" href=\"", 22681), Tuple.Create("\"", 22750) 1483 1484 #line 359 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1485 , Tuple.Create(Tuple.Create("", 22688), Tuple.Create<System.Object, System.Int32>(SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID) 1486 1487 #line default 1488 #line hidden 1489 , 22688), false) 1490 ); 1491 1492 WriteAttribute("title", Tuple.Create("\r\n title=\"", 22751), Tuple.Create("\"", 22826) 1493 1494 #line 360 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1495 , Tuple.Create(Tuple.Create("", 22803), Tuple.Create<System.Object, System.Int32>(topNavigationPageTitle 1496 1497 #line default 1498 #line hidden 1499 , 22803), false) 1500 ); 1501 1502 WriteLiteral(" target=\"_top\""); 1503 1504 WriteLiteral(" class=\"mobile-menu__items__button button button--white-border\""); 1505 1506 WriteLiteral(">\r\n"); 1507 1508 WriteLiteral(" "); 1509 1510 1511 #line 361 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1512 Write(topNavigationPageName); 1513 1514 1515 #line default 1516 #line hidden 1517 WriteLiteral("\r\n </a>\r\n"); 1518 1519 1520 #line 363 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1521 } 1522 else 1523 { 1524 1525 1526 #line default 1527 #line hidden 1528 WriteLiteral(" <div"); 1529 1530 WriteAttribute("title", Tuple.Create(" title=\"", 23185), Tuple.Create("\"", 23216) 1531 1532 #line 366 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1533 , Tuple.Create(Tuple.Create("", 23193), Tuple.Create<System.Object, System.Int32>(topNavigationPageTitle 1534 1535 #line default 1536 #line hidden 1537 , 23193), false) 1538 ); 1539 1540 WriteLiteral(" target=\"_top\""); 1541 1542 WriteLiteral(" class=\"mobile-menu__items__title\""); 1543 1544 WriteLiteral(">\r\n"); 1545 1546 WriteLiteral(" "); 1547 1548 1549 #line 367 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1550 Write(topNavigationPageName); 1551 1552 1553 #line default 1554 #line hidden 1555 WriteLiteral("\r\n </div>\r\n"); 1556 1557 1558 #line 369 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1559 } 1560 1561 1562 #line default 1563 #line hidden 1564 WriteLiteral(" "); 1565 1566 1567 #line 370 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1568 if (topNavigationPageSubPages.Any()) 1569 { 1570 foreach (var subPage in topNavigationPageSubPages) 1571 { 1572 // Preventing us from rendering the extranet content when the user is not logged in 1573 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 1574 extranetPageIds.Contains(subPage.ID)) 1575 { 1576 continue; 1577 } 1578 1579 var topNavigationSubpageName = subPage.GetDisplayName(); 1580 var topNavigationSubpageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationSubpageName}".JsEncode(); 1581 1582 1583 #line default 1584 #line hidden 1585 WriteLiteral(" <a"); 1586 1587 WriteAttribute("href", Tuple.Create(" href=\"", 24477), Tuple.Create("\"", 24536) 1588 1589 #line 383 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1590 , Tuple.Create(Tuple.Create("", 24484), Tuple.Create<System.Object, System.Int32>(SearchEngineFriendlyURLs.GetFriendlyUrl(subPage.ID) 1591 1592 #line default 1593 #line hidden 1594 , 24484), false) 1595 ); 1596 1597 WriteAttribute("title", Tuple.Create("\r\n title=\"", 24537), Tuple.Create("\"", 24620) 1598 1599 #line 384 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1600 , Tuple.Create(Tuple.Create("", 24594), Tuple.Create<System.Object, System.Int32>(topNavigationSubpageTitle 1601 1602 #line default 1603 #line hidden 1604 , 24594), false) 1605 ); 1606 1607 WriteLiteral(" target=\"_top\""); 1608 1609 WriteLiteral(" class=\"mobile-menu__items__button button button--white-border\""); 1610 1611 WriteLiteral(">"); 1612 1613 1614 #line 384 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1615 Write(topNavigationSubpageName); 1616 1617 1618 #line default 1619 #line hidden 1620 WriteLiteral("</a>\r\n"); 1621 1622 1623 #line 385 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1624 } 1625 } 1626 1627 1628 #line default 1629 #line hidden 1630 WriteLiteral(" </div>\r\n"); 1631 1632 1633 #line 388 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1634 } 1635 } 1636 1637 1638 #line default 1639 #line hidden 1640 WriteLiteral("\r\n </template>\r\n </mobile-menu>\r\n </" + 1641 "div>\r\n\r\n <div"); 1642 1643 WriteLiteral(" id=\"select-cart-modal\""); 1644 1645 WriteLiteral(" class=\"modal fade\""); 1646 1647 WriteLiteral(" tabindex=\"-1\""); 1648 1649 WriteLiteral(" role=\"dialog\""); 1650 1651 WriteLiteral(" aria-hidden=\"true\""); 1652 1653 WriteLiteral(">\r\n <div"); 1654 1655 WriteLiteral(" class=\"modal-dialog\""); 1656 1657 WriteLiteral(" role=\"document\""); 1658 1659 WriteLiteral(">\r\n <div"); 1660 1661 WriteLiteral(" class=\"modal-content\""); 1662 1663 WriteLiteral(">\r\n <div"); 1664 1665 WriteLiteral(" class=\"modal-header\""); 1666 1667 WriteLiteral(">\r\n <h2>"); 1668 1669 1670 #line 399 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1671 Write(Translate("CartSelector_Title", "Welke producten wilt u afrekenen?")); 1672 1673 1674 #line default 1675 #line hidden 1676 WriteLiteral("</h2>\r\n </div>\r\n <div"); 1677 1678 WriteLiteral(" class=\"modal-body\""); 1679 1680 WriteLiteral(">\r\n"); 1681 1682 WriteLiteral(" "); 1683 1684 1685 #line 402 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1686 Write(Translate("CartSelector_Text", "Voor onze partner producten en onze webshop producten hebben wij afzonderlijke afhandelingen, daarom vragen wij u deze apart van elkaar af te rekenen.")); 1687 1688 1689 #line default 1690 #line hidden 1691 WriteLiteral("\r\n <a"); 1692 1693 WriteAttribute("href", Tuple.Create(" href=\"", 25703), Tuple.Create("\"", 25797) 1694 1695 #line 403 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1696 , Tuple.Create(Tuple.Create("", 25710), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPartnerProductsPageId) 1697 1698 #line default 1699 #line hidden 1700 , 25710), false) 1701 ); 1702 1703 WriteLiteral(" class=\"text-button twente-red\""); 1704 1705 WriteLiteral(">"); 1706 1707 1708 #line 403 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1709 Write(Translate("CartSelector_PartnerProductsLinkText", "Partner producten afrekenen")); 1710 1711 1712 #line default 1713 #line hidden 1714 WriteLiteral("<div"); 1715 1716 WriteLiteral(" class=\"icon--arrow-right\""); 1717 1718 WriteLiteral("></div></a>\r\n <a"); 1719 1720 WriteAttribute("href", Tuple.Create(" href=\"", 25984), Tuple.Create("\"", 26063) 1721 1722 #line 404 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1723 , Tuple.Create(Tuple.Create("", 25991), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPageId) 1724 1725 #line default 1726 #line hidden 1727 , 25991), false) 1728 ); 1729 1730 WriteLiteral(" class=\"text-button twente-red\""); 1731 1732 WriteLiteral(">"); 1733 1734 1735 #line 404 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1736 Write(Translate("CartSelector_WebshopProductsLinkText", "Webshop producten afrekenen")); 1737 1738 1739 #line default 1740 #line hidden 1741 WriteLiteral("<div"); 1742 1743 WriteLiteral(" class=\"icon--arrow-right\""); 1744 1745 WriteLiteral("></div></a>\r\n </div>\r\n </div>\r\n " + 1746 " </div>\r\n </div>\r\n </div>\r\n <hr />\r\n </header" + 1747 ">\r\n"); 1748 1749 1750 #line 412 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1751 1752 1753 #line default 1754 #line hidden 1755 WriteLiteral("\r\n\r\n "); 1756 1757 WriteLiteral("\r\n"); 1758 1759 1760 #line 415 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1761 } 1762 1763 1764 #line default 1765 #line hidden 1766 WriteLiteral(" <main>\r\n"); 1767 1768 1769 #line 417 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1770 1771 1772 #line default 1773 #line hidden 1774 1775 #line 422 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1776 1777 var pService = new Dynamicweb.Content.PageService(); 1778 var iService = new Dynamicweb.Content.ItemService(); 1779 var pageView = Dynamicweb.Frontend.PageView.Current(); 1780 var culture = pageView.GlobalTags.GetTagByName("Global:Area.LongLang").Value; 1781 var itemPageId = pageView.ID; 1782 var sidebar = SidebarHelper.GetSidebarPage(pageView, StringConstants.NavigationTags.BaseArticleSidebar, pService); 1783 1784 var item = ItemHelper.GetTwenteBrandingItemForPage(Model.ItemId, itemPageId.ToString(), culture, pService, iService); 1785 if (item != null) 1786 { 1787 var hashtag = item.MainHashtag.IsNotNullOrEmpty() ? string.Format("{0}", item.MainHashtag) : string.Format("{0}", item.MainHashtagEnglish); 1788 var goalName = item.GoalName; 1789 var background = goalName.FixNameForClass(); 1790 var goalIcon = item.GoalIcon; 1791 var goalUrl = item.GoalUrl; 1792 var goalIconHeader = item.GoalIconHeader; 1793 var goalType = item.GoalType; 1794 var gradientCss = item.GoalGradientCss; 1795 var video = item.Video; 1796 var title = item.Title; 1797 var introduction = Model.Item.GetString("Text"); 1798 var headerImage = ""; 1799 var headerImageMobile = ""; 1800 var headerImagePath = ""; 1801 var headerImageMobilePath = ""; 1802 1803 if (Model.Item.Fields.Where(x => x.SystemName.Contains("Image")).Count() > 0) 1804 { 1805 headerImagePath = Model.Item.GetFile("ImageLarge")?.Path; 1806 headerImageMobilePath = Model.Item.GetFile("Image")?.Path; 1807 1808 if (string.IsNullOrWhiteSpace(headerImagePath)) 1809 { 1810 headerImagePath = Model.Item.GetFile("ImageWide")?.Path; 1811 if (string.IsNullOrWhiteSpace(headerImagePath)) 1812 { 1813 headerImagePath = Model.Item.GetFile("Image")?.Path; 1814 } 1815 } 1816 1817 headerImage = $"/Admin/Public/GetImage.ashx?Image={headerImagePath}&Format=webp&Width=700&Height=-1&Quality=100&Crop=0&t=2"; 1818 headerImageMobile = $"/Admin/Public/GetImage.ashx?Image={headerImageMobilePath}&Format=webp&Width=300&Height=-1&Quality=100&Crop=0&t=2"; 1819 } 1820 1821 1822 1823 #line default 1824 #line hidden 1825 1826 #line 467 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1827 Write(SnippetStart("ImageOrVideo")); 1828 1829 1830 #line default 1831 #line hidden 1832 1833 #line 467 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1834 1835 if (string.IsNullOrWhiteSpace(video)) 1836 { 1837 if (!string.IsNullOrWhiteSpace(headerImageMobilePath)) 1838 { 1839 // navigation SM 1840 1841 1842 #line default 1843 #line hidden 1844 WriteLiteral(" <div"); 1845 1846 WriteLiteral(" class=\"header-image lazy d-block d-md-none\""); 1847 1848 WriteLiteral(" data-src=\""); 1849 1850 1851 #line 473 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1852 Write(headerImageMobile); 1853 1854 1855 #line default 1856 #line hidden 1857 WriteLiteral("\""); 1858 1859 WriteLiteral(">\r\n <h4"); 1860 1861 WriteLiteral(" class=\"item-hashtag\""); 1862 1863 WriteLiteral(">"); 1864 1865 1866 #line 474 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1867 Write(hashtag); 1868 1869 1870 #line default 1871 #line hidden 1872 WriteLiteral("</h4>\r\n"); 1873 1874 WriteLiteral(" "); 1875 1876 1877 #line 475 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1878 Write(TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl)); 1879 1880 1881 #line default 1882 #line hidden 1883 WriteLiteral("\r\n <div"); 1884 1885 WriteAttribute("class", Tuple.Create(" class=\"", 29342), Tuple.Create("\"", 29362) 1886 1887 #line 476 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1888 , Tuple.Create(Tuple.Create("", 29350), Tuple.Create<System.Object, System.Int32>(gradientCss 1889 1890 #line default 1891 #line hidden 1892 , 29350), false) 1893 ); 1894 1895 WriteLiteral("></div>\r\n </div>\r\n"); 1896 1897 1898 #line 478 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1899 } 1900 if (!string.IsNullOrWhiteSpace(headerImagePath)) 1901 { 1902 // navigation MD+ 1903 1904 1905 #line default 1906 #line hidden 1907 WriteLiteral(" <div"); 1908 1909 WriteLiteral(" class=\"header-image lazy d-none d-md-block\""); 1910 1911 WriteLiteral(" data-src=\""); 1912 1913 1914 #line 482 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1915 Write(headerImage); 1916 1917 1918 #line default 1919 #line hidden 1920 WriteLiteral("\""); 1921 1922 WriteLiteral(">\r\n <h4"); 1923 1924 WriteLiteral(" class=\"item-hashtag\""); 1925 1926 WriteLiteral(">"); 1927 1928 1929 #line 483 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1930 Write(hashtag); 1931 1932 1933 #line default 1934 #line hidden 1935 WriteLiteral("</h4>\r\n"); 1936 1937 WriteLiteral(" "); 1938 1939 1940 #line 484 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1941 Write(TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl)); 1942 1943 1944 #line default 1945 #line hidden 1946 WriteLiteral("\r\n <div"); 1947 1948 WriteAttribute("class", Tuple.Create(" class=\"", 29820), Tuple.Create("\"", 29840) 1949 1950 #line 485 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1951 , Tuple.Create(Tuple.Create("", 29828), Tuple.Create<System.Object, System.Int32>(gradientCss 1952 1953 #line default 1954 #line hidden 1955 , 29828), false) 1956 ); 1957 1958 WriteLiteral("></div>\r\n </div>\r\n"); 1959 1960 1961 #line 487 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1962 } 1963 } 1964 else 1965 { 1966 1967 1968 #line default 1969 #line hidden 1970 WriteLiteral(" <div"); 1971 1972 WriteLiteral(" class=\"header-video\""); 1973 1974 WriteLiteral(">\r\n <iframe"); 1975 1976 WriteAttribute("src", Tuple.Create(" src=\"", 29992), Tuple.Create("\"", 30004) 1977 1978 #line 492 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1979 , Tuple.Create(Tuple.Create("", 29998), Tuple.Create<System.Object, System.Int32>(video 1980 1981 #line default 1982 #line hidden 1983 , 29998), false) 1984 ); 1985 1986 WriteLiteral("></iframe>\r\n </div>\r\n"); 1987 1988 1989 #line 494 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1990 } 1991 1992 1993 #line default 1994 #line hidden 1995 1996 #line 495 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 1997 Write(SnippetEnd("ImageOrVideo")); 1998 1999 2000 #line default 2001 #line hidden 2002 2003 #line 495 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2004 2005 2006 2007 2008 #line default 2009 #line hidden 2010 WriteLiteral(" <div"); 2011 2012 WriteLiteral(" class=\"main-container\""); 2013 2014 WriteLiteral(">\r\n\r\n <div"); 2015 2016 WriteLiteral(" class=\"top d-block d-md-none\""); 2017 2018 WriteLiteral(">\r\n"); 2019 2020 WriteLiteral(" "); 2021 2022 2023 #line 500 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2024 Write(RenderSnippet("ImageOrVideo")); 2025 2026 2027 #line default 2028 #line hidden 2029 WriteLiteral("\r\n </div>\r\n\r\n <div"); 2030 2031 WriteAttribute("class", Tuple.Create(" class=\"", 30262), Tuple.Create("\"", 30318) 2032 , Tuple.Create(Tuple.Create("", 30270), Tuple.Create("page-title", 30270), true) 2033 , Tuple.Create(Tuple.Create(" ", 30280), Tuple.Create("article-title", 30281), true) 2034 , Tuple.Create(Tuple.Create(" ", 30294), Tuple.Create("background--", 30295), true) 2035 2036 #line 503 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2037 , Tuple.Create(Tuple.Create("", 30307), Tuple.Create<System.Object, System.Int32>(background 2038 2039 #line default 2040 #line hidden 2041 , 30307), false) 2042 ); 2043 2044 WriteLiteral(">\r\n <div"); 2045 2046 WriteLiteral(" class=\"container\""); 2047 2048 WriteLiteral(">\r\n <div"); 2049 2050 WriteLiteral(" class=\"grid header-grid \""); 2051 2052 WriteLiteral(">\r\n <div"); 2053 2054 WriteLiteral(" class=\"title\""); 2055 2056 WriteLiteral(">\r\n <h1"); 2057 2058 WriteLiteral(" class=\"font-color--white\""); 2059 2060 WriteLiteral(">"); 2061 2062 2063 #line 507 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2064 Write(title); 2065 2066 2067 #line default 2068 #line hidden 2069 WriteLiteral("</h1>\r\n"); 2070 2071 2072 #line 508 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2073 2074 2075 #line default 2076 #line hidden 2077 2078 #line 508 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2079 if (!string.IsNullOrWhiteSpace(introduction)) 2080 { 2081 2082 2083 #line default 2084 #line hidden 2085 WriteLiteral(" <div"); 2086 2087 WriteLiteral(" class=\"sub-header font-color--white\""); 2088 2089 WriteLiteral(">"); 2090 2091 2092 #line 510 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2093 Write(introduction); 2094 2095 2096 #line default 2097 #line hidden 2098 WriteLiteral("</div>\r\n"); 2099 2100 2101 #line 511 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2102 } 2103 2104 2105 #line default 2106 #line hidden 2107 WriteLiteral(" <div"); 2108 2109 WriteLiteral(" class=\"read-full-article font-color--white\""); 2110 2111 WriteLiteral(">"); 2112 2113 2114 #line 512 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2115 Write(Translate("BaseArticle_Read_Entire_Article", "Lees hieronder het hele artikel")); 2116 2117 2118 #line default 2119 #line hidden 2120 WriteLiteral("<div"); 2121 2122 WriteLiteral(" class=\"icon--arrow-down\""); 2123 2124 WriteLiteral(">&nbsp;</div></div>\r\n\r\n </div>\r\n <d" + 2125 "iv"); 2126 2127 WriteLiteral(" class=\"image\""); 2128 2129 WriteLiteral("><img"); 2130 2131 WriteLiteral(" alt=\"global goal icon\""); 2132 2133 WriteLiteral(" class=\"lazy\""); 2134 2135 WriteLiteral(" data-src=\""); 2136 2137 2138 #line 515 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2139 Write(goalIconHeader); 2140 2141 2142 #line default 2143 #line hidden 2144 WriteLiteral("\""); 2145 2146 WriteLiteral(" /></div>\r\n </div>\r\n\r\n </div>\r\n </di" + 2147 "v>\r\n <div"); 2148 2149 WriteLiteral(" class=\"page-content container\""); 2150 2151 WriteLiteral(">\r\n <div"); 2152 2153 WriteLiteral(" class=\"grid detail-grid-container\""); 2154 2155 WriteLiteral(">\r\n\r\n"); 2156 2157 2158 #line 523 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2159 2160 2161 #line default 2162 #line hidden 2163 2164 #line 523 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2165 if (Model.Placeholder("Content").Any()) 2166 { 2167 2168 2169 #line default 2170 #line hidden 2171 WriteLiteral(" <div"); 2172 2173 WriteLiteral(" class=\"content\""); 2174 2175 WriteLiteral(">\r\n <div"); 2176 2177 WriteLiteral(" class=\"top d-none d-md-block\""); 2178 2179 WriteLiteral(">\r\n"); 2180 2181 WriteLiteral(" "); 2182 2183 2184 #line 527 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2185 Write(RenderSnippet("ImageOrVideo")); 2186 2187 2188 #line default 2189 #line hidden 2190 WriteLiteral("\r\n </div>\r\n"); 2191 2192 WriteLiteral(" "); 2193 2194 2195 #line 529 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2196 Write(Model.Placeholder("Content")); 2197 2198 2199 #line default 2200 #line hidden 2201 WriteLiteral("\r\n </div>\r\n"); 2202 2203 2204 #line 531 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2205 } 2206 else 2207 { 2208 2209 2210 #line default 2211 #line hidden 2212 WriteLiteral(" <!-- PL: Wouter, een video wordt dus niet getoond als er " + 2213 "geen paragrafen zijn gekoppeld? -->\r\n"); 2214 2215 WriteLiteral(" <div"); 2216 2217 WriteLiteral(" class=\"content\""); 2218 2219 WriteLiteral("></div>\r\n"); 2220 2221 2222 #line 536 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2223 } 2224 2225 2226 #line default 2227 #line hidden 2228 WriteLiteral("\r\n"); 2229 2230 2231 #line 538 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2232 2233 2234 #line default 2235 #line hidden 2236 2237 #line 538 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2238 2239 if (sidebar != null) 2240 { 2241 2242 2243 #line default 2244 #line hidden 2245 WriteLiteral(" <div"); 2246 2247 WriteLiteral(" class=\"sidebar\""); 2248 2249 WriteLiteral(">\r\n"); 2250 2251 WriteLiteral(" "); 2252 2253 2254 #line 542 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2255 Write(RenderPageContent(sidebar.ID)); 2256 2257 2258 #line default 2259 #line hidden 2260 WriteLiteral("\r\n </div>\r\n"); 2261 2262 2263 #line 544 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2264 } 2265 2266 2267 #line default 2268 #line hidden 2269 WriteLiteral("\r\n\r\n"); 2270 2271 2272 #line 547 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2273 2274 2275 #line default 2276 #line hidden 2277 2278 #line 547 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2279 if (Model.Placeholder("Bottom").Any()) 2280 { 2281 2282 2283 #line default 2284 #line hidden 2285 WriteLiteral(" <div"); 2286 2287 WriteLiteral(" class=\"bottom\""); 2288 2289 WriteLiteral(">\r\n"); 2290 2291 WriteLiteral(" "); 2292 2293 2294 #line 550 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2295 Write(Model.Placeholder("Bottom")); 2296 2297 2298 #line default 2299 #line hidden 2300 WriteLiteral("\r\n </div>\r\n"); 2301 2302 2303 #line 552 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2304 } 2305 2306 2307 #line default 2308 #line hidden 2309 WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n"); 2310 2311 2312 #line 557 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2313 } 2314 else 2315 { 2316 2317 2318 #line default 2319 #line hidden 2320 WriteLiteral(" <div>No-Item</div>\r\n"); 2321 2322 2323 #line 561 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2324 } 2325 2326 2327 #line default 2328 #line hidden 2329 WriteLiteral("\r\n </main>\r\n"); 2330 2331 2332 #line 564 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2333 2334 2335 #line default 2336 #line hidden 2337 2338 #line 566 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2339 2340 var homepageLinkTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {Translate("Homelink_Title", "De homepage")}"; 2341 2342 2343 #line default 2344 #line hidden 2345 WriteLiteral("\r\n<footer"); 2346 2347 WriteLiteral(" class=\"background--black flex flex-align-center\""); 2348 2349 WriteLiteral(">\r\n <div"); 2350 2351 WriteLiteral(" class=\"container\""); 2352 2353 WriteLiteral(">\r\n"); 2354 2355 2356 #line 571 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2357 2358 2359 #line default 2360 #line hidden 2361 2362 #line 574 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2363 if (Model.Area.Item != null) 2364 { 2365 2366 2367 #line default 2368 #line hidden 2369 WriteLiteral(" <div"); 2370 2371 WriteLiteral(" class=\'social-media-icons flex\'"); 2372 2373 WriteLiteral(">\r\n"); 2374 2375 2376 #line 577 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2377 2378 2379 #line default 2380 #line hidden 2381 2382 #line 577 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2383 foreach (var field in Model.Area.Item.Fields.Where(f => f.SystemName.StartsWith("Sm_"))) 2384 { 2385 if (!string.IsNullOrEmpty(field.GetString())) 2386 { 2387 2388 2389 #line default 2390 #line hidden 2391 WriteLiteral(" <a"); 2392 2393 WriteLiteral(" class=\'mr-05\'"); 2394 2395 WriteLiteral(" rel=\"noopener\""); 2396 2397 WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 33459), Tuple.Create("\"", 33494) 2398 2399 #line 581 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2400 , Tuple.Create(Tuple.Create("", 33472), Tuple.Create<System.Object, System.Int32>(field.Name.JsEncode() 2401 2402 #line default 2403 #line hidden 2404 , 33472), false) 2405 ); 2406 2407 WriteAttribute("href", Tuple.Create(" href=\"", 33495), Tuple.Create("\"", 33520) 2408 2409 #line 581 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2410 , Tuple.Create(Tuple.Create("", 33502), Tuple.Create<System.Object, System.Int32>(field.GetString() 2411 2412 #line default 2413 #line hidden 2414 , 33502), false) 2415 ); 2416 2417 WriteAttribute("title", Tuple.Create(" title=\"", 33521), Tuple.Create("\"", 33551) 2418 2419 #line 581 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2420 , Tuple.Create(Tuple.Create("", 33529), Tuple.Create<System.Object, System.Int32>(field.Name.JsEncode() 2421 2422 #line default 2423 #line hidden 2424 , 33529), false) 2425 ); 2426 2427 WriteLiteral(" target=\"_blank\""); 2428 2429 WriteLiteral(">\r\n <div"); 2430 2431 WriteAttribute("class", Tuple.Create(" class=\"", 33593), Tuple.Create("\"", 33648) 2432 , Tuple.Create(Tuple.Create("", 33601), Tuple.Create("icon--", 33601), true) 2433 2434 #line 582 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2435 , Tuple.Create(Tuple.Create("", 33607), Tuple.Create<System.Object, System.Int32>(field.SystemName.ToLower() 2436 2437 #line default 2438 #line hidden 2439 , 33607), false) 2440 , Tuple.Create(Tuple.Create(" ", 33634), Tuple.Create("icon-size--x2", 33635), true) 2441 ); 2442 2443 WriteLiteral("></div>\r\n </a>\r\n"); 2444 2445 2446 #line 584 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2447 } 2448 } 2449 2450 2451 #line default 2452 #line hidden 2453 WriteLiteral(" </div>\r\n"); 2454 2455 2456 #line 587 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2457 } 2458 2459 2460 #line default 2461 #line hidden 2462 WriteLiteral("\r\n <div"); 2463 2464 WriteLiteral(" class=\"footer-link-container\""); 2465 2466 WriteLiteral(">\r\n"); 2467 2468 2469 #line 590 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2470 2471 2472 #line default 2473 #line hidden 2474 2475 #line 590 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2476 2477 var footerNavigationFolderId = GetPageIdByNavigationTag(TwenteBranding.Models.Constants.StringConstants.NavigationTags.FooterNavigation); 2478 if (footerNavigationFolderId > 0) 2479 { 2480 var footerNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(footerNavigationFolderId); 2481 if (footerNavigationPageList != null && footerNavigationPageList.Any()) 2482 { 2483 var footerNavigationPages = footerNavigationPageList.Where(page => page.Active).ToList(); 2484 if (footerNavigationPages.Any()) 2485 { 2486 var footerLinkCounter = 1; 2487 foreach (var footerNavigationPage in footerNavigationPages) 2488 { 2489 var footerNavigationPageName = footerNavigationPage.GetDisplayName(); 2490 var footerNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {footerNavigationPageName}".JsEncode(); 2491 var footerNavigationPageLink = $"/Default.aspx?ID={footerNavigationPage.ID}"; 2492 2493 // place last link and copyright together to prevent wrapping on phone 2494 if (footerNavigationPages.Count() == footerLinkCounter) 2495 { 2496 var copyRight = string.Format(Translate("Footer_CopyRight", "&copy; {0} Twente Branding"), DateTime.Now.Year); 2497 2498 2499 2500 #line default 2501 #line hidden 2502 WriteLiteral(" <div"); 2503 2504 WriteLiteral(" class=\'wrapper\'"); 2505 2506 WriteLiteral(">\r\n <a"); 2507 2508 WriteAttribute("href", Tuple.Create(" href=\"", 35474), Tuple.Create("\"", 35506) 2509 2510 #line 613 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2511 , Tuple.Create(Tuple.Create("", 35481), Tuple.Create<System.Object, System.Int32>(footerNavigationPageLink 2512 2513 #line default 2514 #line hidden 2515 , 35481), false) 2516 ); 2517 2518 WriteAttribute("title", Tuple.Create(" title=\"", 35507), Tuple.Create("\"", 35541) 2519 2520 #line 613 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2521 , Tuple.Create(Tuple.Create("", 35515), Tuple.Create<System.Object, System.Int32>(footerNavigationPageTitle 2522 2523 #line default 2524 #line hidden 2525 , 35515), false) 2526 ); 2527 2528 WriteLiteral(">"); 2529 2530 2531 #line 613 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2532 Write(footerNavigationPageName); 2533 2534 2535 #line default 2536 #line hidden 2537 WriteLiteral("</a>\r\n <span>"); 2538 2539 2540 #line 614 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2541 Write(copyRight); 2542 2543 2544 #line default 2545 #line hidden 2546 WriteLiteral("</span>\r\n </div>\r\n"); 2547 2548 2549 #line 616 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2550 } 2551 else 2552 { 2553 2554 2555 #line default 2556 #line hidden 2557 WriteLiteral(" <a"); 2558 2559 WriteAttribute("href", Tuple.Create(" href=\"", 35829), Tuple.Create("\"", 35861) 2560 2561 #line 619 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2562 , Tuple.Create(Tuple.Create("", 35836), Tuple.Create<System.Object, System.Int32>(footerNavigationPageLink 2563 2564 #line default 2565 #line hidden 2566 , 35836), false) 2567 ); 2568 2569 WriteAttribute("title", Tuple.Create(" title=\"", 35862), Tuple.Create("\"", 35896) 2570 2571 #line 619 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2572 , Tuple.Create(Tuple.Create("", 35870), Tuple.Create<System.Object, System.Int32>(footerNavigationPageTitle 2573 2574 #line default 2575 #line hidden 2576 , 35870), false) 2577 ); 2578 2579 WriteLiteral(">"); 2580 2581 2582 #line 619 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2583 Write(footerNavigationPageName); 2584 2585 2586 #line default 2587 #line hidden 2588 WriteLiteral("</a>\r\n"); 2589 2590 2591 #line 620 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2592 } 2593 footerLinkCounter++; 2594 } 2595 } 2596 } 2597 } 2598 2599 2600 #line default 2601 #line hidden 2602 WriteLiteral("\r\n </div>\r\n </div>\r\n <a"); 2603 2604 WriteLiteral(" class=\'twente-logo\'"); 2605 2606 WriteAttribute("href", Tuple.Create(" href=\"", 36187), Tuple.Create("\"", 36206) 2607 2608 #line 629 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2609 , Tuple.Create(Tuple.Create("", 36194), Tuple.Create<System.Object, System.Int32>(homepageUrl 2610 2611 #line default 2612 #line hidden 2613 , 36194), false) 2614 ); 2615 2616 WriteAttribute("title", Tuple.Create(" title=\"", 36207), Tuple.Create("\"", 36233) 2617 2618 #line 629 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2619 , Tuple.Create(Tuple.Create("", 36215), Tuple.Create<System.Object, System.Int32>(homepageLinkTitle 2620 2621 #line default 2622 #line hidden 2623 , 36215), false) 2624 ); 2625 2626 WriteLiteral(">\r\n <img"); 2627 2628 WriteAttribute("src", Tuple.Create(" src=\"", 36249), Tuple.Create("\"", 36296) 2629 2630 #line 630 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2631 , Tuple.Create(Tuple.Create("", 36255), Tuple.Create<System.Object, System.Int32>(IconHelper.GetSvgPath("twente", "logo/") 2632 2633 #line default 2634 #line hidden 2635 , 36255), false) 2636 ); 2637 2638 WriteLiteral(" />\r\n </a>\r\n</footer>\r\n\r\n </div>\r\n <aside>\r\n"); 2639 2640 2641 #line 636 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2642 2643 2644 #line default 2645 #line hidden 2646 WriteLiteral("\r\n"); 2647 2648 2649 #line 641 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2650 2651 var newsletterSubscriptionModalPageId = GetPageIdByNavigationTag("NewsletterSubscriptionModal"); 2652 var jobAlertSubscriptionModalPageId = GetPageIdByNavigationTag("JobAlertSubscriptionModal"); 2653 var jobOffersPageId = GetPageIdByNavigationTag("JobOffers"); 2654 var jobOfferParentPageId = Dynamicweb.Frontend.PageView.Current().Page.ParentPageId; 2655 var utmCampaign = Dynamicweb.Context.Current.Request.QueryString.Get("utm_campaign"); 2656 var mainHashtagModal = ""; 2657 2658 // Specific pages which must not show a subscription modal (jobalert/newsletter) 2659 var twenteLeeftPageId = GetPageIdByNavigationTag("MOT_TwenteLeeft"); 2660 var jobAlertSubscription = GetPageIdByNavigationTag("JobAlertSubscription"); 2661 var pageIdsWithoutModal = new List<int> { twenteLeeftPageId, jobAlertSubscription }; 2662 2663 // Get the item for the current page 2664 TwenteBrandingItemModel pItem = null; 2665 if (Model.ItemId != "1") //Item with ID 1 gives error 2666 { 2667 pItem = ItemHelper.GetTwenteBrandingItemForPage( 2668 Model.ItemId, 2669 Dynamicweb.Frontend.PageView.Current().ID.ToString(), 2670 Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Area.LongLang").Value 2671 ); 2672 } 2673 2674 if (pItem != null) 2675 { 2676 // Get main hashtag of the current page item 2677 var mainHashtagId = pItem.MainHashtagIds.FirstOrDefault(); 2678 if (!string.IsNullOrEmpty(mainHashtagId)) 2679 { 2680 var hashtagItem = Dynamicweb.Content.Items.Item.GetItemById(TwenteBranding.Models.Constants.StringConstants.ItemInstanceType.Hashtag, mainHashtagId); 2681 mainHashtagModal = $"{ItemHelper.GetItemValue<string>(hashtagItem, TwenteBranding.Models.Constants.StringConstants.CustomItemTypes.BaseArticle.Title)}"; 2682 } 2683 } 2684 2685 // Dont show a modal on the following pages 2686 if (pageIdsWithoutModal.Contains(Model.ID) || mainHashtagModal == "talent") 2687 { 2688 //do noting 2689 } 2690 else 2691 { 2692 // Show modal with link to vacancysubscription page on vacancy page and pages with #talent hashtag 2693 if ((Model.ID == jobOffersPageId || jobOfferParentPageId == jobOffersPageId) 2694 && jobAlertSubscriptionModalPageId > 0) 2695 { 2696 2697 2698 #line default 2699 #line hidden 2700 2701 #line 687 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2702 Write(RenderPageContent(jobAlertSubscriptionModalPageId)); 2703 2704 2705 #line default 2706 #line hidden 2707 2708 #line 687 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2709 2710 } 2711 // If the jobalert modal pageId has a value and utmCampaing matches the specified value 2712 else if (jobAlertSubscriptionModalPageId > 0 && utmCampaign == "Remarketing vacaturebank") 2713 { 2714 2715 2716 #line default 2717 #line hidden 2718 2719 #line 692 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2720 Write(RenderPageContent(jobAlertSubscriptionModalPageId)); 2721 2722 2723 #line default 2724 #line hidden 2725 2726 #line 692 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2727 2728 } 2729 // Else if the newsletter pageId has a value, show the newsletter subscription modal 2730 else if (newsletterSubscriptionModalPageId > 0) 2731 { 2732 2733 2734 #line default 2735 #line hidden 2736 2737 #line 697 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2738 Write(RenderPageContent(newsletterSubscriptionModalPageId)); 2739 2740 2741 #line default 2742 #line hidden 2743 2744 #line 697 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2745 2746 } 2747 } 2748 2749 2750 2751 #line default 2752 #line hidden 2753 WriteLiteral("\r\n </aside>\r\n <script"); 2754 2755 WriteAttribute("src", Tuple.Create(" src=\"", 39463), Tuple.Create("\"", 39478) 2756 2757 #line 703 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2758 , Tuple.Create(Tuple.Create("", 39469), Tuple.Create<System.Object, System.Int32>(customJs 2759 2760 #line default 2761 #line hidden 2762 , 39469), false) 2763 ); 2764 2765 WriteLiteral("></script>\r\n <script"); 2766 2767 WriteAttribute("src", Tuple.Create(" src=\"", 39506), Tuple.Create("\"", 39518) 2768 2769 #line 704 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2770 , Tuple.Create(Tuple.Create("", 39512), Tuple.Create<System.Object, System.Int32>(appJs 2771 2772 #line default 2773 #line hidden 2774 , 39512), false) 2775 ); 2776 2777 WriteLiteral("></script>\r\n"); 2778 2779 WriteLiteral(" "); 2780 2781 2782 #line 705 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2783 Write(RenderSnippet("JavascriptBottom")); 2784 2785 2786 #line default 2787 #line hidden 2788 WriteLiteral("\r\n </body>\r\n </html>\r\n"); 2789 2790 2791 #line 708 "D:\inetpub\wwwroot\www.twente.com\Files\Templates\Designs\TwenteBranding\_parsed\BaseArticle.parsed.cshtml" 2792 2793 2794 #line default 2795 #line hidden 2796 } 2797 } 2798 } 2799

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 var appJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.js"); 19 var appCss = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/main.css"); 20 var customJs = FileHelper.GetFilenameWithTimeStamp("/Files/static/twentebranding/custom.js"); 21 var showMainNavigation = true; // default show main navigation 22 if (Equals(Model.ItemType, nameof(CampaignPage)) && !Model.Item.GetBoolean("ShowMainMenu")) { showMainNavigation = false; } // campaign page items have option to show main navigation, where the default is hide 23 if (Equals(Model.ItemType, nameof(MiniWebsitePage)) && Model.Item.GetBoolean("HideMainMenu")) { showMainNavigation = false; } // mini website page items have option to hide main navigation, where the default is show 24 <html lang="@contentLanguage"> 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 @* Print alternate links and content-language meta tags *@ 91 @LanguageHelper.GetMasterLanguageTags(Model.ID) 92 @{ var gtmBodyCode = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Analytics.GoogleTagManagerTrackingCode); 93 if (!string.IsNullOrWhiteSpace(gtmBodyCode)) 94 { 95 var gtmUrl = string.Format("https://www.googletagmanager.com/ns.html?id={0}", gtmBodyCode); 96 <noscript> 97 <iframe src="@gtmUrl" height="0" width="0" style="display:none;visibility:hidden"></iframe> 98 </noscript> 99 } 100 } 101 @{ 102 var hotjarKey = TwenteBranding.Repository.Helpers.AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.Hotjar.Key); 103 if (!string.IsNullOrWhiteSpace(hotjarKey)) 104 { 105 <!-- Hotjar Tracking Code --> 106 <script> 107 (function(h,o,t,j,a,r){ 108 h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; 109 h._hjSettings={hjid:@hotjarKey,hjsv:6}; 110 a=o.getElementsByTagName('head')[0]; 111 r=o.createElement('script');r.async=1; 112 r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; 113 a.appendChild(r); 114 })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); 115 </script> 116 } 117 } 118 <script> 119 window.STORE_DATA = { 120 googleMapsApiToken: "@AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.GoogleMaps.GoogleMapsApiToken)" 121 } 122 </script> 123 </head> 124 <body> 125 <div id='app'> 126 @if (showMainNavigation) 127 { 128 <text> 129 @using Dynamicweb.Frontend; 130 @using Dynamicweb.Frontend.Navigation; 131 @using Dynamicweb.Security.Permissions; 132 @using TwenteBranding.Repository.Helpers; 133 @using Dynamicweb.Security.UserManagement; 134 135 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 136 @{ 137 List<Dynamicweb.Content.Page> topNavigationPages = null; 138 var areaId = Dynamicweb.Frontend.PageView.Current().AreaID; 139 var topNavigationFolderId = GetPageIdByNavigationTag("TopNavigation"); 140 var searchResultsPageId = AreaHelper.GetAreaItemStringValueBySystemName(TwenteBranding.Models.Constants.StringConstants.WebsiteSettings.PageIds.SearchResults); 141 var searchUrl = $"/Default.aspx?ID={searchResultsPageId}"; 142 var languagePages = Dynamicweb.Services.Pages.GetLanguagePages(Model.ID); 143 var navigationModel = Navigation.GetNavigationViewModel(new NavigationSettings { StartLevel = 1, StopLevel = 1, ExpandMode = ExpandMode.All }); 144 var masterAreaPage = Dynamicweb.Services.Pages.GetPagesByAreaID(1).SingleOrDefault(page => page.GetLanguageVersion(Model.Area.ID) != null && page.GetLanguageVersion(Model.Area.ID).ID.Equals(Model.ID)); 145 var loginPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.LoginPage)?.ID ?? 0; 146 var logoffPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.LogoffPage)?.ID ?? 0; 147 var myTwentePageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.MyTwentePage)?.ID ?? 0; 148 var profilePageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.CompanyProfile)?.ID ?? 0; 149 var cartPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.Cart)?.ID ?? 0; 150 var cartPartnerProductsPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.CartPartnerProducts)?.ID ?? 0; 151 var matchmakerPageId = Dynamicweb.Services.Pages.GetPageByNavigationTag(areaId, TwenteBranding.Models.Constants.StringConstants.NavigationTags.TwentseMatchMakerPage)?.ID ?? 0; 152 153 if (topNavigationFolderId > 0) 154 { 155 var topNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationFolderId); 156 if (topNavigationPageList != null && topNavigationPageList.Any()) 157 { 158 topNavigationPages = topNavigationPageList.Where(p => p.Active).ToList(); 159 } 160 } 161 162 var extranetPageIds = new List<int>(); 163 extranetPageIds.Add(logoffPageId); 164 extranetPageIds.Add(matchmakerPageId); 165 166 <header class="navigation-header"> 167 <div class="navigation-header__container container"> 168 169 <div class="navigation-header__top-bar"> 170 @if (topNavigationPages != null && topNavigationPages.Any()) 171 { 172 foreach (var topNavigationPage in topNavigationPages) 173 { 174 // NOTE: For login-, logoff- and profilepage permissions have been configured in the CMS. But sometimes the links appear when they should not. 175 // Therefore some lame continues have been added to force them not to render when they shouldn't 176 177 // Preventing us from rendering the login page link when the user is already logged in 178 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 179 Equals(topNavigationPage.ID, loginPageId)) 180 { 181 continue; 182 } 183 184 // Preventing us from rendering the extranet content when the user is not logged in 185 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 186 extranetPageIds.Contains(topNavigationPage.ID)) 187 { 188 continue; 189 } 190 191 var topNavigationPageName = topNavigationPage.GetDisplayName(); 192 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 193 var subPages = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationPage.ID); 194 <div class="navigation-header__top-bar__item"> 195 @if (topNavigationPage.Allowclick) 196 { 197 <a href="@SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID)" 198 title="@topNavigationPageTitle" target="_top"> 199 @topNavigationPageName 200 </a> 201 } 202 else 203 { 204 <span title="@topNavigationPageTitle" target="_top"> 205 @topNavigationPageName 206 </span> 207 } 208 @if (subPages.Any()) 209 { 210 <div class="navigation-header__top-bar__item__subnav"> 211 @foreach (var subPage in subPages) 212 { 213 214 // Preventing us from rendering the extranet content when the user is not logged in 215 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 216 extranetPageIds.Contains(subPage.ID)) 217 { 218 continue; 219 } 220 221 var topNavigationSubpageName = subPage.GetDisplayName(); 222 var topNavigationSubpageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationSubpageName}".JsEncode(); 223 <a href="@SearchEngineFriendlyURLs.GetFriendlyUrl(subPage.ID)" 224 title="@topNavigationSubpageTitle" target="_top">@topNavigationSubpageName</a> 225 } 226 </div> 227 } 228 </div> 229 230 } 231 } 232 233 @foreach (var language in Model.Area.Languages) 234 { 235 var lang = language.Culture.Split('-')[0]; 236 var link = ""; 237 var listClass = language.IsCurrent ? "active" : ""; 238 var langTitle = language.IsCurrent ? string.Empty : $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name.ToUpper()}".JsEncode(); 239 var flag = $"<img src=\"/Admin/Public/GetImage.ashx?Image=/Admin/Images/Flags/flag_{language.Culture.Split('-')[1].ToLower()}.png&Crop=0&Format=webP&Height=20&Width=20&Quality=90\" border=\"0\" alt=\"{langTitle}\" />"; 240 241 if (language.IsMaster && !language.IsCurrent) 242 { 243 if (masterAreaPage != null) 244 { 245 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 246 } 247 } 248 else if (language.IsCurrent) 249 { 250 link = "javascript:void(0);"; 251 } 252 else 253 { 254 foreach (var languagePage in languagePages) 255 { 256 var languageAreaId = language.ID; 257 if (languageAreaId == languagePage.AreaId) 258 { 259 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 260 } 261 } 262 } 263 <div class="navigation-header__top-bar__item language @listClass"><a title="@langTitle" href="@link" target="_top">@flag</a></div> 264 } 265 @if (cartPageId > 0 && cartPartnerProductsPageId > 0) 266 { 267 <a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPartnerProductsPageId)" class="cart-pp-link hidden"><span class="icon icon--cart icon-color--white"></span></a> 268 <a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPageId)" class="cart-link hidden"><span class="icon icon--cart icon-color--white"></span></a> 269 <span class="cart-selector hidden" onclick="EcomHelper.ShowCartSelectorModal();"><span class="icon icon--cart icon-color--white"></span></span> 270 } 271 </div> 272 273 <div class="navigation-header__menu"> 274 <a class="navigation-header__logo" href="@homepageUrl"> 275 <img src="/Files/Templates/Designs/TwenteBranding/Images/logo/LogoTwenteRGB.svg" alt="Twente Logo"> 276 </a> 277 <div class="navigation-header__menu__items"> 278 @foreach (var node in navigationModel.Nodes) 279 { 280 <a href="@node.Link" class="navigation-header__menu__items__item button button--white-border">@node.Name</a> 281 } 282 </div> 283 <div class="navigation-header__menu__langselector hidden"> 284 @foreach (var language in Model.Area.Languages) 285 { 286 var lang = language.Culture.Split('-')[0]; 287 var link = ""; 288 var listClass = language.IsCurrent ? "active" : ""; 289 var langTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {language.Name}".JsEncode(); 290 var flag = $"<img src=\"/Admin/Public/GetImage.ashx?Image=/Admin/Images/Flags/flag_{language.Culture.Split('-')[1].ToLower()}.png&Crop=0&Format=webP&Height=32&Width=32&Quality=90\" border=\"0\" alt=\"{langTitle}\" />"; 291 if (language.IsMaster && !language.IsCurrent) 292 { 293 if (masterAreaPage != null) 294 { 295 link = SearchEngineFriendlyURLs.GetFriendlyUrl(masterAreaPage.ID); 296 } 297 } 298 else if (language.IsCurrent) 299 { 300 link = "javascript:void(0);"; 301 } 302 else 303 { 304 foreach (var languagePage in languagePages) 305 { 306 var languageAreaId = language.ID; 307 if (languageAreaId == languagePage.AreaId) 308 { 309 link = SearchEngineFriendlyURLs.GetFriendlyUrl(languagePage.ID); 310 } 311 } 312 } 313 <a class="mobile-menu__items__footer__item mobile-menu__items__footer__item--lang button @listClass" title="@langTitle" href="@link" target="_top">@flag</a> 314 } 315 @if (cartPageId > 0 && cartPartnerProductsPageId > 0) 316 { 317 <a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPartnerProductsPageId)" class="cart-pp-link hidden"><span class="icon icon--cart icon-color--white"></span></a> 318 <a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPageId)" class="cart-link hidden"><span class="icon icon--cart icon-color--white"></span></a> 319 <span class="cart-selector hidden" onclick="EcomHelper.ShowCartSelectorModal();"><span class="icon icon--cart icon-color--white"></span></span> 320 } 321 </div> 322 <div class="navigation-header__menu__search"> 323 <search-form search-url="@searchUrl" placeholder-text="@Translate("searchTwente", "Doorzoek Twente.com")"></search-form> 324 </div> 325 <mobile-menu close-button-text="@Translate("Close", "Sluit")"> 326 <template v-slot:default> 327 @foreach (var node in navigationModel.Nodes) 328 { 329 <a href="@node.Link" class="mobile-menu__items__button button button--white-border">@node.Name</a> 330 } 331 <search-form search-url="@searchUrl" placeholder-text="@Translate("searchTwente", "Doorzoek Twente.com")"></search-form> 332 </template> 333 <template v-slot:footer> 334 @if (topNavigationPages != null && topNavigationPages.Any()) 335 { 336 foreach (var topNavigationPage in topNavigationPages) 337 { 338 339 // Preventing us from rendering the login page link when the user is already logged in 340 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 341 Equals(topNavigationPage.ID, loginPageId)) 342 { 343 continue; 344 } 345 346 // Preventing us from rendering the extranet content when the user is not logged in 347 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 348 extranetPageIds.Contains(topNavigationPage.ID)) 349 { 350 continue; 351 } 352 353 var topNavigationPageName = topNavigationPage.GetDisplayName(); 354 var topNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationPageName}".JsEncode(); 355 var topNavigationPageSubPages = Dynamicweb.Services.Pages.GetPagesByParentID(topNavigationPage.ID); 356 <div class="mobile-menu__items__footer__item"> 357 @if (topNavigationPage.Allowclick) 358 { 359 <a href="@SearchEngineFriendlyURLs.GetFriendlyUrl(topNavigationPage.ID)" 360 title="@topNavigationPageTitle" target="_top" class="mobile-menu__items__button button button--white-border"> 361 @topNavigationPageName 362 </a> 363 } 364 else 365 { 366 <div title="@topNavigationPageTitle" target="_top" class="mobile-menu__items__title"> 367 @topNavigationPageName 368 </div> 369 } 370 @if (topNavigationPageSubPages.Any()) 371 { 372 foreach (var subPage in topNavigationPageSubPages) 373 { 374 // Preventing us from rendering the extranet content when the user is not logged in 375 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn() && 376 extranetPageIds.Contains(subPage.ID)) 377 { 378 continue; 379 } 380 381 var topNavigationSubpageName = subPage.GetDisplayName(); 382 var topNavigationSubpageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {topNavigationSubpageName}".JsEncode(); 383 <a href="@SearchEngineFriendlyURLs.GetFriendlyUrl(subPage.ID)" 384 title="@topNavigationSubpageTitle" target="_top" class="mobile-menu__items__button button button--white-border">@topNavigationSubpageName</a> 385 } 386 } 387 </div> 388 } 389 } 390 391 </template> 392 </mobile-menu> 393 </div> 394 395 <div id="select-cart-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true"> 396 <div class="modal-dialog" role="document"> 397 <div class="modal-content"> 398 <div class="modal-header"> 399 <h2>@Translate("CartSelector_Title", "Welke producten wilt u afrekenen?")</h2> 400 </div> 401 <div class="modal-body"> 402 @Translate("CartSelector_Text", "Voor onze partner producten en onze webshop producten hebben wij afzonderlijke afhandelingen, daarom vragen wij u deze apart van elkaar af te rekenen.") 403 <a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPartnerProductsPageId)" class="text-button twente-red">@Translate("CartSelector_PartnerProductsLinkText", "Partner producten afrekenen")<div class="icon--arrow-right"></div></a> 404 <a href="@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartPageId)" class="text-button twente-red">@Translate("CartSelector_WebshopProductsLinkText", "Webshop producten afrekenen")<div class="icon--arrow-right"></div></a> 405 </div> 406 </div> 407 </div> 408 </div> 409 </div> 410 <hr /> 411 </header> 412 } 413 414 </text> 415 } 416 <main> 417 @using Dynamicweb.Core 418 @using TwenteBranding.Repository.Helpers 419 @using TwenteBranding.Models.Constants 420 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 421 422 @{ 423 var pService = new Dynamicweb.Content.PageService(); 424 var iService = new Dynamicweb.Content.ItemService(); 425 var pageView = Dynamicweb.Frontend.PageView.Current(); 426 var culture = pageView.GlobalTags.GetTagByName("Global:Area.LongLang").Value; 427 var itemPageId = pageView.ID; 428 var sidebar = SidebarHelper.GetSidebarPage(pageView, StringConstants.NavigationTags.BaseArticleSidebar, pService); 429 430 var item = ItemHelper.GetTwenteBrandingItemForPage(Model.ItemId, itemPageId.ToString(), culture, pService, iService); 431 if (item != null) 432 { 433 var hashtag = item.MainHashtag.IsNotNullOrEmpty() ? string.Format("{0}", item.MainHashtag) : string.Format("{0}", item.MainHashtagEnglish); 434 var goalName = item.GoalName; 435 var background = goalName.FixNameForClass(); 436 var goalIcon = item.GoalIcon; 437 var goalUrl = item.GoalUrl; 438 var goalIconHeader = item.GoalIconHeader; 439 var goalType = item.GoalType; 440 var gradientCss = item.GoalGradientCss; 441 var video = item.Video; 442 var title = item.Title; 443 var introduction = Model.Item.GetString("Text"); 444 var headerImage = ""; 445 var headerImageMobile = ""; 446 var headerImagePath = ""; 447 var headerImageMobilePath = ""; 448 449 if (Model.Item.Fields.Where(x => x.SystemName.Contains("Image")).Count() > 0) 450 { 451 headerImagePath = Model.Item.GetFile("ImageLarge")?.Path; 452 headerImageMobilePath = Model.Item.GetFile("Image")?.Path; 453 454 if (string.IsNullOrWhiteSpace(headerImagePath)) 455 { 456 headerImagePath = Model.Item.GetFile("ImageWide")?.Path; 457 if (string.IsNullOrWhiteSpace(headerImagePath)) 458 { 459 headerImagePath = Model.Item.GetFile("Image")?.Path; 460 } 461 } 462 463 headerImage = $"/Admin/Public/GetImage.ashx?Image={headerImagePath}&Format=webp&Width=700&Height=-1&Quality=100&Crop=0&t=2"; 464 headerImageMobile = $"/Admin/Public/GetImage.ashx?Image={headerImageMobilePath}&Format=webp&Width=300&Height=-1&Quality=100&Crop=0&t=2"; 465 } 466 467 @SnippetStart("ImageOrVideo") 468 if (string.IsNullOrWhiteSpace(video)) 469 { 470 if (!string.IsNullOrWhiteSpace(headerImageMobilePath)) 471 { 472 // navigation SM 473 <div class="header-image lazy d-block d-md-none" data-src="@headerImageMobile"> 474 <h4 class="item-hashtag">@hashtag</h4> 475 @TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl) 476 <div class="@gradientCss"></div> 477 </div> 478 } 479 if (!string.IsNullOrWhiteSpace(headerImagePath)) 480 { 481 // navigation MD+ 482 <div class="header-image lazy d-none d-md-block" data-src="@headerImage"> 483 <h4 class="item-hashtag">@hashtag</h4> 484 @TwenteBranding.Repository.Helpers.ItemHelper.GetTileIconLink(goalIcon, goalUrl) 485 <div class="@gradientCss"></div> 486 </div> 487 } 488 } 489 else 490 { 491 <div class="header-video"> 492 <iframe src="@video"></iframe> 493 </div> 494 } 495 @SnippetEnd("ImageOrVideo") 496 497 <div class="main-container"> 498 499 <div class="top d-block d-md-none"> 500 @RenderSnippet("ImageOrVideo") 501 </div> 502 503 <div class="page-title article-title background--@background"> 504 <div class="container"> 505 <div class="grid header-grid "> 506 <div class="title"> 507 <h1 class="font-color--white">@title</h1> 508 @if (!string.IsNullOrWhiteSpace(introduction)) 509 { 510 <div class="sub-header font-color--white">@introduction</div> 511 } 512 <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> 513 514 </div> 515 <div class="image"><img alt="global goal icon" class="lazy" data-src="@goalIconHeader" /></div> 516 </div> 517 518 </div> 519 </div> 520 <div class="page-content container"> 521 <div class="grid detail-grid-container"> 522 523 @if (Model.Placeholder("Content").Any()) 524 { 525 <div class="content"> 526 <div class="top d-none d-md-block"> 527 @RenderSnippet("ImageOrVideo") 528 </div> 529 @Model.Placeholder("Content") 530 </div> 531 } 532 else 533 { 534 <!-- PL: Wouter, een video wordt dus niet getoond als er geen paragrafen zijn gekoppeld? --> 535 <div class="content"></div> 536 } 537 538 @{ 539 if (sidebar != null) 540 { 541 <div class="sidebar"> 542 @RenderPageContent(sidebar.ID) 543 </div> 544 } 545 } 546 547 @if (Model.Placeholder("Bottom").Any()) 548 { 549 <div class="bottom"> 550 @Model.Placeholder("Bottom") 551 </div> 552 } 553 554 </div> 555 </div> 556 </div> 557 } 558 else 559 { 560 <div>No-Item</div> 561 } 562 } 563 </main> 564 @using TwenteBranding.Repository.Helpers 565 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 566 @{ 567 var homepageLinkTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {Translate("Homelink_Title", "De homepage")}"; 568 } 569 <footer class="background--black flex flex-align-center"> 570 <div class="container"> 571 @using TwenteBranding.Repository.Helpers 572 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 573 574 @if (Model.Area.Item != null) 575 { 576 <div class='social-media-icons flex'> 577 @foreach (var field in Model.Area.Item.Fields.Where(f => f.SystemName.StartsWith("Sm_"))) 578 { 579 if (!string.IsNullOrEmpty(field.GetString())) 580 { 581 <a class='mr-05' rel="noopener" aria-label="@field.Name.JsEncode()" href="@field.GetString()" title="@field.Name.JsEncode()" target="_blank"> 582 <div class="icon--@field.SystemName.ToLower() icon-size--x2"></div> 583 </a> 584 } 585 } 586 </div> 587 } 588 589 <div class="footer-link-container"> 590 @{ 591 var footerNavigationFolderId = GetPageIdByNavigationTag(TwenteBranding.Models.Constants.StringConstants.NavigationTags.FooterNavigation); 592 if (footerNavigationFolderId > 0) 593 { 594 var footerNavigationPageList = Dynamicweb.Services.Pages.GetPagesByParentID(footerNavigationFolderId); 595 if (footerNavigationPageList != null && footerNavigationPageList.Any()) 596 { 597 var footerNavigationPages = footerNavigationPageList.Where(page => page.Active).ToList(); 598 if (footerNavigationPages.Any()) 599 { 600 var footerLinkCounter = 1; 601 foreach (var footerNavigationPage in footerNavigationPages) 602 { 603 var footerNavigationPageName = footerNavigationPage.GetDisplayName(); 604 var footerNavigationPageTitle = $"{Translate("LinkTitlePrefix", "Navigeer naar")}: {footerNavigationPageName}".JsEncode(); 605 var footerNavigationPageLink = $"/Default.aspx?ID={footerNavigationPage.ID}"; 606 607 // place last link and copyright together to prevent wrapping on phone 608 if (footerNavigationPages.Count() == footerLinkCounter) 609 { 610 var copyRight = string.Format(Translate("Footer_CopyRight", "&copy; {0} Twente Branding"), DateTime.Now.Year); 611 612 <div class='wrapper'> 613 <a href="@footerNavigationPageLink" title="@footerNavigationPageTitle">@footerNavigationPageName</a> 614 <span>@copyRight</span> 615 </div> 616 } 617 else 618 { 619 <a href="@footerNavigationPageLink" title="@footerNavigationPageTitle">@footerNavigationPageName</a> 620 } 621 footerLinkCounter++; 622 } 623 } 624 } 625 } 626 } 627 </div> 628 </div> 629 <a class='twente-logo' href="@homepageUrl" title="@homepageLinkTitle"> 630 <img src="@IconHelper.GetSvgPath("twente", "logo/")" /> 631 </a> 632 </footer> 633 634 </div> 635 <aside> 636 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 637 @using TwenteBranding.Repository.Helpers 638 @using System.Linq; 639 @using TwenteBranding.Models.ViewModels 640 641 @{ 642 var newsletterSubscriptionModalPageId = GetPageIdByNavigationTag("NewsletterSubscriptionModal"); 643 var jobAlertSubscriptionModalPageId = GetPageIdByNavigationTag("JobAlertSubscriptionModal"); 644 var jobOffersPageId = GetPageIdByNavigationTag("JobOffers"); 645 var jobOfferParentPageId = Dynamicweb.Frontend.PageView.Current().Page.ParentPageId; 646 var utmCampaign = Dynamicweb.Context.Current.Request.QueryString.Get("utm_campaign"); 647 var mainHashtagModal = ""; 648 649 // Specific pages which must not show a subscription modal (jobalert/newsletter) 650 var twenteLeeftPageId = GetPageIdByNavigationTag("MOT_TwenteLeeft"); 651 var jobAlertSubscription = GetPageIdByNavigationTag("JobAlertSubscription"); 652 var pageIdsWithoutModal = new List<int> { twenteLeeftPageId, jobAlertSubscription }; 653 654 // Get the item for the current page 655 TwenteBrandingItemModel pItem = null; 656 if (Model.ItemId != "1") //Item with ID 1 gives error 657 { 658 pItem = ItemHelper.GetTwenteBrandingItemForPage( 659 Model.ItemId, 660 Dynamicweb.Frontend.PageView.Current().ID.ToString(), 661 Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Area.LongLang").Value 662 ); 663 } 664 665 if (pItem != null) 666 { 667 // Get main hashtag of the current page item 668 var mainHashtagId = pItem.MainHashtagIds.FirstOrDefault(); 669 if (!string.IsNullOrEmpty(mainHashtagId)) 670 { 671 var hashtagItem = Dynamicweb.Content.Items.Item.GetItemById(TwenteBranding.Models.Constants.StringConstants.ItemInstanceType.Hashtag, mainHashtagId); 672 mainHashtagModal = $"{ItemHelper.GetItemValue<string>(hashtagItem, TwenteBranding.Models.Constants.StringConstants.CustomItemTypes.BaseArticle.Title)}"; 673 } 674 } 675 676 // Dont show a modal on the following pages 677 if (pageIdsWithoutModal.Contains(Model.ID) || mainHashtagModal == "talent") 678 { 679 //do noting 680 } 681 else 682 { 683 // Show modal with link to vacancysubscription page on vacancy page and pages with #talent hashtag 684 if ((Model.ID == jobOffersPageId || jobOfferParentPageId == jobOffersPageId) 685 && jobAlertSubscriptionModalPageId > 0) 686 { 687 @RenderPageContent(jobAlertSubscriptionModalPageId) 688 } 689 // If the jobalert modal pageId has a value and utmCampaing matches the specified value 690 else if (jobAlertSubscriptionModalPageId > 0 && utmCampaign == "Remarketing vacaturebank") 691 { 692 @RenderPageContent(jobAlertSubscriptionModalPageId) 693 } 694 // Else if the newsletter pageId has a value, show the newsletter subscription modal 695 else if (newsletterSubscriptionModalPageId > 0) 696 { 697 @RenderPageContent(newsletterSubscriptionModalPageId) 698 } 699 } 700 701 } 702 </aside> 703 <script src="@customJs"></script> 704 <script src="@appJs"></script> 705 @RenderSnippet("JavascriptBottom") 706 </body> 707 </html> 708 }