Error compiling template "Designs/Huuskes/_parsed/HuuskesWinActionPage.parsed.cshtml"
Line 183: The name 'cookieService' does not exist in the current context
Line 406: The name 'cookieService' does not exist in the current context

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 13 #line 3 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 1 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 22 using Dynamicweb.Frontend; 23 24 #line default 25 #line hidden 26 27 #line 2 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 28 using System.Web.Mvc; 29 30 #line default 31 #line hidden 32 33 #line 117 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 34 using Huuskes.Repository.Helpers; 35 36 #line default 37 #line hidden 38 39 40 public class RazorEngine_2ba933b9496c4362bf13b301d6c33b09 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 41 42 #line hidden 43 44 public RazorEngine_2ba933b9496c4362bf13b301d6c33b09() { 45 } 46 47 public override void Execute() { 48 49 #line 6 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 50 Write(Title("Master view model template")); 51 52 53 #line default 54 #line hidden 55 WriteLiteral("\r\n"); 56 57 58 #line 7 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 59 Write(Description("Master template for a default page")); 60 61 62 #line default 63 #line hidden 64 WriteLiteral("\r\n\r\n"); 65 66 67 #line 9 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 68 69 var pv = PageView.Current(); 70 var lang = pv.GlobalTags.GetTagByName("Global:Area.Lang").Value; 71 var scheme = pv.GlobalTags.GetTagByName("Global:Request.Scheme").Value; 72 var host = pv.GlobalTags.GetTagByName("Global:Request.Host").Value; 73 var requestHost = string.Format("{0}://{1}", scheme, host); 74 var pageTitle = Model.Title; 75 if (string.IsNullOrWhiteSpace(pageTitle)) 76 { 77 pageTitle = Translate("DefaultPageTitle", "Innovadis"); 78 } 79 var pageDescription = Model.Description; 80 var pageKeywords = Model.Keywords; 81 82 var requestContext = System.Web.HttpContext.Current.Request.RequestContext; 83 var urlHelper = new UrlHelper(requestContext); 84 85 var mainCssUrl = urlHelper.ContentVersioned("~/Files/Templates/Designs/Huuskes/dist/main.min.css"); 86 87 var googleTagManagerCode = AreaHelper.GetAreaItemStringValueBySystemName("GoogleTagManagerCode", Dynamicweb.Frontend.PageView.Current().AreaID); 88 89 90 #line default 91 #line hidden 92 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta"); 93 94 WriteLiteral(" charset=\"utf-8\""); 95 96 WriteLiteral(" />\r\n <title>"); 97 98 99 #line 35 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 100 Write(pageTitle); 101 102 103 #line default 104 #line hidden 105 WriteLiteral("</title>\r\n"); 106 107 108 #line 36 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 109 110 111 #line default 112 #line hidden 113 114 #line 36 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 115 if (!string.IsNullOrWhiteSpace(pageDescription)) 116 { 117 118 119 #line default 120 #line hidden 121 WriteLiteral(" <meta"); 122 123 WriteLiteral(" name=\"description\""); 124 125 WriteAttribute("content", Tuple.Create(" content=\"", 1434), Tuple.Create("\"", 1460) 126 127 #line 38 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 128 , Tuple.Create(Tuple.Create("", 1444), Tuple.Create<System.Object, System.Int32>(pageDescription 129 130 #line default 131 #line hidden 132 , 1444), false) 133 ); 134 135 WriteLiteral(" />\r\n"); 136 137 138 #line 39 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 139 } 140 141 142 #line default 143 #line hidden 144 WriteLiteral(" "); 145 146 147 #line 40 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 148 if (!string.IsNullOrWhiteSpace(pageKeywords)) 149 { 150 151 152 #line default 153 #line hidden 154 WriteLiteral(" <meta"); 155 156 WriteLiteral(" name=\"keywords\""); 157 158 WriteAttribute("content", Tuple.Create(" content=\"", 1561), Tuple.Create("\"", 1584) 159 160 #line 42 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 161 , Tuple.Create(Tuple.Create("", 1571), Tuple.Create<System.Object, System.Int32>(pageKeywords 162 163 #line default 164 #line hidden 165 , 1571), false) 166 ); 167 168 WriteLiteral(" />\r\n"); 169 170 171 #line 43 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 172 } 173 174 175 #line default 176 #line hidden 177 WriteLiteral(" "); 178 179 180 #line 44 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 181 182 // cookieService and googleTagManagerCode come from Master.cshtml 183 if (!string.IsNullOrEmpty(googleTagManagerCode) && cookieService.AllowTracking()) 184 { 185 186 187 #line default 188 #line hidden 189 WriteLiteral(" <!-- Google Tag Manager -->\r\n"); 190 191 WriteLiteral(@" <script> 192 (function (w, d, s, l, i) { 193 w[l] = w[l] || []; w[l].push({ 194 'gtm.start': 195 new Date().getTime(), event: 'gtm.js' 196 }); var f = d.getElementsByTagName(s)[0], 197 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 198 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 199 })(window, document, 'script', 'dataLayer', '"); 200 201 202 #line 57 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 203 Write(googleTagManagerCode); 204 205 206 #line default 207 #line hidden 208 WriteLiteral("\');</script>\r\n"); 209 210 WriteLiteral(" <!-- End Google Tag Manager -->\r\n"); 211 212 213 #line 59 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 214 } 215 216 217 #line default 218 #line hidden 219 WriteLiteral("\r\n"); 220 221 WriteLiteral(" "); 222 223 224 #line 61 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 225 Write(RenderSnippet("OgTags")); 226 227 228 #line default 229 #line hidden 230 WriteLiteral("\r\n <meta"); 231 232 WriteLiteral(" http-equiv=\"content-language\""); 233 234 WriteAttribute("content", Tuple.Create(" content=\'", 2450), Tuple.Create("\'", 2465) 235 236 #line 62 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 237 , Tuple.Create(Tuple.Create("", 2460), Tuple.Create<System.Object, System.Int32>(lang 238 239 #line default 240 #line hidden 241 , 2460), false) 242 ); 243 244 WriteLiteral(" />\r\n <meta"); 245 246 WriteLiteral(" http-equiv=\"content-type\""); 247 248 WriteLiteral(" content=\"text/html; charset=UTF-8\""); 249 250 WriteLiteral(" />\r\n <meta"); 251 252 WriteLiteral(" http-equiv=\"imagetoolbar\""); 253 254 WriteLiteral(" content=\"no\""); 255 256 WriteLiteral(" />\r\n <meta"); 257 258 WriteLiteral(" http-equiv=\"x-dns-prefetch-control\""); 259 260 WriteLiteral(" content=\"on\""); 261 262 WriteLiteral(" />\r\n <meta"); 263 264 WriteLiteral(" http-equiv=\"X-UA-Compatible\""); 265 266 WriteLiteral(" content=\"IE=edge,chrome=1\""); 267 268 WriteLiteral(" />\r\n <meta"); 269 270 WriteLiteral(" name=\"viewport\""); 271 272 WriteLiteral(" content=\"width=device-width, user-scalable=no\""); 273 274 WriteLiteral(" />\r\n <meta"); 275 276 WriteLiteral(" name=\"application-name\""); 277 278 WriteLiteral(" content=\"Huuskes\""); 279 280 WriteLiteral(" />\r\n <meta"); 281 282 WriteLiteral(" name=\"author\""); 283 284 WriteLiteral(" content=\"Innovadis BV, Enschede\""); 285 286 WriteLiteral(" />\r\n <meta"); 287 288 WriteLiteral(" name=\"copyright\""); 289 290 WriteAttribute("content", Tuple.Create(" content=\'", 2952), Tuple.Create("\'", 3004) 291 , Tuple.Create(Tuple.Create("", 2962), Tuple.Create("Innovadis", 2962), true) 292 , Tuple.Create(Tuple.Create(" ", 2971), Tuple.Create("BV,", 2972), true) 293 , Tuple.Create(Tuple.Create(" ", 2975), Tuple.Create("Enschede,", 2976), true) 294 295 #line 70 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 296 , Tuple.Create(Tuple.Create(" ", 2985), Tuple.Create<System.Object, System.Int32>(DateTime.Now.Year 297 298 #line default 299 #line hidden 300 , 2986), false) 301 ); 302 303 WriteLiteral(" />\r\n <meta"); 304 305 WriteLiteral(" name=\"web_author\""); 306 307 WriteLiteral(" content=\"Innovadis BV, Enschede\""); 308 309 WriteLiteral(" />\r\n <link"); 310 311 WriteLiteral(" rel=\"dns-prefetch\""); 312 313 WriteAttribute("href", Tuple.Create(" href=\'", 3103), Tuple.Create("\'", 3122) 314 315 #line 72 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 316 , Tuple.Create(Tuple.Create("", 3110), Tuple.Create<System.Object, System.Int32>(requestHost 317 318 #line default 319 #line hidden 320 , 3110), false) 321 ); 322 323 WriteLiteral(" />\r\n <link"); 324 325 WriteLiteral(" rel=\"icon\""); 326 327 WriteLiteral(" href=\"/Files/SystemImages/favicon.png\""); 328 329 WriteLiteral(" type=\"image/png\""); 330 331 WriteLiteral(" />\r\n <link"); 332 333 WriteLiteral(" rel=\"shortcut icon\""); 334 335 WriteLiteral(" href=\"/Files/SystemImages/favicon.png\""); 336 337 WriteLiteral(" type=\"image/png\""); 338 339 WriteLiteral(" />\r\n <link"); 340 341 WriteLiteral(" rel=\"stylesheet\""); 342 343 WriteLiteral(" href=\"https://use.typekit.net/nop4ttz.css\""); 344 345 WriteLiteral(">\r\n <link"); 346 347 WriteLiteral(" rel=\"stylesheet\""); 348 349 WriteAttribute("href", Tuple.Create(" href=\"", 3397), Tuple.Create("\"", 3415) 350 351 #line 76 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 352 , Tuple.Create(Tuple.Create("", 3404), Tuple.Create<System.Object, System.Int32>(mainCssUrl 353 354 #line default 355 #line hidden 356 , 3404), false) 357 ); 358 359 WriteLiteral(" />\r\n"); 360 361 WriteLiteral(" "); 362 363 364 #line 77 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 365 Write(RenderSnippet("WinActionCss")); 366 367 368 #line default 369 #line hidden 370 WriteLiteral("\r\n <script"); 371 372 WriteLiteral(" src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js\""); 373 374 WriteLiteral(" type=\"text/javascript\""); 375 376 WriteLiteral("></script>\r\n <script"); 377 378 WriteLiteral(" src=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\""); 379 380 WriteLiteral(" integrity=\"sha256-KM512VNnjElC30ehFwehXjx1YCHPiQkOPmqnrWtpccM=\""); 381 382 WriteLiteral(" crossorigin=\"anonymous\""); 383 384 WriteLiteral("></script>\r\n <link"); 385 386 WriteLiteral(" rel=\"stylesheet\""); 387 388 WriteLiteral(" href=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css\""); 389 390 WriteLiteral(" integrity=\"sha256-rByPlHULObEjJ6XQxW/flG2r+22R5dKiAoef+aXWfik=\""); 391 392 WriteLiteral(" crossorigin=\"anonymous\""); 393 394 WriteLiteral(" />\r\n</head>\r\n<body>\r\n"); 395 396 397 #line 83 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 398 399 400 #line default 401 #line hidden 402 403 #line 83 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 404 405 // cookieService and googleTagManagerCode come from Master.cshtml 406 if (!string.IsNullOrEmpty(googleTagManagerCode) && cookieService.AllowTracking()) 407 { 408 var tagManagerUrl = string.Format("https://www.googletagmanager.com/ns.html?id={0}", googleTagManagerCode); 409 410 411 #line default 412 #line hidden 413 WriteLiteral(" <!-- Google Tag Manager (noscript) -->\r\n"); 414 415 WriteLiteral(" <noscript>\r\n <iframe"); 416 417 WriteAttribute("src", Tuple.Create(" src=\"", 4358), Tuple.Create("\"", 4378) 418 419 #line 90 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 420 , Tuple.Create(Tuple.Create("", 4364), Tuple.Create<System.Object, System.Int32>(tagManagerUrl 421 422 #line default 423 #line hidden 424 , 4364), false) 425 ); 426 427 WriteLiteral("\r\n height=\"0\""); 428 429 WriteLiteral(" width=\"0\""); 430 431 WriteLiteral(" style=\"display:none;visibility:hidden\""); 432 433 WriteLiteral("></iframe>\r\n </noscript>\r\n"); 434 435 WriteLiteral(" <!-- End Google Tag Manager (noscript) -->\r\n"); 436 437 438 #line 94 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 439 } 440 441 442 #line default 443 #line hidden 444 WriteLiteral("\r\n <div"); 445 446 WriteLiteral(" class=\"master-grid-container\""); 447 448 WriteLiteral(">\r\n <div"); 449 450 WriteLiteral(" id=\"ie-warning\""); 451 452 WriteLiteral(">"); 453 454 455 #line 97 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 456 Write(Translate("InternetExplorerWarning", "")); 457 458 459 #line default 460 #line hidden 461 WriteLiteral("</div>\r\n"); 462 463 464 #line 98 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 465 466 467 #line default 468 #line hidden 469 470 #line 99 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 471 472 var headerLogo = Model.Area.Item.GetFile("HeaderLogo")?.Path; 473 var headerLink = string.Format("Default.aspx?ID={0}", Model.Area.FirstActivePage.ID); 474 var huibLink = Model.Area.Item.GetString("HuibLink"); 475 var languages = Model.Area.Languages; 476 477 478 #line default 479 #line hidden 480 WriteLiteral("\r\n<header"); 481 482 WriteLiteral(" class=\"header winaction grid-content-template\""); 483 484 WriteLiteral(">\r\n <div"); 485 486 WriteLiteral(" class=\"max-width grid-content\""); 487 488 WriteLiteral(">\r\n"); 489 490 491 #line 107 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 492 493 494 #line default 495 #line hidden 496 497 #line 107 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 498 if (!string.IsNullOrEmpty(headerLogo)) 499 { 500 501 502 #line default 503 #line hidden 504 WriteLiteral(" <a"); 505 506 WriteLiteral(" class=\"header_logo\""); 507 508 WriteAttribute("href", Tuple.Create(" href=\"", 5227), Tuple.Create("\"", 5245) 509 510 #line 109 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 511 , Tuple.Create(Tuple.Create("", 5234), Tuple.Create<System.Object, System.Int32>(headerLink 512 513 #line default 514 #line hidden 515 , 5234), false) 516 ); 517 518 WriteLiteral(">\r\n <img"); 519 520 WriteAttribute("src", Tuple.Create(" src=\"", 5269), Tuple.Create("\"", 5286) 521 522 #line 110 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 523 , Tuple.Create(Tuple.Create("", 5275), Tuple.Create<System.Object, System.Int32>(headerLogo 524 525 #line default 526 #line hidden 527 , 5275), false) 528 ); 529 530 WriteLiteral(" alt=\"Huuskes Logo\""); 531 532 WriteLiteral(" />\r\n </a>\r\n"); 533 534 535 #line 112 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 536 } 537 538 539 #line default 540 #line hidden 541 WriteLiteral(" </div>\r\n</header>\r\n <div"); 542 543 WriteLiteral(" class=\"main\""); 544 545 WriteLiteral(">\r\n <main"); 546 547 WriteLiteral(" class=\"content winaction\""); 548 549 WriteLiteral(">\r\n"); 550 551 552 #line 117 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 553 554 555 #line default 556 #line hidden 557 558 #line 119 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 559 Write(Title("Doe-mee-en-win pagina")); 560 561 562 #line default 563 #line hidden 564 WriteLiteral("\r\n"); 565 566 567 #line 120 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 568 Write(Description("Template voor een doe-mee-en-win actie pagina")); 569 570 571 #line default 572 #line hidden 573 WriteLiteral("\r\n\r\n"); 574 575 576 #line 122 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 577 578 var pageItem = Model.Item; 579 if (pageItem != null && Model.ItemType.Equals(Huuskes.Items.Constants.ItemConstants.Page_HuuskesWinActionPage)) 580 { 581 var startDateTime = pageItem.GetDateTime("StartDateTime"); 582 var endDateTime = pageItem.GetDateTime("EndDateTime"); 583 var currentDateTime = DateTime.Now; 584 var currentView = ""; 585 if (currentDateTime < startDateTime) 586 { 587 currentView = "Announcement"; 588 } 589 else if (currentDateTime >= startDateTime && currentDateTime < endDateTime) 590 { 591 currentView = "Action"; 592 } 593 else if (currentDateTime > endDateTime) 594 { 595 currentView = "Results"; 596 } 597 598 var backgroundImage = pageItem.GetString("BackgroundImage"); 599 if (!string.IsNullOrWhiteSpace(currentView)) 600 { 601 602 603 604 #line default 605 #line hidden 606 607 #line 147 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 608 Write(SnippetStart("WinActionCss")); 609 610 611 #line default 612 #line hidden 613 614 #line 147 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 615 616 617 618 #line default 619 #line hidden 620 621 #line 148 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 622 Write(Huuskes.Repository.Helpers.WinActionHelper.GetWinActionCss( 623 pageItem.GetString("BackColor"), 624 pageItem.GetString("TextColor"), 625 pageItem.GetString("ButtonBackColor"), 626 pageItem.GetString("ButtonTextColor"), 627 pageItem.GetList("ButtonPosition").SelectedValue, 628 pageItem.GetString("BackgroundImage"))); 629 630 631 #line default 632 #line hidden 633 634 #line 154 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 635 636 637 638 #line default 639 #line hidden 640 641 #line 155 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 642 Write(SnippetEnd("WinActionCss")); 643 644 645 #line default 646 #line hidden 647 648 #line 155 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 649 650 651 var participantIdValue = System.Web.HttpContext.Current.Request.QueryString.Get(Translate("WinActionParticipantId", "deelnemer")) ?? ""; 652 653 // used for e-mail confirmation 654 var voteSecretQuery = System.Web.HttpContext.Current.Request.QueryString.Get("secret") ?? ""; 655 656 if (!string.IsNullOrWhiteSpace(participantIdValue) && Guid.TryParse(participantIdValue, out Guid participantId) && !currentView.Equals("Announcement")) 657 { 658 var voted = System.Web.HttpContext.Current.Request.QueryString.Get("voted")?.Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? false; 659 var isNew = System.Web.HttpContext.Current.Request.QueryString.Get("new")?.Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? false; 660 661 var participation = Huuskes.Repository.Helpers.WinActionHelper.GetParticipation(Dynamicweb.Frontend.PageView.Current().Page.ID, participantIdValue); 662 var participant = Huuskes.Repository.Helpers.FormatHelper.CreateFullName(participation.LastName, participation.FirstName); 663 if (!string.IsNullOrWhiteSpace(participation.City)) 664 { 665 participant = $"<b>{participant}</b><br />{participation.City}"; 666 } 667 var motivation = Huuskes.Repository.Helpers.FormatHelper.ReplaceNewlineWithBr(participation.Motivation); 668 669 var pageService = new Dynamicweb.Content.PageService(); 670 var votePage = pageService.GetPageByNavigationTag(Dynamicweb.Frontend.PageView.Current().AreaID, Huuskes.Models.Constants.StringConstants.NavigationTags.WinActionVoteForm); 671 672 var introText = isNew ? pageItem.GetString("FormConfirmationText") : pageItem.GetString("DeelnemeIntro"); 673 674 var shareUrl = $"{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Scheme").Value}://{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Host").Value}{Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Frontend.PageView.Current().Page.ID)}?{Translate("WinActionParticipantId", "deelnemer")}={participantIdValue}".UrlEncode(); 675 var shareTitle = pageItem.GetString("ActionName"); 676 var shareDescription = pageItem.GetString("ParticipationShareText"); 677 var shareImage = $"{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Scheme").Value}://{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Host").Value}{participation.Photo}"; 678 var voteCounterBackgroundImage = pageItem.GetString("VoteCounterBackground").Trim(); 679 if (string.IsNullOrWhiteSpace(voteCounterBackgroundImage) || voteCounterBackgroundImage.Length < 10) 680 { 681 voteCounterBackgroundImage = "/Files/Templates/Designs/Huuskes/images/VoteCounter.png"; 682 } 683 var photoText = Huuskes.Repository.Helpers.WinActionHelper.GetPhotoText(participation, pageItem.Id); 684 685 686 687 #line default 688 #line hidden 689 690 #line 191 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 691 Write(SnippetStart("OgTags")); 692 693 694 #line default 695 #line hidden 696 697 #line 191 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 698 699 700 701 #line default 702 #line hidden 703 WriteLiteral(" <meta"); 704 705 WriteLiteral(" property=\"og:title\""); 706 707 WriteAttribute("content", Tuple.Create(" content=\"", 10259), Tuple.Create("\"", 10293) 708 709 #line 192 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 710 , Tuple.Create(Tuple.Create("", 10269), Tuple.Create<System.Object, System.Int32>(shareTitle 711 712 #line default 713 #line hidden 714 , 10269), false) 715 , Tuple.Create(Tuple.Create(" ", 10280), Tuple.Create("-", 10281), true) 716 717 #line 192 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 718 , Tuple.Create(Tuple.Create(" ", 10282), Tuple.Create<System.Object, System.Int32>(photoText 719 720 #line default 721 #line hidden 722 , 10283), false) 723 ); 724 725 WriteLiteral(" />\r\n"); 726 727 WriteLiteral(" <meta"); 728 729 WriteLiteral(" property=\"og:description\""); 730 731 WriteAttribute("content", Tuple.Create(" content=\"", 10346), Tuple.Create("\"", 10373) 732 733 #line 193 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 734 , Tuple.Create(Tuple.Create("", 10356), Tuple.Create<System.Object, System.Int32>(shareDescription 735 736 #line default 737 #line hidden 738 , 10356), false) 739 ); 740 741 WriteLiteral(" />\r\n"); 742 743 WriteLiteral(" <meta"); 744 745 WriteLiteral(" property=\"og:type\""); 746 747 WriteLiteral(" content=\"website\""); 748 749 WriteLiteral(" />\r\n"); 750 751 WriteLiteral(" <meta"); 752 753 WriteLiteral(" property=\"og:url\""); 754 755 WriteAttribute("content", Tuple.Create(" content=\"", 10481), Tuple.Create("\"", 10500) 756 757 #line 195 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 758 , Tuple.Create(Tuple.Create("", 10491), Tuple.Create<System.Object, System.Int32>(shareUrl 759 760 #line default 761 #line hidden 762 , 10491), false) 763 ); 764 765 WriteLiteral(" />\r\n"); 766 767 WriteLiteral(" <meta"); 768 769 WriteLiteral(" property=\"og:image\""); 770 771 WriteAttribute("content", Tuple.Create(" content=\"", 10547), Tuple.Create("\"", 10568) 772 773 #line 196 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 774 , Tuple.Create(Tuple.Create("", 10557), Tuple.Create<System.Object, System.Int32>(shareImage 775 776 #line default 777 #line hidden 778 , 10557), false) 779 ); 780 781 WriteLiteral(" />\r\n"); 782 783 WriteLiteral(" <meta"); 784 785 WriteLiteral(" property=\"og:locale\""); 786 787 WriteAttribute("content", Tuple.Create(" content=\"", 10616), Tuple.Create("\"", 10696) 788 789 #line 197 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 790 , Tuple.Create(Tuple.Create("", 10626), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.PageView.Current().Area.Culture.Replace("-", "_") 791 792 #line default 793 #line hidden 794 , 10626), false) 795 ); 796 797 WriteLiteral(" />\r\n"); 798 799 800 #line 198 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 801 802 803 #line default 804 #line hidden 805 806 #line 198 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 807 Write(SnippetEnd("OgTags")); 808 809 810 #line default 811 #line hidden 812 813 #line 198 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 814 815 816 817 818 #line default 819 #line hidden 820 821 #line 200 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 822 823 824 825 #line default 826 #line hidden 827 WriteLiteral(" <div"); 828 829 WriteLiteral(" class=\"photo participant-view\""); 830 831 WriteLiteral(">\r\n <div"); 832 833 WriteLiteral(" class=\"photo_imagecontainer\""); 834 835 WriteLiteral(">\r\n <div"); 836 837 WriteLiteral(" class=\"image\""); 838 839 WriteLiteral(">\r\n <img"); 840 841 WriteAttribute("src", Tuple.Create(" src=\"", 10957), Tuple.Create("\"", 10983) 842 843 #line 204 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 844 , Tuple.Create(Tuple.Create("", 10963), Tuple.Create<System.Object, System.Int32>(participation.Photo 845 846 #line default 847 #line hidden 848 , 10963), false) 849 ); 850 851 WriteLiteral(" />\r\n <div"); 852 853 WriteLiteral(" class=\"text\""); 854 855 WriteLiteral(">\r\n"); 856 857 WriteLiteral(" "); 858 859 860 #line 206 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 861 Write(photoText); 862 863 864 #line default 865 #line hidden 866 WriteLiteral("\r\n <div"); 867 868 WriteLiteral(" class=\"counter\""); 869 870 WriteAttribute("style", Tuple.Create(" style=\"", 11133), Tuple.Create("\"", 11193) 871 , Tuple.Create(Tuple.Create("", 11141), Tuple.Create("background-image:url(\'", 11141), true) 872 873 #line 207 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 874 , Tuple.Create(Tuple.Create("", 11163), Tuple.Create<System.Object, System.Int32>(voteCounterBackgroundImage 875 876 #line default 877 #line hidden 878 , 11163), false) 879 , Tuple.Create(Tuple.Create("", 11190), Tuple.Create("\');", 11190), true) 880 ); 881 882 WriteLiteral(">"); 883 884 885 #line 207 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 886 Write(participation.TotalVotes); 887 888 889 #line default 890 #line hidden 891 WriteLiteral("</div>\r\n </div>\r\n </div>\r\n " + 892 " </div>\r\n </div>\r\n"); 893 894 895 #line 212 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 896 897 898 899 #line default 900 #line hidden 901 WriteLiteral(" <div"); 902 903 WriteLiteral(" class=\"text-component no-image text-small grid-content-template padding\""); 904 905 WriteLiteral(">\r\n <div"); 906 907 WriteLiteral(" class=\"max-width grid-content\""); 908 909 WriteLiteral(">\r\n <div"); 910 911 WriteLiteral(" class=\"text-component_content\""); 912 913 WriteLiteral(">\r\n <div"); 914 915 WriteLiteral(" class=\"text-component_text rich-text\""); 916 917 WriteLiteral(">\r\n\r\n "); 918 919 WriteLiteral("\r\n"); 920 921 WriteLiteral(" "); 922 923 924 #line 219 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 925 Write(introText); 926 927 928 #line default 929 #line hidden 930 WriteLiteral("\r\n\r\n "); 931 932 WriteLiteral("\r\n"); 933 934 935 #line 222 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 936 937 938 #line default 939 #line hidden 940 941 #line 222 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 942 if (votePage != null && !voted) 943 { 944 var paragraphService = new Dynamicweb.Content.ParagraphService(); 945 var voteParagraphId = paragraphService.GetParagraphsByPageId(votePage.ID)?.FirstOrDefault(p => p.ItemType.Equals(Huuskes.Items.Constants.ItemConstants.Item_FormsForEditors) && p.ShowParagraph)?.ID ?? 0; 946 if (voteParagraphId > 0) 947 { 948 var formTitle = pageItem.GetString("VoteTitle"); 949 if (!string.IsNullOrWhiteSpace(formTitle)) 950 { 951 formTitle = $"<h5>{formTitle}</h5>"; 952 } 953 954 955 #line default 956 #line hidden 957 WriteLiteral(" <div"); 958 959 WriteLiteral(" id=\"voteForm\""); 960 961 WriteLiteral(">\r\n"); 962 963 WriteLiteral(" "); 964 965 966 #line 234 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 967 Write(formTitle); 968 969 970 #line default 971 #line hidden 972 WriteLiteral("\r\n"); 973 974 WriteLiteral(" "); 975 976 977 #line 235 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 978 Write(pageItem.GetString("VoteIntro")); 979 980 981 #line default 982 #line hidden 983 WriteLiteral("\r\n"); 984 985 WriteLiteral(" "); 986 987 988 #line 236 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 989 Write(RenderParagraphContent(voteParagraphId)); 990 991 992 #line default 993 #line hidden 994 WriteLiteral("\r\n </div>\r\n"); 995 996 997 #line 238 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 998 } 999 } 1000 1001 1002 #line default 1003 #line hidden 1004 WriteLiteral("\r\n"); 1005 1006 1007 #line 241 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1008 1009 1010 #line default 1011 #line hidden 1012 1013 #line 241 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1014 if (!string.IsNullOrEmpty(voteSecretQuery)) 1015 { 1016 // register vote based on secret 1017 WinActionHelper.VerifyWinActionVoteBySecret(voteSecretQuery); 1018 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteral(" <div"); 1024 1025 WriteLiteral(" id=\"go-to-vote-confirmation\""); 1026 1027 WriteLiteral(" class=\"vote-confirmation\""); 1028 1029 WriteLiteral(">\r\n <hr />\r\n " + 1030 " <p>&nbsp;</p>\r\n <span"); 1031 1032 WriteLiteral(" class=\"confirmation\""); 1033 1034 WriteLiteral(">"); 1035 1036 1037 #line 249 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1038 Write(pageItem.GetString("VoteEmailConfirmationText")); 1039 1040 1041 #line default 1042 #line hidden 1043 WriteLiteral("</span>\r\n <p>&nbsp;</p>\r\n " + 1044 " <hr />\r\n </div>\r\n"); 1045 1046 WriteLiteral(@" <script> 1047 $(document).ready(function () { 1048 WinAction.ScrollToAnchor(""go-to-vote-confirmation""); 1049 }); 1050 </script> 1051 "); 1052 1053 1054 #line 258 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1055 } 1056 1057 1058 #line default 1059 #line hidden 1060 WriteLiteral("\r\n"); 1061 1062 1063 #line 260 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1064 1065 1066 #line default 1067 #line hidden 1068 1069 #line 260 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1070 if (voted && string.IsNullOrEmpty(voteSecretQuery)) 1071 { 1072 1073 1074 #line default 1075 #line hidden 1076 WriteLiteral(" <a"); 1077 1078 WriteLiteral(" id=\"go-to-vote-confirmation\""); 1079 1080 WriteLiteral("></a>\r\n"); 1081 1082 WriteLiteral(" <div"); 1083 1084 WriteLiteral(" class=\"vote-confirmation\""); 1085 1086 WriteLiteral(">\r\n <hr />\r\n " + 1087 " <p>&nbsp;</p>\r\n <span"); 1088 1089 WriteLiteral(" class=\"confirmation\""); 1090 1091 WriteLiteral(">"); 1092 1093 1094 #line 266 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1095 Write(pageItem.GetString("VoteConfirmationText")); 1096 1097 1098 #line default 1099 #line hidden 1100 WriteLiteral("</span>\r\n <p>&nbsp;</p>\r\n " + 1101 " <hr />\r\n </div>\r\n"); 1102 1103 WriteLiteral(@" <script> 1104 $(document).ready(function () { 1105 WinAction.ScrollToAnchor(""go-to-vote-confirmation""); 1106 }); 1107 </script> 1108 "); 1109 1110 1111 #line 275 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1112 } 1113 1114 1115 1116 #line default 1117 #line hidden 1118 1119 #line 277 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1120 1121 1122 1123 #line default 1124 #line hidden 1125 WriteLiteral(" <div"); 1126 1127 WriteLiteral(" class=\"share-holder\""); 1128 1129 WriteLiteral(" style=\"display: block;\""); 1130 1131 WriteLiteral(">\r\n <text>\r\n " + 1132 " <h5>"); 1133 1134 1135 #line 280 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1136 Write(Translate("WinAction_Share", "Share")); 1137 1138 1139 #line default 1140 #line hidden 1141 WriteLiteral(":</h5>\r\n "); 1142 1143 WriteLiteral("\r\n\r\n <a"); 1144 1145 WriteAttribute("href", Tuple.Create(" href=\"", 15609), Tuple.Create("\"", 15670) 1146 , Tuple.Create(Tuple.Create("", 15616), Tuple.Create("https://www.facebook.com/sharer/sharer.php?u=", 15616), true) 1147 1148 #line 283 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1149 , Tuple.Create(Tuple.Create("", 15661), Tuple.Create<System.Object, System.Int32>(shareUrl 1150 1151 #line default 1152 #line hidden 1153 , 15661), false) 1154 ); 1155 1156 WriteLiteral(" target=\"_blank\""); 1157 1158 WriteLiteral(">\r\n <svg"); 1159 1160 WriteLiteral(" width=\"40px\""); 1161 1162 WriteLiteral(" height=\"40px\""); 1163 1164 WriteLiteral(" viewBox=\"0 0 40 40\""); 1165 1166 WriteLiteral(" version=\"1.1\""); 1167 1168 WriteLiteral(" xmlns=\"http://www.w3.org/2000/svg\""); 1169 1170 WriteLiteral(" xmlns:xlink=\"http://www.w3.org/1999/xlink\""); 1171 1172 WriteLiteral(">\r\n <title>Facebook logo</title>\r\n" + 1173 " <g"); 1174 1175 WriteLiteral(" id=\"SocialShare_Facebook\""); 1176 1177 WriteLiteral(" stroke=\"none\""); 1178 1179 WriteLiteral(" stroke-width=\"1\""); 1180 1181 WriteLiteral(" fill=\"none\""); 1182 1183 WriteLiteral(" fill-rule=\"evenodd\""); 1184 1185 WriteLiteral(">\r\n <g"); 1186 1187 WriteLiteral(" id=\"Icon\""); 1188 1189 WriteLiteral(" transform=\"translate(-580.000000, -397.000000)\""); 1190 1191 WriteLiteral(" fill=\"#FFFFFF\""); 1192 1193 WriteLiteral(">\r\n <g"); 1194 1195 WriteLiteral(" id=\"Group-12\""); 1196 1197 WriteLiteral(">\r\n <g"); 1198 1199 WriteLiteral(" id=\"Group-19\""); 1200 1201 WriteLiteral(" transform=\"translate(0.000000, 44.000000)\""); 1202 1203 WriteLiteral(">\r\n <g"); 1204 1205 WriteLiteral(" id=\"Group-6\""); 1206 1207 WriteLiteral(" transform=\"translate(580.000000, 353.000000)\""); 1208 1209 WriteLiteral(">\r\n <path"); 1210 1211 WriteLiteral(@" d=""M16.6666667,16.6666667 C16.6666667,16.6666667 16.6666667,16 16.6666667,13.8333333 C16.6666667,11.3333333 18,10 21,10 C21.5,10 25,10 25,10 L25,14.1666667 C25,14.1666667 23.3333333,14.1666667 22.6666667,14.1666667 C21.8333333,14.1666667 21.6666667,14.5 21.6666667,15.3333333 C21.6666667,16 21.6666667,16.6666667 21.6666667,16.6666667 L25,16.6666667 L24.6666667,20 L21.6666667,20 L21.6666667,30 L16.6666667,30 L16.6666667,20 L13.3333333,20 L13.3333333,16.6666667 L16.6666667,16.6666667 Z M20,40 C9,40 -2.4158453e-13,31 -2.4158453e-13,20 C-2.4158453e-13,9 9,0 20,0 C31,0 40,9 40,20 C40,31 31,40 20,40 Z M20,1.66666667 C9.83333333,1.66666667 1.66666667,9.83333333 1.66666667,20 C1.66666667,30.1666667 10,38.3333333 20,38.3333333 C30.1666667,38.3333333 38.3333333,30 38.3333333,20 C38.3333333,9.83333333 30.1666667,1.66666667 20,1.66666667 Z"""); 1212 1213 WriteLiteral(" id=\"Combined-Shape\""); 1214 1215 WriteLiteral(@"></path> 1216 </g> 1217 </g> 1218 </g> 1219 </g> 1220 </g> 1221 </svg> 1222 </a><a"); 1223 1224 WriteAttribute("href", Tuple.Create(" href=\"", 17906), Tuple.Create("\"", 18037) 1225 , Tuple.Create(Tuple.Create("", 17913), Tuple.Create("https://www.linkedin.com/shareArticle?mini=true&amp;url=", 17913), true) 1226 1227 #line 298 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1228 , Tuple.Create(Tuple.Create("", 17969), Tuple.Create<System.Object, System.Int32>(shareUrl 1229 1230 #line default 1231 #line hidden 1232 , 17969), false) 1233 , Tuple.Create(Tuple.Create("", 17978), Tuple.Create("&amp;title=", 17978), true) 1234 1235 #line 298 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1236 , Tuple.Create(Tuple.Create("", 17989), Tuple.Create<System.Object, System.Int32>(shareTitle.UrlEncode() 1237 1238 #line default 1239 #line hidden 1240 , 17989), false) 1241 , Tuple.Create(Tuple.Create("", 18012), Tuple.Create("&amp;summary=&amp;source=", 18012), true) 1242 ); 1243 1244 WriteLiteral(" target=\"_blank\""); 1245 1246 WriteLiteral(">\r\n <svg"); 1247 1248 WriteLiteral(" width=\"40px\""); 1249 1250 WriteLiteral(" height=\"40px\""); 1251 1252 WriteLiteral(" viewBox=\"0 0 40 40\""); 1253 1254 WriteLiteral(" version=\"1.1\""); 1255 1256 WriteLiteral(" xmlns=\"http://www.w3.org/2000/svg\""); 1257 1258 WriteLiteral(" xmlns:xlink=\"http://www.w3.org/1999/xlink\""); 1259 1260 WriteLiteral(">\r\n <title>LinkedIn logo</title>\r\n" + 1261 " <g"); 1262 1263 WriteLiteral(" id=\"SocialShare_LinkedIn\""); 1264 1265 WriteLiteral(" stroke=\"none\""); 1266 1267 WriteLiteral(" stroke-width=\"1\""); 1268 1269 WriteLiteral(" fill=\"none\""); 1270 1271 WriteLiteral(" fill-rule=\"evenodd\""); 1272 1273 WriteLiteral(">\r\n <g"); 1274 1275 WriteLiteral(" id=\"Icon\""); 1276 1277 WriteLiteral(" transform=\"translate(-700.000000, -397.000000)\""); 1278 1279 WriteLiteral(" fill=\"#FFFFFF\""); 1280 1281 WriteLiteral(" fill-rule=\"nonzero\""); 1282 1283 WriteLiteral(">\r\n <g"); 1284 1285 WriteLiteral(" id=\"Group-12\""); 1286 1287 WriteLiteral(">\r\n <g"); 1288 1289 WriteLiteral(" id=\"Group-19\""); 1290 1291 WriteLiteral(" transform=\"translate(0.000000, 44.000000)\""); 1292 1293 WriteLiteral(">\r\n <g"); 1294 1295 WriteLiteral(" id=\"Group-6\""); 1296 1297 WriteLiteral(" transform=\"translate(580.000000, 353.000000)\""); 1298 1299 WriteLiteral(">\r\n <path"); 1300 1301 WriteLiteral(@" d=""M136.666667,13.3333333 C136.666667,14.3333333 136,15 135,15 C134,15 133.333333,14.3333333 133.333333,13.3333333 C133.333333,12.3333333 134,11.6666667 135,11.6666667 C136,11.6666667 136.666667,12.3333333 136.666667,13.3333333 Z M136.666667,16.6666667 L136.666667,26.6666667 L133.333333,26.6666667 L133.333333,16.6666667 L136.666667,16.6666667 Z M141.666667,16.6666667 L141.666667,18.5 C143.166667,15.6666667 148.333333,15.5 148.333333,21 C148.333333,24 148.333333,26.6666667 148.333333,26.6666667 L145,26.6666667 C145,26.6666667 145,23.5 145,21.8333333 C145,18.6666667 141.666667,19 141.666667,21.8333333 C141.666667,23.6666667 141.666667,26.6666667 141.666667,26.6666667 L138.333333,26.6666667 L138.333333,16.6666667 L141.666667,16.6666667 Z M140,40 C129,40 120,31 120,20 C120,9 129,0 140,0 C151,0 160,9 160,20 C160,31 151,40 140,40 Z M140,1.66666667 C129.833333,1.66666667 121.666667,9.83333333 121.666667,20 C121.666667,30.1666667 130,38.3333333 140,38.3333333 C150.166667,38.3333333 158.333333,30 158.333333,20 C158.333333,9.83333333 150.166667,1.66666667 140,1.66666667 Z"""); 1302 1303 WriteLiteral(" id=\"Combined-Shape\""); 1304 1305 WriteLiteral(@"></path> 1306 </g> 1307 </g> 1308 </g> 1309 </g> 1310 </g> 1311 </svg> 1312 </a> 1313 <p>&nbsp;</p> 1314 </text> 1315 </div> 1316 1317 "); 1318 1319 WriteLiteral("\r\n <h5>"); 1320 1321 1322 #line 319 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1323 Write(Translate("WinAction_MyMotivation", "My motivation")); 1324 1325 1326 #line default 1327 #line hidden 1328 WriteLiteral(":</h5>\r\n <p>"); 1329 1330 1331 #line 320 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1332 Write(motivation); 1333 1334 1335 #line default 1336 #line hidden 1337 WriteLiteral("</p>\r\n <p><br />"); 1338 1339 1340 #line 321 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1341 Write(participant); 1342 1343 1344 #line default 1345 #line hidden 1346 WriteLiteral("</p>\r\n\r\n "); 1347 1348 WriteLiteral("\r\n <p>&nbsp;</p>\r\n " + 1349 "<p>&nbsp;</p>\r\n <p><a"); 1350 1351 WriteAttribute("href", Tuple.Create(" href=\"", 21106), Tuple.Create("\"", 21177) 1352 , Tuple.Create(Tuple.Create("", 21113), Tuple.Create("/Default.aspx?ID=", 21113), true) 1353 1354 #line 326 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1355 , Tuple.Create(Tuple.Create("", 21130), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.PageView.Current().Page.ID 1356 1357 #line default 1358 #line hidden 1359 , 21130), false) 1360 ); 1361 1362 WriteLiteral(" class=\"button btn-tolist\""); 1363 1364 WriteLiteral(">"); 1365 1366 1367 #line 326 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1368 Write(Translate("WinAction_ToList", "View all participants")); 1369 1370 1371 #line default 1372 #line hidden 1373 WriteLiteral("</a></p>\r\n </div>\r\n </div>\r\n " + 1374 " </div>\r\n </div>\r\n"); 1375 1376 1377 #line 331 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1378 } 1379 else if (currentView.Equals("Announcement") && Model.Placeholder("Announcement").Any()) 1380 { 1381 1382 1383 #line default 1384 #line hidden 1385 1386 #line 334 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1387 Write(Model.Placeholder("Announcement", "Zichtbaar tijdens de aankondigingsperiode", "sort:1")); 1388 1389 1390 #line default 1391 #line hidden 1392 1393 #line 334 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1394 1395 } 1396 else if (currentView.Equals("Action") && Model.Placeholder("Action").Any()) 1397 { 1398 1399 1400 #line default 1401 #line hidden 1402 1403 #line 338 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1404 Write(Model.Placeholder("Action", "Zichtbaar tijdens de actieperiode", "default:true;sort:2")); 1405 1406 1407 #line default 1408 #line hidden 1409 1410 #line 338 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1411 1412 } 1413 else if (currentView.Equals("Results") && Model.Placeholder("Results").Any()) 1414 { 1415 1416 1417 #line default 1418 #line hidden 1419 1420 #line 342 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1421 Write(Model.Placeholder("Results", "Zichtbaar tijdens de afkondiging- en uitslagperiode", "sort:3")); 1422 1423 1424 #line default 1425 #line hidden 1426 1427 #line 342 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1428 1429 } 1430 } 1431 1432 if (!string.IsNullOrWhiteSpace(backgroundImage) && backgroundImage.Length > 10) 1433 { 1434 var position = pageItem.GetString("BackgroundImagePosition"); 1435 var repeat = pageItem.GetString("BackgroundImageRepeat"); 1436 1437 1438 #line default 1439 #line hidden 1440 WriteLiteral(" <script>\r\n $(document).ready(function () {\r\n " + 1441 " WinAction.SetBackgroundImage(\'"); 1442 1443 1444 #line 352 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1445 Write(backgroundImage); 1446 1447 1448 #line default 1449 #line hidden 1450 WriteLiteral("\', \'"); 1451 1452 1453 #line 352 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1454 Write(position); 1455 1456 1457 #line default 1458 #line hidden 1459 WriteLiteral("\', \'"); 1460 1461 1462 #line 352 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1463 Write(repeat); 1464 1465 1466 #line default 1467 #line hidden 1468 WriteLiteral("\');\r\n });\r\n </script>\r\n"); 1469 1470 1471 #line 355 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1472 } 1473 } 1474 1475 1476 #line default 1477 #line hidden 1478 WriteLiteral("\r\n\r\n </main>\r\n </div>\r\n </div>\r\n <script"); 1479 1480 WriteAttribute("src", Tuple.Create(" src=\"", 22653), Tuple.Create("\"", 22708) 1481 , Tuple.Create(Tuple.Create("", 22659), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/Huuskes/dist/app.min.js") 1482 , 22659), false) 1483 ); 1484 1485 WriteLiteral("></script>\r\n <script>\r\n $(document).ready(function () {\r\n Pa" + 1486 "ge.ShowHideInternetExplorerWarning();\r\n });\r\n </script>\r\n"); 1487 1488 WriteLiteral(" "); 1489 1490 1491 #line 368 "D:\inetpub\wwwroot\www.huuskes.nl\Files\Templates\Designs\Huuskes\_parsed\HuuskesWinActionPage.parsed.cshtml" 1492 Write(RenderSnippet("JavaScriptBottom")); 1493 1494 1495 #line default 1496 #line hidden 1497 WriteLiteral("\r\n</body>\r\n</html>\r\n"); 1498 1499 } 1500 } 1501 } 1502

1 @using Dynamicweb.Frontend 2 @using System.Web.Mvc 3 @using System 4 @using Huuskes.Repository.Helpers 5 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 6 @Title("Master view model template") 7 @Description("Master template for a default page") 8 9 @{ 10 var pv = PageView.Current(); 11 var lang = pv.GlobalTags.GetTagByName("Global:Area.Lang").Value; 12 var scheme = pv.GlobalTags.GetTagByName("Global:Request.Scheme").Value; 13 var host = pv.GlobalTags.GetTagByName("Global:Request.Host").Value; 14 var requestHost = string.Format("{0}://{1}", scheme, host); 15 var pageTitle = Model.Title; 16 if (string.IsNullOrWhiteSpace(pageTitle)) 17 { 18 pageTitle = Translate("DefaultPageTitle", "Innovadis"); 19 } 20 var pageDescription = Model.Description; 21 var pageKeywords = Model.Keywords; 22 23 var requestContext = System.Web.HttpContext.Current.Request.RequestContext; 24 var urlHelper = new UrlHelper(requestContext); 25 26 var mainCssUrl = urlHelper.ContentVersioned("~/Files/Templates/Designs/Huuskes/dist/main.min.css"); 27 28 var googleTagManagerCode = AreaHelper.GetAreaItemStringValueBySystemName("GoogleTagManagerCode", Dynamicweb.Frontend.PageView.Current().AreaID); 29 } 30 31 <!DOCTYPE html> 32 <html> 33 <head> 34 <meta charset="utf-8" /> 35 <title>@pageTitle</title> 36 @if (!string.IsNullOrWhiteSpace(pageDescription)) 37 { 38 <meta name="description" content="@pageDescription" /> 39 } 40 @if (!string.IsNullOrWhiteSpace(pageKeywords)) 41 { 42 <meta name="keywords" content="@pageKeywords" /> 43 } 44 @{ 45 // cookieService and googleTagManagerCode come from Master.cshtml 46 if (!string.IsNullOrEmpty(googleTagManagerCode) && cookieService.AllowTracking()) 47 { 48 <!-- Google Tag Manager --> 49 <script> 50 (function (w, d, s, l, i) { 51 w[l] = w[l] || []; w[l].push({ 52 'gtm.start': 53 new Date().getTime(), event: 'gtm.js' 54 }); var f = d.getElementsByTagName(s)[0], 55 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 56 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 57 })(window, document, 'script', 'dataLayer', '@googleTagManagerCode');</script> 58 <!-- End Google Tag Manager --> 59 } 60 } 61 @RenderSnippet("OgTags") 62 <meta http-equiv="content-language" content='@lang' /> 63 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 64 <meta http-equiv="imagetoolbar" content="no" /> 65 <meta http-equiv="x-dns-prefetch-control" content="on" /> 66 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 67 <meta name="viewport" content="width=device-width, user-scalable=no" /> 68 <meta name="application-name" content="Huuskes" /> 69 <meta name="author" content="Innovadis BV, Enschede" /> 70 <meta name="copyright" content='Innovadis BV, Enschede, @DateTime.Now.Year' /> 71 <meta name="web_author" content="Innovadis BV, Enschede" /> 72 <link rel="dns-prefetch" href='@requestHost' /> 73 <link rel="icon" href="/Files/SystemImages/favicon.png" type="image/png" /> 74 <link rel="shortcut icon" href="/Files/SystemImages/favicon.png" type="image/png" /> 75 <link rel="stylesheet" href="https://use.typekit.net/nop4ttz.css"> 76 <link rel="stylesheet" href="@mainCssUrl" /> 77 @RenderSnippet("WinActionCss") 78 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" type="text/javascript"></script> 79 <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js" integrity="sha256-KM512VNnjElC30ehFwehXjx1YCHPiQkOPmqnrWtpccM=" crossorigin="anonymous"></script> 80 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" integrity="sha256-rByPlHULObEjJ6XQxW/flG2r+22R5dKiAoef+aXWfik=" crossorigin="anonymous" /> 81 </head> 82 <body> 83 @{ 84 // cookieService and googleTagManagerCode come from Master.cshtml 85 if (!string.IsNullOrEmpty(googleTagManagerCode) && cookieService.AllowTracking()) 86 { 87 var tagManagerUrl = string.Format("https://www.googletagmanager.com/ns.html?id={0}", googleTagManagerCode); 88 <!-- Google Tag Manager (noscript) --> 89 <noscript> 90 <iframe src="@tagManagerUrl" 91 height="0" width="0" style="display:none;visibility:hidden"></iframe> 92 </noscript> 93 <!-- End Google Tag Manager (noscript) --> 94 } 95 } 96 <div class="master-grid-container"> 97 <div id="ie-warning">@Translate("InternetExplorerWarning", "")</div> 98 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 99 @{ 100 var headerLogo = Model.Area.Item.GetFile("HeaderLogo")?.Path; 101 var headerLink = string.Format("Default.aspx?ID={0}", Model.Area.FirstActivePage.ID); 102 var huibLink = Model.Area.Item.GetString("HuibLink"); 103 var languages = Model.Area.Languages; 104 } 105 <header class="header winaction grid-content-template"> 106 <div class="max-width grid-content"> 107 @if (!string.IsNullOrEmpty(headerLogo)) 108 { 109 <a class="header_logo" href="@headerLink"> 110 <img src="@headerLogo" alt="Huuskes Logo" /> 111 </a> 112 } 113 </div> 114 </header> 115 <div class="main"> 116 <main class="content winaction"> 117 @using Huuskes.Repository.Helpers 118 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 119 @Title("Doe-mee-en-win pagina") 120 @Description("Template voor een doe-mee-en-win actie pagina") 121 122 @{ 123 var pageItem = Model.Item; 124 if (pageItem != null && Model.ItemType.Equals(Huuskes.Items.Constants.ItemConstants.Page_HuuskesWinActionPage)) 125 { 126 var startDateTime = pageItem.GetDateTime("StartDateTime"); 127 var endDateTime = pageItem.GetDateTime("EndDateTime"); 128 var currentDateTime = DateTime.Now; 129 var currentView = ""; 130 if (currentDateTime < startDateTime) 131 { 132 currentView = "Announcement"; 133 } 134 else if (currentDateTime >= startDateTime && currentDateTime < endDateTime) 135 { 136 currentView = "Action"; 137 } 138 else if (currentDateTime > endDateTime) 139 { 140 currentView = "Results"; 141 } 142 143 var backgroundImage = pageItem.GetString("BackgroundImage"); 144 if (!string.IsNullOrWhiteSpace(currentView)) 145 { 146 147 @SnippetStart("WinActionCss") 148 @Huuskes.Repository.Helpers.WinActionHelper.GetWinActionCss( 149 pageItem.GetString("BackColor"), 150 pageItem.GetString("TextColor"), 151 pageItem.GetString("ButtonBackColor"), 152 pageItem.GetString("ButtonTextColor"), 153 pageItem.GetList("ButtonPosition").SelectedValue, 154 pageItem.GetString("BackgroundImage")) 155 @SnippetEnd("WinActionCss") 156 157 var participantIdValue = System.Web.HttpContext.Current.Request.QueryString.Get(Translate("WinActionParticipantId", "deelnemer")) ?? ""; 158 159 // used for e-mail confirmation 160 var voteSecretQuery = System.Web.HttpContext.Current.Request.QueryString.Get("secret") ?? ""; 161 162 if (!string.IsNullOrWhiteSpace(participantIdValue) && Guid.TryParse(participantIdValue, out Guid participantId) && !currentView.Equals("Announcement")) 163 { 164 var voted = System.Web.HttpContext.Current.Request.QueryString.Get("voted")?.Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? false; 165 var isNew = System.Web.HttpContext.Current.Request.QueryString.Get("new")?.Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? false; 166 167 var participation = Huuskes.Repository.Helpers.WinActionHelper.GetParticipation(Dynamicweb.Frontend.PageView.Current().Page.ID, participantIdValue); 168 var participant = Huuskes.Repository.Helpers.FormatHelper.CreateFullName(participation.LastName, participation.FirstName); 169 if (!string.IsNullOrWhiteSpace(participation.City)) 170 { 171 participant = $"<b>{participant}</b><br />{participation.City}"; 172 } 173 var motivation = Huuskes.Repository.Helpers.FormatHelper.ReplaceNewlineWithBr(participation.Motivation); 174 175 var pageService = new Dynamicweb.Content.PageService(); 176 var votePage = pageService.GetPageByNavigationTag(Dynamicweb.Frontend.PageView.Current().AreaID, Huuskes.Models.Constants.StringConstants.NavigationTags.WinActionVoteForm); 177 178 var introText = isNew ? pageItem.GetString("FormConfirmationText") : pageItem.GetString("DeelnemeIntro"); 179 180 var shareUrl = $"{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Scheme").Value}://{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Host").Value}{Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Frontend.PageView.Current().Page.ID)}?{Translate("WinActionParticipantId", "deelnemer")}={participantIdValue}".UrlEncode(); 181 var shareTitle = pageItem.GetString("ActionName"); 182 var shareDescription = pageItem.GetString("ParticipationShareText"); 183 var shareImage = $"{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Scheme").Value}://{Dynamicweb.Frontend.PageView.Current().GlobalTags.GetTagByName("Global:Request.Host").Value}{participation.Photo}"; 184 var voteCounterBackgroundImage = pageItem.GetString("VoteCounterBackground").Trim(); 185 if (string.IsNullOrWhiteSpace(voteCounterBackgroundImage) || voteCounterBackgroundImage.Length < 10) 186 { 187 voteCounterBackgroundImage = "/Files/Templates/Designs/Huuskes/images/VoteCounter.png"; 188 } 189 var photoText = Huuskes.Repository.Helpers.WinActionHelper.GetPhotoText(participation, pageItem.Id); 190 191 @SnippetStart("OgTags") 192 <meta property="og:title" content="@shareTitle - @photoText" /> 193 <meta property="og:description" content="@shareDescription" /> 194 <meta property="og:type" content="website" /> 195 <meta property="og:url" content="@shareUrl" /> 196 <meta property="og:image" content="@shareImage" /> 197 <meta property="og:locale" content="@Dynamicweb.Frontend.PageView.Current().Area.Culture.Replace("-", "_")" /> 198 @SnippetEnd("OgTags") 199 200 @*PHOTO*@ 201 <div class="photo participant-view"> 202 <div class="photo_imagecontainer"> 203 <div class="image"> 204 <img src="@participation.Photo" /> 205 <div class="text"> 206 @photoText 207 <div class="counter" style="background-image:url('@voteCounterBackgroundImage');">@participation.TotalVotes</div> 208 </div> 209 </div> 210 </div> 211 </div> 212 213 <div class="text-component no-image text-small grid-content-template padding"> 214 <div class="max-width grid-content"> 215 <div class="text-component_content"> 216 <div class="text-component_text rich-text"> 217 218 @*INTRO*@ 219 @introText 220 221 @*VOTING*@ 222 @if (votePage != null && !voted) 223 { 224 var paragraphService = new Dynamicweb.Content.ParagraphService(); 225 var voteParagraphId = paragraphService.GetParagraphsByPageId(votePage.ID)?.FirstOrDefault(p => p.ItemType.Equals(Huuskes.Items.Constants.ItemConstants.Item_FormsForEditors) && p.ShowParagraph)?.ID ?? 0; 226 if (voteParagraphId > 0) 227 { 228 var formTitle = pageItem.GetString("VoteTitle"); 229 if (!string.IsNullOrWhiteSpace(formTitle)) 230 { 231 formTitle = $"<h5>{formTitle}</h5>"; 232 } 233 <div id="voteForm"> 234 @formTitle 235 @pageItem.GetString("VoteIntro") 236 @RenderParagraphContent(voteParagraphId) 237 </div> 238 } 239 } 240 241 @if (!string.IsNullOrEmpty(voteSecretQuery)) 242 { 243 // register vote based on secret 244 WinActionHelper.VerifyWinActionVoteBySecret(voteSecretQuery); 245 246 <div id="go-to-vote-confirmation" class="vote-confirmation"> 247 <hr /> 248 <p>&nbsp;</p> 249 <span class="confirmation">@pageItem.GetString("VoteEmailConfirmationText")</span> 250 <p>&nbsp;</p> 251 <hr /> 252 </div> 253 <script> 254 $(document).ready(function () { 255 WinAction.ScrollToAnchor("go-to-vote-confirmation"); 256 }); 257 </script> 258 } 259 260 @if (voted && string.IsNullOrEmpty(voteSecretQuery)) 261 { 262 <a id="go-to-vote-confirmation"></a> 263 <div class="vote-confirmation"> 264 <hr /> 265 <p>&nbsp;</p> 266 <span class="confirmation">@pageItem.GetString("VoteConfirmationText")</span> 267 <p>&nbsp;</p> 268 <hr /> 269 </div> 270 <script> 271 $(document).ready(function () { 272 WinAction.ScrollToAnchor("go-to-vote-confirmation"); 273 }); 274 </script> 275 } 276 277 @*SHARE*@ 278 <div class="share-holder" style="display: block;"> 279 <text> 280 <h5>@Translate("WinAction_Share", "Share"):</h5> 281 @*https://www.facebook.com/sharer/sharer.php?u=https%3a%2f%2fhuuskes.local.innovadis.io%2fDefault.aspx%3fID%3d512*@ 282 283 <a href="https://www.facebook.com/sharer/sharer.php?u=@shareUrl" target="_blank"> 284 <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 285 <title>Facebook logo</title> 286 <g id="SocialShare_Facebook" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 287 <g id="Icon" transform="translate(-580.000000, -397.000000)" fill="#FFFFFF"> 288 <g id="Group-12"> 289 <g id="Group-19" transform="translate(0.000000, 44.000000)"> 290 <g id="Group-6" transform="translate(580.000000, 353.000000)"> 291 <path d="M16.6666667,16.6666667 C16.6666667,16.6666667 16.6666667,16 16.6666667,13.8333333 C16.6666667,11.3333333 18,10 21,10 C21.5,10 25,10 25,10 L25,14.1666667 C25,14.1666667 23.3333333,14.1666667 22.6666667,14.1666667 C21.8333333,14.1666667 21.6666667,14.5 21.6666667,15.3333333 C21.6666667,16 21.6666667,16.6666667 21.6666667,16.6666667 L25,16.6666667 L24.6666667,20 L21.6666667,20 L21.6666667,30 L16.6666667,30 L16.6666667,20 L13.3333333,20 L13.3333333,16.6666667 L16.6666667,16.6666667 Z M20,40 C9,40 -2.4158453e-13,31 -2.4158453e-13,20 C-2.4158453e-13,9 9,0 20,0 C31,0 40,9 40,20 C40,31 31,40 20,40 Z M20,1.66666667 C9.83333333,1.66666667 1.66666667,9.83333333 1.66666667,20 C1.66666667,30.1666667 10,38.3333333 20,38.3333333 C30.1666667,38.3333333 38.3333333,30 38.3333333,20 C38.3333333,9.83333333 30.1666667,1.66666667 20,1.66666667 Z" id="Combined-Shape"></path> 292 </g> 293 </g> 294 </g> 295 </g> 296 </g> 297 </svg> 298 </a><a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=@shareUrl&amp;title=@shareTitle.UrlEncode()&amp;summary=&amp;source=" target="_blank"> 299 <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 300 <title>LinkedIn logo</title> 301 <g id="SocialShare_LinkedIn" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 302 <g id="Icon" transform="translate(-700.000000, -397.000000)" fill="#FFFFFF" fill-rule="nonzero"> 303 <g id="Group-12"> 304 <g id="Group-19" transform="translate(0.000000, 44.000000)"> 305 <g id="Group-6" transform="translate(580.000000, 353.000000)"> 306 <path d="M136.666667,13.3333333 C136.666667,14.3333333 136,15 135,15 C134,15 133.333333,14.3333333 133.333333,13.3333333 C133.333333,12.3333333 134,11.6666667 135,11.6666667 C136,11.6666667 136.666667,12.3333333 136.666667,13.3333333 Z M136.666667,16.6666667 L136.666667,26.6666667 L133.333333,26.6666667 L133.333333,16.6666667 L136.666667,16.6666667 Z M141.666667,16.6666667 L141.666667,18.5 C143.166667,15.6666667 148.333333,15.5 148.333333,21 C148.333333,24 148.333333,26.6666667 148.333333,26.6666667 L145,26.6666667 C145,26.6666667 145,23.5 145,21.8333333 C145,18.6666667 141.666667,19 141.666667,21.8333333 C141.666667,23.6666667 141.666667,26.6666667 141.666667,26.6666667 L138.333333,26.6666667 L138.333333,16.6666667 L141.666667,16.6666667 Z M140,40 C129,40 120,31 120,20 C120,9 129,0 140,0 C151,0 160,9 160,20 C160,31 151,40 140,40 Z M140,1.66666667 C129.833333,1.66666667 121.666667,9.83333333 121.666667,20 C121.666667,30.1666667 130,38.3333333 140,38.3333333 C150.166667,38.3333333 158.333333,30 158.333333,20 C158.333333,9.83333333 150.166667,1.66666667 140,1.66666667 Z" id="Combined-Shape"></path> 307 </g> 308 </g> 309 </g> 310 </g> 311 </g> 312 </svg> 313 </a> 314 <p>&nbsp;</p> 315 </text> 316 </div> 317 318 @*MOTIVATION*@ 319 <h5>@Translate("WinAction_MyMotivation", "My motivation"):</h5> 320 <p>@motivation</p> 321 <p><br />@participant</p> 322 323 @*BACK*@ 324 <p>&nbsp;</p> 325 <p>&nbsp;</p> 326 <p><a href="/Default.aspx?ID=@Dynamicweb.Frontend.PageView.Current().Page.ID" class="button btn-tolist">@Translate("WinAction_ToList", "View all participants")</a></p> 327 </div> 328 </div> 329 </div> 330 </div> 331 } 332 else if (currentView.Equals("Announcement") && Model.Placeholder("Announcement").Any()) 333 { 334 @Model.Placeholder("Announcement", "Zichtbaar tijdens de aankondigingsperiode", "sort:1") 335 } 336 else if (currentView.Equals("Action") && Model.Placeholder("Action").Any()) 337 { 338 @Model.Placeholder("Action", "Zichtbaar tijdens de actieperiode", "default:true;sort:2") 339 } 340 else if (currentView.Equals("Results") && Model.Placeholder("Results").Any()) 341 { 342 @Model.Placeholder("Results", "Zichtbaar tijdens de afkondiging- en uitslagperiode", "sort:3") 343 } 344 } 345 346 if (!string.IsNullOrWhiteSpace(backgroundImage) && backgroundImage.Length > 10) 347 { 348 var position = pageItem.GetString("BackgroundImagePosition"); 349 var repeat = pageItem.GetString("BackgroundImageRepeat"); 350 <script> 351 $(document).ready(function () { 352 WinAction.SetBackgroundImage('@backgroundImage', '@position', '@repeat'); 353 }); 354 </script> 355 } 356 } 357 } 358 359 </main> 360 </div> 361 </div> 362 <script src="~/Files/Templates/Designs/Huuskes/dist/app.min.js"></script> 363 <script> 364 $(document).ready(function () { 365 Page.ShowHideInternetExplorerWarning(); 366 }); 367 </script> 368 @RenderSnippet("JavaScriptBottom") 369 </body> 370 </html> 371