Error compiling template "Designs/Rapido/_parsed/ContentPage.parsed.cshtml"
Line 11052: The name 'RenderImage' does not exist in the current context
Line 11406: The name 'RenderImage' does not exist in the current context
Line 14211: The variable 'startLevel' is assigned but its value is never used
Line 19978: The variable 'startLevel' is assigned but its value is never used

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 7646 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 8458 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 1888 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 8655 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 32 using System.Web; 33 34 #line default 35 #line hidden 36 37 #line 8658 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 38 using Dynamicweb; 39 40 #line default 41 #line hidden 42 43 #line 8454 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 44 using Dynamicweb.Frontend; 45 46 #line default 47 #line hidden 48 49 #line 8455 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 50 using Dynamicweb.Frontend.Devices; 51 52 #line default 53 #line hidden 54 55 #line 7 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 56 using Dynamicweb.Extensibility; 57 58 #line default 59 #line hidden 60 61 #line 8 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 62 using Dynamicweb.Content; 63 64 #line default 65 #line hidden 66 67 #line 9 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 68 using Dynamicweb.Security; 69 70 #line default 71 #line hidden 72 73 #line 8659 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 74 using Dynamicweb.Core; 75 76 #line default 77 #line hidden 78 79 #line 7979 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 80 using System.IO; 81 82 #line default 83 #line hidden 84 85 #line 4567 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 86 using System.Text.RegularExpressions; 87 88 #line default 89 #line hidden 90 91 #line 8657 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 92 using Dynamicweb.Rapido.Blocks; 93 94 #line default 95 #line hidden 96 97 #line 16 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 98 using System.Net; 99 100 #line default 101 #line hidden 102 103 #line 17 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 104 using Dynamicweb.Logging; 105 106 #line default 107 #line hidden 108 109 #line 18 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 110 using Dynamicweb.Environment; 111 112 #line default 113 #line hidden 114 115 #line 8418 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 116 using System.Reflection; 117 118 #line default 119 #line hidden 120 121 #line 1980 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 122 using System.Web.UI.HtmlControls; 123 124 #line default 125 #line hidden 126 127 #line 8452 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 128 using Dynamicweb.Rapido.Blocks.Components; 129 130 #line default 131 #line hidden 132 133 #line 3166 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 134 using Dynamicweb.Rapido.Blocks.Components.Articles; 135 136 #line default 137 #line hidden 138 139 #line 162 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 140 using Dynamicweb.Rapido.Blocks.Components.Documentation; 141 142 #line default 143 #line hidden 144 145 #line 8457 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 146 using Dynamicweb.Rapido.Blocks.Components.General; 147 148 #line default 149 #line hidden 150 151 #line 8456 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 152 using Dynamicweb.Rapido.Blocks.Components.Ecommerce; 153 154 #line default 155 #line hidden 156 157 #line 2337 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 158 using Dynamicweb.Content.Items; 159 160 #line default 161 #line hidden 162 163 #line 8656 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 164 using Dynamicweb.Rapido.Blocks.Extensibility; 165 166 #line default 167 #line hidden 168 169 #line 3467 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 170 using Dynamicweb.Security.UserManagement; 171 172 #line default 173 #line hidden 174 175 #line 3468 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 176 using Dynamicweb.Security.UserManagement.ExternalAuthentication; 177 178 #line default 179 #line hidden 180 181 #line 7652 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 182 using Dynamicweb.Rapido.Services; 183 184 #line default 185 #line hidden 186 187 #line 4910 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 188 using Smartpage.PhilipsonWine.Ecommerce.CartInformation; 189 190 #line default 191 #line hidden 192 193 #line 5606 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 194 using Dynamicweb.Ecommerce; 195 196 #line default 197 #line hidden 198 199 #line 7614 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 200 using Dynamicweb.Ecommerce.Common; 201 202 #line default 203 #line hidden 204 205 206 public class RazorEngine_23a4d599bc6344dbac96fc244be4500c : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 207 208 #line hidden 209 210 #line 21 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 211 212 BlocksPage masterPage = BlocksPage.GetBlockPage("Master"); 213 214 string getFontFamily(params string[] items) 215 { 216 var itemParent = Pageview.AreaSettings; 217 foreach (var item in items) 218 { 219 itemParent = itemParent.GetItem(item); 220 if (itemParent == null) 221 { 222 return null; 223 } 224 } 225 226 var googleFont = itemParent.GetGoogleFont("FontFamily"); 227 if (googleFont == null) 228 { 229 return null; 230 } 231 return googleFont.Family.Replace(" ", "+"); 232 } 233 234 235 #line default 236 #line hidden 237 238 239 #line 168 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 240 public RazorEngine.Templating.TemplateWriter RenderBlockList(List<Block> blocks) 241 { 242 #line default 243 #line hidden 244 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 245 246 #line 169 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 247 248 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 249 blocks = blocks.OrderBy(item => item.SortId).ToList(); 250 251 foreach (Block item in blocks) 252 { 253 if (debug) { 254 255 256 #line default 257 #line hidden 258 WriteLiteralTo(__razor_helper_writer, " <!-- Block START: "); 259 260 261 #line 176 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 262 WriteTo(__razor_helper_writer, item.Id); 263 264 265 #line default 266 #line hidden 267 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 268 269 270 #line 177 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 271 } 272 273 if (item.Design == null) 274 { 275 276 277 #line default 278 #line hidden 279 280 #line 181 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 281 WriteTo(__razor_helper_writer, RenderBlock(item)); 282 283 284 #line default 285 #line hidden 286 287 #line 181 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 288 289 } 290 else if (item.Design.RenderType == RenderType.None) { 291 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 292 293 294 295 #line default 296 #line hidden 297 WriteLiteralTo(__razor_helper_writer, " <div"); 298 299 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6285), Tuple.Create("\"", 6309) 300 301 #line 186 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 302 , Tuple.Create(Tuple.Create("", 6293), Tuple.Create<System.Object, System.Int32>(cssClass 303 304 #line default 305 #line hidden 306 , 6293), false) 307 , Tuple.Create(Tuple.Create(" ", 6302), Tuple.Create("dw-mod", 6303), true) 308 ); 309 310 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 311 312 WriteLiteralTo(__razor_helper_writer, " "); 313 314 315 #line 187 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 316 WriteTo(__razor_helper_writer, RenderBlock(item)); 317 318 319 #line default 320 #line hidden 321 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 322 323 324 #line 189 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 325 } 326 else if (item.Design.RenderType != RenderType.Hide) 327 { 328 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 329 330 if (!item.SkipRenderBlocksList) { 331 if (item.Design.RenderType == RenderType.Row) 332 { 333 334 335 #line default 336 #line hidden 337 WriteLiteralTo(__razor_helper_writer, " <div"); 338 339 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6695), Tuple.Create("\"", 6750) 340 , Tuple.Create(Tuple.Create("", 6703), Tuple.Create("grid", 6703), true) 341 , Tuple.Create(Tuple.Create(" ", 6707), Tuple.Create("grid--align-content-start", 6708), true) 342 343 #line 197 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 344 , Tuple.Create(Tuple.Create(" ", 6733), Tuple.Create<System.Object, System.Int32>(cssClass 345 346 #line default 347 #line hidden 348 , 6734), false) 349 , Tuple.Create(Tuple.Create(" ", 6743), Tuple.Create("dw-mod", 6744), true) 350 ); 351 352 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6751), Tuple.Create("\"", 6771) 353 , Tuple.Create(Tuple.Create("", 6756), Tuple.Create("Block__", 6756), true) 354 355 #line 197 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 356 , Tuple.Create(Tuple.Create("", 6763), Tuple.Create<System.Object, System.Int32>(item.Id 357 358 #line default 359 #line hidden 360 , 6763), false) 361 ); 362 363 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 364 365 WriteLiteralTo(__razor_helper_writer, " "); 366 367 368 #line 198 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 369 WriteTo(__razor_helper_writer, RenderBlock(item)); 370 371 372 #line default 373 #line hidden 374 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 375 376 377 #line 200 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 378 } 379 380 if (item.Design.RenderType == RenderType.Column) 381 { 382 string hidePadding = item.Design.HidePadding ? "u-no-padding" : ""; 383 string size = item.Design.Size ?? "12"; 384 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size; 385 386 387 388 #line default 389 #line hidden 390 WriteLiteralTo(__razor_helper_writer, " <div"); 391 392 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7231), Tuple.Create("\"", 7362) 393 , Tuple.Create(Tuple.Create("", 7239), Tuple.Create("grid__col-lg-", 7239), true) 394 395 #line 208 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 396 , Tuple.Create(Tuple.Create("", 7252), Tuple.Create<System.Object, System.Int32>(item.Design.Size 397 398 #line default 399 #line hidden 400 , 7252), false) 401 , Tuple.Create(Tuple.Create(" ", 7269), Tuple.Create("grid__col-md-", 7270), true) 402 403 #line 208 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 404 , Tuple.Create(Tuple.Create("", 7283), Tuple.Create<System.Object, System.Int32>(item.Design.Size 405 406 #line default 407 #line hidden 408 , 7283), false) 409 , Tuple.Create(Tuple.Create(" ", 7300), Tuple.Create("grid__col-sm-12", 7301), true) 410 , Tuple.Create(Tuple.Create(" ", 7316), Tuple.Create("grid__col-xs-12", 7317), true) 411 412 #line 208 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 413 , Tuple.Create(Tuple.Create(" ", 7332), Tuple.Create<System.Object, System.Int32>(hidePadding 414 415 #line default 416 #line hidden 417 , 7333), false) 418 419 #line 208 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 420 , Tuple.Create(Tuple.Create(" ", 7345), Tuple.Create<System.Object, System.Int32>(cssClass 421 422 #line default 423 #line hidden 424 , 7346), false) 425 , Tuple.Create(Tuple.Create(" ", 7355), Tuple.Create("dw-mod", 7356), true) 426 ); 427 428 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 7363), Tuple.Create("\"", 7383) 429 , Tuple.Create(Tuple.Create("", 7368), Tuple.Create("Block__", 7368), true) 430 431 #line 208 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 432 , Tuple.Create(Tuple.Create("", 7375), Tuple.Create<System.Object, System.Int32>(item.Id 433 434 #line default 435 #line hidden 436 , 7375), false) 437 ); 438 439 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 440 441 WriteLiteralTo(__razor_helper_writer, " "); 442 443 444 #line 209 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 445 WriteTo(__razor_helper_writer, RenderBlock(item)); 446 447 448 #line default 449 #line hidden 450 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 451 452 453 #line 211 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 454 } 455 456 if (item.Design.RenderType == RenderType.Table) 457 { 458 459 460 #line default 461 #line hidden 462 WriteLiteralTo(__razor_helper_writer, " <table"); 463 464 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7590), Tuple.Create("\"", 7620) 465 , Tuple.Create(Tuple.Create("", 7598), Tuple.Create("table", 7598), true) 466 467 #line 215 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 468 , Tuple.Create(Tuple.Create(" ", 7603), Tuple.Create<System.Object, System.Int32>(cssClass 469 470 #line default 471 #line hidden 472 , 7604), false) 473 , Tuple.Create(Tuple.Create(" ", 7613), Tuple.Create("dw-mod", 7614), true) 474 ); 475 476 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 7621), Tuple.Create("\"", 7641) 477 , Tuple.Create(Tuple.Create("", 7626), Tuple.Create("Block__", 7626), true) 478 479 #line 215 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 480 , Tuple.Create(Tuple.Create("", 7633), Tuple.Create<System.Object, System.Int32>(item.Id 481 482 #line default 483 #line hidden 484 , 7633), false) 485 ); 486 487 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 488 489 WriteLiteralTo(__razor_helper_writer, " "); 490 491 492 #line 216 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 493 WriteTo(__razor_helper_writer, RenderBlock(item)); 494 495 496 #line default 497 #line hidden 498 WriteLiteralTo(__razor_helper_writer, "\r\n </table>\r\n"); 499 500 501 #line 218 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 502 } 503 504 if (item.Design.RenderType == RenderType.TableRow) 505 { 506 507 508 #line default 509 #line hidden 510 WriteLiteralTo(__razor_helper_writer, " <tr"); 511 512 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7850), Tuple.Create("\"", 7874) 513 514 #line 222 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 515 , Tuple.Create(Tuple.Create("", 7858), Tuple.Create<System.Object, System.Int32>(cssClass 516 517 #line default 518 #line hidden 519 , 7858), false) 520 , Tuple.Create(Tuple.Create(" ", 7867), Tuple.Create("dw-mod", 7868), true) 521 ); 522 523 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 7875), Tuple.Create("\"", 7895) 524 , Tuple.Create(Tuple.Create("", 7880), Tuple.Create("Block__", 7880), true) 525 526 #line 222 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 527 , Tuple.Create(Tuple.Create("", 7887), Tuple.Create<System.Object, System.Int32>(item.Id 528 529 #line default 530 #line hidden 531 , 7887), false) 532 ); 533 534 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 535 536 WriteLiteralTo(__razor_helper_writer, " "); 537 538 539 #line 223 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 540 WriteTo(__razor_helper_writer, RenderBlock(item)); 541 542 543 #line default 544 #line hidden 545 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 546 547 548 #line 225 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 549 } 550 551 if (item.Design.RenderType == RenderType.TableColumn) 552 { 553 554 555 #line default 556 #line hidden 557 WriteLiteralTo(__razor_helper_writer, " <td"); 558 559 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 8104), Tuple.Create("\"", 8128) 560 561 #line 229 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 562 , Tuple.Create(Tuple.Create("", 8112), Tuple.Create<System.Object, System.Int32>(cssClass 563 564 #line default 565 #line hidden 566 , 8112), false) 567 , Tuple.Create(Tuple.Create(" ", 8121), Tuple.Create("dw-mod", 8122), true) 568 ); 569 570 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 8129), Tuple.Create("\"", 8149) 571 , Tuple.Create(Tuple.Create("", 8134), Tuple.Create("Block__", 8134), true) 572 573 #line 229 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 574 , Tuple.Create(Tuple.Create("", 8141), Tuple.Create<System.Object, System.Int32>(item.Id 575 576 #line default 577 #line hidden 578 , 8141), false) 579 ); 580 581 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 582 583 WriteLiteralTo(__razor_helper_writer, " "); 584 585 586 #line 230 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 587 WriteTo(__razor_helper_writer, RenderBlock(item)); 588 589 590 #line default 591 #line hidden 592 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 593 594 595 #line 232 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 596 } 597 598 if (item.Design.RenderType == RenderType.CardHeader) 599 { 600 601 602 #line default 603 #line hidden 604 WriteLiteralTo(__razor_helper_writer, " <div"); 605 606 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 8358), Tuple.Create("\"", 8394) 607 , Tuple.Create(Tuple.Create("", 8366), Tuple.Create("card-header", 8366), true) 608 609 #line 236 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 610 , Tuple.Create(Tuple.Create(" ", 8377), Tuple.Create<System.Object, System.Int32>(cssClass 611 612 #line default 613 #line hidden 614 , 8378), false) 615 , Tuple.Create(Tuple.Create(" ", 8387), Tuple.Create("dw-mod", 8388), true) 616 ); 617 618 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 619 620 WriteLiteralTo(__razor_helper_writer, " "); 621 622 623 #line 237 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 624 WriteTo(__razor_helper_writer, RenderBlock(item)); 625 626 627 #line default 628 #line hidden 629 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 630 631 632 #line 239 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 633 } 634 635 if (item.Design.RenderType == RenderType.CardBody) 636 { 637 638 639 #line default 640 #line hidden 641 WriteLiteralTo(__razor_helper_writer, " <div"); 642 643 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 8602), Tuple.Create("\"", 8631) 644 , Tuple.Create(Tuple.Create("", 8610), Tuple.Create("card", 8610), true) 645 646 #line 243 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 647 , Tuple.Create(Tuple.Create(" ", 8614), Tuple.Create<System.Object, System.Int32>(cssClass 648 649 #line default 650 #line hidden 651 , 8615), false) 652 , Tuple.Create(Tuple.Create(" ", 8624), Tuple.Create("dw-mod", 8625), true) 653 ); 654 655 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 656 657 WriteLiteralTo(__razor_helper_writer, " "); 658 659 660 #line 244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 661 WriteTo(__razor_helper_writer, RenderBlock(item)); 662 663 664 #line default 665 #line hidden 666 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 667 668 669 #line 246 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 670 } 671 672 if (item.Design.RenderType == RenderType.CardFooter) 673 { 674 675 676 #line default 677 #line hidden 678 WriteLiteralTo(__razor_helper_writer, " <div"); 679 680 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 8841), Tuple.Create("\"", 8877) 681 , Tuple.Create(Tuple.Create("", 8849), Tuple.Create("card-footer", 8849), true) 682 683 #line 250 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 684 , Tuple.Create(Tuple.Create(" ", 8860), Tuple.Create<System.Object, System.Int32>(cssClass 685 686 #line default 687 #line hidden 688 , 8861), false) 689 , Tuple.Create(Tuple.Create(" ", 8870), Tuple.Create("dw-mod", 8871), true) 690 ); 691 692 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 693 694 WriteLiteralTo(__razor_helper_writer, " "); 695 696 697 #line 251 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 698 WriteTo(__razor_helper_writer, RenderBlock(item)); 699 700 701 #line default 702 #line hidden 703 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 704 705 706 #line 253 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 707 } 708 } 709 else 710 { 711 712 713 #line default 714 #line hidden 715 716 #line 257 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 717 WriteTo(__razor_helper_writer, RenderBlock(item)); 718 719 720 #line default 721 #line hidden 722 723 #line 257 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 724 725 } 726 } 727 728 if (debug) { 729 730 731 #line default 732 #line hidden 733 WriteLiteralTo(__razor_helper_writer, " <!-- Block END: "); 734 735 736 #line 262 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 737 WriteTo(__razor_helper_writer, item.Id); 738 739 740 #line default 741 #line hidden 742 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 743 744 745 #line 263 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 746 } 747 } 748 749 750 #line default 751 #line hidden 752 }); 753 754 #line 265 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 755 } 756 #line default 757 #line hidden 758 759 760 #line 267 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 761 public RazorEngine.Templating.TemplateWriter RenderBlock(Block item) 762 { 763 #line default 764 #line hidden 765 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 766 767 #line 268 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 768 769 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 770 771 if (item.Template != null) 772 { 773 774 775 #line default 776 #line hidden 777 778 #line 273 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 779 WriteTo(__razor_helper_writer, BlocksPage.RenderTemplate(item.Template)); 780 781 782 #line default 783 #line hidden 784 785 #line 273 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 786 787 } 788 789 if (item.Component != null) 790 { 791 string customSufix = "Custom"; 792 string methodName = item.Component.HelperName; 793 794 ComponentBase[] methodParameters = new ComponentBase[1]; 795 methodParameters[0] = item.Component; 796 Type methodType = this.GetType(); 797 798 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix); 799 MethodInfo generalMethod = methodType.GetMethod(methodName); 800 801 try { 802 if (debug) { 803 804 805 #line default 806 #line hidden 807 WriteLiteralTo(__razor_helper_writer, " <!-- Component: "); 808 809 810 #line 290 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 811 WriteTo(__razor_helper_writer, methodName.Replace("Render", "")); 812 813 814 #line default 815 #line hidden 816 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 817 818 819 #line 291 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 820 } 821 822 823 #line default 824 #line hidden 825 826 #line 292 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 827 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 828 829 830 #line default 831 #line hidden 832 833 #line 292 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 834 ; 835 } catch { 836 try { 837 838 839 #line default 840 #line hidden 841 842 #line 295 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 843 WriteTo(__razor_helper_writer, generalMethod.Invoke(this, methodParameters).ToString()); 844 845 846 #line default 847 #line hidden 848 849 #line 295 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 850 ; 851 } catch(Exception ex) { 852 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex); 853 } 854 } 855 } 856 857 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList) 858 { 859 860 861 #line default 862 #line hidden 863 864 #line 304 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 865 WriteTo(__razor_helper_writer, RenderBlockList(item.BlocksList)); 866 867 868 #line default 869 #line hidden 870 871 #line 304 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 872 873 } 874 875 876 #line default 877 #line hidden 878 }); 879 880 #line 306 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 881 } 882 #line default 883 #line hidden 884 885 886 #line 323 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 887 public RazorEngine.Templating.TemplateWriter Render(ComponentBase component) 888 { 889 #line default 890 #line hidden 891 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 892 893 #line 324 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 894 895 if (component != null) 896 { 897 898 899 #line default 900 #line hidden 901 902 #line 327 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 903 WriteTo(__razor_helper_writer, component.Render(this)); 904 905 906 #line default 907 #line hidden 908 909 #line 327 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 910 911 } 912 913 914 #line default 915 #line hidden 916 }); 917 918 #line 329 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 919 } 920 #line default 921 #line hidden 922 923 924 #line 338 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 925 public RazorEngine.Templating.TemplateWriter RenderIcon(Icon settings) 926 { 927 #line default 928 #line hidden 929 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 930 931 #line 339 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 932 933 if (settings != null) 934 { 935 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 936 937 if (settings.Name != null) 938 { 939 if (string.IsNullOrEmpty(settings.Label)) 940 { 941 942 943 #line default 944 #line hidden 945 WriteLiteralTo(__razor_helper_writer, " <i"); 946 947 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 11487), Tuple.Create("\"", 11545) 948 949 #line 348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 950 , Tuple.Create(Tuple.Create("", 11495), Tuple.Create<System.Object, System.Int32>(settings.Prefix 951 952 #line default 953 #line hidden 954 , 11495), false) 955 956 #line 348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 957 , Tuple.Create(Tuple.Create(" ", 11511), Tuple.Create<System.Object, System.Int32>(settings.Name 958 959 #line default 960 #line hidden 961 , 11512), false) 962 963 #line 348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 964 , Tuple.Create(Tuple.Create(" ", 11526), Tuple.Create<System.Object, System.Int32>(settings.CssClass 965 966 #line default 967 #line hidden 968 , 11527), false) 969 ); 970 971 WriteLiteralTo(__razor_helper_writer, " "); 972 973 974 #line 348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 975 WriteTo(__razor_helper_writer, color); 976 977 978 #line default 979 #line hidden 980 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 981 982 983 #line 349 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 984 } 985 else 986 { 987 if (settings.LabelPosition == IconLabelPosition.Before) 988 { 989 990 991 #line default 992 #line hidden 993 WriteLiteralTo(__razor_helper_writer, " <span>"); 994 995 996 #line 354 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 997 WriteTo(__razor_helper_writer, settings.Label); 998 999 1000 #line default 1001 #line hidden 1002 WriteLiteralTo(__razor_helper_writer, " <i"); 1003 1004 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 11744), Tuple.Create("\"", 11802) 1005 1006 #line 354 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1007 , Tuple.Create(Tuple.Create("", 11752), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1008 1009 #line default 1010 #line hidden 1011 , 11752), false) 1012 1013 #line 354 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1014 , Tuple.Create(Tuple.Create(" ", 11768), Tuple.Create<System.Object, System.Int32>(settings.Name 1015 1016 #line default 1017 #line hidden 1018 , 11769), false) 1019 1020 #line 354 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1021 , Tuple.Create(Tuple.Create(" ", 11783), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1022 1023 #line default 1024 #line hidden 1025 , 11784), false) 1026 ); 1027 1028 WriteLiteralTo(__razor_helper_writer, " "); 1029 1030 1031 #line 354 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1032 WriteTo(__razor_helper_writer, color); 1033 1034 1035 #line default 1036 #line hidden 1037 WriteLiteralTo(__razor_helper_writer, "></i></span>\r\n"); 1038 1039 1040 #line 355 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1041 } 1042 else 1043 { 1044 1045 1046 #line default 1047 #line hidden 1048 WriteLiteralTo(__razor_helper_writer, " <span><i"); 1049 1050 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 11912), Tuple.Create("\"", 11997) 1051 1052 #line 358 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1053 , Tuple.Create(Tuple.Create("", 11920), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1054 1055 #line default 1056 #line hidden 1057 , 11920), false) 1058 1059 #line 358 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1060 , Tuple.Create(Tuple.Create(" ", 11936), Tuple.Create<System.Object, System.Int32>(settings.Name 1061 1062 #line default 1063 #line hidden 1064 , 11937), false) 1065 , Tuple.Create(Tuple.Create(" ", 11951), Tuple.Create("u-margin-right--lg", 11952), true) 1066 1067 #line 358 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1068 , Tuple.Create(Tuple.Create(" ", 11970), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1069 1070 #line default 1071 #line hidden 1072 , 11971), false) 1073 , Tuple.Create(Tuple.Create(" ", 11989), Tuple.Create("u-w20px", 11990), true) 1074 ); 1075 1076 WriteLiteralTo(__razor_helper_writer, " "); 1077 1078 1079 #line 358 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1080 WriteTo(__razor_helper_writer, color); 1081 1082 1083 #line default 1084 #line hidden 1085 WriteLiteralTo(__razor_helper_writer, "></i>"); 1086 1087 1088 #line 358 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1089 WriteTo(__razor_helper_writer, settings.Label); 1090 1091 1092 #line default 1093 #line hidden 1094 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 1095 1096 1097 #line 359 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1098 } 1099 } 1100 } 1101 else if (!string.IsNullOrEmpty(settings.Label)) 1102 { 1103 1104 1105 #line default 1106 #line hidden 1107 1108 #line 364 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1109 WriteTo(__razor_helper_writer, settings.Label); 1110 1111 1112 #line default 1113 #line hidden 1114 1115 #line 364 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1116 1117 } 1118 } 1119 1120 1121 #line default 1122 #line hidden 1123 }); 1124 1125 #line 367 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1126 } 1127 #line default 1128 #line hidden 1129 1130 1131 #line 375 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1132 public RazorEngine.Templating.TemplateWriter RenderButton(Button settings) 1133 { 1134 #line default 1135 #line hidden 1136 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1137 1138 #line 376 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1139 1140 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 1141 { 1142 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1143 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 1144 if (settings.Disabled) { 1145 attributes.Add("disabled", "true"); 1146 classList.Add("disabled"); 1147 } 1148 1149 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle)) 1150 { 1151 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 1152 1153 1154 #line default 1155 #line hidden 1156 1157 #line 389 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1158 WriteTo(__razor_helper_writer, RenderConfirmDialog(settings)); 1159 1160 1161 #line default 1162 #line hidden 1163 1164 #line 389 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1165 ; 1166 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true"; 1167 } 1168 1169 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1170 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1171 if (!string.IsNullOrEmpty(settings.AltText)) 1172 { 1173 attributes.Add("title", settings.AltText); 1174 } 1175 else if (!string.IsNullOrEmpty(settings.Title)) 1176 { 1177 attributes.Add("title", settings.Title); 1178 } 1179 1180 var onClickEvents = new List<string>(); 1181 if (!string.IsNullOrEmpty(settings.OnClick)) 1182 { 1183 onClickEvents.Add(settings.OnClick); 1184 } 1185 if (!string.IsNullOrEmpty(settings.Href)) 1186 { 1187 onClickEvents.Add("location.href='" + settings.Href + "'"); 1188 } 1189 if (onClickEvents.Count > 0) 1190 { 1191 attributes.Add("onClick", string.Join(";", onClickEvents)); 1192 } 1193 1194 if (settings.ButtonLayout != ButtonLayout.None) 1195 { 1196 classList.Add("btn"); 1197 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 1198 if (btnLayout == "linkclean") 1199 { 1200 btnLayout = "link-clean"; //fix 1201 } 1202 classList.Add("btn--" + btnLayout); 1203 } 1204 1205 if (settings.Icon == null) 1206 { 1207 settings.Icon = new Icon(); 1208 } 1209 settings.Icon.Label = settings.Title; 1210 1211 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower()); 1212 1213 1214 1215 #line default 1216 #line hidden 1217 WriteLiteralTo(__razor_helper_writer, " <button"); 1218 1219 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 14641), Tuple.Create("\"", 14684) 1220 1221 #line 437 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1222 , Tuple.Create(Tuple.Create("", 14649), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 1223 1224 #line default 1225 #line hidden 1226 , 14649), false) 1227 , Tuple.Create(Tuple.Create(" ", 14677), Tuple.Create("dw-mod", 14678), true) 1228 ); 1229 1230 WriteLiteralTo(__razor_helper_writer, " "); 1231 1232 1233 #line 437 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1234 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 1235 1236 1237 #line default 1238 #line hidden 1239 WriteLiteralTo(__razor_helper_writer, " "); 1240 1241 1242 #line 437 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1243 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1244 1245 1246 #line default 1247 #line hidden 1248 WriteLiteralTo(__razor_helper_writer, ">"); 1249 1250 1251 #line 437 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1252 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1253 1254 1255 #line default 1256 #line hidden 1257 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 1258 1259 1260 #line 438 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1261 } 1262 1263 1264 #line default 1265 #line hidden 1266 }); 1267 1268 #line 439 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1269 } 1270 #line default 1271 #line hidden 1272 1273 1274 #line 441 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1275 public RazorEngine.Templating.TemplateWriter RenderConfirmDialog(Button settings) 1276 { 1277 #line default 1278 #line hidden 1279 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1280 1281 #line 442 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1282 1283 Modal confirmDialog = new Modal { 1284 Id = settings.Id, 1285 Width = ModalWidth.Sm, 1286 Heading = new Heading 1287 { 1288 Level = 2, 1289 Title = settings.ConfirmTitle 1290 }, 1291 BodyText = settings.ConfirmText 1292 }; 1293 1294 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"}); 1295 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick }); 1296 1297 1298 1299 #line default 1300 #line hidden 1301 1302 #line 457 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1303 WriteTo(__razor_helper_writer, Render(confirmDialog)); 1304 1305 1306 #line default 1307 #line hidden 1308 1309 #line 457 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1310 1311 1312 1313 #line default 1314 #line hidden 1315 }); 1316 1317 #line 458 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1318 } 1319 #line default 1320 #line hidden 1321 1322 1323 #line 463 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1324 public RazorEngine.Templating.TemplateWriter RenderDashboard(Dashboard settings) 1325 { 1326 #line default 1327 #line hidden 1328 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1329 1330 #line 464 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1331 1332 var widgets = settings.GetWidgets(); 1333 1334 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor)) 1335 { 1336 //set bg color for them 1337 1338 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor); 1339 int r = Convert.ToInt16(color.R); 1340 int g = Convert.ToInt16(color.G); 1341 int b = Convert.ToInt16(color.B); 1342 1343 var count = widgets.Length; 1344 var max = Math.Max(r, Math.Max(g, b)); 1345 double step = 255.0 / (max * count); 1346 var i = 0; 1347 foreach (var widget in widgets) 1348 { 1349 i++; 1350 1351 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")"; 1352 widget.BackgroundColor = shade; 1353 } 1354 } 1355 1356 1357 1358 #line default 1359 #line hidden 1360 WriteLiteralTo(__razor_helper_writer, " <div"); 1361 1362 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 16680), Tuple.Create("\"", 16723) 1363 , Tuple.Create(Tuple.Create("", 16688), Tuple.Create("dashboard", 16688), true) 1364 1365 #line 489 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1366 , Tuple.Create(Tuple.Create(" ", 16697), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1367 1368 #line default 1369 #line hidden 1370 , 16698), false) 1371 , Tuple.Create(Tuple.Create(" ", 16716), Tuple.Create("dw-mod", 16717), true) 1372 ); 1373 1374 WriteLiteralTo(__razor_helper_writer, " "); 1375 1376 1377 #line 489 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1378 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1379 1380 1381 #line default 1382 #line hidden 1383 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1384 1385 1386 #line 490 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1387 1388 1389 #line default 1390 #line hidden 1391 1392 #line 490 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1393 foreach (var widget in widgets) 1394 { 1395 1396 1397 #line default 1398 #line hidden 1399 WriteLiteralTo(__razor_helper_writer, " <div"); 1400 1401 WriteLiteralTo(__razor_helper_writer, " class=\"dashboard__widget\""); 1402 1403 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1404 1405 WriteLiteralTo(__razor_helper_writer, " "); 1406 1407 1408 #line 493 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1409 WriteTo(__razor_helper_writer, Render(widget)); 1410 1411 1412 #line default 1413 #line hidden 1414 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1415 1416 1417 #line 495 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1418 } 1419 1420 1421 #line default 1422 #line hidden 1423 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 1424 1425 1426 #line 497 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1427 1428 1429 #line default 1430 #line hidden 1431 }); 1432 1433 #line 497 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1434 } 1435 #line default 1436 #line hidden 1437 1438 1439 #line 501 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1440 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetLink(DashboardWidgetLink settings) 1441 { 1442 #line default 1443 #line hidden 1444 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1445 1446 #line 502 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1447 1448 if (!string.IsNullOrEmpty(settings.Link)) 1449 { 1450 var backgroundStyles = ""; 1451 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 1452 { 1453 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\""; 1454 } 1455 1456 1457 1458 #line default 1459 #line hidden 1460 WriteLiteralTo(__razor_helper_writer, " <a"); 1461 1462 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17409), Tuple.Create("\"", 17430) 1463 1464 #line 511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1465 , Tuple.Create(Tuple.Create("", 17416), Tuple.Create<System.Object, System.Int32>(settings.Link 1466 1467 #line default 1468 #line hidden 1469 , 17416), false) 1470 ); 1471 1472 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 17431), Tuple.Create("\"", 17484) 1473 , Tuple.Create(Tuple.Create("", 17439), Tuple.Create("widget", 17439), true) 1474 , Tuple.Create(Tuple.Create(" ", 17445), Tuple.Create("widget--link", 17446), true) 1475 1476 #line 511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1477 , Tuple.Create(Tuple.Create(" ", 17458), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1478 1479 #line default 1480 #line hidden 1481 , 17459), false) 1482 , Tuple.Create(Tuple.Create(" ", 17477), Tuple.Create("dw-mod", 17478), true) 1483 ); 1484 1485 WriteLiteralTo(__razor_helper_writer, " "); 1486 1487 1488 #line 511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1489 WriteTo(__razor_helper_writer, backgroundStyles); 1490 1491 1492 #line default 1493 #line hidden 1494 WriteLiteralTo(__razor_helper_writer, " title=\""); 1495 1496 1497 #line 511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1498 WriteTo(__razor_helper_writer, settings.Title); 1499 1500 1501 #line default 1502 #line hidden 1503 WriteLiteralTo(__razor_helper_writer, "\" "); 1504 1505 1506 #line 511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1507 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1508 1509 1510 #line default 1511 #line hidden 1512 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1513 1514 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\""); 1515 1516 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1517 1518 1519 #line 513 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1520 1521 1522 #line default 1523 #line hidden 1524 1525 #line 513 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1526 if (settings.Icon != null) 1527 { 1528 settings.Icon.CssClass += "widget__icon"; 1529 1530 1531 #line default 1532 #line hidden 1533 1534 #line 516 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1535 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1536 1537 1538 #line default 1539 #line hidden 1540 1541 #line 516 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1542 1543 } 1544 1545 1546 #line default 1547 #line hidden 1548 WriteLiteralTo(__razor_helper_writer, " <div"); 1549 1550 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\""); 1551 1552 WriteLiteralTo(__razor_helper_writer, ">"); 1553 1554 1555 #line 518 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1556 WriteTo(__razor_helper_writer, settings.Title); 1557 1558 1559 #line default 1560 #line hidden 1561 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </a>\r\n"); 1562 1563 1564 #line 521 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1565 } 1566 1567 1568 #line default 1569 #line hidden 1570 }); 1571 1572 #line 522 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1573 } 1574 #line default 1575 #line hidden 1576 1577 1578 #line 526 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1579 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetCounter(DashboardWidgetCounter settings) 1580 { 1581 #line default 1582 #line hidden 1583 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1584 1585 #line 527 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1586 1587 var backgroundStyles = ""; 1588 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 1589 { 1590 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'"; 1591 } 1592 1593 1594 1595 #line default 1596 #line hidden 1597 WriteLiteralTo(__razor_helper_writer, " <div"); 1598 1599 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 18320), Tuple.Create("\"", 18360) 1600 , Tuple.Create(Tuple.Create("", 18328), Tuple.Create("widget", 18328), true) 1601 1602 #line 534 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1603 , Tuple.Create(Tuple.Create(" ", 18334), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1604 1605 #line default 1606 #line hidden 1607 , 18335), false) 1608 , Tuple.Create(Tuple.Create(" ", 18353), Tuple.Create("dw-mod", 18354), true) 1609 ); 1610 1611 WriteLiteralTo(__razor_helper_writer, " "); 1612 1613 1614 #line 534 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1615 WriteTo(__razor_helper_writer, backgroundStyles); 1616 1617 1618 #line default 1619 #line hidden 1620 WriteLiteralTo(__razor_helper_writer, " "); 1621 1622 1623 #line 534 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1624 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1625 1626 1627 #line default 1628 #line hidden 1629 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1630 1631 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\""); 1632 1633 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1634 1635 1636 #line 536 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1637 1638 1639 #line default 1640 #line hidden 1641 1642 #line 536 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1643 if (settings.Icon != null) 1644 { 1645 settings.Icon.CssClass += "widget__icon"; 1646 1647 1648 #line default 1649 #line hidden 1650 1651 #line 539 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1652 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1653 1654 1655 #line default 1656 #line hidden 1657 1658 #line 539 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1659 1660 } 1661 1662 1663 #line default 1664 #line hidden 1665 WriteLiteralTo(__razor_helper_writer, " <div"); 1666 1667 WriteLiteralTo(__razor_helper_writer, " class=\"widget__counter\""); 1668 1669 WriteLiteralTo(__razor_helper_writer, ">"); 1670 1671 1672 #line 541 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1673 WriteTo(__razor_helper_writer, settings.Count); 1674 1675 1676 #line default 1677 #line hidden 1678 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 1679 1680 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\""); 1681 1682 WriteLiteralTo(__razor_helper_writer, ">"); 1683 1684 1685 #line 542 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1686 WriteTo(__razor_helper_writer, settings.Title); 1687 1688 1689 #line default 1690 #line hidden 1691 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </div>\r\n"); 1692 1693 1694 #line 545 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1695 1696 1697 #line default 1698 #line hidden 1699 }); 1700 1701 #line 545 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1702 } 1703 #line default 1704 #line hidden 1705 1706 1707 #line 553 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1708 public RazorEngine.Templating.TemplateWriter RenderLink(Link settings) 1709 { 1710 #line default 1711 #line hidden 1712 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1713 1714 #line 554 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1715 1716 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 1717 { 1718 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1719 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 1720 if (settings.Disabled) 1721 { 1722 attributes.Add("disabled", "true"); 1723 classList.Add("disabled"); 1724 } 1725 1726 if (!string.IsNullOrEmpty(settings.AltText)) 1727 { 1728 attributes.Add("title", settings.AltText); 1729 } 1730 else if (!string.IsNullOrEmpty(settings.Title)) 1731 { 1732 attributes.Add("title", settings.Title); 1733 } 1734 1735 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1736 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1737 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); } 1738 attributes.Add("href", settings.Href); 1739 1740 if (settings.ButtonLayout != ButtonLayout.None) 1741 { 1742 classList.Add("btn"); 1743 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 1744 if (btnLayout == "linkclean") 1745 { 1746 btnLayout = "link-clean"; //fix 1747 } 1748 classList.Add("btn--" + btnLayout); 1749 } 1750 1751 if (settings.Icon == null) 1752 { 1753 settings.Icon = new Icon(); 1754 } 1755 settings.Icon.Label = settings.Title; 1756 1757 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None) 1758 { 1759 settings.Rel = LinkRelType.Noopener; 1760 } 1761 if (settings.Target != LinkTargetType.None) 1762 { 1763 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower()); 1764 } 1765 if (settings.Download) 1766 { 1767 attributes.Add("download", "true"); 1768 } 1769 if (settings.Rel != LinkRelType.None) 1770 { 1771 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower()); 1772 } 1773 1774 1775 1776 #line default 1777 #line hidden 1778 WriteLiteralTo(__razor_helper_writer, " <a"); 1779 1780 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21325), Tuple.Create("\"", 21368) 1781 1782 #line 613 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1783 , Tuple.Create(Tuple.Create("", 21333), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 1784 1785 #line default 1786 #line hidden 1787 , 21333), false) 1788 , Tuple.Create(Tuple.Create(" ", 21361), Tuple.Create("dw-mod", 21362), true) 1789 ); 1790 1791 WriteLiteralTo(__razor_helper_writer, " "); 1792 1793 1794 #line 613 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1795 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 1796 1797 1798 #line default 1799 #line hidden 1800 WriteLiteralTo(__razor_helper_writer, " "); 1801 1802 1803 #line 613 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1804 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1805 1806 1807 #line default 1808 #line hidden 1809 WriteLiteralTo(__razor_helper_writer, ">"); 1810 1811 1812 #line 613 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1813 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1814 1815 1816 #line default 1817 #line hidden 1818 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1819 1820 1821 #line 614 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1822 } 1823 1824 1825 #line default 1826 #line hidden 1827 }); 1828 1829 #line 615 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1830 } 1831 #line default 1832 #line hidden 1833 1834 1835 #line 624 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1836 public RazorEngine.Templating.TemplateWriter RenderRating(Rating settings) 1837 { 1838 #line default 1839 #line hidden 1840 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1841 1842 #line 625 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1843 1844 if (settings.Score > 0) 1845 { 1846 int rating = settings.Score; 1847 string iconType = "fa-star"; 1848 1849 switch (settings.Type.ToString()) { 1850 case "Stars": 1851 iconType = "fa-star"; 1852 break; 1853 case "Hearts": 1854 iconType = "fa-heart"; 1855 break; 1856 case "Lemons": 1857 iconType = "fa-lemon"; 1858 break; 1859 case "Bombs": 1860 iconType = "fa-bomb"; 1861 break; 1862 } 1863 1864 1865 1866 #line default 1867 #line hidden 1868 WriteLiteralTo(__razor_helper_writer, " <div"); 1869 1870 WriteLiteralTo(__razor_helper_writer, " class=\"u-ta-right\""); 1871 1872 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1873 1874 1875 #line 647 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1876 1877 1878 #line default 1879 #line hidden 1880 1881 #line 647 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1882 for (int i = 0; i < settings.OutOf; i++) 1883 { 1884 1885 1886 #line default 1887 #line hidden 1888 WriteLiteralTo(__razor_helper_writer, " <i"); 1889 1890 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 22388), Tuple.Create("\"", 22435) 1891 1892 #line 649 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1893 , Tuple.Create(Tuple.Create("", 22396), Tuple.Create<System.Object, System.Int32>(rating > i ? "fas" : "far" 1894 1895 #line default 1896 #line hidden 1897 , 22396), false) 1898 1899 #line 649 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1900 , Tuple.Create(Tuple.Create(" ", 22425), Tuple.Create<System.Object, System.Int32>(iconType 1901 1902 #line default 1903 #line hidden 1904 , 22426), false) 1905 ); 1906 1907 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 1908 1909 1910 #line 650 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1911 } 1912 1913 1914 #line default 1915 #line hidden 1916 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 1917 1918 1919 #line 652 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1920 } 1921 1922 1923 #line default 1924 #line hidden 1925 }); 1926 1927 #line 653 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1928 } 1929 #line default 1930 #line hidden 1931 1932 1933 #line 661 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1934 public RazorEngine.Templating.TemplateWriter RenderSelectFieldOption(SelectFieldOption settings) 1935 { 1936 #line default 1937 #line hidden 1938 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1939 1940 #line 662 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1941 1942 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1943 if (settings.Checked) { attributes.Add("selected", "true"); } 1944 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1945 if (settings.Value != null) { attributes.Add("value", settings.Value); } 1946 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1947 1948 1949 1950 #line default 1951 #line hidden 1952 WriteLiteralTo(__razor_helper_writer, " <option "); 1953 1954 1955 #line 669 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1956 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 1957 1958 1959 #line default 1960 #line hidden 1961 WriteLiteralTo(__razor_helper_writer, " "); 1962 1963 1964 #line 669 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1965 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1966 1967 1968 #line default 1969 #line hidden 1970 WriteLiteralTo(__razor_helper_writer, ">"); 1971 1972 1973 #line 669 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1974 WriteTo(__razor_helper_writer, settings.Label); 1975 1976 1977 #line default 1978 #line hidden 1979 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 1980 1981 1982 #line 670 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1983 1984 1985 #line default 1986 #line hidden 1987 }); 1988 1989 #line 670 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1990 } 1991 #line default 1992 #line hidden 1993 1994 1995 #line 678 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 1996 public RazorEngine.Templating.TemplateWriter RenderNavigation(Navigation settings) { 1997 #line default 1998 #line hidden 1999 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2000 2001 #line 678 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2002 2003 2004 2005 #line default 2006 #line hidden 2007 2008 #line 679 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2009 WriteTo(__razor_helper_writer, RenderNavigation(new 2010 { 2011 id = settings.Id, 2012 cssclass = settings.CssClass, 2013 startLevel = settings.StartLevel, 2014 endlevel = settings.EndLevel, 2015 expandmode = settings.Expandmode, 2016 sitemapmode = settings.SitemapMode, 2017 template = settings.Template 2018 })); 2019 2020 2021 #line default 2022 #line hidden 2023 2024 #line 688 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2025 2026 2027 2028 #line default 2029 #line hidden 2030 }); 2031 2032 #line 689 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2033 } 2034 #line default 2035 #line hidden 2036 2037 2038 #line 696 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2039 public RazorEngine.Templating.TemplateWriter RenderBreadcrumbNavigation(BreadcrumbNavigation settings) { 2040 #line default 2041 #line hidden 2042 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2043 2044 #line 696 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2045 2046 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 2047 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 2048 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 2049 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 2050 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 2051 settings.SitemapMode = false; 2052 2053 2054 2055 #line default 2056 #line hidden 2057 2058 #line 704 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2059 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 2060 2061 2062 #line default 2063 #line hidden 2064 2065 #line 704 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2066 2067 2068 2069 #line default 2070 #line hidden 2071 }); 2072 2073 #line 705 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2074 } 2075 #line default 2076 #line hidden 2077 2078 2079 #line 712 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2080 public RazorEngine.Templating.TemplateWriter RenderLeftNavigation(LeftNavigation settings) { 2081 #line default 2082 #line hidden 2083 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2084 2085 #line 712 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2086 2087 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 2088 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 2089 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 2090 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 2091 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 2092 2093 2094 2095 #line default 2096 #line hidden 2097 WriteLiteralTo(__razor_helper_writer, " <div"); 2098 2099 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 2100 2101 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2102 2103 WriteLiteralTo(__razor_helper_writer, " "); 2104 2105 2106 #line 720 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2107 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 2108 2109 2110 #line default 2111 #line hidden 2112 WriteLiteralTo(__razor_helper_writer, " \r\n </div> \r\n"); 2113 2114 2115 #line 722 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2116 2117 2118 #line default 2119 #line hidden 2120 }); 2121 2122 #line 722 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2123 } 2124 #line default 2125 #line hidden 2126 2127 2128 #line 729 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2129 public RazorEngine.Templating.TemplateWriter RenderHeading(Heading settings) 2130 { 2131 #line default 2132 #line hidden 2133 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2134 2135 #line 730 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2136 2137 if (settings != null && !string.IsNullOrEmpty(settings.Title)) 2138 { 2139 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 2140 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div"; 2141 2142 2143 2144 #line default 2145 #line hidden 2146 2147 #line 736 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2148 WriteTo(__razor_helper_writer, "<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">"); 2149 2150 2151 #line default 2152 #line hidden 2153 2154 #line 736 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2155 2156 if (!string.IsNullOrEmpty(settings.Link)) 2157 { 2158 2159 2160 #line default 2161 #line hidden 2162 2163 #line 739 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2164 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None })); 2165 2166 2167 #line default 2168 #line hidden 2169 2170 #line 739 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2171 2172 } 2173 else 2174 { 2175 if (settings.Icon == null) 2176 { 2177 settings.Icon = new Icon(); 2178 } 2179 settings.Icon.Label = settings.Title; 2180 2181 2182 #line default 2183 #line hidden 2184 2185 #line 748 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2186 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2187 2188 2189 #line default 2190 #line hidden 2191 2192 #line 748 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2193 2194 } 2195 2196 2197 #line default 2198 #line hidden 2199 2200 #line 750 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2201 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 2202 2203 2204 #line default 2205 #line hidden 2206 2207 #line 750 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2208 ; 2209 } 2210 2211 2212 #line default 2213 #line hidden 2214 }); 2215 2216 #line 752 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2217 } 2218 #line default 2219 #line hidden 2220 2221 2222 #line 762 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2223 public RazorEngine.Templating.TemplateWriter RenderFileField(FileField settings) 2224 { 2225 #line default 2226 #line hidden 2227 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2228 2229 #line 763 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2230 2231 var attributes = new Dictionary<string, string>(); 2232 if (string.IsNullOrEmpty(settings.Id)) 2233 { 2234 settings.Id = Guid.NewGuid().ToString("N"); 2235 } 2236 2237 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2238 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2239 if (settings.Required) { attributes.Add("required", "true"); } 2240 if (settings.Multiple) { attributes.Add("multiple", "true"); } 2241 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2242 if (string.IsNullOrEmpty(settings.ChooseFileText)) 2243 { 2244 settings.ChooseFileText = Translate("Choose file"); 2245 } 2246 if (string.IsNullOrEmpty(settings.NoFilesChosenText)) 2247 { 2248 settings.NoFilesChosenText = Translate("No files chosen..."); 2249 } 2250 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2251 2252 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2253 2254 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)"; 2255 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : "")); 2256 2257 attributes.Add("type", "file"); 2258 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2259 settings.CssClass = "u-full-width " + settings.CssClass; 2260 2261 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2262 2263 2264 2265 #line default 2266 #line hidden 2267 WriteLiteralTo(__razor_helper_writer, " <div"); 2268 2269 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 28455), Tuple.Create("\"", 28526) 2270 , Tuple.Create(Tuple.Create("", 28463), Tuple.Create("form__field-group", 28463), true) 2271 , Tuple.Create(Tuple.Create(" ", 28480), Tuple.Create("u-full-width", 28481), true) 2272 2273 #line 796 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2274 , Tuple.Create(Tuple.Create(" ", 28493), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 2275 2276 #line default 2277 #line hidden 2278 , 28494), false) 2279 , Tuple.Create(Tuple.Create(" ", 28519), Tuple.Create("dw-mod", 28520), true) 2280 ); 2281 2282 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2283 2284 2285 #line 797 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2286 2287 2288 #line default 2289 #line hidden 2290 2291 #line 797 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2292 if (!string.IsNullOrEmpty(settings.Label)) 2293 { 2294 2295 2296 #line default 2297 #line hidden 2298 WriteLiteralTo(__razor_helper_writer, " <label"); 2299 2300 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 28612), Tuple.Create("\"", 28630) 2301 2302 #line 799 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2303 , Tuple.Create(Tuple.Create("", 28618), Tuple.Create<System.Object, System.Int32>(settings.Id 2304 2305 #line default 2306 #line hidden 2307 , 28618), false) 2308 ); 2309 2310 WriteLiteralTo(__razor_helper_writer, ">"); 2311 2312 2313 #line 799 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2314 WriteTo(__razor_helper_writer, settings.Label); 2315 2316 2317 #line default 2318 #line hidden 2319 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2320 2321 2322 #line 800 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2323 } 2324 2325 2326 #line default 2327 #line hidden 2328 WriteLiteralTo(__razor_helper_writer, " "); 2329 2330 2331 #line 801 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2332 if (!string.IsNullOrEmpty(settings.HelpText)) 2333 { 2334 2335 2336 #line default 2337 #line hidden 2338 WriteLiteralTo(__razor_helper_writer, " <small"); 2339 2340 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 2341 2342 WriteLiteralTo(__razor_helper_writer, ">"); 2343 2344 2345 #line 803 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2346 WriteTo(__razor_helper_writer, settings.HelpText); 2347 2348 2349 #line default 2350 #line hidden 2351 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 2352 2353 2354 #line 804 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2355 } 2356 2357 2358 #line default 2359 #line hidden 2360 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 2361 2362 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi file-input u-no-margin dw-mod\""); 2363 2364 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 2365 2366 2367 #line 807 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2368 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 2369 2370 2371 #line default 2372 #line hidden 2373 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__real-input\" data-no-files-text=\""); 2374 2375 2376 #line 807 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2377 WriteTo(__razor_helper_writer, settings.NoFilesChosenText); 2378 2379 2380 #line default 2381 #line hidden 2382 WriteLiteralTo(__razor_helper_writer, "\" data-many-files-text=\""); 2383 2384 2385 #line 807 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2386 WriteTo(__razor_helper_writer, Translate("files")); 2387 2388 2389 #line default 2390 #line hidden 2391 WriteLiteralTo(__razor_helper_writer, "\" />\r\n <label"); 2392 2393 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 29104), Tuple.Create("\"", 29122) 2394 2395 #line 808 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2396 , Tuple.Create(Tuple.Create("", 29110), Tuple.Create<System.Object, System.Int32>(settings.Id 2397 2398 #line default 2399 #line hidden 2400 , 29110), false) 2401 ); 2402 2403 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__btn btn--secondary btn dw-mod\""); 2404 2405 WriteLiteralTo(__razor_helper_writer, ">"); 2406 2407 2408 #line 808 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2409 WriteTo(__razor_helper_writer, settings.ChooseFileText); 2410 2411 2412 #line default 2413 #line hidden 2414 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label"); 2415 2416 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 29226), Tuple.Create("\"", 29244) 2417 2418 #line 809 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2419 , Tuple.Create(Tuple.Create("", 29232), Tuple.Create<System.Object, System.Int32>(settings.Id 2420 2421 #line default 2422 #line hidden 2423 , 29232), false) 2424 ); 2425 2426 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 29245), Tuple.Create("\"", 29315) 2427 2428 #line 809 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2429 , Tuple.Create(Tuple.Create("", 29253), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2430 2431 #line default 2432 #line hidden 2433 , 29253), false) 2434 , Tuple.Create(Tuple.Create(" ", 29271), Tuple.Create("file-input__fake-input", 29272), true) 2435 , Tuple.Create(Tuple.Create(" ", 29294), Tuple.Create("js-fake-input", 29295), true) 2436 , Tuple.Create(Tuple.Create(" ", 29308), Tuple.Create("dw-mod", 29309), true) 2437 ); 2438 2439 WriteLiteralTo(__razor_helper_writer, ">"); 2440 2441 2442 #line 809 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2443 WriteTo(__razor_helper_writer, settings.NoFilesChosenText); 2444 2445 2446 #line default 2447 #line hidden 2448 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2449 2450 2451 #line 810 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2452 2453 2454 #line default 2455 #line hidden 2456 2457 #line 810 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2458 if (settings.UploadButton != null) 2459 { 2460 settings.UploadButton.CssClass += " btn--condensed u-no-margin"; 2461 2462 2463 #line default 2464 #line hidden 2465 2466 #line 813 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2467 WriteTo(__razor_helper_writer, Render(settings.UploadButton)); 2468 2469 2470 #line default 2471 #line hidden 2472 2473 #line 813 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2474 2475 } 2476 2477 2478 #line default 2479 #line hidden 2480 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2481 2482 WriteLiteralTo(__razor_helper_writer, " "); 2483 2484 2485 #line 816 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2486 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 2487 2488 2489 #line default 2490 #line hidden 2491 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2492 2493 2494 #line 818 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2495 2496 2497 #line default 2498 #line hidden 2499 }); 2500 2501 #line 818 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2502 } 2503 #line default 2504 #line hidden 2505 2506 2507 #line 827 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2508 public RazorEngine.Templating.TemplateWriter RenderDateTimeField(DateTimeField settings) 2509 { 2510 #line default 2511 #line hidden 2512 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2513 2514 #line 828 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2515 2516 if (string.IsNullOrEmpty(settings.Id)) 2517 { 2518 settings.Id = Guid.NewGuid().ToString("N"); 2519 } 2520 2521 var textField = new TextField { 2522 Name = settings.Name, 2523 Id = settings.Id, 2524 Label = settings.Label, 2525 HelpText = settings.HelpText, 2526 Value = settings.Value, 2527 Disabled = settings.Disabled, 2528 Required = settings.Required, 2529 ErrorMessage = settings.ErrorMessage, 2530 CssClass = settings.CssClass, 2531 WrapperCssClass = settings.WrapperCssClass, 2532 OnChange = settings.OnChange, 2533 OnClick = settings.OnClick, 2534 ExtraAttributes = settings.ExtraAttributes, 2535 // 2536 Placeholder = settings.Placeholder 2537 }; 2538 2539 2540 2541 #line default 2542 #line hidden 2543 2544 #line 852 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2545 WriteTo(__razor_helper_writer, Render(textField)); 2546 2547 2548 #line default 2549 #line hidden 2550 2551 #line 852 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2552 2553 2554 List<string> jsAttributes = new List<string>(); 2555 2556 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'"); 2557 2558 if (!string.IsNullOrEmpty(settings.DateFormat)) 2559 { 2560 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'"); 2561 } 2562 if (!string.IsNullOrEmpty(settings.MinDate)) 2563 { 2564 jsAttributes.Add("minDate: '" + settings.MinDate + "'"); 2565 } 2566 if (!string.IsNullOrEmpty(settings.MaxDate)) 2567 { 2568 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'"); 2569 } 2570 if (settings.IsInline) 2571 { 2572 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower()); 2573 } 2574 if (settings.EnableTime) 2575 { 2576 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower()); 2577 } 2578 if (settings.EnableWeekNumbers) 2579 { 2580 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower()); 2581 } 2582 2583 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value)); 2584 2585 2586 2587 #line default 2588 #line hidden 2589 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded\", function () {" + 2590 "\r\n flatpickr(\"#"); 2591 2592 2593 #line 887 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2594 WriteTo(__razor_helper_writer, textField.Id); 2595 2596 2597 #line default 2598 #line hidden 2599 WriteLiteralTo(__razor_helper_writer, "\", {\r\n"); 2600 2601 WriteLiteralTo(__razor_helper_writer, " "); 2602 2603 2604 #line 888 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2605 WriteTo(__razor_helper_writer, string.Join(",", jsAttributes)); 2606 2607 2608 #line default 2609 #line hidden 2610 WriteLiteralTo(__razor_helper_writer, "\r\n });\r\n });\r\n </script>\r\n"); 2611 2612 2613 #line 892 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2614 2615 2616 #line default 2617 #line hidden 2618 }); 2619 2620 #line 892 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2621 } 2622 #line default 2623 #line hidden 2624 2625 2626 #line 899 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2627 public RazorEngine.Templating.TemplateWriter RenderTextField(TextField settings) 2628 { 2629 #line default 2630 #line hidden 2631 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2632 2633 #line 900 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2634 2635 var attributes = new Dictionary<string, string>(); 2636 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2637 { 2638 settings.Id = Guid.NewGuid().ToString("N"); 2639 } 2640 2641 /*base settings*/ 2642 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2643 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2644 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2645 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2646 if (settings.Required) { attributes.Add("required", "true"); } 2647 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2648 /*end*/ 2649 2650 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 2651 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 2652 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 2653 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 2654 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 2655 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 2656 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower()); 2657 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); }; 2658 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2659 2660 settings.CssClass = "u-full-width " + settings.CssClass; 2661 2662 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2663 2664 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2665 2666 string noMargin = "u-no-margin"; 2667 if (!settings.ReadOnly) { 2668 noMargin = ""; 2669 } 2670 2671 2672 2673 #line default 2674 #line hidden 2675 WriteLiteralTo(__razor_helper_writer, " <div"); 2676 2677 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 34229), Tuple.Create("\"", 34310) 2678 , Tuple.Create(Tuple.Create("", 34237), Tuple.Create("form__field-group", 34237), true) 2679 , Tuple.Create(Tuple.Create(" ", 34254), Tuple.Create("u-full-width", 34255), true) 2680 2681 #line 937 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2682 , Tuple.Create(Tuple.Create(" ", 34267), Tuple.Create<System.Object, System.Int32>(noMargin 2683 2684 #line default 2685 #line hidden 2686 , 34268), false) 2687 2688 #line 937 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2689 , Tuple.Create(Tuple.Create(" ", 34277), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 2690 2691 #line default 2692 #line hidden 2693 , 34278), false) 2694 , Tuple.Create(Tuple.Create(" ", 34303), Tuple.Create("dw-mod", 34304), true) 2695 ); 2696 2697 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2698 2699 2700 #line 938 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2701 2702 2703 #line default 2704 #line hidden 2705 2706 #line 938 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2707 if (!string.IsNullOrEmpty(settings.Label)) 2708 { 2709 2710 2711 #line default 2712 #line hidden 2713 WriteLiteralTo(__razor_helper_writer, " <label"); 2714 2715 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 34396), Tuple.Create("\"", 34414) 2716 2717 #line 940 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2718 , Tuple.Create(Tuple.Create("", 34402), Tuple.Create<System.Object, System.Int32>(settings.Id 2719 2720 #line default 2721 #line hidden 2722 , 34402), false) 2723 ); 2724 2725 WriteLiteralTo(__razor_helper_writer, ">"); 2726 2727 2728 #line 940 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2729 WriteTo(__razor_helper_writer, settings.Label); 2730 2731 2732 #line default 2733 #line hidden 2734 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2735 2736 2737 #line 941 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2738 } 2739 2740 2741 #line default 2742 #line hidden 2743 WriteLiteralTo(__razor_helper_writer, " "); 2744 2745 2746 #line 942 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2747 if (!string.IsNullOrEmpty(settings.HelpText)) 2748 { 2749 2750 2751 #line default 2752 #line hidden 2753 WriteLiteralTo(__razor_helper_writer, " <small"); 2754 2755 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 2756 2757 WriteLiteralTo(__razor_helper_writer, ">"); 2758 2759 2760 #line 944 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2761 WriteTo(__razor_helper_writer, settings.HelpText); 2762 2763 2764 #line default 2765 #line hidden 2766 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 2767 2768 2769 #line 945 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2770 } 2771 2772 2773 #line default 2774 #line hidden 2775 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2776 2777 2778 #line 947 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2779 2780 2781 #line default 2782 #line hidden 2783 2784 #line 947 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2785 if (settings.ActionButton != null) 2786 { 2787 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 2788 2789 2790 #line default 2791 #line hidden 2792 WriteLiteralTo(__razor_helper_writer, " <div"); 2793 2794 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 2795 2796 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 2797 2798 2799 #line 951 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2800 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 2801 2802 2803 #line default 2804 #line hidden 2805 WriteLiteralTo(__razor_helper_writer, " class=\""); 2806 2807 2808 #line 951 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2809 WriteTo(__razor_helper_writer, settings.CssClass); 2810 2811 2812 #line default 2813 #line hidden 2814 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 2815 2816 WriteLiteralTo(__razor_helper_writer, " "); 2817 2818 2819 #line 952 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2820 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 2821 2822 2823 #line default 2824 #line hidden 2825 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2826 2827 2828 #line 954 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2829 } 2830 else 2831 { 2832 2833 2834 #line default 2835 #line hidden 2836 WriteLiteralTo(__razor_helper_writer, " <input "); 2837 2838 2839 #line 957 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2840 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 2841 2842 2843 #line default 2844 #line hidden 2845 WriteLiteralTo(__razor_helper_writer, " class=\""); 2846 2847 2848 #line 957 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2849 WriteTo(__razor_helper_writer, settings.CssClass); 2850 2851 2852 #line default 2853 #line hidden 2854 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 2855 2856 2857 #line 958 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2858 } 2859 2860 2861 #line default 2862 #line hidden 2863 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2864 2865 WriteLiteralTo(__razor_helper_writer, " "); 2866 2867 2868 #line 960 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2869 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 2870 2871 2872 #line default 2873 #line hidden 2874 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2875 2876 2877 #line 962 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2878 2879 2880 #line default 2881 #line hidden 2882 }); 2883 2884 #line 962 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2885 } 2886 #line default 2887 #line hidden 2888 2889 2890 #line 969 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2891 public RazorEngine.Templating.TemplateWriter RenderNumberField(NumberField settings) 2892 { 2893 #line default 2894 #line hidden 2895 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2896 2897 #line 970 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2898 2899 var attributes = new Dictionary<string, string>(); 2900 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 2901 { 2902 settings.Id = Guid.NewGuid().ToString("N"); 2903 } 2904 2905 /*base settings*/ 2906 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2907 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2908 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 2909 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2910 if (settings.Required) { attributes.Add("required", "true"); } 2911 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2912 /*end*/ 2913 2914 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 2915 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 2916 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 2917 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 2918 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); } 2919 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); } 2920 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); } 2921 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); } 2922 attributes.Add("type", "number"); 2923 2924 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 2925 2926 2927 2928 #line default 2929 #line hidden 2930 WriteLiteralTo(__razor_helper_writer, " <div"); 2931 2932 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 37130), Tuple.Create("\"", 37201) 2933 , Tuple.Create(Tuple.Create("", 37138), Tuple.Create("form__field-group", 37138), true) 2934 , Tuple.Create(Tuple.Create(" ", 37155), Tuple.Create("u-full-width", 37156), true) 2935 2936 #line 998 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2937 , Tuple.Create(Tuple.Create(" ", 37168), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 2938 2939 #line default 2940 #line hidden 2941 , 37169), false) 2942 , Tuple.Create(Tuple.Create(" ", 37194), Tuple.Create("dw-mod", 37195), true) 2943 ); 2944 2945 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2946 2947 2948 #line 999 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2949 2950 2951 #line default 2952 #line hidden 2953 2954 #line 999 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2955 if (!string.IsNullOrEmpty(settings.Label)) 2956 { 2957 2958 2959 #line default 2960 #line hidden 2961 WriteLiteralTo(__razor_helper_writer, " <label"); 2962 2963 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 37287), Tuple.Create("\"", 37305) 2964 2965 #line 1001 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2966 , Tuple.Create(Tuple.Create("", 37293), Tuple.Create<System.Object, System.Int32>(settings.Id 2967 2968 #line default 2969 #line hidden 2970 , 37293), false) 2971 ); 2972 2973 WriteLiteralTo(__razor_helper_writer, ">"); 2974 2975 2976 #line 1001 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2977 WriteTo(__razor_helper_writer, settings.Label); 2978 2979 2980 #line default 2981 #line hidden 2982 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2983 2984 2985 #line 1002 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2986 } 2987 2988 2989 #line default 2990 #line hidden 2991 WriteLiteralTo(__razor_helper_writer, " "); 2992 2993 2994 #line 1003 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 2995 if (!string.IsNullOrEmpty(settings.HelpText)) 2996 { 2997 2998 2999 #line default 3000 #line hidden 3001 WriteLiteralTo(__razor_helper_writer, " <small"); 3002 3003 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3004 3005 WriteLiteralTo(__razor_helper_writer, ">"); 3006 3007 3008 #line 1005 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3009 WriteTo(__razor_helper_writer, settings.HelpText); 3010 3011 3012 #line default 3013 #line hidden 3014 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3015 3016 3017 #line 1006 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3018 } 3019 3020 3021 #line default 3022 #line hidden 3023 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3024 3025 3026 #line 1008 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3027 3028 3029 #line default 3030 #line hidden 3031 3032 #line 1008 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3033 if (settings.ActionButton != null) 3034 { 3035 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 3036 3037 3038 #line default 3039 #line hidden 3040 WriteLiteralTo(__razor_helper_writer, " <div"); 3041 3042 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 3043 3044 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 3045 3046 3047 #line 1012 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3048 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3049 3050 3051 #line default 3052 #line hidden 3053 WriteLiteralTo(__razor_helper_writer, " class=\""); 3054 3055 3056 #line 1012 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3057 WriteTo(__razor_helper_writer, settings.CssClass); 3058 3059 3060 #line default 3061 #line hidden 3062 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 3063 3064 WriteLiteralTo(__razor_helper_writer, " "); 3065 3066 3067 #line 1013 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3068 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 3069 3070 3071 #line default 3072 #line hidden 3073 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3074 3075 3076 #line 1015 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3077 } 3078 else 3079 { 3080 3081 3082 #line default 3083 #line hidden 3084 WriteLiteralTo(__razor_helper_writer, " <input "); 3085 3086 3087 #line 1018 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3088 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3089 3090 3091 #line default 3092 #line hidden 3093 WriteLiteralTo(__razor_helper_writer, " class=\""); 3094 3095 3096 #line 1018 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3097 WriteTo(__razor_helper_writer, settings.CssClass); 3098 3099 3100 #line default 3101 #line hidden 3102 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 3103 3104 3105 #line 1019 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3106 } 3107 3108 3109 #line default 3110 #line hidden 3111 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3112 3113 WriteLiteralTo(__razor_helper_writer, " "); 3114 3115 3116 #line 1021 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3117 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 3118 3119 3120 #line default 3121 #line hidden 3122 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3123 3124 3125 #line 1023 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3126 3127 3128 #line default 3129 #line hidden 3130 }); 3131 3132 #line 1023 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3133 } 3134 #line default 3135 #line hidden 3136 3137 3138 #line 1031 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3139 public RazorEngine.Templating.TemplateWriter RenderTextareaField(TextareaField settings) 3140 { 3141 #line default 3142 #line hidden 3143 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3144 3145 #line 1032 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3146 3147 Dictionary<string, string> attributes = new Dictionary<string, string>(); 3148 string id = settings.Id; 3149 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id)) 3150 { 3151 id = Guid.NewGuid().ToString("N"); 3152 } 3153 3154 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); } 3155 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 3156 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 3157 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 3158 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 3159 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 3160 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 3161 if (settings.Disabled) { attributes.Add("disabled", "true"); } 3162 if (settings.Required) { attributes.Add("required", "true"); } 3163 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 3164 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 3165 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); } 3166 attributes.Add("name", settings.Name); 3167 3168 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 3169 3170 3171 3172 #line default 3173 #line hidden 3174 WriteLiteralTo(__razor_helper_writer, " <div"); 3175 3176 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 39827), Tuple.Create("\"", 39885) 3177 , Tuple.Create(Tuple.Create("", 39835), Tuple.Create("form__field-group", 39835), true) 3178 3179 #line 1056 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3180 , Tuple.Create(Tuple.Create(" ", 39852), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3181 3182 #line default 3183 #line hidden 3184 , 39853), false) 3185 , Tuple.Create(Tuple.Create(" ", 39878), Tuple.Create("dw-mod", 39879), true) 3186 ); 3187 3188 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3189 3190 3191 #line 1057 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3192 3193 3194 #line default 3195 #line hidden 3196 3197 #line 1057 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3198 if (!string.IsNullOrEmpty(settings.Label)) 3199 { 3200 3201 3202 #line default 3203 #line hidden 3204 WriteLiteralTo(__razor_helper_writer, " <label"); 3205 3206 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 39971), Tuple.Create("\"", 39980) 3207 3208 #line 1059 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3209 , Tuple.Create(Tuple.Create("", 39977), Tuple.Create<System.Object, System.Int32>(id 3210 3211 #line default 3212 #line hidden 3213 , 39977), false) 3214 ); 3215 3216 WriteLiteralTo(__razor_helper_writer, ">"); 3217 3218 3219 #line 1059 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3220 WriteTo(__razor_helper_writer, settings.Label); 3221 3222 3223 #line default 3224 #line hidden 3225 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 3226 3227 3228 #line 1060 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3229 } 3230 3231 3232 #line default 3233 #line hidden 3234 WriteLiteralTo(__razor_helper_writer, " "); 3235 3236 3237 #line 1061 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3238 if (!string.IsNullOrEmpty(settings.HelpText)) 3239 { 3240 3241 3242 #line default 3243 #line hidden 3244 WriteLiteralTo(__razor_helper_writer, " <small"); 3245 3246 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3247 3248 WriteLiteralTo(__razor_helper_writer, ">"); 3249 3250 3251 #line 1063 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3252 WriteTo(__razor_helper_writer, settings.HelpText); 3253 3254 3255 #line default 3256 #line hidden 3257 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3258 3259 3260 #line 1064 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3261 } 3262 3263 3264 #line default 3265 #line hidden 3266 WriteLiteralTo(__razor_helper_writer, "\r\n <textarea"); 3267 3268 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 40186), Tuple.Create("\"", 40232) 3269 , Tuple.Create(Tuple.Create("", 40194), Tuple.Create("u-full-width", 40194), true) 3270 3271 #line 1066 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3272 , Tuple.Create(Tuple.Create(" ", 40206), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3273 3274 #line default 3275 #line hidden 3276 , 40207), false) 3277 , Tuple.Create(Tuple.Create(" ", 40225), Tuple.Create("dw-mod", 40226), true) 3278 ); 3279 3280 WriteLiteralTo(__razor_helper_writer, " "); 3281 3282 3283 #line 1066 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3284 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 3285 3286 3287 #line default 3288 #line hidden 3289 WriteLiteralTo(__razor_helper_writer, " "); 3290 3291 3292 #line 1066 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3293 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 3294 3295 3296 #line default 3297 #line hidden 3298 WriteLiteralTo(__razor_helper_writer, ">"); 3299 3300 3301 #line 1066 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3302 WriteTo(__razor_helper_writer, settings.Value); 3303 3304 3305 #line default 3306 #line hidden 3307 WriteLiteralTo(__razor_helper_writer, "</textarea>\r\n\r\n"); 3308 3309 WriteLiteralTo(__razor_helper_writer, " "); 3310 3311 3312 #line 1068 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3313 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 3314 3315 3316 #line default 3317 #line hidden 3318 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3319 3320 3321 #line 1070 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3322 3323 3324 #line default 3325 #line hidden 3326 }); 3327 3328 #line 1070 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3329 } 3330 #line default 3331 #line hidden 3332 3333 3334 #line 1078 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3335 public RazorEngine.Templating.TemplateWriter RenderHiddenField(HiddenField settings) { 3336 #line default 3337 #line hidden 3338 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3339 3340 #line 1078 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3341 3342 var attributes = new Dictionary<string, string>(); 3343 attributes.Add("type", "hidden"); 3344 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3345 if (settings.Value != null) { attributes.Add("value", settings.Value); } 3346 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 3347 3348 3349 3350 #line default 3351 #line hidden 3352 WriteLiteralTo(__razor_helper_writer, " <input "); 3353 3354 3355 #line 1085 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3356 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 3357 3358 3359 #line default 3360 #line hidden 3361 WriteLiteralTo(__razor_helper_writer, " "); 3362 3363 3364 #line 1085 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3365 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 3366 3367 3368 #line default 3369 #line hidden 3370 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 3371 3372 3373 #line 1086 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3374 3375 3376 #line default 3377 #line hidden 3378 }); 3379 3380 #line 1086 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3381 } 3382 #line default 3383 #line hidden 3384 3385 3386 #line 1093 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3387 public RazorEngine.Templating.TemplateWriter RenderCheckboxField(CheckboxField settings) 3388 { 3389 #line default 3390 #line hidden 3391 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3392 3393 #line 1094 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3394 3395 var attributes = new Dictionary<string, string>(); 3396 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 3397 { 3398 settings.Id = Guid.NewGuid().ToString("N"); 3399 } 3400 3401 /*base settings*/ 3402 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3403 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 3404 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 3405 if (settings.Disabled) { attributes.Add("disabled", "true"); } 3406 if (settings.Required) { attributes.Add("required", "true"); } 3407 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 3408 /*end*/ 3409 3410 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 3411 3412 attributes.Add("type", "checkbox"); 3413 if (settings.Checked) { attributes.Add("checked", "true"); } 3414 settings.CssClass = "form__control " + settings.CssClass; 3415 if (settings.Value != null) { attributes.Add("value", settings.Value); } 3416 3417 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 3418 3419 3420 3421 #line default 3422 #line hidden 3423 WriteLiteralTo(__razor_helper_writer, " <div"); 3424 3425 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 42628), Tuple.Create("\"", 42686) 3426 , Tuple.Create(Tuple.Create("", 42636), Tuple.Create("form__field-group", 42636), true) 3427 3428 #line 1119 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3429 , Tuple.Create(Tuple.Create(" ", 42653), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3430 3431 #line default 3432 #line hidden 3433 , 42654), false) 3434 , Tuple.Create(Tuple.Create(" ", 42679), Tuple.Create("dw-mod", 42680), true) 3435 ); 3436 3437 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 3438 3439 3440 #line 1120 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3441 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3442 3443 3444 #line default 3445 #line hidden 3446 WriteLiteralTo(__razor_helper_writer, " class=\""); 3447 3448 3449 #line 1120 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3450 WriteTo(__razor_helper_writer, settings.CssClass); 3451 3452 3453 #line default 3454 #line hidden 3455 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 3456 3457 3458 #line 1121 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3459 3460 3461 #line default 3462 #line hidden 3463 3464 #line 1121 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3465 if (!string.IsNullOrEmpty(settings.Label)) 3466 { 3467 3468 3469 #line default 3470 #line hidden 3471 WriteLiteralTo(__razor_helper_writer, " <label"); 3472 3473 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 42875), Tuple.Create("\"", 42893) 3474 3475 #line 1123 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3476 , Tuple.Create(Tuple.Create("", 42881), Tuple.Create<System.Object, System.Int32>(settings.Id 3477 3478 #line default 3479 #line hidden 3480 , 42881), false) 3481 ); 3482 3483 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 3484 3485 WriteLiteralTo(__razor_helper_writer, ">"); 3486 3487 3488 #line 1123 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3489 WriteTo(__razor_helper_writer, settings.Label); 3490 3491 3492 #line default 3493 #line hidden 3494 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 3495 3496 3497 #line 1124 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3498 } 3499 3500 3501 #line default 3502 #line hidden 3503 WriteLiteralTo(__razor_helper_writer, " "); 3504 3505 3506 #line 1125 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3507 if (!string.IsNullOrEmpty(settings.HelpText)) 3508 { 3509 3510 3511 #line default 3512 #line hidden 3513 WriteLiteralTo(__razor_helper_writer, " <small"); 3514 3515 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3516 3517 WriteLiteralTo(__razor_helper_writer, ">"); 3518 3519 3520 #line 1127 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3521 WriteTo(__razor_helper_writer, settings.HelpText); 3522 3523 3524 #line default 3525 #line hidden 3526 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3527 3528 3529 #line 1128 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3530 } 3531 3532 3533 #line default 3534 #line hidden 3535 WriteLiteralTo(__razor_helper_writer, " "); 3536 3537 3538 #line 1129 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3539 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 3540 3541 3542 #line default 3543 #line hidden 3544 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3545 3546 3547 #line 1131 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3548 3549 3550 #line default 3551 #line hidden 3552 }); 3553 3554 #line 1131 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3555 } 3556 #line default 3557 #line hidden 3558 3559 3560 #line 1139 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3561 public RazorEngine.Templating.TemplateWriter RenderCheckboxListField(CheckboxListField settings) 3562 { 3563 #line default 3564 #line hidden 3565 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3566 3567 #line 1140 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3568 3569 3570 3571 #line default 3572 #line hidden 3573 WriteLiteralTo(__razor_helper_writer, " <div"); 3574 3575 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 43405), Tuple.Create("\"", 43479) 3576 , Tuple.Create(Tuple.Create("", 43413), Tuple.Create("form__field-group", 43413), true) 3577 3578 #line 1141 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3579 , Tuple.Create(Tuple.Create(" ", 43430), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3580 3581 #line default 3582 #line hidden 3583 , 43431), false) 3584 , Tuple.Create(Tuple.Create(" ", 43456), Tuple.Create("u-margin-bottom", 43457), true) 3585 , Tuple.Create(Tuple.Create(" ", 43472), Tuple.Create("dw-mod", 43473), true) 3586 ); 3587 3588 WriteLiteralTo(__razor_helper_writer, " "); 3589 3590 3591 #line 1141 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3592 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 3593 3594 3595 #line default 3596 #line hidden 3597 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3598 3599 3600 #line 1142 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3601 3602 3603 #line default 3604 #line hidden 3605 3606 #line 1142 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3607 if (!string.IsNullOrEmpty(settings.Label)) 3608 { 3609 3610 3611 #line default 3612 #line hidden 3613 WriteLiteralTo(__razor_helper_writer, " <label>"); 3614 3615 3616 #line 1144 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3617 WriteTo(__razor_helper_writer, settings.Label); 3618 3619 3620 #line default 3621 #line hidden 3622 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 3623 3624 3625 #line 1145 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3626 } 3627 3628 3629 #line default 3630 #line hidden 3631 WriteLiteralTo(__razor_helper_writer, " "); 3632 3633 3634 #line 1146 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3635 if (!string.IsNullOrEmpty(settings.HelpText)) 3636 { 3637 3638 3639 #line default 3640 #line hidden 3641 WriteLiteralTo(__razor_helper_writer, " <small"); 3642 3643 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3644 3645 WriteLiteralTo(__razor_helper_writer, ">"); 3646 3647 3648 #line 1148 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3649 WriteTo(__razor_helper_writer, settings.HelpText); 3650 3651 3652 #line default 3653 #line hidden 3654 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3655 3656 3657 #line 1149 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3658 } 3659 3660 3661 #line default 3662 #line hidden 3663 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3664 3665 3666 #line 1151 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3667 3668 3669 #line default 3670 #line hidden 3671 3672 #line 1151 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3673 foreach (var item in settings.Options) 3674 { 3675 if (settings.Required) 3676 { 3677 item.Required = true; 3678 } 3679 if (settings.Disabled) 3680 { 3681 item.Disabled = true; 3682 } 3683 if (!string.IsNullOrEmpty(settings.Name)) 3684 { 3685 item.Name = settings.Name; 3686 } 3687 if (!string.IsNullOrEmpty(settings.CssClass)) 3688 { 3689 item.CssClass += settings.CssClass; 3690 } 3691 3692 /* value is not supported */ 3693 3694 if (!string.IsNullOrEmpty(settings.OnClick)) 3695 { 3696 item.OnClick += settings.OnClick; 3697 } 3698 if (!string.IsNullOrEmpty(settings.OnChange)) 3699 { 3700 item.OnChange += settings.OnChange; 3701 } 3702 3703 3704 #line default 3705 #line hidden 3706 3707 #line 1180 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3708 WriteTo(__razor_helper_writer, Render(item)); 3709 3710 3711 #line default 3712 #line hidden 3713 3714 #line 1180 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3715 3716 } 3717 3718 3719 #line default 3720 #line hidden 3721 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3722 3723 WriteLiteralTo(__razor_helper_writer, " "); 3724 3725 3726 #line 1183 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3727 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 3728 3729 3730 #line default 3731 #line hidden 3732 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3733 3734 3735 #line 1185 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3736 3737 3738 #line default 3739 #line hidden 3740 }); 3741 3742 #line 1185 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3743 } 3744 #line default 3745 #line hidden 3746 3747 3748 #line 1190 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3749 public RazorEngine.Templating.TemplateWriter RenderSearch(Search settings) 3750 { 3751 #line default 3752 #line hidden 3753 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3754 3755 #line 1191 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3756 3757 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? ""; 3758 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? ""; 3759 3760 if (string.IsNullOrEmpty(settings.Id)) 3761 { 3762 settings.Id = Guid.NewGuid().ToString("N"); 3763 } 3764 3765 var resultAttributes = new Dictionary<string, string>(); 3766 3767 if (settings.PageSize != 0) 3768 { 3769 resultAttributes.Add("data-page-size", settings.PageSize.ToString()); 3770 } 3771 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 3772 { 3773 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl); 3774 if (!string.IsNullOrEmpty(groupValue)) 3775 { 3776 resultAttributes.Add("data-selected-group", groupValue); 3777 } 3778 if (!string.IsNullOrEmpty(settings.GroupsParameter)) 3779 { 3780 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter); 3781 } 3782 } 3783 resultAttributes.Add("data-force-init", "true"); 3784 if (settings.GoToFirstSearchResultOnEnter) 3785 { 3786 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower()); 3787 } 3788 if (!string.IsNullOrEmpty(settings.SearchParameter)) 3789 { 3790 resultAttributes.Add("data-search-parameter", settings.SearchParameter); 3791 } 3792 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl); 3793 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId); 3794 3795 if (settings.SecondSearchData != null) 3796 { 3797 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl); 3798 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId); 3799 } 3800 if (!string.IsNullOrEmpty(settings.ResultsPageUrl)) 3801 { 3802 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl); 3803 } 3804 3805 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 3806 3807 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : ""; 3808 3809 3810 3811 #line default 3812 #line hidden 3813 WriteLiteralTo(__razor_helper_writer, " <div"); 3814 3815 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 47156), Tuple.Create("\"", 47234) 3816 , Tuple.Create(Tuple.Create("", 47164), Tuple.Create("search", 47164), true) 3817 3818 #line 1244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3819 , Tuple.Create(Tuple.Create(" ", 47170), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3820 3821 #line default 3822 #line hidden 3823 , 47171), false) 3824 3825 #line 1244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3826 , Tuple.Create(Tuple.Create(" ", 47189), Tuple.Create<System.Object, System.Int32>(searchFieldCss 3827 3828 #line default 3829 #line hidden 3830 , 47190), false) 3831 , Tuple.Create(Tuple.Create(" ", 47205), Tuple.Create("js-search-data-source", 47206), true) 3832 , Tuple.Create(Tuple.Create(" ", 47227), Tuple.Create("dw-mod", 47228), true) 3833 ); 3834 3835 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 47235), Tuple.Create("\"", 47252) 3836 3837 #line 1244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3838 , Tuple.Create(Tuple.Create("", 47240), Tuple.Create<System.Object, System.Int32>(settings.Id 3839 3840 #line default 3841 #line hidden 3842 , 47240), false) 3843 ); 3844 3845 WriteLiteralTo(__razor_helper_writer, " "); 3846 3847 3848 #line 1244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3849 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3850 3851 3852 #line default 3853 #line hidden 3854 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3855 3856 3857 #line 1245 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3858 3859 3860 #line default 3861 #line hidden 3862 3863 #line 1245 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3864 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 3865 { 3866 3867 3868 #line default 3869 #line hidden 3870 WriteLiteralTo(__razor_helper_writer, " <button"); 3871 3872 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 3873 3874 WriteLiteralTo(__razor_helper_writer, " class=\"search__groups-btn dw-mod js-search-groups-btn\""); 3875 3876 WriteLiteralTo(__razor_helper_writer, ">"); 3877 3878 3879 #line 1247 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3880 WriteTo(__razor_helper_writer, Translate("All")); 3881 3882 3883 #line default 3884 #line hidden 3885 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 3886 3887 WriteLiteralTo(__razor_helper_writer, " <ul"); 3888 3889 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown dropdown--absolute-position dw-mod search__groups-results js-sea" + 3890 "rch-groups-list\""); 3891 3892 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 3893 3894 3895 #line 1249 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3896 } 3897 3898 3899 #line default 3900 #line hidden 3901 WriteLiteralTo(__razor_helper_writer, "\r\n <input"); 3902 3903 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 3904 3905 WriteLiteralTo(__razor_helper_writer, " class=\"search__field dw-mod js-search-field\""); 3906 3907 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 47703), Tuple.Create("\"", 47738) 3908 3909 #line 1251 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3910 , Tuple.Create(Tuple.Create("", 47717), Tuple.Create<System.Object, System.Int32>(settings.Placeholder 3911 3912 #line default 3913 #line hidden 3914 , 47717), false) 3915 ); 3916 3917 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 47739), Tuple.Create("\"", 47759) 3918 3919 #line 1251 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3920 , Tuple.Create(Tuple.Create("", 47747), Tuple.Create<System.Object, System.Int32>(searchValue 3921 3922 #line default 3923 #line hidden 3924 , 47747), false) 3925 ); 3926 3927 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <div"); 3928 3929 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 47785), Tuple.Create("\"", 47942) 3930 , Tuple.Create(Tuple.Create("", 47793), Tuple.Create("dropdown", 47793), true) 3931 , Tuple.Create(Tuple.Create(" ", 47801), Tuple.Create("dropdown--absolute-position", 47802), true) 3932 , Tuple.Create(Tuple.Create(" ", 47829), Tuple.Create("search__results", 47830), true) 3933 , Tuple.Create(Tuple.Create(" ", 47845), Tuple.Create("dw-mod", 47846), true) 3934 , Tuple.Create(Tuple.Create(" ", 47852), Tuple.Create("js-search-results", 47853), true) 3935 3936 #line 1253 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3937 , Tuple.Create(Tuple.Create(" ", 47870), Tuple.Create<System.Object, System.Int32>(settings.SecondSearchData != null ? "search__results--combined" : "" 3938 3939 #line default 3940 #line hidden 3941 , 47871), false) 3942 ); 3943 3944 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3945 3946 3947 #line 1254 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3948 3949 3950 #line default 3951 #line hidden 3952 3953 #line 1254 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3954 if (settings.SecondSearchData != null) 3955 { 3956 3957 3958 #line default 3959 #line hidden 3960 WriteLiteralTo(__razor_helper_writer, " <div"); 3961 3962 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--products dw-mod\""); 3963 3964 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 3965 3966 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header dw-mod\""); 3967 3968 WriteLiteralTo(__razor_helper_writer, ">"); 3969 3970 3971 #line 1257 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3972 WriteTo(__razor_helper_writer, Translate("Products")); 3973 3974 3975 #line default 3976 #line hidden 3977 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul"); 3978 3979 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\""); 3980 3981 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 48266), Tuple.Create("\"", 48297) 3982 3983 #line 1258 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3984 , Tuple.Create(Tuple.Create("", 48271), Tuple.Create<System.Object, System.Int32>(settings.Id 3985 3986 #line default 3987 #line hidden 3988 , 48271), false) 3989 , Tuple.Create(Tuple.Create("", 48285), Tuple.Create("_ResultsList", 48285), true) 3990 ); 3991 3992 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 3993 3994 3995 #line 1259 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 3996 3997 3998 #line default 3999 #line hidden 4000 4001 #line 1259 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4002 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 4003 { 4004 4005 4006 #line default 4007 #line hidden 4008 4009 #line 1261 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4010 WriteTo(__razor_helper_writer, Render(new Link { 4011 Title = Translate("View all"), 4012 CssClass = "js-view-all-button u-margin", 4013 Href = settings.SearchData.ResultsPageUrl 4014 })); 4015 4016 4017 #line default 4018 #line hidden 4019 4020 #line 1265 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4021 ; 4022 } 4023 4024 4025 #line default 4026 #line hidden 4027 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4028 4029 WriteLiteralTo(__razor_helper_writer, " <div"); 4030 4031 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--pages dw-mod\""); 4032 4033 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 4034 4035 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header\""); 4036 4037 WriteLiteralTo(__razor_helper_writer, ">"); 4038 4039 4040 #line 1269 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4041 WriteTo(__razor_helper_writer, Translate("Pages")); 4042 4043 4044 #line default 4045 #line hidden 4046 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul"); 4047 4048 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-second-list\""); 4049 4050 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 48982), Tuple.Create("\"", 49019) 4051 4052 #line 1270 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4053 , Tuple.Create(Tuple.Create("", 48987), Tuple.Create<System.Object, System.Int32>(settings.Id 4054 4055 #line default 4056 #line hidden 4057 , 48987), false) 4058 , Tuple.Create(Tuple.Create("", 49001), Tuple.Create("_SecondResultsList", 49001), true) 4059 ); 4060 4061 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 4062 4063 4064 #line 1271 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4065 4066 4067 #line default 4068 #line hidden 4069 4070 #line 1271 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4071 if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl)) 4072 { 4073 4074 4075 #line default 4076 #line hidden 4077 4078 #line 1273 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4079 WriteTo(__razor_helper_writer, Render(new Link 4080 { 4081 Title = Translate("View all"), 4082 CssClass = "js-view-all-button u-margin", 4083 Href = settings.SecondSearchData.ResultsPageUrl 4084 })); 4085 4086 4087 #line default 4088 #line hidden 4089 4090 #line 1278 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4091 ; 4092 } 4093 4094 4095 #line default 4096 #line hidden 4097 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4098 4099 4100 #line 1281 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4101 } 4102 else 4103 { 4104 4105 4106 #line default 4107 #line hidden 4108 WriteLiteralTo(__razor_helper_writer, " <div"); 4109 4110 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--only dw-mod\""); 4111 4112 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 4113 4114 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\""); 4115 4116 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 49699), Tuple.Create("\"", 49730) 4117 4118 #line 1285 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4119 , Tuple.Create(Tuple.Create("", 49704), Tuple.Create<System.Object, System.Int32>(settings.Id 4120 4121 #line default 4122 #line hidden 4123 , 49704), false) 4124 , Tuple.Create(Tuple.Create("", 49718), Tuple.Create("_ResultsList", 49718), true) 4125 ); 4126 4127 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 4128 4129 4130 #line 1286 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4131 4132 4133 #line default 4134 #line hidden 4135 4136 #line 1286 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4137 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 4138 { 4139 4140 4141 #line default 4142 #line hidden 4143 4144 #line 1288 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4145 WriteTo(__razor_helper_writer, Render(new Link { 4146 Title = Translate("View all"), 4147 CssClass = "js-view-all-button u-margin", 4148 Href = settings.SearchData.ResultsPageUrl 4149 })); 4150 4151 4152 #line default 4153 #line hidden 4154 4155 #line 1292 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4156 ; 4157 } 4158 4159 4160 #line default 4161 #line hidden 4162 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4163 4164 4165 #line 1295 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4166 } 4167 4168 4169 #line default 4170 #line hidden 4171 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 4172 4173 4174 #line 1298 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4175 4176 4177 #line default 4178 #line hidden 4179 4180 #line 1298 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4181 if (settings.SearchButton != null) 4182 { 4183 settings.SearchButton.CssClass += " search__btn js-search-btn"; 4184 if (settings.RenderDefaultSearchIcon) 4185 { 4186 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue }; 4187 } 4188 4189 4190 #line default 4191 #line hidden 4192 4193 #line 1305 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4194 WriteTo(__razor_helper_writer, Render(settings.SearchButton)); 4195 4196 4197 #line default 4198 #line hidden 4199 4200 #line 1305 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4201 ; 4202 } 4203 4204 4205 #line default 4206 #line hidden 4207 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4208 4209 4210 #line 1308 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4211 4212 4213 #line default 4214 #line hidden 4215 }); 4216 4217 #line 1308 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4218 } 4219 #line default 4220 #line hidden 4221 4222 4223 #line 1316 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4224 public RazorEngine.Templating.TemplateWriter RenderSelectField(SelectField settings) 4225 { 4226 #line default 4227 #line hidden 4228 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4229 4230 #line 1317 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4231 4232 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 4233 { 4234 settings.Id = Guid.NewGuid().ToString("N"); 4235 } 4236 4237 4238 4239 #line default 4240 #line hidden 4241 WriteLiteralTo(__razor_helper_writer, " <div"); 4242 4243 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 51006), Tuple.Create("\"", 51077) 4244 , Tuple.Create(Tuple.Create("", 51014), Tuple.Create("form__field-group", 51014), true) 4245 , Tuple.Create(Tuple.Create(" ", 51031), Tuple.Create("u-full-width", 51032), true) 4246 4247 #line 1323 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4248 , Tuple.Create(Tuple.Create(" ", 51044), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4249 4250 #line default 4251 #line hidden 4252 , 51045), false) 4253 , Tuple.Create(Tuple.Create(" ", 51070), Tuple.Create("dw-mod", 51071), true) 4254 ); 4255 4256 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4257 4258 4259 #line 1324 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4260 4261 4262 #line default 4263 #line hidden 4264 4265 #line 1324 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4266 if (!string.IsNullOrEmpty(settings.Label)) 4267 { 4268 4269 4270 #line default 4271 #line hidden 4272 WriteLiteralTo(__razor_helper_writer, " <label"); 4273 4274 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 51163), Tuple.Create("\"", 51181) 4275 4276 #line 1326 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4277 , Tuple.Create(Tuple.Create("", 51169), Tuple.Create<System.Object, System.Int32>(settings.Id 4278 4279 #line default 4280 #line hidden 4281 , 51169), false) 4282 ); 4283 4284 WriteLiteralTo(__razor_helper_writer, ">"); 4285 4286 4287 #line 1326 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4288 WriteTo(__razor_helper_writer, settings.Label); 4289 4290 4291 #line default 4292 #line hidden 4293 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 4294 4295 4296 #line 1327 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4297 } 4298 4299 4300 #line default 4301 #line hidden 4302 WriteLiteralTo(__razor_helper_writer, " "); 4303 4304 4305 #line 1328 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4306 if (!string.IsNullOrEmpty(settings.HelpText)) 4307 { 4308 4309 4310 #line default 4311 #line hidden 4312 WriteLiteralTo(__razor_helper_writer, " <small"); 4313 4314 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4315 4316 WriteLiteralTo(__razor_helper_writer, ">"); 4317 4318 4319 #line 1330 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4320 WriteTo(__razor_helper_writer, settings.HelpText); 4321 4322 4323 #line default 4324 #line hidden 4325 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4326 4327 4328 #line 1331 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4329 } 4330 4331 4332 #line default 4333 #line hidden 4334 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4335 4336 4337 #line 1333 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4338 4339 4340 #line default 4341 #line hidden 4342 4343 #line 1333 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4344 if (settings.ActionButton != null) 4345 { 4346 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 4347 4348 4349 #line default 4350 #line hidden 4351 WriteLiteralTo(__razor_helper_writer, " <div"); 4352 4353 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 4354 4355 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4356 4357 WriteLiteralTo(__razor_helper_writer, " "); 4358 4359 4360 #line 1337 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4361 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 4362 4363 4364 #line default 4365 #line hidden 4366 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4367 4368 WriteLiteralTo(__razor_helper_writer, " "); 4369 4370 4371 #line 1338 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4372 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 4373 4374 4375 #line default 4376 #line hidden 4377 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4378 4379 4380 #line 1340 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4381 } 4382 else 4383 { 4384 4385 4386 #line default 4387 #line hidden 4388 4389 #line 1343 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4390 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 4391 4392 4393 #line default 4394 #line hidden 4395 4396 #line 1343 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4397 4398 } 4399 4400 4401 #line default 4402 #line hidden 4403 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4404 4405 WriteLiteralTo(__razor_helper_writer, " "); 4406 4407 4408 #line 1346 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4409 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 4410 4411 4412 #line default 4413 #line hidden 4414 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4415 4416 4417 #line 1348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4418 4419 4420 #line default 4421 #line hidden 4422 }); 4423 4424 #line 1348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4425 } 4426 #line default 4427 #line hidden 4428 4429 4430 #line 1350 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4431 public RazorEngine.Templating.TemplateWriter RenderSelectBase(SelectField settings) 4432 { 4433 #line default 4434 #line hidden 4435 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4436 4437 #line 1351 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4438 4439 var attributes = new Dictionary<string, string>(); 4440 4441 /*base settings*/ 4442 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4443 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 4444 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 4445 if (settings.Disabled) { attributes.Add("disabled", "true"); } 4446 if (settings.Required) { attributes.Add("required", "true"); } 4447 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 4448 /*end*/ 4449 4450 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 4451 4452 4453 4454 #line default 4455 #line hidden 4456 WriteLiteralTo(__razor_helper_writer, " <select "); 4457 4458 4459 #line 1365 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4460 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4461 4462 4463 #line default 4464 #line hidden 4465 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width "); 4466 4467 4468 #line 1365 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4469 WriteTo(__razor_helper_writer, settings.CssClass); 4470 4471 4472 #line default 4473 #line hidden 4474 WriteLiteralTo(__razor_helper_writer, " dw-mod\">\r\n"); 4475 4476 4477 #line 1366 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4478 4479 4480 #line default 4481 #line hidden 4482 4483 #line 1366 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4484 if (settings.Default != null) 4485 { 4486 4487 4488 #line default 4489 #line hidden 4490 4491 #line 1368 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4492 WriteTo(__razor_helper_writer, Render(settings.Default)); 4493 4494 4495 #line default 4496 #line hidden 4497 4498 #line 1368 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4499 4500 } 4501 4502 4503 #line default 4504 #line hidden 4505 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4506 4507 4508 #line 1371 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4509 4510 4511 #line default 4512 #line hidden 4513 4514 #line 1371 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4515 foreach (var item in settings.Options) 4516 { 4517 if (settings.Value != null) { 4518 item.Checked = item.Value == settings.Value; 4519 } 4520 4521 4522 #line default 4523 #line hidden 4524 4525 #line 1376 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4526 WriteTo(__razor_helper_writer, Render(item)); 4527 4528 4529 #line default 4530 #line hidden 4531 4532 #line 1376 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4533 4534 } 4535 4536 4537 #line default 4538 #line hidden 4539 WriteLiteralTo(__razor_helper_writer, " </select>\r\n"); 4540 4541 4542 #line 1379 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4543 4544 4545 #line default 4546 #line hidden 4547 }); 4548 4549 #line 1379 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4550 } 4551 #line default 4552 #line hidden 4553 4554 4555 #line 1386 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4556 public RazorEngine.Templating.TemplateWriter RenderRadioButtonField(RadioButtonField settings) 4557 { 4558 #line default 4559 #line hidden 4560 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4561 4562 #line 1387 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4563 4564 var attributes = new Dictionary<string, string>(); 4565 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 4566 { 4567 settings.Id = Guid.NewGuid().ToString("N"); 4568 } 4569 4570 /*base settings*/ 4571 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4572 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 4573 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 4574 if (settings.Disabled) { attributes.Add("disabled", "true"); } 4575 if (settings.Required) { attributes.Add("required", "true"); } 4576 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 4577 /*end*/ 4578 4579 attributes.Add("type", "radio"); 4580 if (settings.Checked) { attributes.Add("checked", "true"); } 4581 settings.CssClass = "form__control " + settings.CssClass; 4582 if (settings.Value != null) { attributes.Add("value", settings.Value); } 4583 4584 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 4585 4586 4587 4588 #line default 4589 #line hidden 4590 WriteLiteralTo(__razor_helper_writer, " <div"); 4591 4592 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 54482), Tuple.Create("\"", 54540) 4593 , Tuple.Create(Tuple.Create("", 54490), Tuple.Create("form__field-group", 54490), true) 4594 4595 #line 1410 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4596 , Tuple.Create(Tuple.Create(" ", 54507), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4597 4598 #line default 4599 #line hidden 4600 , 54508), false) 4601 , Tuple.Create(Tuple.Create(" ", 54533), Tuple.Create("dw-mod", 54534), true) 4602 ); 4603 4604 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4605 4606 4607 #line 1411 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4608 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4609 4610 4611 #line default 4612 #line hidden 4613 WriteLiteralTo(__razor_helper_writer, " class=\""); 4614 4615 4616 #line 1411 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4617 WriteTo(__razor_helper_writer, settings.CssClass); 4618 4619 4620 #line default 4621 #line hidden 4622 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 4623 4624 4625 #line 1412 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4626 4627 4628 #line default 4629 #line hidden 4630 4631 #line 1412 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4632 if (!string.IsNullOrEmpty(settings.Label)) 4633 { 4634 4635 4636 #line default 4637 #line hidden 4638 WriteLiteralTo(__razor_helper_writer, " <label"); 4639 4640 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 54729), Tuple.Create("\"", 54747) 4641 4642 #line 1414 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4643 , Tuple.Create(Tuple.Create("", 54735), Tuple.Create<System.Object, System.Int32>(settings.Id 4644 4645 #line default 4646 #line hidden 4647 , 54735), false) 4648 ); 4649 4650 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 4651 4652 WriteLiteralTo(__razor_helper_writer, ">"); 4653 4654 4655 #line 1414 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4656 WriteTo(__razor_helper_writer, settings.Label); 4657 4658 4659 #line default 4660 #line hidden 4661 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 4662 4663 4664 #line 1415 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4665 } 4666 4667 4668 #line default 4669 #line hidden 4670 WriteLiteralTo(__razor_helper_writer, " "); 4671 4672 4673 #line 1416 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4674 if (!string.IsNullOrEmpty(settings.HelpText)) 4675 { 4676 4677 4678 #line default 4679 #line hidden 4680 WriteLiteralTo(__razor_helper_writer, " <small"); 4681 4682 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4683 4684 WriteLiteralTo(__razor_helper_writer, ">"); 4685 4686 4687 #line 1418 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4688 WriteTo(__razor_helper_writer, settings.HelpText); 4689 4690 4691 #line default 4692 #line hidden 4693 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4694 4695 4696 #line 1419 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4697 } 4698 4699 4700 #line default 4701 #line hidden 4702 WriteLiteralTo(__razor_helper_writer, " "); 4703 4704 4705 #line 1420 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4706 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 4707 4708 4709 #line default 4710 #line hidden 4711 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4712 4713 4714 #line 1422 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4715 4716 4717 #line default 4718 #line hidden 4719 }); 4720 4721 #line 1422 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4722 } 4723 #line default 4724 #line hidden 4725 4726 4727 #line 1430 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4728 public RazorEngine.Templating.TemplateWriter RenderRadioButtonListField(RadioButtonListField settings) 4729 { 4730 #line default 4731 #line hidden 4732 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4733 4734 #line 1431 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4735 4736 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 4737 4738 4739 4740 #line default 4741 #line hidden 4742 WriteLiteralTo(__razor_helper_writer, " <div"); 4743 4744 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 55403), Tuple.Create("\"", 55477) 4745 , Tuple.Create(Tuple.Create("", 55411), Tuple.Create("form__field-group", 55411), true) 4746 4747 #line 1434 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4748 , Tuple.Create(Tuple.Create(" ", 55428), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4749 4750 #line default 4751 #line hidden 4752 , 55429), false) 4753 , Tuple.Create(Tuple.Create(" ", 55454), Tuple.Create("u-margin-bottom", 55455), true) 4754 , Tuple.Create(Tuple.Create(" ", 55470), Tuple.Create("dw-mod", 55471), true) 4755 ); 4756 4757 WriteLiteralTo(__razor_helper_writer, " "); 4758 4759 4760 #line 1434 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4761 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 4762 4763 4764 #line default 4765 #line hidden 4766 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4767 4768 4769 #line 1435 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4770 4771 4772 #line default 4773 #line hidden 4774 4775 #line 1435 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4776 if (!string.IsNullOrEmpty(settings.Label)) 4777 { 4778 4779 4780 #line default 4781 #line hidden 4782 WriteLiteralTo(__razor_helper_writer, " <label>"); 4783 4784 4785 #line 1437 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4786 WriteTo(__razor_helper_writer, settings.Label); 4787 4788 4789 #line default 4790 #line hidden 4791 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 4792 4793 4794 #line 1438 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4795 } 4796 4797 4798 #line default 4799 #line hidden 4800 WriteLiteralTo(__razor_helper_writer, " "); 4801 4802 4803 #line 1439 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4804 if (!string.IsNullOrEmpty(settings.HelpText)) 4805 { 4806 4807 4808 #line default 4809 #line hidden 4810 WriteLiteralTo(__razor_helper_writer, " <small"); 4811 4812 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4813 4814 WriteLiteralTo(__razor_helper_writer, ">"); 4815 4816 4817 #line 1441 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4818 WriteTo(__razor_helper_writer, settings.HelpText); 4819 4820 4821 #line default 4822 #line hidden 4823 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4824 4825 4826 #line 1442 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4827 } 4828 4829 4830 #line default 4831 #line hidden 4832 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4833 4834 4835 #line 1444 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4836 4837 4838 #line default 4839 #line hidden 4840 4841 #line 1444 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4842 foreach (var item in settings.Options) 4843 { 4844 if (settings.Required) 4845 { 4846 item.Required = true; 4847 } 4848 if (settings.Disabled) 4849 { 4850 item.Disabled = true; 4851 } 4852 if (!string.IsNullOrEmpty(settings.Name)) 4853 { 4854 item.Name = settings.Name; 4855 } 4856 if (settings.Value != null && settings.Value == item.Value) 4857 { 4858 item.Checked = true; 4859 } 4860 if (!string.IsNullOrEmpty(settings.OnClick)) 4861 { 4862 item.OnClick += settings.OnClick; 4863 } 4864 if (!string.IsNullOrEmpty(settings.OnChange)) 4865 { 4866 item.OnChange += settings.OnChange; 4867 } 4868 if (!string.IsNullOrEmpty(settings.CssClass)) 4869 { 4870 item.CssClass += settings.CssClass; 4871 } 4872 4873 4874 #line default 4875 #line hidden 4876 4877 #line 1474 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4878 WriteTo(__razor_helper_writer, Render(item)); 4879 4880 4881 #line default 4882 #line hidden 4883 4884 #line 1474 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4885 4886 } 4887 4888 4889 #line default 4890 #line hidden 4891 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4892 4893 WriteLiteralTo(__razor_helper_writer, " "); 4894 4895 4896 #line 1477 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4897 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 4898 4899 4900 #line default 4901 #line hidden 4902 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4903 4904 4905 #line 1479 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4906 4907 4908 #line default 4909 #line hidden 4910 }); 4911 4912 #line 1479 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4913 } 4914 #line default 4915 #line hidden 4916 4917 4918 #line 1487 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4919 public RazorEngine.Templating.TemplateWriter RenderNotificationMessage(NotificationMessage settings) 4920 { 4921 #line default 4922 #line hidden 4923 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4924 4925 #line 1488 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4926 4927 if (!string.IsNullOrEmpty(settings.Message)) 4928 { 4929 var attributes = new Dictionary<string, string>(); 4930 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4931 4932 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower(); 4933 4934 4935 #line default 4936 #line hidden 4937 WriteLiteralTo(__razor_helper_writer, " <div"); 4938 4939 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 57451), Tuple.Create("\"", 57521) 4940 , Tuple.Create(Tuple.Create("", 57459), Tuple.Create("field-", 57459), true) 4941 4942 #line 1495 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4943 , Tuple.Create(Tuple.Create("", 57465), Tuple.Create<System.Object, System.Int32>(messageTypeClass 4944 4945 #line default 4946 #line hidden 4947 , 57465), false) 4948 4949 #line 1495 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4950 , Tuple.Create(Tuple.Create(" ", 57482), Tuple.Create<System.Object, System.Int32>(settings.CssClass 4951 4952 #line default 4953 #line hidden 4954 , 57483), false) 4955 , Tuple.Create(Tuple.Create(" ", 57501), Tuple.Create("u-full-width", 57502), true) 4956 , Tuple.Create(Tuple.Create(" ", 57514), Tuple.Create("dw-mod", 57515), true) 4957 ); 4958 4959 WriteLiteralTo(__razor_helper_writer, " "); 4960 4961 4962 #line 1495 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4963 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 4964 4965 4966 #line default 4967 #line hidden 4968 WriteLiteralTo(__razor_helper_writer, ">"); 4969 4970 4971 #line 1495 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4972 WriteTo(__razor_helper_writer, settings.Message); 4973 4974 4975 #line default 4976 #line hidden 4977 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 4978 4979 4980 #line 1496 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4981 } 4982 4983 4984 #line default 4985 #line hidden 4986 }); 4987 4988 #line 1497 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4989 } 4990 #line default 4991 #line hidden 4992 4993 4994 #line 1503 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 4995 public RazorEngine.Templating.TemplateWriter RenderHandlebarsRoot(HandlebarsRoot settings) { 4996 #line default 4997 #line hidden 4998 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4999 5000 #line 1503 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5001 5002 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : ""; 5003 5004 5005 5006 #line default 5007 #line hidden 5008 WriteLiteralTo(__razor_helper_writer, " <div"); 5009 5010 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 57904), Tuple.Create("\"", 57956) 5011 5012 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5013 , Tuple.Create(Tuple.Create("", 57912), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5014 5015 #line default 5016 #line hidden 5017 , 57912), false) 5018 , Tuple.Create(Tuple.Create(" ", 57930), Tuple.Create("dw-mod", 57931), true) 5019 , Tuple.Create(Tuple.Create(" ", 57937), Tuple.Create("js-handlebars-root", 57938), true) 5020 ); 5021 5022 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 57957), Tuple.Create("\"", 57974) 5023 5024 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5025 , Tuple.Create(Tuple.Create("", 57962), Tuple.Create<System.Object, System.Int32>(settings.Id 5026 5027 #line default 5028 #line hidden 5029 , 57962), false) 5030 ); 5031 5032 WriteLiteralTo(__razor_helper_writer, " data-template=\""); 5033 5034 5035 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5036 WriteTo(__razor_helper_writer, settings.ScriptTemplate); 5037 5038 5039 #line default 5040 #line hidden 5041 WriteLiteralTo(__razor_helper_writer, "\""); 5042 5043 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\""); 5044 5045 5046 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5047 WriteTo(__razor_helper_writer, settings.FeedUrl); 5048 5049 5050 #line default 5051 #line hidden 5052 WriteLiteralTo(__razor_helper_writer, "\""); 5053 5054 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\""); 5055 5056 5057 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5058 WriteTo(__razor_helper_writer, settings.InitOnLoad.ToString()); 5059 5060 5061 #line default 5062 #line hidden 5063 WriteLiteralTo(__razor_helper_writer, "\""); 5064 5065 WriteLiteralTo(__razor_helper_writer, " data-preloader=\""); 5066 5067 5068 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5069 WriteTo(__razor_helper_writer, settings.Preloader); 5070 5071 5072 #line default 5073 #line hidden 5074 WriteLiteralTo(__razor_helper_writer, "\""); 5075 5076 WriteLiteralTo(__razor_helper_writer, " "); 5077 5078 5079 #line 1506 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5080 WriteTo(__razor_helper_writer, preRender); 5081 5082 5083 #line default 5084 #line hidden 5085 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5086 5087 5088 #line 1507 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5089 5090 5091 #line default 5092 #line hidden 5093 5094 #line 1507 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5095 if (settings.SubBlocks != null) { 5096 5097 5098 #line default 5099 #line hidden 5100 5101 #line 1508 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5102 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 5103 5104 5105 #line default 5106 #line hidden 5107 5108 #line 1508 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5109 5110 } 5111 5112 5113 #line default 5114 #line hidden 5115 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5116 5117 5118 #line 1511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5119 5120 5121 #line default 5122 #line hidden 5123 }); 5124 5125 #line 1511 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5126 } 5127 #line default 5128 #line hidden 5129 5130 5131 #line 1520 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5132 public RazorEngine.Templating.TemplateWriter RenderSticker(Sticker settings) { 5133 #line default 5134 #line hidden 5135 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5136 5137 #line 1520 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5138 5139 if (!String.IsNullOrEmpty(settings.Title)) { 5140 string size = settings.Size.ToString() != "None" ? "" + "stickers-container__tag--" + settings.Size.ToString().ToLower() : ""; 5141 string style = settings.Style.ToString() != "None" ? "" + "stickers-container__tag--" + settings.Style.ToString().ToLower() : ""; 5142 5143 Dictionary<String, String> optionalAttributes = new Dictionary<string, string>(); 5144 if (!String.IsNullOrEmpty(settings.Color) || !String.IsNullOrEmpty(settings.BackgroundColor)) { 5145 string styleTag = !String.IsNullOrEmpty(settings.Color) ? "color: " + settings.Color + "; " : ""; 5146 styleTag += !String.IsNullOrEmpty(settings.BackgroundColor) ? "background-color: " + settings.BackgroundColor + "; " : ""; 5147 optionalAttributes.Add("style", styleTag); 5148 } 5149 5150 5151 5152 #line default 5153 #line hidden 5154 WriteLiteralTo(__razor_helper_writer, " <div"); 5155 5156 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 59351), Tuple.Create("\"", 59421) 5157 , Tuple.Create(Tuple.Create("", 59359), Tuple.Create("stickers-container__tag", 59359), true) 5158 5159 #line 1532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5160 , Tuple.Create(Tuple.Create(" ", 59382), Tuple.Create<System.Object, System.Int32>(size 5161 5162 #line default 5163 #line hidden 5164 , 59383), false) 5165 5166 #line 1532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5167 , Tuple.Create(Tuple.Create(" ", 59388), Tuple.Create<System.Object, System.Int32>(style 5168 5169 #line default 5170 #line hidden 5171 , 59389), false) 5172 5173 #line 1532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5174 , Tuple.Create(Tuple.Create(" ", 59395), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5175 5176 #line default 5177 #line hidden 5178 , 59396), false) 5179 , Tuple.Create(Tuple.Create(" ", 59414), Tuple.Create("dw-mod", 59415), true) 5180 ); 5181 5182 WriteLiteralTo(__razor_helper_writer, " "); 5183 5184 5185 #line 1532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5186 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 5187 5188 5189 #line default 5190 #line hidden 5191 WriteLiteralTo(__razor_helper_writer, " "); 5192 5193 5194 #line 1532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5195 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 5196 5197 5198 #line default 5199 #line hidden 5200 WriteLiteralTo(__razor_helper_writer, ">"); 5201 5202 5203 #line 1532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5204 WriteTo(__razor_helper_writer, settings.Title); 5205 5206 5207 #line default 5208 #line hidden 5209 WriteLiteralTo(__razor_helper_writer, "</div> \r\n"); 5210 5211 5212 #line 1533 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5213 } 5214 5215 5216 #line default 5217 #line hidden 5218 }); 5219 5220 #line 1534 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5221 } 5222 #line default 5223 #line hidden 5224 5225 5226 #line 1543 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5227 public RazorEngine.Templating.TemplateWriter RenderStickersCollection(StickersCollection settings) 5228 { 5229 #line default 5230 #line hidden 5231 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5232 5233 #line 1544 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5234 5235 if (settings.Stickers.Count > 0) 5236 { 5237 string position = "stickers-container--" + Regex.Replace(settings.Position.ToString(), "([a-z])([A-Z])", "$1-$2").ToLower(); 5238 5239 5240 5241 #line default 5242 #line hidden 5243 WriteLiteralTo(__razor_helper_writer, " <div"); 5244 5245 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 59976), Tuple.Create("\"", 60038) 5246 , Tuple.Create(Tuple.Create("", 59984), Tuple.Create("stickers-container", 59984), true) 5247 5248 #line 1549 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5249 , Tuple.Create(Tuple.Create(" ", 60002), Tuple.Create<System.Object, System.Int32>(position 5250 5251 #line default 5252 #line hidden 5253 , 60003), false) 5254 5255 #line 1549 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5256 , Tuple.Create(Tuple.Create(" ", 60012), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5257 5258 #line default 5259 #line hidden 5260 , 60013), false) 5261 , Tuple.Create(Tuple.Create(" ", 60031), Tuple.Create("dw-mod", 60032), true) 5262 ); 5263 5264 WriteLiteralTo(__razor_helper_writer, " "); 5265 5266 5267 #line 1549 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5268 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 5269 5270 5271 #line default 5272 #line hidden 5273 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5274 5275 5276 #line 1550 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5277 5278 5279 #line default 5280 #line hidden 5281 5282 #line 1550 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5283 foreach (Sticker sticker in settings.Stickers) 5284 { 5285 5286 5287 #line default 5288 #line hidden 5289 5290 #line 1552 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5291 WriteTo(__razor_helper_writer, Render(sticker)); 5292 5293 5294 #line default 5295 #line hidden 5296 5297 #line 1552 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5298 5299 } 5300 5301 5302 #line default 5303 #line hidden 5304 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 5305 5306 5307 #line 1555 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5308 } 5309 5310 5311 #line default 5312 #line hidden 5313 }); 5314 5315 #line 1556 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5316 } 5317 #line default 5318 #line hidden 5319 5320 5321 #line 1563 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5322 public RazorEngine.Templating.TemplateWriter RenderForm(Form settings) { 5323 #line default 5324 #line hidden 5325 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5326 5327 #line 1563 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5328 5329 if (settings != null) 5330 { 5331 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 5332 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); }; 5333 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); }; 5334 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); }; 5335 var enctypes = new Dictionary<string, string> 5336 { 5337 { "multipart", "multipart/form-data" }, 5338 { "text", "text/plain" }, 5339 { "application", "application/x-www-form-urlencoded" } 5340 }; 5341 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); }; 5342 optionalAttributes.Add("method", settings.Method.ToString()); 5343 5344 if (!string.IsNullOrEmpty(settings.FormStartMarkup)) 5345 { 5346 5347 5348 #line default 5349 #line hidden 5350 5351 #line 1581 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5352 WriteTo(__razor_helper_writer, settings.FormStartMarkup); 5353 5354 5355 #line default 5356 #line hidden 5357 5358 #line 1581 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5359 5360 } 5361 else 5362 { 5363 5364 5365 #line default 5366 #line hidden 5367 WriteLiteralTo(__razor_helper_writer, " "); 5368 5369 WriteLiteralTo(__razor_helper_writer, "<form class=\""); 5370 5371 5372 #line 1585 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5373 WriteTo(__razor_helper_writer, settings.CssClass); 5374 5375 5376 #line default 5377 #line hidden 5378 WriteLiteralTo(__razor_helper_writer, " u-no-margin dw-mod\" "); 5379 5380 5381 #line 1585 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5382 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 5383 5384 5385 #line default 5386 #line hidden 5387 WriteLiteralTo(__razor_helper_writer, " "); 5388 5389 5390 #line 1585 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5391 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 5392 5393 5394 #line default 5395 #line hidden 5396 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5397 5398 5399 #line 1586 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5400 } 5401 5402 foreach (var field in settings.GetFields()) 5403 { 5404 5405 5406 #line default 5407 #line hidden 5408 5409 #line 1590 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5410 WriteTo(__razor_helper_writer, Render(field)); 5411 5412 5413 #line default 5414 #line hidden 5415 5416 #line 1590 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5417 5418 } 5419 5420 5421 5422 #line default 5423 #line hidden 5424 WriteLiteralTo(__razor_helper_writer, " "); 5425 5426 WriteLiteralTo(__razor_helper_writer, "</form>\r\n"); 5427 5428 5429 #line 1594 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5430 } 5431 5432 5433 #line default 5434 #line hidden 5435 }); 5436 5437 #line 1595 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5438 } 5439 #line default 5440 #line hidden 5441 5442 5443 #line 1603 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5444 public RazorEngine.Templating.TemplateWriter RenderText(Text settings) 5445 { 5446 #line default 5447 #line hidden 5448 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5449 5450 #line 1604 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5451 5452 5453 5454 #line default 5455 #line hidden 5456 5457 #line 1605 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5458 WriteTo(__razor_helper_writer, settings.Content); 5459 5460 5461 #line default 5462 #line hidden 5463 5464 #line 1605 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5465 5466 5467 5468 #line default 5469 #line hidden 5470 }); 5471 5472 #line 1606 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5473 } 5474 #line default 5475 #line hidden 5476 5477 5478 #line 1614 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5479 public RazorEngine.Templating.TemplateWriter RenderContentModule(ContentModule settings) { 5480 #line default 5481 #line hidden 5482 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5483 5484 #line 1614 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5485 5486 if (!string.IsNullOrEmpty(settings.Content)) 5487 { 5488 5489 5490 #line default 5491 #line hidden 5492 5493 #line 1617 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5494 WriteTo(__razor_helper_writer, settings.Content); 5495 5496 5497 #line default 5498 #line hidden 5499 5500 #line 1617 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5501 5502 } 5503 5504 5505 #line default 5506 #line hidden 5507 }); 5508 5509 #line 1619 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5510 } 5511 #line default 5512 #line hidden 5513 5514 5515 #line 1627 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5516 public RazorEngine.Templating.TemplateWriter RenderModal(Modal settings) { 5517 #line default 5518 #line hidden 5519 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5520 5521 #line 1627 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5522 5523 if (settings != null) 5524 { 5525 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 5526 5527 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : ""; 5528 5529 5530 5531 #line default 5532 #line hidden 5533 WriteLiteralTo(__razor_helper_writer, " <input"); 5534 5535 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 5536 5537 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 62765), Tuple.Create("\"", 62792) 5538 5539 #line 1634 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5540 , Tuple.Create(Tuple.Create("", 62770), Tuple.Create<System.Object, System.Int32>(modalId 5541 5542 #line default 5543 #line hidden 5544 , 62770), false) 5545 , Tuple.Create(Tuple.Create("", 62780), Tuple.Create("ModalTrigger", 62780), true) 5546 ); 5547 5548 WriteLiteralTo(__razor_helper_writer, " class=\"modal-trigger\""); 5549 5550 WriteLiteralTo(__razor_helper_writer, " "); 5551 5552 5553 #line 1634 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5554 WriteTo(__razor_helper_writer, onchange); 5555 5556 5557 #line default 5558 #line hidden 5559 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 5560 5561 5562 #line 1635 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5563 5564 5565 5566 #line default 5567 #line hidden 5568 WriteLiteralTo(__razor_helper_writer, " <div"); 5569 5570 WriteLiteralTo(__razor_helper_writer, " class=\"modal-container\""); 5571 5572 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5573 5574 5575 #line 1637 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5576 5577 5578 #line default 5579 #line hidden 5580 5581 #line 1637 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5582 if (!settings.DisableDarkOverlay) 5583 { 5584 5585 5586 #line default 5587 #line hidden 5588 WriteLiteralTo(__razor_helper_writer, " <label"); 5589 5590 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 62956), Tuple.Create("\"", 62984) 5591 5592 #line 1639 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5593 , Tuple.Create(Tuple.Create("", 62962), Tuple.Create<System.Object, System.Int32>(modalId 5594 5595 #line default 5596 #line hidden 5597 , 62962), false) 5598 , Tuple.Create(Tuple.Create("", 62972), Tuple.Create("ModalTrigger", 62972), true) 5599 ); 5600 5601 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 62985), Tuple.Create("\"", 63012) 5602 5603 #line 1639 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5604 , Tuple.Create(Tuple.Create("", 62990), Tuple.Create<System.Object, System.Int32>(modalId 5605 5606 #line default 5607 #line hidden 5608 , 62990), false) 5609 , Tuple.Create(Tuple.Create("", 63000), Tuple.Create("ModalOverlay", 63000), true) 5610 ); 5611 5612 WriteLiteralTo(__razor_helper_writer, " class=\"modal-overlay\""); 5613 5614 WriteLiteralTo(__razor_helper_writer, "></label>\r\n"); 5615 5616 5617 #line 1640 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5618 } 5619 5620 5621 #line default 5622 #line hidden 5623 WriteLiteralTo(__razor_helper_writer, " <div"); 5624 5625 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 63077), Tuple.Create("\"", 63186) 5626 , Tuple.Create(Tuple.Create("", 63085), Tuple.Create("modal", 63085), true) 5627 , Tuple.Create(Tuple.Create(" ", 63090), Tuple.Create("modal--", 63091), true) 5628 5629 #line 1641 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5630 , Tuple.Create(Tuple.Create("", 63098), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() 5631 5632 #line default 5633 #line hidden 5634 , 63098), false) 5635 , Tuple.Create(Tuple.Create(" ", 63134), Tuple.Create("modal-height--", 63135), true) 5636 5637 #line 1641 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5638 , Tuple.Create(Tuple.Create("", 63149), Tuple.Create<System.Object, System.Int32>(settings.Height.ToString().ToLower() 5639 5640 #line default 5641 #line hidden 5642 , 63149), false) 5643 ); 5644 5645 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 63187), Tuple.Create("\"", 63207) 5646 5647 #line 1641 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5648 , Tuple.Create(Tuple.Create("", 63192), Tuple.Create<System.Object, System.Int32>(modalId 5649 5650 #line default 5651 #line hidden 5652 , 63192), false) 5653 , Tuple.Create(Tuple.Create("", 63202), Tuple.Create("Modal", 63202), true) 5654 ); 5655 5656 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5657 5658 5659 #line 1642 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5660 5661 5662 #line default 5663 #line hidden 5664 5665 #line 1642 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5666 if (settings.Heading != null) 5667 { 5668 if (!string.IsNullOrEmpty(settings.Heading.Title)) 5669 { 5670 5671 5672 #line default 5673 #line hidden 5674 WriteLiteralTo(__razor_helper_writer, " <div"); 5675 5676 WriteLiteralTo(__razor_helper_writer, " class=\"modal__header\""); 5677 5678 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5679 5680 WriteLiteralTo(__razor_helper_writer, " "); 5681 5682 5683 #line 1647 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5684 WriteTo(__razor_helper_writer, Render(settings.Heading)); 5685 5686 5687 #line default 5688 #line hidden 5689 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5690 5691 5692 #line 1649 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5693 } 5694 } 5695 5696 5697 #line default 5698 #line hidden 5699 WriteLiteralTo(__razor_helper_writer, " <div"); 5700 5701 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 63575), Tuple.Create("\"", 63670) 5702 , Tuple.Create(Tuple.Create("", 63583), Tuple.Create("modal__body", 63583), true) 5703 5704 #line 1651 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5705 , Tuple.Create(Tuple.Create(" ", 63594), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "" 5706 5707 #line default 5708 #line hidden 5709 , 63595), false) 5710 ); 5711 5712 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5713 5714 5715 #line 1652 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5716 5717 5718 #line default 5719 #line hidden 5720 5721 #line 1652 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5722 if (!string.IsNullOrEmpty(settings.BodyText)) 5723 { 5724 5725 5726 #line default 5727 #line hidden 5728 5729 #line 1654 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5730 WriteTo(__razor_helper_writer, settings.BodyText); 5731 5732 5733 #line default 5734 #line hidden 5735 5736 #line 1654 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5737 5738 } 5739 5740 5741 #line default 5742 #line hidden 5743 WriteLiteralTo(__razor_helper_writer, " "); 5744 5745 5746 #line 1656 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5747 if (settings.BodyTemplate != null) 5748 { 5749 5750 5751 #line default 5752 #line hidden 5753 5754 #line 1658 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5755 WriteTo(__razor_helper_writer, settings.BodyTemplate); 5756 5757 5758 #line default 5759 #line hidden 5760 5761 #line 1658 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5762 5763 } 5764 5765 5766 #line default 5767 #line hidden 5768 WriteLiteralTo(__razor_helper_writer, " "); 5769 5770 5771 #line 1660 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5772 5773 var actions = settings.GetActions(); 5774 5775 5776 #line default 5777 #line hidden 5778 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5779 5780 5781 #line 1664 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5782 5783 5784 #line default 5785 #line hidden 5786 5787 #line 1664 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5788 if (actions.Length > 0) 5789 { 5790 5791 5792 #line default 5793 #line hidden 5794 WriteLiteralTo(__razor_helper_writer, " <div"); 5795 5796 WriteLiteralTo(__razor_helper_writer, " class=\"modal__footer\""); 5797 5798 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5799 5800 5801 #line 1667 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5802 5803 5804 #line default 5805 #line hidden 5806 5807 #line 1667 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5808 foreach (var action in actions) 5809 { 5810 if (Pageview.Device.ToString() != "Mobile") { 5811 action.CssClass += " u-no-margin"; 5812 } else { 5813 action.CssClass += " u-full-width u-margin-bottom"; 5814 } 5815 5816 5817 5818 #line default 5819 #line hidden 5820 5821 #line 1675 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5822 WriteTo(__razor_helper_writer, Render(action)); 5823 5824 5825 #line default 5826 #line hidden 5827 5828 #line 1675 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5829 5830 } 5831 5832 5833 #line default 5834 #line hidden 5835 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5836 5837 5838 #line 1678 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5839 } 5840 5841 5842 #line default 5843 #line hidden 5844 WriteLiteralTo(__razor_helper_writer, " <label"); 5845 5846 WriteLiteralTo(__razor_helper_writer, " class=\"modal__close-btn\""); 5847 5848 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 64776), Tuple.Create("\"", 64804) 5849 5850 #line 1679 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5851 , Tuple.Create(Tuple.Create("", 64782), Tuple.Create<System.Object, System.Int32>(modalId 5852 5853 #line default 5854 #line hidden 5855 , 64782), false) 5856 , Tuple.Create(Tuple.Create("", 64792), Tuple.Create("ModalTrigger", 64792), true) 5857 ); 5858 5859 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n"); 5860 5861 5862 #line 1682 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5863 } 5864 5865 5866 #line default 5867 #line hidden 5868 }); 5869 5870 #line 1683 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5871 } 5872 #line default 5873 #line hidden 5874 5875 5876 #line 1688 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5877 public RazorEngine.Templating.TemplateWriter RenderMediaListItem(MediaListItem settings) 5878 { 5879 #line default 5880 #line hidden 5881 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5882 5883 #line 1689 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5884 5885 5886 5887 #line default 5888 #line hidden 5889 WriteLiteralTo(__razor_helper_writer, " <div"); 5890 5891 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 65000), Tuple.Create("\"", 65049) 5892 , Tuple.Create(Tuple.Create("", 65008), Tuple.Create("media-list-item", 65008), true) 5893 5894 #line 1690 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5895 , Tuple.Create(Tuple.Create(" ", 65023), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5896 5897 #line default 5898 #line hidden 5899 , 65024), false) 5900 , Tuple.Create(Tuple.Create(" ", 65042), Tuple.Create("dw-mod", 65043), true) 5901 ); 5902 5903 WriteLiteralTo(__razor_helper_writer, " "); 5904 5905 5906 #line 1690 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5907 WriteTo(__razor_helper_writer, !string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : ""); 5908 5909 5910 #line default 5911 #line hidden 5912 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5913 5914 5915 #line 1691 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5916 5917 5918 #line default 5919 #line hidden 5920 5921 #line 1691 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5922 if (!string.IsNullOrEmpty(settings.Label)) 5923 { 5924 if (!string.IsNullOrEmpty(settings.Link)) 5925 { 5926 5927 5928 #line default 5929 #line hidden 5930 5931 #line 1695 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5932 WriteTo(__razor_helper_writer, Render(new Link 5933 { 5934 Href = settings.Link, 5935 CssClass = "media-list-item__sticker dw-mod", 5936 ButtonLayout = ButtonLayout.None, 5937 Title = settings.Label, 5938 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 5939 })); 5940 5941 5942 #line default 5943 #line hidden 5944 5945 #line 1702 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5946 5947 } 5948 else if (!string.IsNullOrEmpty(settings.OnClick)) 5949 { 5950 5951 5952 #line default 5953 #line hidden 5954 WriteLiteralTo(__razor_helper_writer, " <span"); 5955 5956 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker dw-mod\""); 5957 5958 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 65793), Tuple.Create("\"", 65822) 5959 5960 #line 1706 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5961 , Tuple.Create(Tuple.Create("", 65803), Tuple.Create<System.Object, System.Int32>(settings.OnClick 5962 5963 #line default 5964 #line hidden 5965 , 65803), false) 5966 ); 5967 5968 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 5969 5970 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\""); 5971 5972 WriteLiteralTo(__razor_helper_writer, ">"); 5973 5974 5975 #line 1707 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5976 WriteTo(__razor_helper_writer, settings.Label); 5977 5978 5979 #line default 5980 #line hidden 5981 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 5982 5983 5984 #line 1709 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 5985 } 5986 else 5987 { 5988 5989 5990 #line default 5991 #line hidden 5992 WriteLiteralTo(__razor_helper_writer, " <span"); 5993 5994 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker media-list-item__sticker--no-link dw-mod\""); 5995 5996 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 5997 5998 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\""); 5999 6000 WriteLiteralTo(__razor_helper_writer, ">"); 6001 6002 6003 #line 1713 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6004 WriteTo(__razor_helper_writer, settings.Label); 6005 6006 6007 #line default 6008 #line hidden 6009 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 6010 6011 6012 #line 1715 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6013 } 6014 } 6015 6016 6017 #line default 6018 #line hidden 6019 WriteLiteralTo(__razor_helper_writer, " <div"); 6020 6021 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__wrap\""); 6022 6023 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 6024 6025 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__info dw-mod\""); 6026 6027 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 6028 6029 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__header dw-mod\""); 6030 6031 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6032 6033 6034 #line 1720 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6035 6036 6037 #line default 6038 #line hidden 6039 6040 #line 1720 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6041 if (!string.IsNullOrEmpty(settings.Title)) 6042 { 6043 if (!string.IsNullOrEmpty(settings.Link)) 6044 { 6045 6046 6047 #line default 6048 #line hidden 6049 6050 #line 1724 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6051 WriteTo(__razor_helper_writer, Render(new Link 6052 { 6053 Href = settings.Link, 6054 CssClass = "media-list-item__name dw-mod", 6055 ButtonLayout = ButtonLayout.None, 6056 Title = settings.Title, 6057 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 6058 })); 6059 6060 6061 #line default 6062 #line hidden 6063 6064 #line 1731 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6065 6066 } 6067 else if (!string.IsNullOrEmpty(settings.OnClick)) 6068 { 6069 6070 6071 #line default 6072 #line hidden 6073 WriteLiteralTo(__razor_helper_writer, " <span"); 6074 6075 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name dw-mod\""); 6076 6077 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 67203), Tuple.Create("\"", 67232) 6078 6079 #line 1735 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6080 , Tuple.Create(Tuple.Create("", 67213), Tuple.Create<System.Object, System.Int32>(settings.OnClick 6081 6082 #line default 6083 #line hidden 6084 , 67213), false) 6085 ); 6086 6087 WriteLiteralTo(__razor_helper_writer, ">"); 6088 6089 6090 #line 1735 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6091 WriteTo(__razor_helper_writer, settings.Title); 6092 6093 6094 #line default 6095 #line hidden 6096 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 6097 6098 6099 #line 1736 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6100 } 6101 else 6102 { 6103 6104 6105 #line default 6106 #line hidden 6107 WriteLiteralTo(__razor_helper_writer, " <span"); 6108 6109 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name media-list-item__name--no-link dw-mod\""); 6110 6111 WriteLiteralTo(__razor_helper_writer, ">"); 6112 6113 6114 #line 1739 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6115 WriteTo(__razor_helper_writer, settings.Title); 6116 6117 6118 #line default 6119 #line hidden 6120 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 6121 6122 6123 #line 1740 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6124 } 6125 } 6126 6127 6128 #line default 6129 #line hidden 6130 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6131 6132 6133 #line 1743 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6134 6135 6136 #line default 6137 #line hidden 6138 6139 #line 1743 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6140 if (!string.IsNullOrEmpty(settings.Status)) 6141 { 6142 6143 6144 #line default 6145 #line hidden 6146 WriteLiteralTo(__razor_helper_writer, " <div"); 6147 6148 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__state dw-mod\""); 6149 6150 WriteLiteralTo(__razor_helper_writer, ">"); 6151 6152 6153 #line 1745 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6154 WriteTo(__razor_helper_writer, settings.Status); 6155 6156 6157 #line default 6158 #line hidden 6159 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6160 6161 6162 #line 1746 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6163 } 6164 6165 6166 #line default 6167 #line hidden 6168 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6169 6170 6171 #line 1748 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6172 6173 6174 #line default 6175 #line hidden 6176 6177 #line 1748 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6178 6179 settings.InfoTable.CssClass += " media-list-item__parameters-table"; 6180 6181 6182 #line default 6183 #line hidden 6184 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 6185 6186 WriteLiteralTo(__razor_helper_writer, " "); 6187 6188 6189 #line 1752 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6190 WriteTo(__razor_helper_writer, Render(settings.InfoTable)); 6191 6192 6193 #line default 6194 #line hidden 6195 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div"); 6196 6197 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions dw-mod\""); 6198 6199 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 6200 6201 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions-list dw-mod\""); 6202 6203 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6204 6205 6206 #line 1756 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6207 6208 6209 #line default 6210 #line hidden 6211 6212 #line 1756 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6213 6214 var actions = settings.GetActions(); 6215 6216 foreach (ButtonBase action in actions) 6217 { 6218 action.ButtonLayout = ButtonLayout.None; 6219 action.CssClass += " media-list-item__action link"; 6220 6221 6222 6223 #line default 6224 #line hidden 6225 6226 #line 1764 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6227 WriteTo(__razor_helper_writer, Render(action)); 6228 6229 6230 #line default 6231 #line hidden 6232 6233 #line 1764 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6234 6235 } 6236 6237 6238 #line default 6239 #line hidden 6240 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n"); 6241 6242 6243 #line 1769 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6244 6245 6246 #line default 6247 #line hidden 6248 6249 #line 1769 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6250 if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title)) 6251 { 6252 settings.SelectButton.CssClass += " u-no-margin"; 6253 6254 6255 6256 #line default 6257 #line hidden 6258 WriteLiteralTo(__razor_helper_writer, " <div"); 6259 6260 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__action-button\""); 6261 6262 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6263 6264 WriteLiteralTo(__razor_helper_writer, " "); 6265 6266 6267 #line 1774 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6268 WriteTo(__razor_helper_writer, Render(settings.SelectButton)); 6269 6270 6271 #line default 6272 #line hidden 6273 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6274 6275 6276 #line 1776 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6277 } 6278 6279 6280 #line default 6281 #line hidden 6282 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n"); 6283 6284 6285 #line 1780 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6286 6287 6288 #line default 6289 #line hidden 6290 }); 6291 6292 #line 1780 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6293 } 6294 #line default 6295 #line hidden 6296 6297 6298 #line 1784 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6299 public RazorEngine.Templating.TemplateWriter RenderTable(Table settings) 6300 { 6301 #line default 6302 #line hidden 6303 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6304 6305 #line 1785 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6306 6307 Dictionary<string, string> attributes = new Dictionary<string, string>(); 6308 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 6309 6310 var enumToClasses = new Dictionary<TableDesign, string> 6311 { 6312 { TableDesign.Clean, "table--clean" }, 6313 { TableDesign.Bordered, "table--bordered" }, 6314 { TableDesign.Striped, "table--striped" }, 6315 { TableDesign.Hover, "table--hover" }, 6316 { TableDesign.Compact, "table--compact" }, 6317 { TableDesign.Condensed, "table--condensed" }, 6318 { TableDesign.NoTopBorder, "table--no-top-border" } 6319 }; 6320 string tableDesignClass = ""; 6321 if (settings.Design != TableDesign.None) 6322 { 6323 tableDesignClass = enumToClasses[settings.Design]; 6324 } 6325 6326 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); } 6327 6328 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 6329 6330 6331 6332 #line default 6333 #line hidden 6334 WriteLiteralTo(__razor_helper_writer, " <table "); 6335 6336 6337 #line 1809 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6338 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 6339 6340 6341 #line default 6342 #line hidden 6343 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6344 6345 6346 #line 1810 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6347 6348 6349 #line default 6350 #line hidden 6351 6352 #line 1810 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6353 if (settings.Header != null) 6354 { 6355 6356 6357 #line default 6358 #line hidden 6359 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n"); 6360 6361 WriteLiteralTo(__razor_helper_writer, " "); 6362 6363 6364 #line 1813 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6365 WriteTo(__razor_helper_writer, Render(settings.Header)); 6366 6367 6368 #line default 6369 #line hidden 6370 WriteLiteralTo(__razor_helper_writer, "\r\n </thead>\r\n"); 6371 6372 6373 #line 1815 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6374 } 6375 6376 6377 #line default 6378 #line hidden 6379 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 6380 6381 6382 #line 1817 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6383 6384 6385 #line default 6386 #line hidden 6387 6388 #line 1817 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6389 foreach (var row in settings.Rows) 6390 { 6391 6392 6393 #line default 6394 #line hidden 6395 6396 #line 1819 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6397 WriteTo(__razor_helper_writer, Render(row)); 6398 6399 6400 #line default 6401 #line hidden 6402 6403 #line 1819 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6404 6405 } 6406 6407 6408 #line default 6409 #line hidden 6410 WriteLiteralTo(__razor_helper_writer, " </tbody>\r\n"); 6411 6412 6413 #line 1822 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6414 6415 6416 #line default 6417 #line hidden 6418 6419 #line 1822 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6420 if (settings.Footer != null) 6421 { 6422 6423 6424 #line default 6425 #line hidden 6426 WriteLiteralTo(__razor_helper_writer, " <tfoot>\r\n"); 6427 6428 WriteLiteralTo(__razor_helper_writer, " "); 6429 6430 6431 #line 1825 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6432 WriteTo(__razor_helper_writer, Render(settings.Footer)); 6433 6434 6435 #line default 6436 #line hidden 6437 WriteLiteralTo(__razor_helper_writer, "\r\n </tfoot>\r\n"); 6438 6439 6440 #line 1827 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6441 } 6442 6443 6444 #line default 6445 #line hidden 6446 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 6447 6448 6449 #line 1829 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6450 6451 6452 #line default 6453 #line hidden 6454 }); 6455 6456 #line 1829 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6457 } 6458 #line default 6459 #line hidden 6460 6461 6462 #line 1833 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6463 public RazorEngine.Templating.TemplateWriter RenderTableRow(TableRow settings) 6464 { 6465 #line default 6466 #line hidden 6467 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6468 6469 #line 1834 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6470 6471 Dictionary<string, string> attributes = new Dictionary<string, string>(); 6472 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 6473 6474 var enumToClasses = new Dictionary<TableRowDesign, string> 6475 { 6476 { TableRowDesign.NoBorder, "table__row--no-border" }, 6477 { TableRowDesign.Border, "table__row--border" }, 6478 { TableRowDesign.TopBorder, "table__row--top-line" }, 6479 { TableRowDesign.BottomBorder, "table__row--bottom-line" }, 6480 { TableRowDesign.Solid, "table__row--solid" } 6481 }; 6482 6483 string tableRowDesignClass = ""; 6484 if (settings.Design != TableRowDesign.None) 6485 { 6486 tableRowDesignClass = enumToClasses[settings.Design]; 6487 } 6488 6489 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); } 6490 6491 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 6492 6493 6494 6495 #line default 6496 #line hidden 6497 WriteLiteralTo(__razor_helper_writer, " <tr "); 6498 6499 6500 #line 1857 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6501 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 6502 6503 6504 #line default 6505 #line hidden 6506 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6507 6508 6509 #line 1858 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6510 6511 6512 #line default 6513 #line hidden 6514 6515 #line 1858 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6516 foreach (var cell in settings.Cells) 6517 { 6518 if (settings.IsHeaderRow) 6519 { 6520 cell.IsHeader = true; 6521 } 6522 6523 6524 #line default 6525 #line hidden 6526 6527 #line 1864 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6528 WriteTo(__razor_helper_writer, Render(cell)); 6529 6530 6531 #line default 6532 #line hidden 6533 6534 #line 1864 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6535 6536 } 6537 6538 6539 #line default 6540 #line hidden 6541 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n"); 6542 6543 6544 #line 1867 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6545 6546 6547 #line default 6548 #line hidden 6549 }); 6550 6551 #line 1867 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6552 } 6553 #line default 6554 #line hidden 6555 6556 6557 #line 1872 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6558 public RazorEngine.Templating.TemplateWriter RenderTableCell(TableCell settings) 6559 { 6560 #line default 6561 #line hidden 6562 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6563 6564 #line 1873 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6565 6566 Dictionary<string, string> attributes = new Dictionary<string, string>(); 6567 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 6568 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); } 6569 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); } 6570 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); } 6571 6572 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 6573 6574 string tagName = settings.IsHeader ? "th" : "td"; 6575 6576 6577 6578 #line default 6579 #line hidden 6580 6581 #line 1884 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6582 WriteTo(__razor_helper_writer, "<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">"); 6583 6584 6585 #line default 6586 #line hidden 6587 6588 #line 1884 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6589 6590 6591 6592 #line default 6593 #line hidden 6594 6595 #line 1885 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6596 WriteTo(__razor_helper_writer, settings.Content); 6597 6598 6599 #line default 6600 #line hidden 6601 6602 #line 1885 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6603 6604 6605 6606 #line default 6607 #line hidden 6608 6609 #line 1886 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6610 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 6611 6612 6613 #line default 6614 #line hidden 6615 6616 #line 1886 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6617 ; 6618 6619 6620 #line default 6621 #line hidden 6622 }); 6623 6624 #line 1887 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6625 } 6626 #line default 6627 #line hidden 6628 6629 6630 #line 1893 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6631 public RazorEngine.Templating.TemplateWriter RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings) 6632 { 6633 #line default 6634 #line hidden 6635 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6636 6637 #line 1894 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6638 6639 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter 6640 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring 6641 6642 if (settings.NumberOfPages > 1) 6643 { 6644 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx"; 6645 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation"); 6646 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings); 6647 6648 6649 6650 #line default 6651 #line hidden 6652 WriteLiteralTo(__razor_helper_writer, " <div"); 6653 6654 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 74151), Tuple.Create("\"", 74203) 6655 , Tuple.Create(Tuple.Create("", 74159), Tuple.Create("pager", 74159), true) 6656 , Tuple.Create(Tuple.Create(" ", 74164), Tuple.Create("u-margin-top", 74165), true) 6657 , Tuple.Create(Tuple.Create(" ", 74177), Tuple.Create("dw-mod", 74178), true) 6658 6659 #line 1904 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6660 , Tuple.Create(Tuple.Create(" ", 74184), Tuple.Create<System.Object, System.Int32>(settings.CssClass 6661 6662 #line default 6663 #line hidden 6664 , 74185), false) 6665 ); 6666 6667 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 74204), Tuple.Create("\"", 74227) 6668 6669 #line 1904 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6670 , Tuple.Create(Tuple.Create("", 74217), Tuple.Create<System.Object, System.Int32>(ariaLabel 6671 6672 #line default 6673 #line hidden 6674 , 74217), false) 6675 ); 6676 6677 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6678 6679 6680 #line 1905 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6681 6682 6683 #line default 6684 #line hidden 6685 6686 #line 1905 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6687 if (settings.ShowPagingInfo) 6688 { 6689 6690 6691 #line default 6692 #line hidden 6693 WriteLiteralTo(__razor_helper_writer, " <div"); 6694 6695 WriteLiteralTo(__razor_helper_writer, " class=\"pager__info dw-mod\""); 6696 6697 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6698 6699 WriteLiteralTo(__razor_helper_writer, " "); 6700 6701 6702 #line 1908 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6703 WriteTo(__razor_helper_writer, Translate("Page")); 6704 6705 6706 #line default 6707 #line hidden 6708 WriteLiteralTo(__razor_helper_writer, " "); 6709 6710 6711 #line 1908 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6712 WriteTo(__razor_helper_writer, settings.CurrentPageNumber); 6713 6714 6715 #line default 6716 #line hidden 6717 WriteLiteralTo(__razor_helper_writer, " "); 6718 6719 6720 #line 1908 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6721 WriteTo(__razor_helper_writer, Translate("of")); 6722 6723 6724 #line default 6725 #line hidden 6726 WriteLiteralTo(__razor_helper_writer, " "); 6727 6728 6729 #line 1908 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6730 WriteTo(__razor_helper_writer, settings.NumberOfPages); 6731 6732 6733 #line default 6734 #line hidden 6735 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6736 6737 6738 #line 1910 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6739 } 6740 6741 6742 #line default 6743 #line hidden 6744 WriteLiteralTo(__razor_helper_writer, " <ul"); 6745 6746 WriteLiteralTo(__razor_helper_writer, " class=\"pager__list dw-mod\""); 6747 6748 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6749 6750 6751 #line 1912 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6752 6753 6754 #line default 6755 #line hidden 6756 6757 #line 1912 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6758 if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls) 6759 { 6760 6761 6762 #line default 6763 #line hidden 6764 6765 #line 1914 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6766 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon })); 6767 6768 6769 #line default 6770 #line hidden 6771 6772 #line 1914 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6773 6774 } 6775 6776 6777 #line default 6778 #line hidden 6779 WriteLiteralTo(__razor_helper_writer, " "); 6780 6781 6782 #line 1916 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6783 if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls) 6784 { 6785 6786 6787 #line default 6788 #line hidden 6789 6790 #line 1918 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6791 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon })); 6792 6793 6794 #line default 6795 #line hidden 6796 6797 #line 1918 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6798 6799 } 6800 6801 6802 #line default 6803 #line hidden 6804 WriteLiteralTo(__razor_helper_writer, " "); 6805 6806 6807 #line 1920 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6808 if (settings.GetPages().Any()) 6809 { 6810 foreach (var page in settings.GetPages()) 6811 { 6812 6813 6814 #line default 6815 #line hidden 6816 6817 #line 1924 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6818 WriteTo(__razor_helper_writer, Render(page)); 6819 6820 6821 #line default 6822 #line hidden 6823 6824 #line 1924 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6825 6826 } 6827 } 6828 else 6829 { 6830 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++) 6831 { 6832 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString()); 6833 6834 6835 #line default 6836 #line hidden 6837 6838 #line 1932 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6839 WriteTo(__razor_helper_writer, Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) })); 6840 6841 6842 #line default 6843 #line hidden 6844 6845 #line 1932 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6846 ; 6847 } 6848 } 6849 6850 6851 #line default 6852 #line hidden 6853 WriteLiteralTo(__razor_helper_writer, " "); 6854 6855 6856 #line 1935 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6857 if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls) 6858 { 6859 6860 6861 #line default 6862 #line hidden 6863 6864 #line 1937 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6865 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon })); 6866 6867 6868 #line default 6869 #line hidden 6870 6871 #line 1937 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6872 6873 } 6874 6875 6876 #line default 6877 #line hidden 6878 WriteLiteralTo(__razor_helper_writer, " "); 6879 6880 6881 #line 1939 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6882 if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls) 6883 { 6884 6885 6886 #line default 6887 #line hidden 6888 6889 #line 1941 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6890 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon })); 6891 6892 6893 #line default 6894 #line hidden 6895 6896 #line 1941 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6897 6898 } 6899 6900 6901 #line default 6902 #line hidden 6903 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </div>\r\n"); 6904 6905 6906 #line 1945 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6907 } 6908 6909 6910 #line default 6911 #line hidden 6912 }); 6913 6914 #line 1946 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6915 } 6916 #line default 6917 #line hidden 6918 6919 6920 #line 1948 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6921 public RazorEngine.Templating.TemplateWriter RenderPaginationItem(PaginationItem settings) 6922 { 6923 #line default 6924 #line hidden 6925 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6926 6927 #line 1949 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6928 6929 if (settings.Icon == null) 6930 { 6931 settings.Icon = new Icon(); 6932 } 6933 6934 settings.Icon.Label = settings.Label; 6935 6936 6937 #line default 6938 #line hidden 6939 WriteLiteralTo(__razor_helper_writer, " <li"); 6940 6941 WriteLiteralTo(__razor_helper_writer, " class=\"pager__btn dw-mod\""); 6942 6943 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6944 6945 6946 #line 1957 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6947 6948 6949 #line default 6950 #line hidden 6951 6952 #line 1957 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6953 if (settings.IsActive) 6954 { 6955 6956 6957 #line default 6958 #line hidden 6959 WriteLiteralTo(__razor_helper_writer, " <span"); 6960 6961 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num pager__num--current dw-mod\""); 6962 6963 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6964 6965 WriteLiteralTo(__razor_helper_writer, " "); 6966 6967 6968 #line 1960 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6969 WriteTo(__razor_helper_writer, Render(settings.Icon)); 6970 6971 6972 #line default 6973 #line hidden 6974 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 6975 6976 6977 #line 1962 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6978 } 6979 else 6980 { 6981 6982 6983 #line default 6984 #line hidden 6985 WriteLiteralTo(__razor_helper_writer, " <a"); 6986 6987 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 76888), Tuple.Create("\"", 76909) 6988 6989 #line 1965 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 6990 , Tuple.Create(Tuple.Create("", 76895), Tuple.Create<System.Object, System.Int32>(settings.Link 6991 6992 #line default 6993 #line hidden 6994 , 76895), false) 6995 ); 6996 6997 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num dw-mod\""); 6998 6999 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7000 7001 WriteLiteralTo(__razor_helper_writer, " "); 7002 7003 7004 #line 1966 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7005 WriteTo(__razor_helper_writer, Render(settings.Icon)); 7006 7007 7008 #line default 7009 #line hidden 7010 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 7011 7012 7013 #line 1968 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7014 } 7015 7016 7017 #line default 7018 #line hidden 7019 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 7020 7021 7022 #line 1970 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7023 7024 7025 #line default 7026 #line hidden 7027 }); 7028 7029 #line 1970 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7030 } 7031 #line default 7032 #line hidden 7033 7034 7035 #line 1992 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7036 public RazorEngine.Templating.TemplateWriter RenderArticleBanner(dynamic settings) { 7037 #line default 7038 #line hidden 7039 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7040 7041 #line 1992 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7042 7043 string filterClasses = "image-filter image-filter--darken"; 7044 settings.Layout = ArticleHeaderLayout.Banner; 7045 7046 if (settings.Image != null) 7047 { 7048 if (settings.Image.Path != null) 7049 { 7050 7051 7052 #line default 7053 #line hidden 7054 WriteLiteralTo(__razor_helper_writer, " <section"); 7055 7056 WriteLiteralTo(__razor_helper_writer, " class=\"multiple-paragraphs-container u-color-light paragraph-container--full-wid" + 7057 "th\""); 7058 7059 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7060 7061 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 77932), Tuple.Create("\"", 77978) 7062 , Tuple.Create(Tuple.Create("", 77940), Tuple.Create("background-image", 77940), true) 7063 7064 #line 2001 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7065 , Tuple.Create(Tuple.Create(" ", 77956), Tuple.Create<System.Object, System.Int32>(filterClasses 7066 7067 #line default 7068 #line hidden 7069 , 77957), false) 7070 , Tuple.Create(Tuple.Create(" ", 77971), Tuple.Create("dw-mod", 77972), true) 7071 ); 7072 7073 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7074 7075 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 78006), Tuple.Create("\"", 78061) 7076 , Tuple.Create(Tuple.Create("", 78014), Tuple.Create("background-image__wrapper", 78014), true) 7077 7078 #line 2002 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7079 , Tuple.Create(Tuple.Create(" ", 78039), Tuple.Create<System.Object, System.Int32>(filterClasses 7080 7081 #line default 7082 #line hidden 7083 , 78040), false) 7084 , Tuple.Create(Tuple.Create(" ", 78054), Tuple.Create("dw-mod", 78055), true) 7085 ); 7086 7087 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7088 7089 7090 #line 2003 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7091 7092 7093 #line default 7094 #line hidden 7095 7096 #line 2003 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7097 7098 settings.Image.CssClass += "background-image__cover dw-mod"; 7099 7100 7101 #line default 7102 #line hidden 7103 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7104 7105 WriteLiteralTo(__razor_helper_writer, " "); 7106 7107 7108 #line 2006 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7109 WriteTo(__razor_helper_writer, Render(settings.Image)); 7110 7111 7112 #line default 7113 #line hidden 7114 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n <div"); 7115 7116 WriteLiteralTo(__razor_helper_writer, " class=\"center-container dw-mod\""); 7117 7118 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7119 7120 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 7121 7122 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7123 7124 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-8 grid__col-xs-12 paragraph-container paragraph-container--h" + 7125 "eight-lg\""); 7126 7127 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7128 7129 WriteLiteralTo(__razor_helper_writer, " class=\"u-left-middle\""); 7130 7131 WriteLiteralTo(__razor_helper_writer, ">\r\n <div>\r\n"); 7132 7133 7134 #line 2014 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7135 7136 7137 #line default 7138 #line hidden 7139 7140 #line 2014 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7141 if (!String.IsNullOrEmpty(settings.Heading)) 7142 { 7143 7144 7145 #line default 7146 #line hidden 7147 WriteLiteralTo(__razor_helper_writer, " <h1"); 7148 7149 WriteLiteralTo(__razor_helper_writer, " class=\"article__header article__header--giant dw-mod\""); 7150 7151 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 78843), Tuple.Create("\"", 78877) 7152 , Tuple.Create(Tuple.Create("", 78851), Tuple.Create("color:", 78851), true) 7153 7154 #line 2016 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7155 , Tuple.Create(Tuple.Create(" ", 78857), Tuple.Create<System.Object, System.Int32>(settings.TextColor 7156 7157 #line default 7158 #line hidden 7159 , 78858), false) 7160 ); 7161 7162 WriteLiteralTo(__razor_helper_writer, ">"); 7163 7164 7165 #line 2016 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7166 WriteTo(__razor_helper_writer, settings.Heading); 7167 7168 7169 #line default 7170 #line hidden 7171 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n"); 7172 7173 7174 #line 2017 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7175 } 7176 7177 7178 #line default 7179 #line hidden 7180 WriteLiteralTo(__razor_helper_writer, " "); 7181 7182 7183 #line 2018 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7184 if (!String.IsNullOrEmpty(settings.Subheading)) 7185 { 7186 7187 7188 #line default 7189 #line hidden 7190 WriteLiteralTo(__razor_helper_writer, " <div"); 7191 7192 WriteLiteralTo(__razor_helper_writer, " class=\"article__leadtext dw-mod\""); 7193 7194 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 79144), Tuple.Create("\"", 79178) 7195 , Tuple.Create(Tuple.Create("", 79152), Tuple.Create("color:", 79152), true) 7196 7197 #line 2020 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7198 , Tuple.Create(Tuple.Create(" ", 79158), Tuple.Create<System.Object, System.Int32>(settings.TextColor 7199 7200 #line default 7201 #line hidden 7202 , 79159), false) 7203 ); 7204 7205 WriteLiteralTo(__razor_helper_writer, ">"); 7206 7207 7208 #line 2020 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7209 WriteTo(__razor_helper_writer, settings.Subheading); 7210 7211 7212 #line default 7213 #line hidden 7214 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7215 7216 7217 #line 2021 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7218 } 7219 7220 7221 #line default 7222 #line hidden 7223 WriteLiteralTo(__razor_helper_writer, " "); 7224 7225 7226 #line 2022 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7227 if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) 7228 { 7229 7230 7231 #line default 7232 #line hidden 7233 WriteLiteralTo(__razor_helper_writer, " <small"); 7234 7235 WriteLiteralTo(__razor_helper_writer, " class=\"article__post-info u-margin-bottom--lg dw-mod\""); 7236 7237 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 79508), Tuple.Create("\"", 79542) 7238 , Tuple.Create(Tuple.Create("", 79516), Tuple.Create("color:", 79516), true) 7239 7240 #line 2024 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7241 , Tuple.Create(Tuple.Create(" ", 79522), Tuple.Create<System.Object, System.Int32>(settings.TextColor 7242 7243 #line default 7244 #line hidden 7245 , 79523), false) 7246 ); 7247 7248 WriteLiteralTo(__razor_helper_writer, ">"); 7249 7250 7251 #line 2024 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7252 WriteTo(__razor_helper_writer, settings.Author); 7253 7254 7255 #line default 7256 #line hidden 7257 WriteLiteralTo(__razor_helper_writer, " "); 7258 7259 7260 #line 2024 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7261 WriteTo(__razor_helper_writer, settings.Date); 7262 7263 7264 #line default 7265 #line hidden 7266 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 7267 7268 7269 #line 2025 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7270 } 7271 7272 7273 #line default 7274 #line hidden 7275 WriteLiteralTo(__razor_helper_writer, " "); 7276 7277 7278 #line 2026 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7279 if (!String.IsNullOrEmpty(settings.Link)) { 7280 7281 7282 #line default 7283 #line hidden 7284 WriteLiteralTo(__razor_helper_writer, " <div"); 7285 7286 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 7287 7288 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7289 7290 WriteLiteralTo(__razor_helper_writer, " "); 7291 7292 7293 #line 2028 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7294 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout })); 7295 7296 7297 #line default 7298 #line hidden 7299 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7300 7301 7302 #line 2030 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7303 } 7304 7305 7306 #line default 7307 #line hidden 7308 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n " + 7309 " </div>\r\n"); 7310 7311 7312 #line 2034 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7313 7314 7315 #line default 7316 #line hidden 7317 7318 #line 2034 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7319 if (settings.ExternalParagraphId != 0) 7320 { 7321 7322 7323 #line default 7324 #line hidden 7325 WriteLiteralTo(__razor_helper_writer, " <div"); 7326 7327 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-4 grid__col-sm-12 grid__col-xs-12 paragraph-container paragr" + 7328 "aph-container--height-auto dw-mod\""); 7329 7330 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7331 7332 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-light-gray--bg u-color-dark dw-mod\""); 7333 7334 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7335 7336 WriteLiteralTo(__razor_helper_writer, " "); 7337 7338 7339 #line 2038 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7340 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 7341 7342 7343 #line default 7344 #line hidden 7345 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div> \r\n"); 7346 7347 7348 #line 2041 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7349 } 7350 7351 7352 #line default 7353 #line hidden 7354 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div>\r\n " + 7355 " </section>\r\n"); 7356 7357 7358 #line 2046 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7359 if (!String.IsNullOrEmpty(settings.Image.Caption)) { 7360 7361 7362 #line default 7363 #line hidden 7364 WriteLiteralTo(__razor_helper_writer, " <div"); 7365 7366 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\""); 7367 7368 WriteLiteralTo(__razor_helper_writer, ">"); 7369 7370 7371 #line 2047 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7372 WriteTo(__razor_helper_writer, settings.Image.Caption); 7373 7374 7375 #line default 7376 #line hidden 7377 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7378 7379 7380 #line 2048 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7381 } 7382 } 7383 else 7384 { 7385 settings.Layout = ArticleHeaderLayout.Clean; 7386 7387 7388 #line default 7389 #line hidden 7390 7391 #line 2053 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7392 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 7393 7394 7395 #line default 7396 #line hidden 7397 7398 #line 2053 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7399 ; 7400 } 7401 } 7402 else 7403 { 7404 settings.Layout = ArticleHeaderLayout.Clean; 7405 7406 7407 #line default 7408 #line hidden 7409 7410 #line 2059 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7411 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 7412 7413 7414 #line default 7415 #line hidden 7416 7417 #line 2059 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7418 ; 7419 } 7420 7421 7422 #line default 7423 #line hidden 7424 }); 7425 7426 #line 2061 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7427 } 7428 #line default 7429 #line hidden 7430 7431 7432 #line 2071 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7433 public RazorEngine.Templating.TemplateWriter RenderArticleHeader(ArticleHeader settings) { 7434 #line default 7435 #line hidden 7436 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7437 7438 #line 2071 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7439 7440 dynamic[] methodParameters = new dynamic[1]; 7441 methodParameters[0] = settings; 7442 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleHeaderCustom"); 7443 7444 if (customMethod != null) 7445 { 7446 7447 7448 #line default 7449 #line hidden 7450 7451 #line 2078 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7452 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 7453 7454 7455 #line default 7456 #line hidden 7457 7458 #line 2078 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7459 ; 7460 } else { 7461 switch (settings.Layout) 7462 { 7463 case ArticleHeaderLayout.Clean: 7464 7465 7466 #line default 7467 #line hidden 7468 7469 #line 2083 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7470 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 7471 7472 7473 #line default 7474 #line hidden 7475 7476 #line 2083 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7477 ; 7478 break; 7479 case ArticleHeaderLayout.Split: 7480 7481 7482 #line default 7483 #line hidden 7484 7485 #line 2086 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7486 WriteTo(__razor_helper_writer, RenderArticleSplitHeader(settings)); 7487 7488 7489 #line default 7490 #line hidden 7491 7492 #line 2086 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7493 ; 7494 break; 7495 case ArticleHeaderLayout.Banner: 7496 7497 7498 #line default 7499 #line hidden 7500 7501 #line 2089 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7502 WriteTo(__razor_helper_writer, RenderArticleBannerHeader(settings)); 7503 7504 7505 #line default 7506 #line hidden 7507 7508 #line 2089 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7509 ; 7510 break; 7511 case ArticleHeaderLayout.Overlay: 7512 7513 7514 #line default 7515 #line hidden 7516 7517 #line 2092 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7518 WriteTo(__razor_helper_writer, RenderArticleOverlayHeader(settings)); 7519 7520 7521 #line default 7522 #line hidden 7523 7524 #line 2092 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7525 ; 7526 break; 7527 default: 7528 7529 7530 #line default 7531 #line hidden 7532 7533 #line 2095 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7534 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 7535 7536 7537 #line default 7538 #line hidden 7539 7540 #line 2095 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7541 ; 7542 break; 7543 } 7544 } 7545 7546 7547 #line default 7548 #line hidden 7549 }); 7550 7551 #line 2099 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7552 } 7553 #line default 7554 #line hidden 7555 7556 7557 #line 2101 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7558 public RazorEngine.Templating.TemplateWriter RenderArticleCleanHeader(ArticleHeader settings) { 7559 #line default 7560 #line hidden 7561 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7562 7563 #line 2101 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7564 7565 dynamic[] methodParameters = new dynamic[1]; 7566 methodParameters[0] = settings; 7567 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleCleanHeaderCustom"); 7568 7569 if (customMethod != null) 7570 { 7571 7572 7573 #line default 7574 #line hidden 7575 7576 #line 2108 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7577 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 7578 7579 7580 #line default 7581 #line hidden 7582 7583 #line 2108 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7584 ; 7585 } 7586 else 7587 { 7588 string contentColumns = settings.TextLayout != ArticleHeaderTextLayout.Full ? "8" : "12"; 7589 7590 7591 7592 #line default 7593 #line hidden 7594 WriteLiteralTo(__razor_helper_writer, " <div"); 7595 7596 WriteLiteralTo(__razor_helper_writer, " class=\"grid grid--align-content-start grid--justify-start\""); 7597 7598 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7599 7600 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 83071), Tuple.Create("\"", 83144) 7601 , Tuple.Create(Tuple.Create("", 83079), Tuple.Create("grid__col-md-", 83079), true) 7602 7603 #line 2115 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7604 , Tuple.Create(Tuple.Create("", 83092), Tuple.Create<System.Object, System.Int32>(contentColumns 7605 7606 #line default 7607 #line hidden 7608 , 83092), false) 7609 , Tuple.Create(Tuple.Create(" ", 83107), Tuple.Create("grid__col-sm-12", 83108), true) 7610 , Tuple.Create(Tuple.Create(" ", 83123), Tuple.Create("u-padding--lg", 83124), true) 7611 , Tuple.Create(Tuple.Create(" ", 83137), Tuple.Create("dw-mod", 83138), true) 7612 ); 7613 7614 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7615 7616 7617 #line 2116 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7618 7619 7620 #line default 7621 #line hidden 7622 7623 #line 2116 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7624 if (!String.IsNullOrEmpty(settings.Category) || !String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date) || settings.RatingOutOf != 0) 7625 { 7626 7627 7628 #line default 7629 #line hidden 7630 WriteLiteralTo(__razor_helper_writer, " <div"); 7631 7632 WriteLiteralTo(__razor_helper_writer, " class=\"u-border-bottom u-padding-bottom\""); 7633 7634 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7635 7636 7637 #line 2119 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7638 7639 7640 #line default 7641 #line hidden 7642 7643 #line 2119 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7644 if (!String.IsNullOrEmpty(settings.Category)) 7645 { 7646 7647 7648 #line default 7649 #line hidden 7650 WriteLiteralTo(__razor_helper_writer, " <div"); 7651 7652 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 7653 7654 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7655 7656 WriteLiteralTo(__razor_helper_writer, " class=\"article__category dw-mod\""); 7657 7658 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 83634), Tuple.Create("\"", 83672) 7659 , Tuple.Create(Tuple.Create("", 83642), Tuple.Create("color:", 83642), true) 7660 7661 #line 2122 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7662 , Tuple.Create(Tuple.Create(" ", 83648), Tuple.Create<System.Object, System.Int32>(settings.CategoryColor 7663 7664 #line default 7665 #line hidden 7666 , 83649), false) 7667 ); 7668 7669 WriteLiteralTo(__razor_helper_writer, ">"); 7670 7671 7672 #line 2122 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7673 WriteTo(__razor_helper_writer, settings.Category); 7674 7675 7676 #line default 7677 #line hidden 7678 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n"); 7679 7680 7681 #line 2124 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7682 } 7683 7684 7685 #line default 7686 #line hidden 7687 WriteLiteralTo(__razor_helper_writer, " <div"); 7688 7689 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 7690 7691 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7692 7693 7694 #line 2126 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7695 7696 7697 #line default 7698 #line hidden 7699 7700 #line 2126 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7701 if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) 7702 { 7703 7704 7705 #line default 7706 #line hidden 7707 WriteLiteralTo(__razor_helper_writer, " <small"); 7708 7709 WriteLiteralTo(__razor_helper_writer, " class=\"article__post-info dw-mod\""); 7710 7711 WriteLiteralTo(__razor_helper_writer, ">"); 7712 7713 7714 #line 2128 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7715 WriteTo(__razor_helper_writer, settings.Author); 7716 7717 7718 #line default 7719 #line hidden 7720 WriteLiteralTo(__razor_helper_writer, " "); 7721 7722 7723 #line 2128 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7724 WriteTo(__razor_helper_writer, settings.Date); 7725 7726 7727 #line default 7728 #line hidden 7729 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 7730 7731 7732 #line 2129 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7733 } 7734 7735 7736 #line default 7737 #line hidden 7738 WriteLiteralTo(__razor_helper_writer, " "); 7739 7740 7741 #line 2130 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7742 if (settings.RatingOutOf != 0) 7743 { 7744 7745 7746 #line default 7747 #line hidden 7748 7749 #line 2132 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7750 WriteTo(__razor_helper_writer, Render(new Rating { Score = settings.RatingScore, OutOf = settings.RatingOutOf })); 7751 7752 7753 #line default 7754 #line hidden 7755 7756 #line 2132 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7757 7758 } 7759 7760 7761 #line default 7762 #line hidden 7763 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 7764 7765 7766 #line 2136 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7767 } 7768 7769 7770 #line default 7771 #line hidden 7772 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 7773 7774 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 7775 7776 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7777 7778 7779 #line 2139 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7780 7781 7782 #line default 7783 #line hidden 7784 7785 #line 2139 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7786 if (!String.IsNullOrEmpty(settings.Heading)) 7787 { 7788 7789 7790 #line default 7791 #line hidden 7792 WriteLiteralTo(__razor_helper_writer, " <h1"); 7793 7794 WriteLiteralTo(__razor_helper_writer, " class=\"article__header article__header--giant dw-mod\""); 7795 7796 WriteLiteralTo(__razor_helper_writer, ">"); 7797 7798 7799 #line 2141 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7800 WriteTo(__razor_helper_writer, settings.Heading); 7801 7802 7803 #line default 7804 #line hidden 7805 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n"); 7806 7807 7808 #line 2142 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7809 } 7810 7811 7812 #line default 7813 #line hidden 7814 WriteLiteralTo(__razor_helper_writer, " "); 7815 7816 7817 #line 2143 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7818 if (settings.Image != null) 7819 { 7820 if (settings.Image.Path != null) 7821 { 7822 7823 7824 #line default 7825 #line hidden 7826 WriteLiteralTo(__razor_helper_writer, " <div"); 7827 7828 WriteLiteralTo(__razor_helper_writer, " class=\"u-padding-bottom--lg\""); 7829 7830 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7831 7832 WriteLiteralTo(__razor_helper_writer, " "); 7833 7834 7835 #line 2148 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7836 WriteTo(__razor_helper_writer, Render(settings.Image)); 7837 7838 7839 #line default 7840 #line hidden 7841 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7842 7843 7844 #line 2150 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7845 } 7846 } 7847 7848 7849 #line default 7850 #line hidden 7851 WriteLiteralTo(__razor_helper_writer, " "); 7852 7853 7854 #line 2152 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7855 if (!String.IsNullOrEmpty(settings.Subheading)) 7856 { 7857 7858 7859 #line default 7860 #line hidden 7861 WriteLiteralTo(__razor_helper_writer, " <div"); 7862 7863 WriteLiteralTo(__razor_helper_writer, " class=\"article__leadtext dw-mod\""); 7864 7865 WriteLiteralTo(__razor_helper_writer, ">"); 7866 7867 7868 #line 2154 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7869 WriteTo(__razor_helper_writer, settings.Subheading); 7870 7871 7872 #line default 7873 #line hidden 7874 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7875 7876 7877 #line 2155 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7878 } 7879 7880 7881 #line default 7882 #line hidden 7883 WriteLiteralTo(__razor_helper_writer, " "); 7884 7885 7886 #line 2156 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7887 if (!String.IsNullOrEmpty(settings.Link)) 7888 { 7889 7890 7891 #line default 7892 #line hidden 7893 WriteLiteralTo(__razor_helper_writer, " <div"); 7894 7895 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 7896 7897 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7898 7899 WriteLiteralTo(__razor_helper_writer, " "); 7900 7901 7902 #line 2159 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7903 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout })); 7904 7905 7906 #line default 7907 #line hidden 7908 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7909 7910 7911 #line 2161 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7912 } 7913 7914 7915 #line default 7916 #line hidden 7917 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 7918 7919 7920 #line 2164 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7921 7922 7923 #line default 7924 #line hidden 7925 7926 #line 2164 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7927 if (settings.ExternalParagraphId != 0) 7928 { 7929 7930 7931 #line default 7932 #line hidden 7933 WriteLiteralTo(__razor_helper_writer, " <div"); 7934 7935 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-4 grid__col-sm-12 u-padding--lg u-color-light-gray--bg dw-mo" + 7936 "d\""); 7937 7938 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7939 7940 WriteLiteralTo(__razor_helper_writer, " "); 7941 7942 7943 #line 2167 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7944 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 7945 7946 7947 #line default 7948 #line hidden 7949 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7950 7951 7952 #line 2169 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7953 } 7954 7955 7956 #line default 7957 #line hidden 7958 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7959 7960 7961 #line 2171 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7962 } 7963 7964 7965 #line default 7966 #line hidden 7967 }); 7968 7969 #line 2172 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7970 } 7971 #line default 7972 #line hidden 7973 7974 7975 #line 2174 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7976 public RazorEngine.Templating.TemplateWriter RenderArticleSplitHeader(ArticleHeader settings) { 7977 #line default 7978 #line hidden 7979 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7980 7981 #line 2174 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7982 7983 dynamic[] methodParameters = new dynamic[1]; 7984 methodParameters[0] = settings; 7985 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleSplitHeaderCustom"); 7986 7987 if (customMethod != null) 7988 { 7989 7990 7991 #line default 7992 #line hidden 7993 7994 #line 2181 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 7995 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 7996 7997 7998 #line default 7999 #line hidden 8000 8001 #line 2181 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8002 ; 8003 } 8004 else 8005 { 8006 string headerColumnWidth = settings.ExternalParagraphId != 0 ? "4" : "6"; 8007 8008 if (settings.Image != null) 8009 { 8010 if (settings.Image.Path != null) 8011 { 8012 8013 8014 #line default 8015 #line hidden 8016 WriteLiteralTo(__razor_helper_writer, " <section"); 8017 8018 WriteLiteralTo(__razor_helper_writer, " class=\"multiple-paragraphs-container paragraph-container--full-width\""); 8019 8020 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8021 8022 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 8023 8024 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8025 8026 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 86676), Tuple.Create("\"", 86805) 8027 , Tuple.Create(Tuple.Create("", 86684), Tuple.Create("grid__col-md-", 86684), true) 8028 8029 #line 2193 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8030 , Tuple.Create(Tuple.Create("", 86697), Tuple.Create<System.Object, System.Int32>(headerColumnWidth 8031 8032 #line default 8033 #line hidden 8034 , 86697), false) 8035 , Tuple.Create(Tuple.Create(" ", 86715), Tuple.Create("grid__col-sm-12", 86716), true) 8036 , Tuple.Create(Tuple.Create(" ", 86731), Tuple.Create("grid__col-xs-12", 86732), true) 8037 , Tuple.Create(Tuple.Create(" ", 86747), Tuple.Create("paragraph-container", 86748), true) 8038 , Tuple.Create(Tuple.Create(" ", 86767), Tuple.Create("paragraph-container--height-xl", 86768), true) 8039 , Tuple.Create(Tuple.Create(" ", 86798), Tuple.Create("dw-mod", 86799), true) 8040 ); 8041 8042 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8043 8044 WriteLiteralTo(__razor_helper_writer, " class=\"u-left-middle u-padding--lg\""); 8045 8046 WriteLiteralTo(__razor_helper_writer, ">\r\n <div>\r\n"); 8047 8048 8049 #line 2196 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8050 8051 8052 #line default 8053 #line hidden 8054 8055 #line 2196 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8056 if (!String.IsNullOrEmpty(settings.Category)) 8057 { 8058 8059 8060 #line default 8061 #line hidden 8062 WriteLiteralTo(__razor_helper_writer, " <div"); 8063 8064 WriteLiteralTo(__razor_helper_writer, " class=\"article__category dw-mod\""); 8065 8066 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 87119), Tuple.Create("\"", 87157) 8067 , Tuple.Create(Tuple.Create("", 87127), Tuple.Create("color:", 87127), true) 8068 8069 #line 2198 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8070 , Tuple.Create(Tuple.Create(" ", 87133), Tuple.Create<System.Object, System.Int32>(settings.CategoryColor 8071 8072 #line default 8073 #line hidden 8074 , 87134), false) 8075 ); 8076 8077 WriteLiteralTo(__razor_helper_writer, ">"); 8078 8079 8080 #line 2198 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8081 WriteTo(__razor_helper_writer, settings.Category); 8082 8083 8084 #line default 8085 #line hidden 8086 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8087 8088 8089 #line 2199 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8090 } 8091 8092 8093 #line default 8094 #line hidden 8095 WriteLiteralTo(__razor_helper_writer, " "); 8096 8097 8098 #line 2200 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8099 if (!String.IsNullOrEmpty(settings.Heading)) 8100 { 8101 8102 8103 #line default 8104 #line hidden 8105 WriteLiteralTo(__razor_helper_writer, " <h1"); 8106 8107 WriteLiteralTo(__razor_helper_writer, " class=\"article__header article__header--giant dw-mod\""); 8108 8109 WriteLiteralTo(__razor_helper_writer, ">"); 8110 8111 8112 #line 2202 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8113 WriteTo(__razor_helper_writer, settings.Heading); 8114 8115 8116 #line default 8117 #line hidden 8118 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n"); 8119 8120 8121 #line 2203 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8122 } 8123 8124 8125 #line default 8126 #line hidden 8127 WriteLiteralTo(__razor_helper_writer, " "); 8128 8129 8130 #line 2204 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8131 if (!String.IsNullOrEmpty(settings.Subheading)) 8132 { 8133 8134 8135 #line default 8136 #line hidden 8137 WriteLiteralTo(__razor_helper_writer, " <div"); 8138 8139 WriteLiteralTo(__razor_helper_writer, " class=\"article__leadtext dw-mod\""); 8140 8141 WriteLiteralTo(__razor_helper_writer, ">"); 8142 8143 8144 #line 2206 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8145 WriteTo(__razor_helper_writer, settings.Subheading); 8146 8147 8148 #line default 8149 #line hidden 8150 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8151 8152 8153 #line 2207 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8154 } 8155 8156 8157 #line default 8158 #line hidden 8159 WriteLiteralTo(__razor_helper_writer, " "); 8160 8161 8162 #line 2208 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8163 if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) 8164 { 8165 8166 8167 #line default 8168 #line hidden 8169 WriteLiteralTo(__razor_helper_writer, " <small"); 8170 8171 WriteLiteralTo(__razor_helper_writer, " class=\"article__post-info u-pull--left dw-mod\""); 8172 8173 WriteLiteralTo(__razor_helper_writer, ">"); 8174 8175 8176 #line 2210 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8177 WriteTo(__razor_helper_writer, settings.Author); 8178 8179 8180 #line default 8181 #line hidden 8182 WriteLiteralTo(__razor_helper_writer, " "); 8183 8184 8185 #line 2210 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8186 WriteTo(__razor_helper_writer, settings.Date); 8187 8188 8189 #line default 8190 #line hidden 8191 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 8192 8193 8194 #line 2211 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8195 } 8196 8197 8198 #line default 8199 #line hidden 8200 WriteLiteralTo(__razor_helper_writer, " "); 8201 8202 8203 #line 2212 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8204 if (settings.RatingOutOf != 0) 8205 { 8206 8207 8208 #line default 8209 #line hidden 8210 WriteLiteralTo(__razor_helper_writer, " <div"); 8211 8212 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 8213 8214 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8215 8216 WriteLiteralTo(__razor_helper_writer, " "); 8217 8218 8219 #line 2215 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8220 WriteTo(__razor_helper_writer, Render(new Rating { Score = settings.RatingScore, OutOf = settings.RatingOutOf })); 8221 8222 8223 #line default 8224 #line hidden 8225 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8226 8227 8228 #line 2217 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8229 } 8230 8231 8232 #line default 8233 #line hidden 8234 WriteLiteralTo(__razor_helper_writer, " "); 8235 8236 8237 #line 2218 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8238 if (!String.IsNullOrEmpty(settings.Link)) { 8239 8240 8241 #line default 8242 #line hidden 8243 WriteLiteralTo(__razor_helper_writer, " <div"); 8244 8245 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-pull--left u-margin-top\""); 8246 8247 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8248 8249 WriteLiteralTo(__razor_helper_writer, " "); 8250 8251 8252 #line 2220 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8253 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout })); 8254 8255 8256 #line default 8257 #line hidden 8258 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8259 8260 8261 #line 2222 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8262 } 8263 8264 8265 #line default 8266 #line hidden 8267 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n " + 8268 " </div>\r\n <div"); 8269 8270 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 89056), Tuple.Create("\"", 89187) 8271 , Tuple.Create(Tuple.Create("", 89064), Tuple.Create("grid__col-md-", 89064), true) 8272 8273 #line 2226 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8274 , Tuple.Create(Tuple.Create("", 89077), Tuple.Create<System.Object, System.Int32>(headerColumnWidth 8275 8276 #line default 8277 #line hidden 8278 , 89077), false) 8279 , Tuple.Create(Tuple.Create(" ", 89095), Tuple.Create("grid__col-sm-12", 89096), true) 8280 , Tuple.Create(Tuple.Create(" ", 89111), Tuple.Create("grid__col-xs-12", 89112), true) 8281 , Tuple.Create(Tuple.Create(" ", 89127), Tuple.Create("paragraph-container", 89128), true) 8282 , Tuple.Create(Tuple.Create(" ", 89147), Tuple.Create("paragraph-container--height-auto", 89148), true) 8283 , Tuple.Create(Tuple.Create(" ", 89180), Tuple.Create("dw-mod", 89181), true) 8284 ); 8285 8286 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 89188), Tuple.Create("\"", 89416) 8287 , Tuple.Create(Tuple.Create("", 89196), Tuple.Create("background-image:url(/Admin/Public/GetImage.ashx?width=1800&amp;height=1100&amp;c" + 8288 "rop=0&amp;Compression=85&amp;DoNotUpscale=true&amp;image=", 89196), true) 8289 8290 #line 2226 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8291 , Tuple.Create(Tuple.Create("", 89334), Tuple.Create<System.Object, System.Int32>(settings.Image.Path 8292 8293 #line default 8294 #line hidden 8295 , 89334), false) 8296 , Tuple.Create(Tuple.Create("", 89354), Tuple.Create(");", 89354), true) 8297 , Tuple.Create(Tuple.Create(" ", 89356), Tuple.Create("background-position:", 89357), true) 8298 , Tuple.Create(Tuple.Create(" ", 89377), Tuple.Create("center", 89378), true) 8299 , Tuple.Create(Tuple.Create(" ", 89384), Tuple.Create("center;", 89385), true) 8300 , Tuple.Create(Tuple.Create(" ", 89392), Tuple.Create("background-size:", 89393), true) 8301 , Tuple.Create(Tuple.Create(" ", 89409), Tuple.Create("cover;", 89410), true) 8302 ); 8303 8304 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 8305 8306 8307 #line 2227 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8308 8309 8310 #line default 8311 #line hidden 8312 8313 #line 2227 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8314 if (settings.ExternalParagraphId != 0) 8315 { 8316 8317 8318 #line default 8319 #line hidden 8320 WriteLiteralTo(__razor_helper_writer, " <div"); 8321 8322 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-4 grid__col-sm-12 grid__col-xs-12 paragraph-container paragr" + 8323 "aph-container--height-auto u-color-light-gray--bg dw-mod\""); 8324 8325 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8326 8327 WriteLiteralTo(__razor_helper_writer, " "); 8328 8329 8330 #line 2230 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8331 WriteTo(__razor_helper_writer, RenderParagraphContent(settings.ExternalParagraphId)); 8332 8333 8334 #line default 8335 #line hidden 8336 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n"); 8337 8338 8339 #line 2232 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8340 } 8341 8342 8343 #line default 8344 #line hidden 8345 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </section>\r\n"); 8346 8347 8348 #line 2235 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8349 } 8350 } 8351 else 8352 { 8353 8354 8355 #line default 8356 #line hidden 8357 8358 #line 2239 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8359 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 8360 8361 8362 #line default 8363 #line hidden 8364 8365 #line 2239 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8366 ; 8367 } 8368 } 8369 8370 8371 #line default 8372 #line hidden 8373 }); 8374 8375 #line 2242 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8376 } 8377 #line default 8378 #line hidden 8379 8380 8381 #line 2244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8382 public RazorEngine.Templating.TemplateWriter RenderArticleOverlayHeader(ArticleHeader settings) { 8383 #line default 8384 #line hidden 8385 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8386 8387 #line 2244 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8388 8389 dynamic[] methodParameters = new dynamic[1]; 8390 methodParameters[0] = settings; 8391 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleOverlayHeaderCustom"); 8392 8393 if (customMethod != null) 8394 { 8395 8396 8397 #line default 8398 #line hidden 8399 8400 #line 2251 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8401 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 8402 8403 8404 #line default 8405 #line hidden 8406 8407 #line 2251 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8408 ; 8409 } 8410 else 8411 { 8412 string contentColumns = settings.TextLayout != ArticleHeaderTextLayout.Full ? "8" : "12"; 8413 string contentAlignment = settings.TextLayout == ArticleHeaderTextLayout.Center ? "grid--justify-center" : ""; 8414 8415 if (settings.Image != null) 8416 { 8417 if (settings.Image.Path != null) 8418 { 8419 if (settings.ExternalParagraphId == 0) 8420 { 8421 8422 8423 #line default 8424 #line hidden 8425 WriteLiteralTo(__razor_helper_writer, " <section"); 8426 8427 WriteLiteralTo(__razor_helper_writer, " class=\"multiple-paragraphs-container u-color-light paragraph-container--full-wid" + 8428 "th\""); 8429 8430 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8431 8432 WriteLiteralTo(__razor_helper_writer, " class=\"background-image image-filter image-filter--darken dw-mod\""); 8433 8434 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8435 8436 WriteLiteralTo(__razor_helper_writer, " class=\"background-image__wrapper image-filter image-filter--darken dw-mod\""); 8437 8438 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8439 8440 8441 #line 2267 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8442 8443 8444 #line default 8445 #line hidden 8446 8447 #line 2267 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8448 8449 settings.Image.CssClass += "background-image__cover dw-mod"; 8450 8451 8452 #line default 8453 #line hidden 8454 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8455 8456 WriteLiteralTo(__razor_helper_writer, " "); 8457 8458 8459 #line 2270 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8460 WriteTo(__razor_helper_writer, Render(settings.Image)); 8461 8462 8463 #line default 8464 #line hidden 8465 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n " + 8466 " <div"); 8467 8468 WriteLiteralTo(__razor_helper_writer, " class=\"center-container dw-mod\""); 8469 8470 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8471 8472 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 91515), Tuple.Create("\"", 91545) 8473 , Tuple.Create(Tuple.Create("", 91523), Tuple.Create("grid", 91523), true) 8474 8475 #line 2274 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8476 , Tuple.Create(Tuple.Create(" ", 91527), Tuple.Create<System.Object, System.Int32>(contentAlignment 8477 8478 #line default 8479 #line hidden 8480 , 91528), false) 8481 ); 8482 8483 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8484 8485 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 91585), Tuple.Create("\"", 91708) 8486 , Tuple.Create(Tuple.Create("", 91593), Tuple.Create("grid__col-md-", 91593), true) 8487 8488 #line 2275 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8489 , Tuple.Create(Tuple.Create("", 91606), Tuple.Create<System.Object, System.Int32>(contentColumns 8490 8491 #line default 8492 #line hidden 8493 , 91606), false) 8494 , Tuple.Create(Tuple.Create(" ", 91621), Tuple.Create("grid__col-xs-12", 91622), true) 8495 , Tuple.Create(Tuple.Create(" ", 91637), Tuple.Create("paragraph-container", 91638), true) 8496 , Tuple.Create(Tuple.Create(" ", 91657), Tuple.Create("paragraph-container--height-xl", 91658), true) 8497 , Tuple.Create(Tuple.Create(" ", 91688), Tuple.Create("u-no-padding", 91689), true) 8498 , Tuple.Create(Tuple.Create(" ", 91701), Tuple.Create("dw-mod", 91702), true) 8499 ); 8500 8501 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8502 8503 8504 #line 2276 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8505 8506 8507 #line default 8508 #line hidden 8509 8510 #line 2276 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8511 if (!String.IsNullOrEmpty(settings.Heading)) 8512 { 8513 8514 8515 #line default 8516 #line hidden 8517 WriteLiteralTo(__razor_helper_writer, " <h1"); 8518 8519 WriteLiteralTo(__razor_helper_writer, " class=\"article__header article__header--giant u-padding-top--lg dw-mod\""); 8520 8521 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 91949), Tuple.Create("\"", 91983) 8522 , Tuple.Create(Tuple.Create("", 91957), Tuple.Create("color:", 91957), true) 8523 8524 #line 2278 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8525 , Tuple.Create(Tuple.Create(" ", 91963), Tuple.Create<System.Object, System.Int32>(settings.TextColor 8526 8527 #line default 8528 #line hidden 8529 , 91964), false) 8530 ); 8531 8532 WriteLiteralTo(__razor_helper_writer, ">"); 8533 8534 8535 #line 2278 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8536 WriteTo(__razor_helper_writer, settings.Heading); 8537 8538 8539 #line default 8540 #line hidden 8541 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n"); 8542 8543 8544 #line 2279 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8545 } 8546 8547 8548 #line default 8549 #line hidden 8550 WriteLiteralTo(__razor_helper_writer, " "); 8551 8552 8553 #line 2280 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8554 if (!String.IsNullOrEmpty(settings.Subheading)) 8555 { 8556 8557 8558 #line default 8559 #line hidden 8560 WriteLiteralTo(__razor_helper_writer, " <div"); 8561 8562 WriteLiteralTo(__razor_helper_writer, " class=\"article__leadtext dw-mod\""); 8563 8564 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 92250), Tuple.Create("\"", 92284) 8565 , Tuple.Create(Tuple.Create("", 92258), Tuple.Create("color:", 92258), true) 8566 8567 #line 2282 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8568 , Tuple.Create(Tuple.Create(" ", 92264), Tuple.Create<System.Object, System.Int32>(settings.TextColor 8569 8570 #line default 8571 #line hidden 8572 , 92265), false) 8573 ); 8574 8575 WriteLiteralTo(__razor_helper_writer, ">"); 8576 8577 8578 #line 2282 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8579 WriteTo(__razor_helper_writer, settings.Subheading); 8580 8581 8582 #line default 8583 #line hidden 8584 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8585 8586 8587 #line 2283 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8588 } 8589 8590 8591 #line default 8592 #line hidden 8593 WriteLiteralTo(__razor_helper_writer, " <div"); 8594 8595 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-top\""); 8596 8597 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8598 8599 8600 #line 2285 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8601 8602 8603 #line default 8604 #line hidden 8605 8606 #line 2285 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8607 if (!String.IsNullOrEmpty(settings.Author) || !String.IsNullOrEmpty(settings.Date)) 8608 { 8609 8610 8611 #line default 8612 #line hidden 8613 WriteLiteralTo(__razor_helper_writer, " <small"); 8614 8615 WriteLiteralTo(__razor_helper_writer, " class=\"article__post-info u-pull--left dw-mod\""); 8616 8617 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 92683), Tuple.Create("\"", 92717) 8618 , Tuple.Create(Tuple.Create("", 92691), Tuple.Create("color:", 92691), true) 8619 8620 #line 2287 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8621 , Tuple.Create(Tuple.Create(" ", 92697), Tuple.Create<System.Object, System.Int32>(settings.TextColor 8622 8623 #line default 8624 #line hidden 8625 , 92698), false) 8626 ); 8627 8628 WriteLiteralTo(__razor_helper_writer, ">"); 8629 8630 8631 #line 2287 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8632 WriteTo(__razor_helper_writer, settings.Author); 8633 8634 8635 #line default 8636 #line hidden 8637 WriteLiteralTo(__razor_helper_writer, " "); 8638 8639 8640 #line 2287 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8641 WriteTo(__razor_helper_writer, settings.Date); 8642 8643 8644 #line default 8645 #line hidden 8646 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 8647 8648 8649 #line 2288 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8650 } 8651 8652 8653 #line default 8654 #line hidden 8655 WriteLiteralTo(__razor_helper_writer, " "); 8656 8657 8658 #line 2289 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8659 if (settings.RatingOutOf != 0) 8660 { 8661 8662 8663 #line default 8664 #line hidden 8665 WriteLiteralTo(__razor_helper_writer, " <div"); 8666 8667 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 8668 8669 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8670 8671 WriteLiteralTo(__razor_helper_writer, " "); 8672 8673 8674 #line 2292 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8675 WriteTo(__razor_helper_writer, Render(new Rating { Score = settings.RatingScore, OutOf = settings.RatingOutOf })); 8676 8677 8678 #line default 8679 #line hidden 8680 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8681 8682 8683 #line 2294 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8684 } 8685 8686 8687 #line default 8688 #line hidden 8689 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 8690 8691 8692 #line 2296 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8693 8694 8695 #line default 8696 #line hidden 8697 8698 #line 2296 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8699 if (!String.IsNullOrEmpty(settings.Link)) 8700 { 8701 8702 8703 #line default 8704 #line hidden 8705 WriteLiteralTo(__razor_helper_writer, " <div"); 8706 8707 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 8708 8709 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8710 8711 WriteLiteralTo(__razor_helper_writer, " "); 8712 8713 8714 #line 2299 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8715 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Title = settings.LinkText, ButtonLayout = settings.ButtonLayout })); 8716 8717 8718 #line default 8719 #line hidden 8720 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8721 8722 8723 #line 2301 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8724 } 8725 8726 8727 #line default 8728 #line hidden 8729 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n " + 8730 " </div>\r\n </section>\r\n"); 8731 8732 8733 #line 2306 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8734 } 8735 else 8736 { 8737 8738 8739 #line default 8740 #line hidden 8741 8742 #line 2309 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8743 WriteTo(__razor_helper_writer, RenderArticleBanner(settings)); 8744 8745 8746 #line default 8747 #line hidden 8748 8749 #line 2309 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8750 ; 8751 } 8752 } 8753 } 8754 else 8755 { 8756 8757 8758 #line default 8759 #line hidden 8760 8761 #line 2315 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8762 WriteTo(__razor_helper_writer, RenderArticleCleanHeader(settings)); 8763 8764 8765 #line default 8766 #line hidden 8767 8768 #line 2315 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8769 ; 8770 } 8771 } 8772 8773 8774 #line default 8775 #line hidden 8776 }); 8777 8778 #line 2318 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8779 } 8780 #line default 8781 #line hidden 8782 8783 8784 #line 2320 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8785 public RazorEngine.Templating.TemplateWriter RenderArticleBannerHeader(dynamic settings) { 8786 #line default 8787 #line hidden 8788 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8789 8790 #line 2320 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8791 8792 dynamic[] methodParameters = new dynamic[1]; 8793 methodParameters[0] = settings; 8794 MethodInfo customMethod = this.GetType().GetMethod("RenderArticleBannerHeaderCustom"); 8795 8796 if (customMethod != null) 8797 { 8798 8799 8800 #line default 8801 #line hidden 8802 8803 #line 2327 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8804 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 8805 8806 8807 #line default 8808 #line hidden 8809 8810 #line 2327 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8811 ; 8812 } 8813 else 8814 { 8815 8816 8817 #line default 8818 #line hidden 8819 8820 #line 2331 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8821 WriteTo(__razor_helper_writer, RenderArticleBanner(settings)); 8822 8823 8824 #line default 8825 #line hidden 8826 8827 #line 2331 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8828 ; 8829 } 8830 8831 8832 #line default 8833 #line hidden 8834 }); 8835 8836 #line 2333 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8837 } 8838 #line default 8839 #line hidden 8840 8841 8842 #line 2344 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8843 public RazorEngine.Templating.TemplateWriter RenderArticleBodyRow(ArticleBodyRow settings) 8844 { 8845 #line default 8846 #line hidden 8847 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8848 8849 #line 2345 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8850 8851 string position = settings.TopLayout == "overlay" ? "article__overlay-offset" : ""; 8852 string contentAlignment = settings.TextLayout == "center" ? "grid--justify-center" : ""; 8853 8854 8855 8856 #line default 8857 #line hidden 8858 WriteLiteralTo(__razor_helper_writer, " <div"); 8859 8860 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 95046), Tuple.Create("\"", 95119) 8861 , Tuple.Create(Tuple.Create("", 95054), Tuple.Create("grid", 95054), true) 8862 , Tuple.Create(Tuple.Create(" ", 95058), Tuple.Create("grid--align-content-start", 95059), true) 8863 8864 #line 2349 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8865 , Tuple.Create(Tuple.Create(" ", 95084), Tuple.Create<System.Object, System.Int32>(contentAlignment 8866 8867 #line default 8868 #line hidden 8869 , 95085), false) 8870 8871 #line 2349 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8872 , Tuple.Create(Tuple.Create(" ", 95102), Tuple.Create<System.Object, System.Int32>(position 8873 8874 #line default 8875 #line hidden 8876 , 95103), false) 8877 , Tuple.Create(Tuple.Create(" ", 95112), Tuple.Create("dw-mod", 95113), true) 8878 ); 8879 8880 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8881 8882 WriteLiteralTo(__razor_helper_writer, " "); 8883 8884 8885 #line 2350 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8886 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 8887 8888 8889 #line default 8890 #line hidden 8891 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8892 8893 8894 #line 2352 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8895 8896 8897 #line default 8898 #line hidden 8899 }); 8900 8901 #line 2352 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8902 } 8903 #line default 8904 #line hidden 8905 8906 8907 #line 2361 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8908 public RazorEngine.Templating.TemplateWriter RenderArticleImage(ArticleImage settings) 8909 { 8910 #line default 8911 #line hidden 8912 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8913 8914 #line 2362 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8915 8916 if (settings.Image != null) 8917 { 8918 if (settings.Image.Path != null) 8919 { 8920 8921 8922 #line default 8923 #line hidden 8924 WriteLiteralTo(__razor_helper_writer, " <div"); 8925 8926 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-bottom--lg\""); 8927 8928 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8929 8930 WriteLiteralTo(__razor_helper_writer, " "); 8931 8932 8933 #line 2368 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8934 WriteTo(__razor_helper_writer, Render(settings.Image)); 8935 8936 8937 #line default 8938 #line hidden 8939 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8940 8941 8942 #line 2370 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8943 } 8944 } 8945 8946 8947 #line default 8948 #line hidden 8949 }); 8950 8951 #line 2372 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8952 } 8953 #line default 8954 #line hidden 8955 8956 8957 #line 2380 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8958 public RazorEngine.Templating.TemplateWriter RenderArticleSubHeader(ArticleSubHeader settings) 8959 { 8960 #line default 8961 #line hidden 8962 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8963 8964 #line 2381 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8965 8966 if (!String.IsNullOrEmpty(settings.Title)) 8967 { 8968 8969 8970 #line default 8971 #line hidden 8972 WriteLiteralTo(__razor_helper_writer, " <h2"); 8973 8974 WriteLiteralTo(__razor_helper_writer, " class=\"article__header\""); 8975 8976 WriteLiteralTo(__razor_helper_writer, ">"); 8977 8978 8979 #line 2384 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8980 WriteTo(__razor_helper_writer, settings.Title); 8981 8982 8983 #line default 8984 #line hidden 8985 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 8986 8987 8988 #line 2385 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8989 } 8990 8991 8992 #line default 8993 #line hidden 8994 }); 8995 8996 #line 2386 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 8997 } 8998 #line default 8999 #line hidden 9000 9001 9002 #line 2395 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9003 public RazorEngine.Templating.TemplateWriter RenderArticleText(ArticleText settings) 9004 { 9005 #line default 9006 #line hidden 9007 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9008 9009 #line 2396 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9010 9011 if (!String.IsNullOrEmpty(settings.Text)) 9012 { 9013 string greatTextClass = settings.EnableLargeText == true ? "article__paragraph--great-text" : ""; 9014 9015 9016 9017 #line default 9018 #line hidden 9019 WriteLiteralTo(__razor_helper_writer, " <div"); 9020 9021 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 96477), Tuple.Create("\"", 96519) 9022 , Tuple.Create(Tuple.Create("", 96485), Tuple.Create("article__paragraph", 96485), true) 9023 9024 #line 2401 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9025 , Tuple.Create(Tuple.Create(" ", 96503), Tuple.Create<System.Object, System.Int32>(greatTextClass 9026 9027 #line default 9028 #line hidden 9029 , 96504), false) 9030 ); 9031 9032 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9033 9034 WriteLiteralTo(__razor_helper_writer, " "); 9035 9036 9037 #line 2402 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9038 WriteTo(__razor_helper_writer, settings.Text); 9039 9040 9041 #line default 9042 #line hidden 9043 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9044 9045 9046 #line 2404 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9047 } 9048 9049 9050 #line default 9051 #line hidden 9052 }); 9053 9054 #line 2405 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9055 } 9056 #line default 9057 #line hidden 9058 9059 9060 #line 2414 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9061 public RazorEngine.Templating.TemplateWriter RenderArticleQuote(ArticleQuote settings) 9062 { 9063 #line default 9064 #line hidden 9065 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9066 9067 #line 2415 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9068 9069 string text = Regex.Replace(settings.Text, "<.*?>", String.Empty); 9070 9071 9072 9073 #line default 9074 #line hidden 9075 WriteLiteralTo(__razor_helper_writer, " <div"); 9076 9077 WriteLiteralTo(__razor_helper_writer, " class=\"grid u-padding-bottom--lg\""); 9078 9079 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9080 9081 9082 #line 2419 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9083 9084 9085 #line default 9086 #line hidden 9087 9088 #line 2419 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9089 if (settings.Image != null) 9090 { 9091 if (settings.Image.Path != null) { 9092 9093 9094 #line default 9095 #line hidden 9096 WriteLiteralTo(__razor_helper_writer, " <div"); 9097 9098 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-3\""); 9099 9100 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 9101 9102 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell-img\""); 9103 9104 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9105 9106 9107 #line 2424 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9108 9109 9110 #line default 9111 #line hidden 9112 9113 #line 2424 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9114 9115 settings.Image.Title = !String.IsNullOrEmpty(settings.Image.Title) ? settings.Image.Title : settings.Author; 9116 settings.Image.CssClass += " article__image article__image--ball"; 9117 settings.Image.ImageDefault.Width = 200; 9118 settings.Image.ImageDefault.Height = 200; 9119 9120 9121 #line default 9122 #line hidden 9123 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9124 9125 WriteLiteralTo(__razor_helper_writer, " "); 9126 9127 9128 #line 2430 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9129 WriteTo(__razor_helper_writer, Render(settings.Image)); 9130 9131 9132 #line default 9133 #line hidden 9134 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n"); 9135 9136 9137 #line 2433 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9138 } 9139 } 9140 9141 9142 #line default 9143 #line hidden 9144 WriteLiteralTo(__razor_helper_writer, " <div"); 9145 9146 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-auto\""); 9147 9148 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9149 9150 9151 #line 2436 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9152 9153 9154 #line default 9155 #line hidden 9156 9157 #line 2436 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9158 if (!String.IsNullOrEmpty(settings.Text)) 9159 { 9160 9161 9162 #line default 9163 #line hidden 9164 WriteLiteralTo(__razor_helper_writer, " <div"); 9165 9166 WriteLiteralTo(__razor_helper_writer, " class=\"article__quote dw-mod\""); 9167 9168 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 9169 9170 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-quote-right u-margin-bottom--lg\""); 9171 9172 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 9173 9174 WriteLiteralTo(__razor_helper_writer, " "); 9175 9176 9177 #line 2440 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9178 WriteTo(__razor_helper_writer, settings.Text); 9179 9180 9181 #line default 9182 #line hidden 9183 WriteLiteralTo(__razor_helper_writer, "\r\n <i"); 9184 9185 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-quote-right\""); 9186 9187 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </div>\r\n"); 9188 9189 9190 #line 2443 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9191 } 9192 9193 9194 #line default 9195 #line hidden 9196 WriteLiteralTo(__razor_helper_writer, " "); 9197 9198 9199 #line 2444 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9200 if (!String.IsNullOrEmpty(settings.Author)) 9201 { 9202 9203 9204 #line default 9205 #line hidden 9206 WriteLiteralTo(__razor_helper_writer, " <div"); 9207 9208 WriteLiteralTo(__razor_helper_writer, " class=\"article__quote-author dw-mod\""); 9209 9210 WriteLiteralTo(__razor_helper_writer, ">\r\n - "); 9211 9212 9213 #line 2447 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9214 WriteTo(__razor_helper_writer, settings.Author); 9215 9216 9217 #line default 9218 #line hidden 9219 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9220 9221 9222 #line 2449 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9223 } 9224 9225 9226 #line default 9227 #line hidden 9228 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 9229 9230 9231 #line 2452 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9232 9233 9234 #line default 9235 #line hidden 9236 }); 9237 9238 #line 2452 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9239 } 9240 #line default 9241 #line hidden 9242 9243 9244 #line 2460 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9245 public RazorEngine.Templating.TemplateWriter RenderArticleInfoTable(ArticleInfoTable settings) 9246 { 9247 #line default 9248 #line hidden 9249 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9250 9251 #line 2461 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9252 9253 9254 9255 #line default 9256 #line hidden 9257 WriteLiteralTo(__razor_helper_writer, " <table"); 9258 9259 WriteLiteralTo(__razor_helper_writer, " class=\"table table--clean\""); 9260 9261 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9262 9263 9264 #line 2463 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9265 9266 9267 #line default 9268 #line hidden 9269 9270 #line 2463 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9271 foreach (var row in settings.Rows) 9272 { 9273 string iconColor = row.IconColor != null ? row.IconColor : "u-brand-color-two"; 9274 9275 9276 9277 #line default 9278 #line hidden 9279 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n"); 9280 9281 9282 #line 2468 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9283 9284 9285 #line default 9286 #line hidden 9287 9288 #line 2468 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9289 if (!String.IsNullOrEmpty(row.Icon)) 9290 { 9291 9292 9293 #line default 9294 #line hidden 9295 WriteLiteralTo(__razor_helper_writer, " <td"); 9296 9297 WriteLiteralTo(__razor_helper_writer, " class=\"u-w32px\""); 9298 9299 WriteLiteralTo(__razor_helper_writer, "><i"); 9300 9301 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 98856), Tuple.Create("\"", 98894) 9302 9303 #line 2470 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9304 , Tuple.Create(Tuple.Create("", 98864), Tuple.Create<System.Object, System.Int32>(row.Icon 9305 9306 #line default 9307 #line hidden 9308 , 98864), false) 9309 , Tuple.Create(Tuple.Create(" ", 98873), Tuple.Create("fa-2x", 98874), true) 9310 9311 #line 2470 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9312 , Tuple.Create(Tuple.Create(" ", 98879), Tuple.Create<System.Object, System.Int32>(row.IconColor 9313 9314 #line default 9315 #line hidden 9316 , 98880), false) 9317 ); 9318 9319 WriteLiteralTo(__razor_helper_writer, "></i></td>\r\n"); 9320 9321 9322 #line 2471 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9323 } 9324 9325 9326 #line default 9327 #line hidden 9328 WriteLiteralTo(__razor_helper_writer, " <td"); 9329 9330 WriteLiteralTo(__razor_helper_writer, " class=\"u-no-margin-on-p-elements\""); 9331 9332 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 9333 9334 WriteLiteralTo(__razor_helper_writer, " class=\"u-bold\""); 9335 9336 WriteLiteralTo(__razor_helper_writer, ">"); 9337 9338 9339 #line 2473 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9340 WriteTo(__razor_helper_writer, row.Title); 9341 9342 9343 #line default 9344 #line hidden 9345 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 9346 9347 9348 #line 2474 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9349 9350 9351 #line default 9352 #line hidden 9353 9354 #line 2474 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9355 if (!String.IsNullOrEmpty(row.SubTitle)) 9356 { 9357 if (row.Link == null) 9358 { 9359 9360 9361 #line default 9362 #line hidden 9363 WriteLiteralTo(__razor_helper_writer, " <div>"); 9364 9365 9366 #line 2478 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9367 WriteTo(__razor_helper_writer, row.SubTitle); 9368 9369 9370 #line default 9371 #line hidden 9372 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 9373 9374 9375 #line 2479 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9376 } 9377 else 9378 { 9379 9380 9381 #line default 9382 #line hidden 9383 WriteLiteralTo(__razor_helper_writer, " <a"); 9384 9385 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 99360), Tuple.Create("\"", 99376) 9386 9387 #line 2482 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9388 , Tuple.Create(Tuple.Create("", 99367), Tuple.Create<System.Object, System.Int32>(row.Link 9389 9390 #line default 9391 #line hidden 9392 , 99367), false) 9393 ); 9394 9395 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-inherit\""); 9396 9397 WriteLiteralTo(__razor_helper_writer, ">"); 9398 9399 9400 #line 2482 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9401 WriteTo(__razor_helper_writer, row.SubTitle); 9402 9403 9404 #line default 9405 #line hidden 9406 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 9407 9408 9409 #line 2483 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9410 } 9411 } 9412 9413 9414 #line default 9415 #line hidden 9416 WriteLiteralTo(__razor_helper_writer, " </td>\r\n </tr>\r\n"); 9417 9418 9419 #line 2487 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9420 } 9421 9422 9423 #line default 9424 #line hidden 9425 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 9426 9427 9428 #line 2489 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9429 9430 9431 #line default 9432 #line hidden 9433 }); 9434 9435 #line 2489 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9436 } 9437 #line default 9438 #line hidden 9439 9440 9441 #line 2498 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9442 public RazorEngine.Templating.TemplateWriter RenderArticleGalleryModal(ArticleGalleryModal settings) 9443 { 9444 #line default 9445 #line hidden 9446 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9447 9448 #line 2499 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9449 9450 Modal galleryModal = new Modal 9451 { 9452 Id = "ParagraphGallery", 9453 Width = ModalWidth.Full, 9454 BodyTemplate = RenderArticleGalleryModalContent() 9455 }; 9456 9457 9458 9459 #line default 9460 #line hidden 9461 9462 #line 2507 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9463 WriteTo(__razor_helper_writer, Render(galleryModal)); 9464 9465 9466 #line default 9467 #line hidden 9468 9469 #line 2507 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9470 9471 9472 9473 #line default 9474 #line hidden 9475 }); 9476 9477 #line 2508 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9478 } 9479 #line default 9480 #line hidden 9481 9482 9483 #line 2510 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9484 public RazorEngine.Templating.TemplateWriter RenderArticleGalleryModalContent() { 9485 #line default 9486 #line hidden 9487 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9488 9489 #line 2510 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9490 9491 9492 9493 #line default 9494 #line hidden 9495 WriteLiteralTo(__razor_helper_writer, " <div"); 9496 9497 WriteLiteralTo(__razor_helper_writer, " class=\"modal__image-min-size-wrapper\""); 9498 9499 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9500 9501 WriteLiteralTo(__razor_helper_writer, " "); 9502 9503 9504 #line 2512 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9505 WriteTo(__razor_helper_writer, Render(new Image { 9506 Id = "ParagraphGallery", 9507 Path = "#", 9508 CssClass = "modal--full__img", 9509 DisableLazyLoad = true, 9510 DisableImageEngine = true 9511 })); 9512 9513 9514 #line default 9515 #line hidden 9516 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9517 9518 9519 #line 2520 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9520 9521 9522 9523 #line default 9524 #line hidden 9525 WriteLiteralTo(__razor_helper_writer, " <div"); 9526 9527 WriteLiteralTo(__razor_helper_writer, " class=\"modal__images-counter\""); 9528 9529 WriteLiteralTo(__razor_helper_writer, " id=\"ParagraphGallery_counter\""); 9530 9531 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 9532 9533 9534 #line 2522 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9535 9536 9537 9538 #line default 9539 #line hidden 9540 9541 #line 2523 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9542 WriteTo(__razor_helper_writer, Render(new Button { 9543 Id = "ParagraphGallery_prev", 9544 ButtonType = ButtonType.Button, 9545 ButtonLayout = ButtonLayout.None, 9546 CssClass = "modal__prev-btn", 9547 Icon = new Icon { Prefix = "far", Name = "fa-angle-left", LabelPosition = IconLabelPosition.After }, 9548 OnClick = "Gallery.prevImage('ParagraphGallery')" 9549 })); 9550 9551 9552 #line default 9553 #line hidden 9554 9555 #line 2530 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9556 9557 9558 9559 9560 #line default 9561 #line hidden 9562 9563 #line 2532 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9564 WriteTo(__razor_helper_writer, Render(new Button { 9565 Id = "ParagraphGallery_next", 9566 ButtonType = ButtonType.Button, 9567 ButtonLayout = ButtonLayout.None, 9568 CssClass = "modal__next-btn", 9569 Icon = new Icon { Prefix = "far", Name = "fa-angle-right", LabelPosition = IconLabelPosition.After }, 9570 OnClick = "Gallery.nextImage('ParagraphGallery')" 9571 })); 9572 9573 9574 #line default 9575 #line hidden 9576 9577 #line 2539 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9578 9579 9580 9581 #line default 9582 #line hidden 9583 }); 9584 9585 #line 2540 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9586 } 9587 #line default 9588 #line hidden 9589 9590 9591 #line 2549 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9592 public RazorEngine.Templating.TemplateWriter RenderArticleRelated(ArticleRelated settings) 9593 { 9594 #line default 9595 #line hidden 9596 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9597 9598 #line 2550 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9599 9600 string cardClass = Pageview.Device.ToString() != "Tablet" ? "card u-color-light--bg u-full-height" : ""; 9601 string cardFooterClass = Pageview.Device.ToString() != "Tablet" ? "card-footer u-color-light--bg" : ""; 9602 9603 9604 9605 #line default 9606 #line hidden 9607 WriteLiteralTo(__razor_helper_writer, " <section"); 9608 9609 WriteLiteralTo(__razor_helper_writer, " class=\"multiple-paragraphs-container u-color-light-gray--bg paragraph-container-" + 9610 "-full-width\""); 9611 9612 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 9613 9614 WriteLiteralTo(__razor_helper_writer, " class=\"center-container dw-mod\""); 9615 9616 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 9617 9618 WriteLiteralTo(__razor_helper_writer, " class=\"grid u-padding\""); 9619 9620 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 9621 9622 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-12 grid__col-xs-12\""); 9623 9624 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2"); 9625 9626 WriteLiteralTo(__razor_helper_writer, " class=\"article__header u-no-margin u-margin-top\""); 9627 9628 WriteLiteralTo(__razor_helper_writer, ">"); 9629 9630 9631 #line 2558 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9632 WriteTo(__razor_helper_writer, settings.Title); 9633 9634 9635 #line default 9636 #line hidden 9637 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n </div>\r\n\r\n <div"); 9638 9639 WriteLiteralTo(__razor_helper_writer, " class=\"js-handlebars-root u-padding\""); 9640 9641 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 102144), Tuple.Create("\"", 102192) 9642 9643 #line 2562 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9644 , Tuple.Create(Tuple.Create("", 102149), Tuple.Create<System.Object, System.Int32>(settings.Title.Replace(" ", String.Empty) 9645 9646 #line default 9647 #line hidden 9648 , 102149), false) 9649 ); 9650 9651 WriteLiteralTo(__razor_helper_writer, " data-template=\"RelatedSimpleTemplate\""); 9652 9653 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\"/Default.aspx?ID="); 9654 9655 9656 #line 2562 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9657 WriteTo(__razor_helper_writer, settings.FeedPageId); 9658 9659 9660 #line default 9661 #line hidden 9662 WriteLiteralTo(__razor_helper_writer, "&"); 9663 9664 9665 #line 2562 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9666 WriteTo(__razor_helper_writer, settings.Query); 9667 9668 9669 #line default 9670 #line hidden 9671 WriteLiteralTo(__razor_helper_writer, "&ExcludeItemID="); 9672 9673 9674 #line 2562 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9675 WriteTo(__razor_helper_writer, settings.CurrentPageId); 9676 9677 9678 #line default 9679 #line hidden 9680 WriteLiteralTo(__razor_helper_writer, "&PageSize="); 9681 9682 9683 #line 2562 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9684 WriteTo(__razor_helper_writer, settings.PageSize); 9685 9686 9687 #line default 9688 #line hidden 9689 WriteLiteralTo(__razor_helper_writer, "\""); 9690 9691 WriteLiteralTo(__razor_helper_writer, "></div>\r\n\r\n <script"); 9692 9693 WriteLiteralTo(__razor_helper_writer, " id=\"RelatedSimpleTemplate\""); 9694 9695 WriteLiteralTo(__razor_helper_writer, " type=\"text/x-template\""); 9696 9697 WriteLiteralTo(__razor_helper_writer, @"> 9698 {{#.}} 9699 <div class=""grid u-padding-bottom--lg""> 9700 {{#Cases}} 9701 <div class=""grid__col-lg-3 grid__col-sm-6 image-hover--zoom dw-mod""> 9702 <a href=""{{link}}"" class=""u-full-height u-color-light--bg""> 9703 {{#if image}} 9704 <div class=""u-color-light--bg u-no-padding dw-mod""> 9705 <div class=""flex-img image-hover__wrapper""> 9706 <img class=""b-lazy"" src=""/Files/Images/placeholder.gif"" data-src=""/Admin/Public/GetImage.ashx?width=680&height=314&amp;crop=1&amp;DoNotUpscale=True&amp;Compression=75&amp;image={{image}}"" alt=""{{title}}"" /> 9707 </div> 9708 </div> 9709 {{/if}} 9710 9711 <div class=""card u-color-light--bg dw-mod""> 9712 <h3 class=""article-list__item-header u-truncate-text dw-mod"">{{title}}</h3> 9713 <p class=""article__short-summary dw-mod"">{{summary}}</p> 9714 </div> 9715 </a> 9716 </div> 9717 {{/Cases}} 9718 </div> 9719 {{/.}} 9720 </script> 9721 </div> 9722 </section> 9723 "); 9724 9725 9726 #line 2590 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9727 9728 9729 #line default 9730 #line hidden 9731 }); 9732 9733 #line 2590 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9734 } 9735 #line default 9736 #line hidden 9737 9738 9739 #line 2599 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9740 public RazorEngine.Templating.TemplateWriter RenderArticleMenu(ArticleMenu settings) 9741 { 9742 #line default 9743 #line hidden 9744 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9745 9746 #line 2600 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9747 9748 if (!String.IsNullOrEmpty(settings.Title)) { 9749 9750 9751 #line default 9752 #line hidden 9753 WriteLiteralTo(__razor_helper_writer, " <div"); 9754 9755 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin u-border-bottom\""); 9756 9757 WriteLiteralTo(__razor_helper_writer, ">\r\n <h3"); 9758 9759 WriteLiteralTo(__razor_helper_writer, " class=\"u-no-margin\""); 9760 9761 WriteLiteralTo(__razor_helper_writer, ">"); 9762 9763 9764 #line 2603 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9765 WriteTo(__razor_helper_writer, settings.Title); 9766 9767 9768 #line default 9769 #line hidden 9770 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n </div>\r\n"); 9771 9772 9773 #line 2605 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9774 } 9775 9776 9777 9778 #line default 9779 #line hidden 9780 WriteLiteralTo(__razor_helper_writer, " <ul"); 9781 9782 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left u-margin-bottom dw-mod\""); 9783 9784 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9785 9786 9787 #line 2608 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9788 9789 9790 #line default 9791 #line hidden 9792 9793 #line 2608 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9794 foreach (var item in settings.Items) 9795 { 9796 9797 9798 #line default 9799 #line hidden 9800 9801 #line 2610 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9802 WriteTo(__razor_helper_writer, Render(item)); 9803 9804 9805 #line default 9806 #line hidden 9807 9808 #line 2610 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9809 9810 } 9811 9812 9813 #line default 9814 #line hidden 9815 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 9816 9817 9818 #line 2613 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9819 9820 9821 #line default 9822 #line hidden 9823 }); 9824 9825 #line 2613 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9826 } 9827 #line default 9828 #line hidden 9829 9830 9831 #line 2615 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9832 public RazorEngine.Templating.TemplateWriter RenderArticleMenuItem(ArticleMenuItem settings) 9833 { 9834 #line default 9835 #line hidden 9836 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9837 9838 #line 2616 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9839 9840 string link = !String.IsNullOrEmpty(settings.Link) ? settings.Link : "#"; 9841 9842 if (!String.IsNullOrEmpty(settings.Title)) { 9843 9844 9845 #line default 9846 #line hidden 9847 WriteLiteralTo(__razor_helper_writer, " <li"); 9848 9849 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left__item dw-mod\""); 9850 9851 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 9852 9853 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 104645), Tuple.Create("\"", 104657) 9854 9855 #line 2621 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9856 , Tuple.Create(Tuple.Create("", 104652), Tuple.Create<System.Object, System.Int32>(link 9857 9858 #line default 9859 #line hidden 9860 , 104652), false) 9861 ); 9862 9863 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 104658), Tuple.Create("\"", 104685) 9864 9865 #line 2621 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9866 , Tuple.Create(Tuple.Create("", 104668), Tuple.Create<System.Object, System.Int32>(settings.OnClick 9867 9868 #line default 9869 #line hidden 9870 , 104668), false) 9871 ); 9872 9873 WriteLiteralTo(__razor_helper_writer, " class=\"menu-left__link dw-mod\""); 9874 9875 WriteLiteralTo(__razor_helper_writer, ">"); 9876 9877 9878 #line 2621 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9879 WriteTo(__razor_helper_writer, settings.Title); 9880 9881 9882 #line default 9883 #line hidden 9884 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 9885 9886 9887 #line 2623 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9888 } 9889 9890 9891 #line default 9892 #line hidden 9893 }); 9894 9895 #line 2624 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9896 } 9897 #line default 9898 #line hidden 9899 9900 9901 #line 2632 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9902 public RazorEngine.Templating.TemplateWriter RenderArticleList(ArticleList settings) 9903 { 9904 #line default 9905 #line hidden 9906 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9907 9908 #line 2633 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9909 9910 if (Pageview != null) 9911 { 9912 bool isParagraph = Pageview.CurrentParagraph != null ? true : false; 9913 string[] sortArticlesListBy = new string[2]; 9914 9915 if (isParagraph) { 9916 sortArticlesListBy = Pageview.CurrentParagraph.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString()) ? Pageview.CurrentParagraph.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" }; 9917 } 9918 else { 9919 sortArticlesListBy = Pageview.Item["SortArticlesListBy"] != null && !string.IsNullOrEmpty(Pageview.Item["SortArticlesListBy"].ToString()) ? Pageview.Item["SortArticlesListBy"].ToString().Split('+') : new string[] { "Date", "ASC" }; 9920 } 9921 9922 string sourcePage = settings.SourcePage != null ? settings.SourcePage : Pageview.ID.ToString(); 9923 9924 if (!settings.DisablePagination) { 9925 9926 9927 #line default 9928 #line hidden 9929 9930 #line 2649 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9931 WriteTo(__razor_helper_writer, RenderItemList(new 9932 { 9933 ItemType = !String.IsNullOrEmpty(settings.ItemType) ? settings.ItemType : "DynamicArticle", 9934 ListSourceType = settings.SourceType, 9935 ListSourcePage = sourcePage, 9936 ItemFieldsList = "*", 9937 Filter = settings.Filter, 9938 ListOrderBy = sortArticlesListBy[0], 9939 ListOrderByDirection = sortArticlesListBy[1], 9940 ListSecondOrderBy = sortArticlesListBy[0] == "Date" ? "InFocusSortId" : "Date", 9941 ListSecondOrderByDirection = "ASC", 9942 IncludeAllChildItems = true, 9943 ListTemplate = settings.Template, 9944 ListPageSize = settings.PageSize.ToString() 9945 })); 9946 9947 9948 #line default 9949 #line hidden 9950 9951 #line 2663 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9952 ; 9953 } else { 9954 9955 9956 #line default 9957 #line hidden 9958 9959 #line 2665 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9960 WriteTo(__razor_helper_writer, RenderItemList(new 9961 { 9962 ItemType = !String.IsNullOrEmpty(settings.ItemType) ? settings.ItemType : "DynamicArticle", 9963 ListSourceType = settings.SourceType, 9964 ListSourcePage = sourcePage, 9965 ItemFieldsList = "*", 9966 Filter = settings.Filter, 9967 ListOrderBy = sortArticlesListBy[0], 9968 ListOrderByDirection = sortArticlesListBy[1], 9969 ListSecondOrderBy = sortArticlesListBy[0] == "Date" ? "InFocusSortId" : "Date", 9970 ListSecondOrderByDirection = "ASC", 9971 IncludeAllChildItems = true, 9972 ListTemplate = settings.Template, 9973 ListPageSize = settings.PageSize.ToString(), 9974 ListViewMode = "Partial", 9975 ListShowTo = settings.PageSize + 1 9976 })); 9977 9978 9979 #line default 9980 #line hidden 9981 9982 #line 2681 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9983 ; 9984 } 9985 } 9986 9987 9988 #line default 9989 #line hidden 9990 }); 9991 9992 #line 2684 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9993 } 9994 #line default 9995 #line hidden 9996 9997 9998 #line 2691 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 9999 public RazorEngine.Templating.TemplateWriter RenderArticleSummary(ArticleSummary settings) 10000 { 10001 #line default 10002 #line hidden 10003 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10004 10005 #line 2692 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10006 10007 if (!String.IsNullOrEmpty(settings.Text)) 10008 { 10009 10010 10011 #line default 10012 #line hidden 10013 WriteLiteralTo(__razor_helper_writer, " <div"); 10014 10015 WriteLiteralTo(__razor_helper_writer, " class=\"article__summary dw-mod\""); 10016 10017 WriteLiteralTo(__razor_helper_writer, ">"); 10018 10019 10020 #line 2695 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10021 WriteTo(__razor_helper_writer, settings.Text); 10022 10023 10024 #line default 10025 #line hidden 10026 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10027 10028 10029 #line 2696 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10030 } 10031 10032 10033 #line default 10034 #line hidden 10035 }); 10036 10037 #line 2697 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10038 } 10039 #line default 10040 #line hidden 10041 10042 10043 #line 2705 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10044 public RazorEngine.Templating.TemplateWriter RenderArticleListCategoryFilter(ArticleListCategoryFilter settings) 10045 { 10046 #line default 10047 #line hidden 10048 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10049 10050 #line 2706 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10051 10052 string pageId = Pageview.ID.ToString(); 10053 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("sourcePage")) ? HttpContext.Current.Request.QueryString.Get("sourcePage") : Translate("All"); 10054 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString()); 10055 10056 foreach (var option in settings.Categories) 10057 { 10058 selectedFilter = selectedFilter == option.Value ? option.Key : selectedFilter; 10059 } 10060 10061 if (selectedFilter == pageId) 10062 { 10063 selectedFilter = Translate("All"); 10064 } 10065 10066 if (Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet") 10067 { 10068 10069 10070 #line default 10071 #line hidden 10072 WriteLiteralTo(__razor_helper_writer, " <div"); 10073 10074 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right u-margin-left\""); 10075 10076 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10077 10078 WriteLiteralTo(__razor_helper_writer, " class=\"collection u-no-margin\""); 10079 10080 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5>"); 10081 10082 10083 #line 2725 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10084 WriteTo(__razor_helper_writer, Translate("Category")); 10085 10086 10087 #line default 10088 #line hidden 10089 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n <input"); 10090 10091 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 10092 10093 WriteLiteralTo(__razor_helper_writer, " id=\"CategorySelector\""); 10094 10095 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger\""); 10096 10097 WriteLiteralTo(__razor_helper_writer, " />\r\n <div"); 10098 10099 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown u-w180px dw-mod\""); 10100 10101 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 10102 10103 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__header dropdown__btn dw-mod\""); 10104 10105 WriteLiteralTo(__razor_helper_writer, " for=\"CategorySelector\""); 10106 10107 WriteLiteralTo(__razor_helper_writer, ">"); 10108 10109 10110 #line 2728 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10111 WriteTo(__razor_helper_writer, Translate(selectedFilter)); 10112 10113 10114 #line default 10115 #line hidden 10116 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 10117 10118 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__content dw-mod\""); 10119 10120 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10121 10122 10123 #line 2730 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10124 10125 10126 #line default 10127 #line hidden 10128 10129 #line 2730 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10130 foreach (var option in settings.Categories) 10131 { 10132 10133 10134 #line default 10135 #line hidden 10136 WriteLiteralTo(__razor_helper_writer, " <div"); 10137 10138 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__item\""); 10139 10140 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 109539), Tuple.Create("\"", 109681) 10141 , Tuple.Create(Tuple.Create("", 109549), Tuple.Create("QueryArray.setParametersInCurrentURL({", 109549), true) 10142 , Tuple.Create(Tuple.Create(" ", 109587), Tuple.Create("sourceType:", 109588), true) 10143 , Tuple.Create(Tuple.Create(" ", 109599), Tuple.Create("\'Page\',", 109600), true) 10144 , Tuple.Create(Tuple.Create(" ", 109607), Tuple.Create("sourcePage:", 109608), true) 10145 , Tuple.Create(Tuple.Create(" ", 109619), Tuple.Create("\'", 109620), true) 10146 10147 #line 2732 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10148 , Tuple.Create(Tuple.Create("", 109621), Tuple.Create<System.Object, System.Int32>(option.Key.ToLower() == "all" ? pageId : option.Value 10149 10150 #line default 10151 #line hidden 10152 , 109621), false) 10153 , Tuple.Create(Tuple.Create("", 109677), Tuple.Create("\'", 109677), true) 10154 , Tuple.Create(Tuple.Create(" ", 109678), Tuple.Create("})", 109679), true) 10155 ); 10156 10157 WriteLiteralTo(__razor_helper_writer, ">"); 10158 10159 10160 #line 2732 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10161 WriteTo(__razor_helper_writer, Translate(option.Key)); 10162 10163 10164 #line default 10165 #line hidden 10166 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10167 10168 10169 #line 2733 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10170 } 10171 10172 10173 #line default 10174 #line hidden 10175 WriteLiteralTo(__razor_helper_writer, " </div>\r\n <label"); 10176 10177 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger-off\""); 10178 10179 WriteLiteralTo(__razor_helper_writer, " for=\"CategorySelector\""); 10180 10181 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n </div>\r\n"); 10182 10183 10184 #line 2739 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10185 } 10186 else 10187 { 10188 10189 10190 #line default 10191 #line hidden 10192 WriteLiteralTo(__razor_helper_writer, " <div"); 10193 10194 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-margin-bottom\""); 10195 10196 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5"); 10197 10198 WriteLiteralTo(__razor_helper_writer, " class=\"u-no-margin\""); 10199 10200 WriteLiteralTo(__razor_helper_writer, ">"); 10201 10202 10203 #line 2743 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10204 WriteTo(__razor_helper_writer, Translate("Category")); 10205 10206 10207 #line default 10208 #line hidden 10209 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n <input"); 10210 10211 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 10212 10213 WriteLiteralTo(__razor_helper_writer, " id=\"CategorySelector\""); 10214 10215 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger\""); 10216 10217 WriteLiteralTo(__razor_helper_writer, " />\r\n <div"); 10218 10219 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown u-full-width dw-mod\""); 10220 10221 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 10222 10223 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__header dropdown__btn dw-mod\""); 10224 10225 WriteLiteralTo(__razor_helper_writer, " for=\"CategorySelector\""); 10226 10227 WriteLiteralTo(__razor_helper_writer, ">"); 10228 10229 10230 #line 2746 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10231 WriteTo(__razor_helper_writer, Translate(selectedFilter)); 10232 10233 10234 #line default 10235 #line hidden 10236 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 10237 10238 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__content dw-mod\""); 10239 10240 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10241 10242 10243 #line 2748 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10244 10245 10246 #line default 10247 #line hidden 10248 10249 #line 2748 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10250 foreach (var option in settings.Categories) 10251 { 10252 10253 10254 #line default 10255 #line hidden 10256 WriteLiteralTo(__razor_helper_writer, " <div"); 10257 10258 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__item\""); 10259 10260 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 110520), Tuple.Create("\"", 110662) 10261 , Tuple.Create(Tuple.Create("", 110530), Tuple.Create("QueryArray.setParametersInCurrentURL({", 110530), true) 10262 , Tuple.Create(Tuple.Create(" ", 110568), Tuple.Create("sourceType:", 110569), true) 10263 , Tuple.Create(Tuple.Create(" ", 110580), Tuple.Create("\'Page\',", 110581), true) 10264 , Tuple.Create(Tuple.Create(" ", 110588), Tuple.Create("sourcePage:", 110589), true) 10265 , Tuple.Create(Tuple.Create(" ", 110600), Tuple.Create("\'", 110601), true) 10266 10267 #line 2750 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10268 , Tuple.Create(Tuple.Create("", 110602), Tuple.Create<System.Object, System.Int32>(option.Key.ToLower() == "all" ? pageId : option.Value 10269 10270 #line default 10271 #line hidden 10272 , 110602), false) 10273 , Tuple.Create(Tuple.Create("", 110658), Tuple.Create("\'", 110658), true) 10274 , Tuple.Create(Tuple.Create(" ", 110659), Tuple.Create("})", 110660), true) 10275 ); 10276 10277 WriteLiteralTo(__razor_helper_writer, ">"); 10278 10279 10280 #line 2750 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10281 WriteTo(__razor_helper_writer, Translate(option.Key)); 10282 10283 10284 #line default 10285 #line hidden 10286 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10287 10288 10289 #line 2751 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10290 } 10291 10292 10293 #line default 10294 #line hidden 10295 WriteLiteralTo(__razor_helper_writer, " </div>\r\n <label"); 10296 10297 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger-off\""); 10298 10299 WriteLiteralTo(__razor_helper_writer, " for=\"CategorySelector\""); 10300 10301 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n"); 10302 10303 10304 #line 2756 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10305 } 10306 10307 10308 #line default 10309 #line hidden 10310 }); 10311 10312 #line 2757 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10313 } 10314 #line default 10315 #line hidden 10316 10317 10318 #line 2766 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10319 public RazorEngine.Templating.TemplateWriter RenderArticleListFilter(ArticleListFilter settings) 10320 { 10321 #line default 10322 #line hidden 10323 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10324 10325 #line 2767 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10326 10327 string selectedFilter = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get(settings.SystemName)) ? HttpContext.Current.Request.QueryString.Get(settings.SystemName) : Translate("All"); 10328 var query = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString()); 10329 10330 if (settings.Options != null) 10331 { 10332 if (settings.Options is IEnumerable<dynamic>) 10333 { 10334 var options = (IEnumerable<dynamic>) settings.Options; 10335 settings.Options = options.OrderBy(item => item.Name); 10336 } 10337 10338 foreach (var option in settings.Options) 10339 { 10340 selectedFilter = selectedFilter == option.Value ? option.Name : selectedFilter; 10341 } 10342 10343 if (Pageview.Device.ToString() != "Mobile" && Pageview.Device.ToString() != "Tablet") 10344 { 10345 10346 10347 #line default 10348 #line hidden 10349 WriteLiteralTo(__razor_helper_writer, " <div"); 10350 10351 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right u-margin-left\""); 10352 10353 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10354 10355 WriteLiteralTo(__razor_helper_writer, " class=\"collection u-no-margin\""); 10356 10357 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5>"); 10358 10359 10360 #line 2788 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10361 WriteTo(__razor_helper_writer, settings.Label); 10362 10363 10364 #line default 10365 #line hidden 10366 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n <input"); 10367 10368 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 10369 10370 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 112197), Tuple.Create("\"", 112232) 10371 10372 #line 2789 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10373 , Tuple.Create(Tuple.Create("", 112202), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10374 10375 #line default 10376 #line hidden 10377 , 112202), false) 10378 , Tuple.Create(Tuple.Create("", 112224), Tuple.Create("Selector", 112224), true) 10379 ); 10380 10381 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger\""); 10382 10383 WriteLiteralTo(__razor_helper_writer, " />\r\n <div"); 10384 10385 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown u-w180px dw-mod\""); 10386 10387 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 10388 10389 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__header dropdown__btn dw-mod\""); 10390 10391 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 112399), Tuple.Create("\"", 112435) 10392 10393 #line 2791 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10394 , Tuple.Create(Tuple.Create("", 112405), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10395 10396 #line default 10397 #line hidden 10398 , 112405), false) 10399 , Tuple.Create(Tuple.Create("", 112427), Tuple.Create("Selector", 112427), true) 10400 ); 10401 10402 WriteLiteralTo(__razor_helper_writer, ">"); 10403 10404 10405 #line 2791 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10406 WriteTo(__razor_helper_writer, Translate(selectedFilter)); 10407 10408 10409 #line default 10410 #line hidden 10411 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 10412 10413 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__content dw-mod\""); 10414 10415 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10416 10417 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__item\""); 10418 10419 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 112592), Tuple.Create("\"", 112665) 10420 , Tuple.Create(Tuple.Create("", 112602), Tuple.Create("QueryArray.setParameterInCurrentURL(\'", 112602), true) 10421 10422 #line 2793 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10423 , Tuple.Create(Tuple.Create("", 112639), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10424 10425 #line default 10426 #line hidden 10427 , 112639), false) 10428 , Tuple.Create(Tuple.Create("", 112659), Tuple.Create("\',", 112659), true) 10429 , Tuple.Create(Tuple.Create(" ", 112661), Tuple.Create("\'\')", 112662), true) 10430 ); 10431 10432 WriteLiteralTo(__razor_helper_writer, ">"); 10433 10434 10435 #line 2793 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10436 WriteTo(__razor_helper_writer, Translate("All")); 10437 10438 10439 #line default 10440 #line hidden 10441 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10442 10443 10444 #line 2794 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10445 10446 10447 #line default 10448 #line hidden 10449 10450 #line 2794 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10451 foreach (var option in settings.Options) 10452 { 10453 10454 10455 #line default 10456 #line hidden 10457 WriteLiteralTo(__razor_helper_writer, " <div"); 10458 10459 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__item\""); 10460 10461 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 112833), Tuple.Create("\"", 112919) 10462 , Tuple.Create(Tuple.Create("", 112843), Tuple.Create("QueryArray.setParameterInCurrentURL(\'", 112843), true) 10463 10464 #line 2796 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10465 , Tuple.Create(Tuple.Create("", 112880), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10466 10467 #line default 10468 #line hidden 10469 , 112880), false) 10470 , Tuple.Create(Tuple.Create("", 112900), Tuple.Create("\',", 112900), true) 10471 , Tuple.Create(Tuple.Create(" ", 112902), Tuple.Create("\'", 112903), true) 10472 10473 #line 2796 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10474 , Tuple.Create(Tuple.Create("", 112904), Tuple.Create<System.Object, System.Int32>(option.Value 10475 10476 #line default 10477 #line hidden 10478 , 112904), false) 10479 , Tuple.Create(Tuple.Create("", 112917), Tuple.Create("\')", 112917), true) 10480 ); 10481 10482 WriteLiteralTo(__razor_helper_writer, ">"); 10483 10484 10485 #line 2796 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10486 WriteTo(__razor_helper_writer, Translate(option.Name)); 10487 10488 10489 #line default 10490 #line hidden 10491 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10492 10493 10494 #line 2797 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10495 } 10496 10497 10498 #line default 10499 #line hidden 10500 WriteLiteralTo(__razor_helper_writer, " </div>\r\n <label"); 10501 10502 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger-off\""); 10503 10504 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 113074), Tuple.Create("\"", 113110) 10505 10506 #line 2799 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10507 , Tuple.Create(Tuple.Create("", 113080), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10508 10509 #line default 10510 #line hidden 10511 , 113080), false) 10512 , Tuple.Create(Tuple.Create("", 113102), Tuple.Create("Selector", 113102), true) 10513 ); 10514 10515 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n </div>" + 10516 "\r\n"); 10517 10518 10519 #line 2803 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10520 } 10521 else 10522 { 10523 10524 10525 #line default 10526 #line hidden 10527 WriteLiteralTo(__razor_helper_writer, " <div"); 10528 10529 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-margin-bottom\""); 10530 10531 WriteLiteralTo(__razor_helper_writer, ">\r\n <h5"); 10532 10533 WriteLiteralTo(__razor_helper_writer, " class=\"u-no-margin\""); 10534 10535 WriteLiteralTo(__razor_helper_writer, ">"); 10536 10537 10538 #line 2807 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10539 WriteTo(__razor_helper_writer, settings.Label); 10540 10541 10542 #line default 10543 #line hidden 10544 WriteLiteralTo(__razor_helper_writer, "</h5>\r\n <input"); 10545 10546 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 10547 10548 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 113386), Tuple.Create("\"", 113421) 10549 10550 #line 2808 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10551 , Tuple.Create(Tuple.Create("", 113391), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10552 10553 #line default 10554 #line hidden 10555 , 113391), false) 10556 , Tuple.Create(Tuple.Create("", 113413), Tuple.Create("Selector", 113413), true) 10557 ); 10558 10559 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger\""); 10560 10561 WriteLiteralTo(__razor_helper_writer, " />\r\n <div"); 10562 10563 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown u-full-width w-mod\""); 10564 10565 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 10566 10567 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__header dropdown__btn dw-mod\""); 10568 10569 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 113583), Tuple.Create("\"", 113619) 10570 10571 #line 2810 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10572 , Tuple.Create(Tuple.Create("", 113589), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10573 10574 #line default 10575 #line hidden 10576 , 113589), false) 10577 , Tuple.Create(Tuple.Create("", 113611), Tuple.Create("Selector", 113611), true) 10578 ); 10579 10580 WriteLiteralTo(__razor_helper_writer, ">"); 10581 10582 10583 #line 2810 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10584 WriteTo(__razor_helper_writer, Translate(selectedFilter)); 10585 10586 10587 #line default 10588 #line hidden 10589 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 10590 10591 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__content dw-mod\""); 10592 10593 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10594 10595 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__item\""); 10596 10597 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 113768), Tuple.Create("\"", 113841) 10598 , Tuple.Create(Tuple.Create("", 113778), Tuple.Create("QueryArray.setParameterInCurrentURL(\'", 113778), true) 10599 10600 #line 2812 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10601 , Tuple.Create(Tuple.Create("", 113815), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10602 10603 #line default 10604 #line hidden 10605 , 113815), false) 10606 , Tuple.Create(Tuple.Create("", 113835), Tuple.Create("\',", 113835), true) 10607 , Tuple.Create(Tuple.Create(" ", 113837), Tuple.Create("\'\')", 113838), true) 10608 ); 10609 10610 WriteLiteralTo(__razor_helper_writer, ">"); 10611 10612 10613 #line 2812 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10614 WriteTo(__razor_helper_writer, Translate("All")); 10615 10616 10617 #line default 10618 #line hidden 10619 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10620 10621 10622 #line 2813 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10623 10624 10625 #line default 10626 #line hidden 10627 10628 #line 2813 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10629 foreach (var option in settings.Options) 10630 { 10631 10632 10633 #line default 10634 #line hidden 10635 WriteLiteralTo(__razor_helper_writer, " <div"); 10636 10637 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__item\""); 10638 10639 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 113993), Tuple.Create("\"", 114079) 10640 , Tuple.Create(Tuple.Create("", 114003), Tuple.Create("QueryArray.setParameterInCurrentURL(\'", 114003), true) 10641 10642 #line 2815 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10643 , Tuple.Create(Tuple.Create("", 114040), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10644 10645 #line default 10646 #line hidden 10647 , 114040), false) 10648 , Tuple.Create(Tuple.Create("", 114060), Tuple.Create("\',", 114060), true) 10649 , Tuple.Create(Tuple.Create(" ", 114062), Tuple.Create("\'", 114063), true) 10650 10651 #line 2815 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10652 , Tuple.Create(Tuple.Create("", 114064), Tuple.Create<System.Object, System.Int32>(option.Value 10653 10654 #line default 10655 #line hidden 10656 , 114064), false) 10657 , Tuple.Create(Tuple.Create("", 114077), Tuple.Create("\')", 114077), true) 10658 ); 10659 10660 WriteLiteralTo(__razor_helper_writer, ">"); 10661 10662 10663 #line 2815 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10664 WriteTo(__razor_helper_writer, Translate(option.Name)); 10665 10666 10667 #line default 10668 #line hidden 10669 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10670 10671 10672 #line 2816 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10673 } 10674 10675 10676 #line default 10677 #line hidden 10678 WriteLiteralTo(__razor_helper_writer, " </div>\r\n <label"); 10679 10680 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger-off\""); 10681 10682 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 114222), Tuple.Create("\"", 114258) 10683 10684 #line 2818 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10685 , Tuple.Create(Tuple.Create("", 114228), Tuple.Create<System.Object, System.Int32>(settings.SystemName 10686 10687 #line default 10688 #line hidden 10689 , 114228), false) 10690 , Tuple.Create(Tuple.Create("", 114250), Tuple.Create("Selector", 114250), true) 10691 ); 10692 10693 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n"); 10694 10695 10696 #line 2821 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10697 } 10698 } 10699 10700 10701 #line default 10702 #line hidden 10703 }); 10704 10705 #line 2823 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10706 } 10707 #line default 10708 #line hidden 10709 10710 10711 #line 2831 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10712 public RazorEngine.Templating.TemplateWriter RenderArticleListSearch(ArticleListSearch settings) 10713 { 10714 #line default 10715 #line hidden 10716 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10717 10718 #line 2832 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10719 10720 string searchParameter = !string.IsNullOrEmpty(settings.SearchParameter) ? settings.SearchParameter : "Title"; 10721 string searchWord = HttpContext.Current.Request.QueryString.Get(searchParameter); 10722 string searchString = !string.IsNullOrEmpty(searchWord) ? searchWord.Trim('*') : ""; 10723 string className = "u-w340px u-pull--right u-margin-left"; 10724 10725 if (Pageview.Device.ToString() == "Mobile" || Pageview.Device.ToString() == "Tablet") 10726 { 10727 className = "u-full-width"; 10728 } 10729 10730 10731 10732 #line default 10733 #line hidden 10734 WriteLiteralTo(__razor_helper_writer, " <div"); 10735 10736 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 115108), Tuple.Create("\"", 115175) 10737 , Tuple.Create(Tuple.Create("", 115116), Tuple.Create("typeahead", 115116), true) 10738 , Tuple.Create(Tuple.Create(" ", 115125), Tuple.Create("u-color-inherit", 115126), true) 10739 , Tuple.Create(Tuple.Create(" ", 115141), Tuple.Create("u-margin-bottom", 115142), true) 10740 , Tuple.Create(Tuple.Create(" ", 115157), Tuple.Create("dw-mod", 115158), true) 10741 10742 #line 2843 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10743 , Tuple.Create(Tuple.Create(" ", 115164), Tuple.Create<System.Object, System.Int32>(className 10744 10745 #line default 10746 #line hidden 10747 , 115165), false) 10748 ); 10749 10750 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 10751 10752 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 10753 10754 WriteLiteralTo(__razor_helper_writer, " class=\"typeahead-search-field u-no-margin dw-mod\""); 10755 10756 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 115255), Tuple.Create("\"", 115297) 10757 10758 #line 2844 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10759 , Tuple.Create(Tuple.Create("", 115269), Tuple.Create<System.Object, System.Int32>(Translate("Search in list") 10760 10761 #line default 10762 #line hidden 10763 , 115269), false) 10764 ); 10765 10766 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 115298), Tuple.Create("\"", 115319) 10767 10768 #line 2844 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10769 , Tuple.Create(Tuple.Create("", 115306), Tuple.Create<System.Object, System.Int32>(searchString 10770 10771 #line default 10772 #line hidden 10773 , 115306), false) 10774 ); 10775 10776 WriteLiteralTo(__razor_helper_writer, " id=\"ArticleListSearchInput\""); 10777 10778 WriteAttributeTo(__razor_helper_writer, "onchange", Tuple.Create(" onchange=\"", 115348), Tuple.Create("\"", 115483) 10779 , Tuple.Create(Tuple.Create("", 115359), Tuple.Create("QueryArray.setParameterInCurrentURL(\'", 115359), true) 10780 10781 #line 2844 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10782 , Tuple.Create(Tuple.Create("", 115396), Tuple.Create<System.Object, System.Int32>(searchParameter 10783 10784 #line default 10785 #line hidden 10786 , 115396), false) 10787 , Tuple.Create(Tuple.Create("", 115412), Tuple.Create("\',", 115412), true) 10788 , Tuple.Create(Tuple.Create(" ", 115414), Tuple.Create("\'*\'", 115415), true) 10789 , Tuple.Create(Tuple.Create(" ", 115418), Tuple.Create("+", 115419), true) 10790 , Tuple.Create(Tuple.Create(" ", 115420), Tuple.Create("document.getElementById(\'ArticleListSearchInput\').value", 115421), true) 10791 , Tuple.Create(Tuple.Create(" ", 115476), Tuple.Create("+", 115477), true) 10792 , Tuple.Create(Tuple.Create(" ", 115478), Tuple.Create("\'*\')", 115479), true) 10793 ); 10794 10795 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 10796 10797 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 10798 10799 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn--condensed btn--primary u-no-margin dw-mod\""); 10800 10801 WriteLiteralTo(__razor_helper_writer, "><i"); 10802 10803 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-search\""); 10804 10805 WriteLiteralTo(__razor_helper_writer, "></i></button>\r\n </div>\r\n"); 10806 10807 10808 #line 2847 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10809 10810 10811 #line default 10812 #line hidden 10813 }); 10814 10815 #line 2847 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10816 } 10817 #line default 10818 #line hidden 10819 10820 10821 #line 2855 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10822 public RazorEngine.Templating.TemplateWriter RenderArticleListNoResultsInfo(ArticleListNoResultsInfo settings) 10823 { 10824 #line default 10825 #line hidden 10826 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10827 10828 #line 2856 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10829 10830 10831 10832 #line default 10833 #line hidden 10834 WriteLiteralTo(__razor_helper_writer, " <div"); 10835 10836 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-top--lg u-bold u-ta-center u-bold\""); 10837 10838 WriteLiteralTo(__razor_helper_writer, ">"); 10839 10840 10841 #line 2857 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10842 WriteTo(__razor_helper_writer, Translate(settings.Message)); 10843 10844 10845 #line default 10846 #line hidden 10847 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10848 10849 10850 #line 2858 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10851 10852 10853 #line default 10854 #line hidden 10855 }); 10856 10857 #line 2858 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10858 } 10859 #line default 10860 #line hidden 10861 10862 10863 #line 2868 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10864 public RazorEngine.Templating.TemplateWriter RenderArticleListItem(ArticleListItem settings) 10865 { 10866 #line default 10867 #line hidden 10868 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10869 10870 #line 2869 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10871 10872 switch (settings.Type) { 10873 case ArticleListItemType.Card: 10874 10875 10876 #line default 10877 #line hidden 10878 10879 #line 2872 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10880 WriteTo(__razor_helper_writer, RenderArticleListItemCard(settings)); 10881 10882 10883 #line default 10884 #line hidden 10885 10886 #line 2872 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10887 ; 10888 break; 10889 case ArticleListItemType.List: 10890 10891 10892 #line default 10893 #line hidden 10894 10895 #line 2875 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10896 WriteTo(__razor_helper_writer, RenderArticleListItemList(settings)); 10897 10898 10899 #line default 10900 #line hidden 10901 10902 #line 2875 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10903 ; 10904 break; 10905 case ArticleListItemType.Simple: 10906 10907 10908 #line default 10909 #line hidden 10910 10911 #line 2878 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10912 WriteTo(__razor_helper_writer, RenderArticleListItemSimple(settings)); 10913 10914 10915 #line default 10916 #line hidden 10917 10918 #line 2878 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10919 ; 10920 break; 10921 default: 10922 10923 10924 #line default 10925 #line hidden 10926 10927 #line 2881 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10928 WriteTo(__razor_helper_writer, RenderArticleListItemCard(settings)); 10929 10930 10931 #line default 10932 #line hidden 10933 10934 #line 2881 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10935 ; 10936 break; 10937 } 10938 10939 10940 #line default 10941 #line hidden 10942 }); 10943 10944 #line 2884 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10945 } 10946 #line default 10947 #line hidden 10948 10949 10950 #line 2886 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10951 public RazorEngine.Templating.TemplateWriter RenderArticleListItemCard(ArticleListItem settings) { 10952 #line default 10953 #line hidden 10954 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10955 10956 #line 2886 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10957 10958 10959 10960 #line default 10961 #line hidden 10962 WriteLiteralTo(__razor_helper_writer, " <a"); 10963 10964 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 116880), Tuple.Create("\"", 116901) 10965 10966 #line 2887 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10967 , Tuple.Create(Tuple.Create("", 116887), Tuple.Create<System.Object, System.Int32>(settings.Link 10968 10969 #line default 10970 #line hidden 10971 , 116887), false) 10972 ); 10973 10974 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-height u-color-light--bg\""); 10975 10976 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10977 10978 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-light--bg u-no-padding dw-mod\""); 10979 10980 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10981 10982 10983 #line 2889 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10984 10985 10986 #line default 10987 #line hidden 10988 10989 #line 2889 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 10990 if (settings.Logo != null) 10991 { 10992 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=True&amp;image=" + settings.Image.Path + "); background-size: cover;" : ""; 10993 settings.Logo.ImageDefault.Crop = 5; 10994 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width; 10995 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height; 10996 10997 10998 #line default 10999 #line hidden 11000 WriteLiteralTo(__razor_helper_writer, " <div"); 11001 11002 WriteLiteralTo(__razor_helper_writer, " class=\"image-hover__wrapper layered-image layered-image--tinted dw-mod\""); 11003 11004 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 117746), Tuple.Create("\"", 117770) 11005 11006 #line 2895 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11007 , Tuple.Create(Tuple.Create("", 117754), Tuple.Create<System.Object, System.Int32>(backgroundImage 11008 11009 #line default 11010 #line hidden 11011 , 117754), false) 11012 ); 11013 11014 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11015 11016 11017 #line 2896 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11018 11019 11020 #line default 11021 #line hidden 11022 11023 #line 2896 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11024 if (settings.Stickers != null) 11025 { 11026 if (settings.Stickers.Position != StickersListPosition.Custom) 11027 { 11028 11029 11030 #line default 11031 #line hidden 11032 11033 #line 2900 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11034 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 11035 11036 11037 #line default 11038 #line hidden 11039 11040 #line 2900 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11041 ; 11042 } 11043 } 11044 11045 11046 #line default 11047 #line hidden 11048 WriteLiteralTo(__razor_helper_writer, " "); 11049 11050 11051 #line 2903 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11052 WriteTo(__razor_helper_writer, RenderImage(settings.Logo)); 11053 11054 11055 #line default 11056 #line hidden 11057 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 11058 11059 11060 #line 2905 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11061 } else if (settings.Image != null) 11062 { 11063 11064 11065 #line default 11066 #line hidden 11067 WriteLiteralTo(__razor_helper_writer, " <div"); 11068 11069 WriteLiteralTo(__razor_helper_writer, " class=\"flex-img image-hover__wrapper u-position-relative dw-mod\""); 11070 11071 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11072 11073 11074 #line 2908 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11075 11076 11077 #line default 11078 #line hidden 11079 11080 #line 2908 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11081 if (settings.Stickers != null) 11082 { 11083 if (settings.Stickers.Position != StickersListPosition.Custom) 11084 { 11085 11086 11087 #line default 11088 #line hidden 11089 11090 #line 2912 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11091 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 11092 11093 11094 #line default 11095 #line hidden 11096 11097 #line 2912 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11098 ; 11099 } 11100 } 11101 11102 11103 #line default 11104 #line hidden 11105 WriteLiteralTo(__razor_helper_writer, " "); 11106 11107 11108 #line 2915 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11109 WriteTo(__razor_helper_writer, Render(settings.Image)); 11110 11111 11112 #line default 11113 #line hidden 11114 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 11115 11116 11117 #line 2917 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11118 } 11119 11120 11121 #line default 11122 #line hidden 11123 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 11124 11125 11126 #line 2920 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11127 11128 11129 #line default 11130 #line hidden 11131 11132 #line 2920 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11133 if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary)) 11134 { 11135 11136 11137 #line default 11138 #line hidden 11139 WriteLiteralTo(__razor_helper_writer, " <div"); 11140 11141 WriteLiteralTo(__razor_helper_writer, " class=\"card u-color-light--bg dw-mod\""); 11142 11143 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11144 11145 11146 #line 2923 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11147 11148 11149 #line default 11150 #line hidden 11151 11152 #line 2923 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11153 if (settings.Stickers != null) 11154 { 11155 if (settings.Stickers.Position == StickersListPosition.Custom) 11156 { 11157 11158 11159 #line default 11160 #line hidden 11161 11162 #line 2927 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11163 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 11164 11165 11166 #line default 11167 #line hidden 11168 11169 #line 2927 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11170 ; 11171 } 11172 } 11173 11174 11175 #line default 11176 #line hidden 11177 WriteLiteralTo(__razor_helper_writer, " "); 11178 11179 11180 #line 2930 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11181 if (!String.IsNullOrEmpty(settings.Title)) 11182 { 11183 11184 11185 #line default 11186 #line hidden 11187 WriteLiteralTo(__razor_helper_writer, " <h3"); 11188 11189 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-header u-truncate-text dw-mod\""); 11190 11191 WriteLiteralTo(__razor_helper_writer, ">"); 11192 11193 11194 #line 2932 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11195 WriteTo(__razor_helper_writer, settings.Title); 11196 11197 11198 #line default 11199 #line hidden 11200 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n"); 11201 11202 11203 #line 2933 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11204 } 11205 11206 11207 #line default 11208 #line hidden 11209 WriteLiteralTo(__razor_helper_writer, " "); 11210 11211 11212 #line 2934 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11213 if (!String.IsNullOrEmpty(settings.SubTitle)) 11214 { 11215 11216 11217 #line default 11218 #line hidden 11219 WriteLiteralTo(__razor_helper_writer, " <div"); 11220 11221 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-micro-info u-truncate-text dw-mod\""); 11222 11223 WriteLiteralTo(__razor_helper_writer, ">"); 11224 11225 11226 #line 2936 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11227 WriteTo(__razor_helper_writer, settings.SubTitle); 11228 11229 11230 #line default 11231 #line hidden 11232 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11233 11234 11235 #line 2937 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11236 } 11237 11238 11239 #line default 11240 #line hidden 11241 WriteLiteralTo(__razor_helper_writer, " "); 11242 11243 11244 #line 2938 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11245 if (!String.IsNullOrEmpty(settings.Summary)) 11246 { 11247 11248 11249 #line default 11250 #line hidden 11251 WriteLiteralTo(__razor_helper_writer, " <p"); 11252 11253 WriteLiteralTo(__razor_helper_writer, " class=\"article__short-summary dw-mod\""); 11254 11255 WriteLiteralTo(__razor_helper_writer, ">"); 11256 11257 11258 #line 2940 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11259 WriteTo(__razor_helper_writer, settings.Summary); 11260 11261 11262 #line default 11263 #line hidden 11264 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 11265 11266 11267 #line 2941 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11268 } 11269 11270 11271 #line default 11272 #line hidden 11273 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 11274 11275 11276 #line 2943 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11277 } 11278 11279 11280 #line default 11281 #line hidden 11282 WriteLiteralTo(__razor_helper_writer, " </a>\r\n"); 11283 11284 11285 #line 2945 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11286 11287 11288 #line default 11289 #line hidden 11290 }); 11291 11292 #line 2945 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11293 } 11294 #line default 11295 #line hidden 11296 11297 11298 #line 2947 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11299 public RazorEngine.Templating.TemplateWriter RenderArticleListItemList(ArticleListItem settings) { 11300 #line default 11301 #line hidden 11302 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11303 11304 #line 2947 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11305 11306 11307 11308 #line default 11309 #line hidden 11310 WriteLiteralTo(__razor_helper_writer, " <a"); 11311 11312 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 119959), Tuple.Create("\"", 119980) 11313 11314 #line 2948 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11315 , Tuple.Create(Tuple.Create("", 119966), Tuple.Create<System.Object, System.Int32>(settings.Link 11316 11317 #line default 11318 #line hidden 11319 , 119966), false) 11320 ); 11321 11322 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11323 11324 WriteLiteralTo(__razor_helper_writer, " class=\"grid u-color-light--bg u-no-padding dw-mod\""); 11325 11326 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11327 11328 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-3\""); 11329 11330 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11331 11332 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-light--bg u-no-padding dw-mod\""); 11333 11334 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11335 11336 11337 #line 2952 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11338 11339 11340 #line default 11341 #line hidden 11342 11343 #line 2952 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11344 if (settings.Logo != null) 11345 { 11346 string backgroundImage = settings.Image != null ? "background-image:url(/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Compression=75&amp;DoNotUpscale=True&amp;image=" + settings.Image.Path + "); background-size: cover;" : ""; 11347 settings.Logo.ImageDefault.Crop = 5; 11348 settings.Logo.ImageDefault.Width = settings.Logo.ImageDefault.Width == 1920 ? 240 : settings.Logo.ImageDefault.Width; 11349 settings.Logo.ImageDefault.Height = settings.Logo.ImageDefault.Height == 1080 ? 200 : settings.Logo.ImageDefault.Height; 11350 11351 11352 #line default 11353 #line hidden 11354 WriteLiteralTo(__razor_helper_writer, " <div"); 11355 11356 WriteLiteralTo(__razor_helper_writer, " class=\"image-hover__wrapper layered-image layered-image--tinted dw-mod\""); 11357 11358 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 120957), Tuple.Create("\"", 120981) 11359 11360 #line 2958 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11361 , Tuple.Create(Tuple.Create("", 120965), Tuple.Create<System.Object, System.Int32>(backgroundImage 11362 11363 #line default 11364 #line hidden 11365 , 120965), false) 11366 ); 11367 11368 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11369 11370 11371 #line 2959 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11372 11373 11374 #line default 11375 #line hidden 11376 11377 #line 2959 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11378 if (settings.Stickers != null) 11379 { 11380 if (settings.Stickers.Position != StickersListPosition.Custom) 11381 { 11382 11383 11384 #line default 11385 #line hidden 11386 11387 #line 2963 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11388 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 11389 11390 11391 #line default 11392 #line hidden 11393 11394 #line 2963 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11395 ; 11396 } 11397 } 11398 11399 11400 #line default 11401 #line hidden 11402 WriteLiteralTo(__razor_helper_writer, " "); 11403 11404 11405 #line 2966 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11406 WriteTo(__razor_helper_writer, RenderImage(settings.Logo)); 11407 11408 11409 #line default 11410 #line hidden 11411 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 11412 11413 11414 #line 2968 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11415 } else if (settings.Image != null) 11416 { 11417 11418 11419 #line default 11420 #line hidden 11421 WriteLiteralTo(__razor_helper_writer, " <div"); 11422 11423 WriteLiteralTo(__razor_helper_writer, " class=\"flex-img image-hover__wrapper dw-mod\""); 11424 11425 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11426 11427 11428 #line 2971 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11429 11430 11431 #line default 11432 #line hidden 11433 11434 #line 2971 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11435 if (settings.Stickers != null) 11436 { 11437 if (settings.Stickers.Position != StickersListPosition.Custom) 11438 { 11439 11440 11441 #line default 11442 #line hidden 11443 11444 #line 2975 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11445 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 11446 11447 11448 #line default 11449 #line hidden 11450 11451 #line 2975 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11452 ; 11453 } 11454 } 11455 11456 11457 #line default 11458 #line hidden 11459 WriteLiteralTo(__razor_helper_writer, " "); 11460 11461 11462 #line 2978 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11463 WriteTo(__razor_helper_writer, Render(settings.Image)); 11464 11465 11466 #line default 11467 #line hidden 11468 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 11469 11470 11471 #line 2980 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11472 } 11473 11474 11475 #line default 11476 #line hidden 11477 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n\r\n"); 11478 11479 11480 #line 2984 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11481 11482 11483 #line default 11484 #line hidden 11485 11486 #line 2984 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11487 if (!String.IsNullOrEmpty(settings.Title) || !String.IsNullOrEmpty(settings.Summary)) 11488 { 11489 11490 11491 #line default 11492 #line hidden 11493 WriteLiteralTo(__razor_helper_writer, " <div"); 11494 11495 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-9\""); 11496 11497 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11498 11499 11500 #line 2987 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11501 11502 11503 #line default 11504 #line hidden 11505 11506 #line 2987 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11507 if (!String.IsNullOrEmpty(settings.Title)) 11508 { 11509 11510 11511 #line default 11512 #line hidden 11513 WriteLiteralTo(__razor_helper_writer, " <h3"); 11514 11515 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-header u-truncate-text dw-mod\""); 11516 11517 WriteLiteralTo(__razor_helper_writer, ">"); 11518 11519 11520 #line 2989 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11521 WriteTo(__razor_helper_writer, settings.Title); 11522 11523 11524 #line default 11525 #line hidden 11526 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n"); 11527 11528 11529 #line 2990 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11530 } 11531 11532 11533 #line default 11534 #line hidden 11535 WriteLiteralTo(__razor_helper_writer, " "); 11536 11537 11538 #line 2991 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11539 if (settings.Stickers != null) 11540 { 11541 if (settings.Stickers.Position == StickersListPosition.Custom) 11542 { 11543 11544 11545 #line default 11546 #line hidden 11547 11548 #line 2995 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11549 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 11550 11551 11552 #line default 11553 #line hidden 11554 11555 #line 2995 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11556 ; 11557 } 11558 } 11559 11560 11561 #line default 11562 #line hidden 11563 WriteLiteralTo(__razor_helper_writer, " "); 11564 11565 11566 #line 2998 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11567 if (!String.IsNullOrEmpty(settings.SubTitle)) 11568 { 11569 11570 11571 #line default 11572 #line hidden 11573 WriteLiteralTo(__razor_helper_writer, " <div"); 11574 11575 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-micro-info u-truncate-text dw-mod\""); 11576 11577 WriteLiteralTo(__razor_helper_writer, ">"); 11578 11579 11580 #line 3000 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11581 WriteTo(__razor_helper_writer, settings.SubTitle); 11582 11583 11584 #line default 11585 #line hidden 11586 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11587 11588 11589 #line 3001 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11590 } 11591 11592 11593 #line default 11594 #line hidden 11595 WriteLiteralTo(__razor_helper_writer, " "); 11596 11597 11598 #line 3002 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11599 if (!String.IsNullOrEmpty(settings.Summary)) 11600 { 11601 11602 11603 #line default 11604 #line hidden 11605 WriteLiteralTo(__razor_helper_writer, " <p"); 11606 11607 WriteLiteralTo(__razor_helper_writer, " class=\"article__short-summary dw-mod\""); 11608 11609 WriteLiteralTo(__razor_helper_writer, ">"); 11610 11611 11612 #line 3004 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11613 WriteTo(__razor_helper_writer, settings.Summary); 11614 11615 11616 #line default 11617 #line hidden 11618 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 11619 11620 11621 #line 3005 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11622 } 11623 11624 11625 #line default 11626 #line hidden 11627 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 11628 11629 11630 #line 3007 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11631 } 11632 11633 11634 #line default 11635 #line hidden 11636 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </a>\r\n"); 11637 11638 11639 #line 3010 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11640 11641 11642 #line default 11643 #line hidden 11644 }); 11645 11646 #line 3010 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11647 } 11648 #line default 11649 #line hidden 11650 11651 11652 #line 3012 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11653 public RazorEngine.Templating.TemplateWriter RenderArticleListItemSimple(ArticleListItem settings) { 11654 #line default 11655 #line hidden 11656 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11657 11658 #line 3012 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11659 11660 11661 11662 #line default 11663 #line hidden 11664 WriteLiteralTo(__razor_helper_writer, " <a"); 11665 11666 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 123448), Tuple.Create("\"", 123469) 11667 11668 #line 3013 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11669 , Tuple.Create(Tuple.Create("", 123455), Tuple.Create<System.Object, System.Int32>(settings.Link 11670 11671 #line default 11672 #line hidden 11673 , 123455), false) 11674 ); 11675 11676 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-inherit\""); 11677 11678 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11679 11680 WriteLiteralTo(__razor_helper_writer, " class=\"grid u-color-light--bg u-no-padding dw-mod\""); 11681 11682 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11683 11684 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-md-12\""); 11685 11686 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11687 11688 11689 #line 3016 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11690 11691 11692 #line default 11693 #line hidden 11694 11695 #line 3016 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11696 if (!String.IsNullOrEmpty(settings.Title)) 11697 { 11698 11699 11700 #line default 11701 #line hidden 11702 WriteLiteralTo(__razor_helper_writer, " <div"); 11703 11704 WriteLiteralTo(__razor_helper_writer, " class=\"article-list-item__header u-truncate-text u-no-margin dw-mod\""); 11705 11706 WriteLiteralTo(__razor_helper_writer, ">"); 11707 11708 11709 #line 3018 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11710 WriteTo(__razor_helper_writer, settings.Title); 11711 11712 11713 #line default 11714 #line hidden 11715 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11716 11717 11718 #line 3019 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11719 } 11720 11721 11722 #line default 11723 #line hidden 11724 WriteLiteralTo(__razor_helper_writer, " "); 11725 11726 11727 #line 3020 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11728 if (!String.IsNullOrEmpty(settings.SubTitle)) 11729 { 11730 11731 11732 #line default 11733 #line hidden 11734 WriteLiteralTo(__razor_helper_writer, " <div"); 11735 11736 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-micro-info u-truncate-text dw-mod\""); 11737 11738 WriteLiteralTo(__razor_helper_writer, ">"); 11739 11740 11741 #line 3022 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11742 WriteTo(__razor_helper_writer, settings.SubTitle); 11743 11744 11745 #line default 11746 #line hidden 11747 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11748 11749 11750 #line 3023 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11751 } 11752 11753 11754 #line default 11755 #line hidden 11756 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </a>\r\n"); 11757 11758 11759 #line 3027 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11760 11761 11762 #line default 11763 #line hidden 11764 }); 11765 11766 #line 3027 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11767 } 11768 #line default 11769 #line hidden 11770 11771 11772 #line 3034 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11773 public RazorEngine.Templating.TemplateWriter RenderArticleAuthorAndDate(ArticleAuthorAndDate settings) 11774 { 11775 #line default 11776 #line hidden 11777 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11778 11779 #line 3035 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11780 11781 11782 11783 #line default 11784 #line hidden 11785 WriteLiteralTo(__razor_helper_writer, " <small"); 11786 11787 WriteLiteralTo(__razor_helper_writer, " class=\"article__subscription\""); 11788 11789 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11790 11791 11792 #line 3037 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11793 11794 11795 #line default 11796 #line hidden 11797 11798 #line 3037 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11799 if (!(string.IsNullOrWhiteSpace(settings.Author) && string.IsNullOrWhiteSpace(settings.Date))) 11800 { 11801 11802 11803 #line default 11804 #line hidden 11805 WriteLiteralTo(__razor_helper_writer, " "); 11806 11807 11808 #line 3039 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11809 WriteTo(__razor_helper_writer, Translate("Written")); 11810 11811 11812 #line default 11813 #line hidden 11814 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11815 11816 11817 #line 3040 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11818 } 11819 11820 11821 #line default 11822 #line hidden 11823 WriteLiteralTo(__razor_helper_writer, " "); 11824 11825 11826 #line 3041 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11827 if (!string.IsNullOrWhiteSpace(settings.Author)) 11828 { 11829 11830 11831 #line default 11832 #line hidden 11833 WriteLiteralTo(__razor_helper_writer, " "); 11834 11835 11836 #line 3043 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11837 WriteTo(__razor_helper_writer, Translate("by")); 11838 11839 11840 #line default 11841 #line hidden 11842 WriteLiteralTo(__razor_helper_writer, " "); 11843 11844 11845 #line 3043 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11846 WriteTo(__razor_helper_writer, settings.Author); 11847 11848 11849 #line default 11850 #line hidden 11851 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11852 11853 11854 #line 3044 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11855 } 11856 11857 11858 #line default 11859 #line hidden 11860 WriteLiteralTo(__razor_helper_writer, " "); 11861 11862 11863 #line 3045 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11864 if (!string.IsNullOrWhiteSpace(settings.Date)) 11865 { 11866 11867 11868 #line default 11869 #line hidden 11870 WriteLiteralTo(__razor_helper_writer, " "); 11871 11872 11873 #line 3047 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11874 WriteTo(__razor_helper_writer, Translate("on")); 11875 11876 11877 #line default 11878 #line hidden 11879 WriteLiteralTo(__razor_helper_writer, " "); 11880 11881 11882 #line 3047 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11883 WriteTo(__razor_helper_writer, settings.Date); 11884 11885 11886 #line default 11887 #line hidden 11888 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11889 11890 11891 #line 3048 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11892 } 11893 11894 11895 #line default 11896 #line hidden 11897 WriteLiteralTo(__razor_helper_writer, " </small>\r\n"); 11898 11899 11900 #line 3050 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11901 11902 11903 #line default 11904 #line hidden 11905 }); 11906 11907 #line 3050 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11908 } 11909 #line default 11910 #line hidden 11911 11912 11913 #line 3058 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11914 public RazorEngine.Templating.TemplateWriter RenderArticleLink(ArticleLink settings) 11915 { 11916 #line default 11917 #line hidden 11918 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11919 11920 #line 3059 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11921 11922 if (!string.IsNullOrEmpty(settings.Title)) 11923 { 11924 Button link = new Button { 11925 ConfirmText = settings.ConfirmText, 11926 ConfirmTitle = settings.ConfirmTitle, 11927 ButtonType = settings.ButtonType, 11928 Id = settings.Id, 11929 Title = settings.Title, 11930 AltText = settings.AltText, 11931 OnClick = settings.OnClick, 11932 CssClass = settings.CssClass, 11933 Disabled = settings.Disabled, 11934 Icon = settings.Icon, 11935 Name = settings.Name, 11936 Href = settings.Href, 11937 ButtonLayout = settings.ButtonLayout, 11938 ExtraAttributes = settings.ExtraAttributes 11939 }; 11940 11941 11942 #line default 11943 #line hidden 11944 WriteLiteralTo(__razor_helper_writer, " <div"); 11945 11946 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 11947 11948 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11949 11950 WriteLiteralTo(__razor_helper_writer, " "); 11951 11952 11953 #line 3079 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11954 WriteTo(__razor_helper_writer, Render(link)); 11955 11956 11957 #line default 11958 #line hidden 11959 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 11960 11961 11962 #line 3081 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11963 } 11964 11965 11966 #line default 11967 #line hidden 11968 }); 11969 11970 #line 3082 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11971 } 11972 #line default 11973 #line hidden 11974 11975 11976 #line 3091 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11977 public RazorEngine.Templating.TemplateWriter RenderArticleCarousel(ArticleCarousel settings) 11978 { 11979 #line default 11980 #line hidden 11981 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11982 11983 #line 3092 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 11984 11985 11986 11987 #line default 11988 #line hidden 11989 WriteLiteralTo(__razor_helper_writer, " <div"); 11990 11991 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 11992 11993 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11994 11995 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-12\""); 11996 11997 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11998 11999 WriteLiteralTo(__razor_helper_writer, " class=\"carousel\""); 12000 12001 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 126152), Tuple.Create("\"", 126178) 12002 , Tuple.Create(Tuple.Create("", 126157), Tuple.Create("carousel_", 126157), true) 12003 12004 #line 3095 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12005 , Tuple.Create(Tuple.Create("", 126166), Tuple.Create<System.Object, System.Int32>(settings.Id 12006 12007 #line default 12008 #line hidden 12009 , 126166), false) 12010 ); 12011 12012 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 12013 12014 WriteLiteralTo(__razor_helper_writer, " class=\"carousel__container js-carousel-slides dw-mod\""); 12015 12016 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12017 12018 WriteLiteralTo(__razor_helper_writer, " "); 12019 12020 12021 #line 3097 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12022 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 12023 12024 12025 #line default 12026 #line hidden 12027 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n"); 12028 12029 12030 #line 3102 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12031 12032 12033 12034 #line default 12035 #line hidden 12036 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded\", function () {" + 12037 "\r\n new CarouselModule(\"#carousel_"); 12038 12039 12040 #line 3105 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12041 WriteTo(__razor_helper_writer, settings.Id); 12042 12043 12044 #line default 12045 #line hidden 12046 WriteLiteralTo(__razor_helper_writer, "\", {\r\n slideTime: 0,\r\n dots: true\r\n });\r" + 12047 "\n });\r\n </script>\r\n"); 12048 12049 12050 #line 3111 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12051 12052 12053 #line default 12054 #line hidden 12055 }); 12056 12057 #line 3111 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12058 } 12059 #line default 12060 #line hidden 12061 12062 12063 #line 3113 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12064 public RazorEngine.Templating.TemplateWriter RenderArticleCarouselSlide(ArticleCarouselSlide settings) 12065 { 12066 #line default 12067 #line hidden 12068 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12069 12070 #line 3114 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12071 12072 string imageEngine = "/Admin/Public/GetImage.ashx?"; 12073 12074 string defaultImage = settings.ImageSettings != null ? imageEngine : settings.Image; 12075 if (settings.ImageSettings != null) 12076 { 12077 defaultImage += settings.ImageSettings.Width != 0 ? "Width=" + settings.ImageSettings.Width + "&" : ""; 12078 defaultImage += settings.ImageSettings.Height != 0 ? "Height=" + settings.ImageSettings.Height + "&" : ""; 12079 defaultImage += "Crop=" + settings.ImageSettings.Crop + "&"; 12080 defaultImage += "Compression=" + settings.ImageSettings.Compression + "&"; 12081 defaultImage += "DoNotUpscale=" + settings.ImageSettings.DoNotUpscale.ToString() + "&"; 12082 defaultImage += "FillCanvas=" + settings.ImageSettings.FillCanvas.ToString() + "&"; 12083 } 12084 defaultImage += "&Image=" + settings.Image; 12085 12086 12087 12088 #line default 12089 #line hidden 12090 WriteLiteralTo(__razor_helper_writer, " <div"); 12091 12092 WriteLiteralTo(__razor_helper_writer, " class=\"carousel__slide u-min-h300px u-flex dw-mod\""); 12093 12094 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 127601), Tuple.Create("\"", 127669) 12095 , Tuple.Create(Tuple.Create("", 127609), Tuple.Create("background-size:cover;", 127609), true) 12096 , Tuple.Create(Tuple.Create(" ", 127631), Tuple.Create("background-image:url(\'", 127632), true) 12097 12098 #line 3129 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12099 , Tuple.Create(Tuple.Create("", 127654), Tuple.Create<System.Object, System.Int32>(defaultImage 12100 12101 #line default 12102 #line hidden 12103 , 127654), false) 12104 , Tuple.Create(Tuple.Create("", 127667), Tuple.Create("\')", 127667), true) 12105 ); 12106 12107 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 12108 12109 WriteLiteralTo(__razor_helper_writer, " class=\"article-carousel-item__wrap\""); 12110 12111 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 127719), Tuple.Create("\"", 127740) 12112 12113 #line 3130 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12114 , Tuple.Create(Tuple.Create("", 127726), Tuple.Create<System.Object, System.Int32>(settings.Link 12115 12116 #line default 12117 #line hidden 12118 , 127726), false) 12119 ); 12120 12121 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 127741), Tuple.Create("\"", 127764) 12122 12123 #line 3130 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12124 , Tuple.Create(Tuple.Create("", 127749), Tuple.Create<System.Object, System.Int32>(settings.Title 12125 12126 #line default 12127 #line hidden 12128 , 127749), false) 12129 ); 12130 12131 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2"); 12132 12133 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-header u-truncate-text u-color-light dw-mod\""); 12134 12135 WriteLiteralTo(__razor_helper_writer, ">"); 12136 12137 12138 #line 3131 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12139 WriteTo(__razor_helper_writer, settings.Title); 12140 12141 12142 #line default 12143 #line hidden 12144 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n <div"); 12145 12146 WriteLiteralTo(__razor_helper_writer, " class=\"article-list__item-info\""); 12147 12148 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12149 12150 12151 #line 3133 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12152 12153 12154 #line default 12155 #line hidden 12156 12157 #line 3133 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12158 if (settings.Stickers != null) 12159 { 12160 settings.Stickers.Position = StickersListPosition.Custom; 12161 12162 12163 #line default 12164 #line hidden 12165 12166 #line 3136 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12167 WriteTo(__razor_helper_writer, Render(settings.Stickers)); 12168 12169 12170 #line default 12171 #line hidden 12172 12173 #line 3136 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12174 ; 12175 } 12176 12177 12178 #line default 12179 #line hidden 12180 WriteLiteralTo(__razor_helper_writer, "\r\n <small"); 12181 12182 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-top--lg u-color-light\""); 12183 12184 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12185 12186 12187 #line 3140 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12188 12189 12190 #line default 12191 #line hidden 12192 12193 #line 3140 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12194 if (!(string.IsNullOrWhiteSpace(settings.Author) && string.IsNullOrWhiteSpace(settings.Date))) 12195 { 12196 12197 12198 #line default 12199 #line hidden 12200 WriteLiteralTo(__razor_helper_writer, " "); 12201 12202 12203 #line 3142 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12204 WriteTo(__razor_helper_writer, Translate("Written")); 12205 12206 12207 #line default 12208 #line hidden 12209 WriteLiteralTo(__razor_helper_writer, "\r\n"); 12210 12211 12212 #line 3143 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12213 } 12214 12215 12216 #line default 12217 #line hidden 12218 WriteLiteralTo(__razor_helper_writer, " "); 12219 12220 12221 #line 3144 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12222 if (!string.IsNullOrWhiteSpace(settings.Author)) 12223 { 12224 12225 12226 #line default 12227 #line hidden 12228 WriteLiteralTo(__razor_helper_writer, " "); 12229 12230 12231 #line 3146 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12232 WriteTo(__razor_helper_writer, Translate("by")); 12233 12234 12235 #line default 12236 #line hidden 12237 WriteLiteralTo(__razor_helper_writer, " "); 12238 12239 12240 #line 3146 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12241 WriteTo(__razor_helper_writer, settings.Author); 12242 12243 12244 #line default 12245 #line hidden 12246 WriteLiteralTo(__razor_helper_writer, "\r\n"); 12247 12248 12249 #line 3147 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12250 } 12251 12252 12253 #line default 12254 #line hidden 12255 WriteLiteralTo(__razor_helper_writer, " "); 12256 12257 12258 #line 3148 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12259 if (!string.IsNullOrWhiteSpace(settings.Date)) 12260 { 12261 12262 12263 #line default 12264 #line hidden 12265 WriteLiteralTo(__razor_helper_writer, " "); 12266 12267 12268 #line 3150 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12269 WriteTo(__razor_helper_writer, Translate("on")); 12270 12271 12272 #line default 12273 #line hidden 12274 WriteLiteralTo(__razor_helper_writer, " "); 12275 12276 12277 #line 3150 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12278 WriteTo(__razor_helper_writer, settings.Date); 12279 12280 12281 #line default 12282 #line hidden 12283 WriteLiteralTo(__razor_helper_writer, "\r\n"); 12284 12285 12286 #line 3151 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12287 } 12288 12289 12290 #line default 12291 #line hidden 12292 WriteLiteralTo(__razor_helper_writer, " </small>\r\n </div>\r\n\r\n <h3"); 12293 12294 WriteLiteralTo(__razor_helper_writer, " class=\"article__short-summary u-color-light\""); 12295 12296 WriteLiteralTo(__razor_helper_writer, ">"); 12297 12298 12299 #line 3155 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12300 WriteTo(__razor_helper_writer, settings.Summary); 12301 12302 12303 #line default 12304 #line hidden 12305 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n </a>\r\n"); 12306 12307 12308 #line 3157 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12309 12310 12311 #line default 12312 #line hidden 12313 12314 #line 3157 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12315 if (settings.UseFilters == true) 12316 { 12317 12318 12319 #line default 12320 #line hidden 12321 WriteLiteralTo(__razor_helper_writer, " <div"); 12322 12323 WriteLiteralTo(__razor_helper_writer, " class=\"background-image image-filter image-filter--darken dw-mod\""); 12324 12325 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 12326 12327 12328 #line 3160 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12329 } 12330 12331 12332 #line default 12333 #line hidden 12334 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 12335 12336 12337 #line 3162 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12338 12339 12340 #line default 12341 #line hidden 12342 }); 12343 12344 #line 3162 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12345 } 12346 #line default 12347 #line hidden 12348 12349 12350 #line 3171 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12351 public RazorEngine.Templating.TemplateWriter RenderArticleVideo(ArticleVideo settings) 12352 { 12353 #line default 12354 #line hidden 12355 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12356 12357 #line 3172 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12358 12359 if (settings.Url != null) 12360 { 12361 //getting video ID from youtube URL 12362 string videoCode = settings.Url; 12363 Regex regex = new Regex(@".be\/(.[^?]*)"); 12364 Match match = regex.Match(videoCode); 12365 string videoId = ""; 12366 if (match.Success) 12367 { 12368 videoId = match.Groups[1].Value; 12369 } 12370 else 12371 { 12372 regex = new Regex(@"v=([^&]+)"); 12373 match = regex.Match(videoCode); 12374 if (match.Success) 12375 { 12376 videoId = match.Groups[1].Value; 12377 } 12378 } 12379 12380 int autoPlay = settings.AutoPlay == "true" ? 1 : 0; 12381 12382 12383 12384 #line default 12385 #line hidden 12386 WriteLiteralTo(__razor_helper_writer, " <div"); 12387 12388 WriteLiteralTo(__razor_helper_writer, " class=\"video-wrapper\""); 12389 12390 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 12391 12392 WriteLiteralTo(__razor_helper_writer, " class=\"js-youtube-video\""); 12393 12394 WriteLiteralTo(__razor_helper_writer, " data-video=\""); 12395 12396 12397 #line 3197 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12398 WriteTo(__razor_helper_writer, videoId); 12399 12400 12401 #line default 12402 #line hidden 12403 WriteLiteralTo(__razor_helper_writer, "\""); 12404 12405 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 130179), Tuple.Create("\"", 130223) 12406 , Tuple.Create(Tuple.Create("", 130184), Tuple.Create("ytPlayer", 130184), true) 12407 12408 #line 3197 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12409 , Tuple.Create(Tuple.Create("", 130192), Tuple.Create<System.Object, System.Int32>(Guid.NewGuid().ToString("N") 12410 12411 #line default 12412 #line hidden 12413 , 130192), false) 12414 ); 12415 12416 WriteLiteralTo(__razor_helper_writer, " data-auto-play=\""); 12417 12418 12419 #line 3197 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12420 WriteTo(__razor_helper_writer, autoPlay); 12421 12422 12423 #line default 12424 #line hidden 12425 WriteLiteralTo(__razor_helper_writer, "\""); 12426 12427 WriteLiteralTo(__razor_helper_writer, " data-enable-controls=\"1\""); 12428 12429 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </div> \r\n"); 12430 12431 12432 #line 3199 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12433 } 12434 12435 12436 #line default 12437 #line hidden 12438 }); 12439 12440 #line 3200 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12441 } 12442 #line default 12443 #line hidden 12444 12445 12446 #line 3207 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12447 public RazorEngine.Templating.TemplateWriter RenderArticleItemGallery(IList<ItemViewModel> gallery) { 12448 #line default 12449 #line hidden 12450 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12451 12452 #line 3207 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12453 12454 if (gallery != null && gallery.Count > 0) 12455 { 12456 int count = 1; 12457 12458 foreach (var item in gallery) 12459 { 12460 if (item.GetFile("ImagePath") != null) 12461 { 12462 string image = item.GetFile("ImagePath").PathUrlEncoded; 12463 string imagePrefix = "/Admin/Public/GetImage.ashx?width=1200&amp;height=820&amp;crop=5&amp;Compression=75&amp;DoNotUpscale=1&amp;image="; 12464 int imagesCount = gallery.Count; 12465 12466 if (count == 1) 12467 { 12468 12469 12470 #line default 12471 #line hidden 12472 WriteLiteralTo(__razor_helper_writer, " <label"); 12473 12474 WriteLiteralTo(__razor_helper_writer, " class=\"gallery\""); 12475 12476 WriteLiteralTo(__razor_helper_writer, " for=\"ParagraphGalleryModalTrigger\""); 12477 12478 WriteLiteralTo(__razor_helper_writer, " onclick=\"Gallery.openImage(this.querySelector(\'.js-gallery\'))\""); 12479 12480 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 12481 12482 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__main-image\""); 12483 12484 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12485 12486 WriteLiteralTo(__razor_helper_writer, " src=\"/Files/Images/placeholder.gif\""); 12487 12488 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?width=992&amp;height=760&amp;crop=0&amp;Co" + 12489 "mpression=75&amp;DoNotUpscale=1&amp;image="); 12490 12491 12492 #line 3224 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12493 WriteTo(__razor_helper_writer, image); 12494 12495 12496 #line default 12497 #line hidden 12498 WriteLiteralTo(__razor_helper_writer, "\""); 12499 12500 WriteLiteralTo(__razor_helper_writer, " class=\"b-lazy flex-img js-gallery\""); 12501 12502 WriteLiteralTo(__razor_helper_writer, " alt=\"\""); 12503 12504 WriteLiteralTo(__razor_helper_writer, " data-for=\"ParagraphGallery\""); 12505 12506 WriteLiteralTo(__razor_helper_writer, " data-image=\""); 12507 12508 12509 #line 3224 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12510 WriteTo(__razor_helper_writer, imagePrefix); 12511 12512 12513 #line default 12514 #line hidden 12515 12516 #line 3224 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12517 WriteTo(__razor_helper_writer, image); 12518 12519 12520 #line default 12521 #line hidden 12522 WriteLiteralTo(__razor_helper_writer, "\""); 12523 12524 WriteLiteralTo(__razor_helper_writer, " />\r\n </span>\r\n <span"); 12525 12526 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__image-counter\""); 12527 12528 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 12529 12530 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-camera fa-2x\""); 12531 12532 WriteLiteralTo(__razor_helper_writer, "></i> <span"); 12533 12534 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__image-counter__number\""); 12535 12536 WriteLiteralTo(__razor_helper_writer, ">"); 12537 12538 12539 #line 3227 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12540 WriteTo(__razor_helper_writer, imagesCount); 12541 12542 12543 #line default 12544 #line hidden 12545 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <span"); 12546 12547 WriteLiteralTo(__razor_helper_writer, " class=\"gallery__image-counter__text\""); 12548 12549 WriteLiteralTo(__razor_helper_writer, ">"); 12550 12551 12552 #line 3228 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12553 WriteTo(__razor_helper_writer, Translate("See all")); 12554 12555 12556 #line default 12557 #line hidden 12558 WriteLiteralTo(__razor_helper_writer, " <i"); 12559 12560 WriteLiteralTo(__razor_helper_writer, " class=\"fas fa-angle-right\""); 12561 12562 WriteLiteralTo(__razor_helper_writer, "></i></span>\r\n </span>\r\n </label>\r\n"); 12563 12564 12565 #line 3231 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12566 } 12567 else 12568 { 12569 12570 12571 #line default 12572 #line hidden 12573 WriteLiteralTo(__razor_helper_writer, " <div"); 12574 12575 WriteLiteralTo(__razor_helper_writer, " class=\"u-hidden js-gallery\""); 12576 12577 WriteLiteralTo(__razor_helper_writer, " data-for=\"ParagraphGallery\""); 12578 12579 WriteLiteralTo(__razor_helper_writer, " data-image=\""); 12580 12581 12582 #line 3234 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12583 WriteTo(__razor_helper_writer, imagePrefix); 12584 12585 12586 #line default 12587 #line hidden 12588 12589 #line 3234 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12590 WriteTo(__razor_helper_writer, image); 12591 12592 12593 #line default 12594 #line hidden 12595 WriteLiteralTo(__razor_helper_writer, "\""); 12596 12597 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 12598 12599 12600 #line 3235 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12601 } 12602 12603 count++; 12604 } 12605 } 12606 12607 12608 12609 #line default 12610 #line hidden 12611 12612 #line 3241 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12613 WriteTo(__razor_helper_writer, Render(new ArticleGalleryModal())); 12614 12615 12616 #line default 12617 #line hidden 12618 12619 #line 3241 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12620 12621 } 12622 12623 12624 #line default 12625 #line hidden 12626 }); 12627 12628 #line 3243 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12629 } 12630 #line default 12631 #line hidden 12632 12633 12634 #line 3245 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12635 public RazorEngine.Templating.TemplateWriter RenderMobileFilters(List<Block> subBlocks) 12636 { 12637 #line default 12638 #line hidden 12639 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12640 12641 #line 3246 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12642 12643 if (subBlocks.Count > 0) 12644 { 12645 12646 12647 #line default 12648 #line hidden 12649 WriteLiteralTo(__razor_helper_writer, " <div"); 12650 12651 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-12\""); 12652 12653 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 12654 12655 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 12656 12657 WriteLiteralTo(__razor_helper_writer, " id=\"CheckFilters\""); 12658 12659 WriteLiteralTo(__razor_helper_writer, " class=\"js-remember-state u-hidden\""); 12660 12661 WriteLiteralTo(__razor_helper_writer, " data-expand=\"CheckFilters\""); 12662 12663 WriteLiteralTo(__razor_helper_writer, " />\r\n <div"); 12664 12665 WriteLiteralTo(__razor_helper_writer, " class=\"grid u-margin-bottom dw-mod\""); 12666 12667 WriteLiteralTo(__razor_helper_writer, " data-trigger=\"CheckFilters\""); 12668 12669 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12670 12671 WriteLiteralTo(__razor_helper_writer, " "); 12672 12673 12674 #line 3252 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12675 WriteTo(__razor_helper_writer, RenderBlockList(subBlocks)); 12676 12677 12678 #line default 12679 #line hidden 12680 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n <label"); 12681 12682 WriteLiteralTo(__razor_helper_writer, " for=\"CheckFilters\""); 12683 12684 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn--secondary btn--full dw-mod js-expand-hide\""); 12685 12686 WriteLiteralTo(__razor_helper_writer, " data-trigger=\"CheckFilters\""); 12687 12688 WriteLiteralTo(__razor_helper_writer, ">"); 12689 12690 12691 #line 3254 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12692 WriteTo(__razor_helper_writer, Translate("Select filters")); 12693 12694 12695 #line default 12696 #line hidden 12697 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label"); 12698 12699 WriteLiteralTo(__razor_helper_writer, " for=\"CheckFilters\""); 12700 12701 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn--secondary btn--full dw-mod expandable--collapsed\""); 12702 12703 WriteLiteralTo(__razor_helper_writer, " data-trigger=\"CheckFilters\""); 12704 12705 WriteLiteralTo(__razor_helper_writer, ">"); 12706 12707 12708 #line 3255 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12709 WriteTo(__razor_helper_writer, Translate("Close filters")); 12710 12711 12712 #line default 12713 #line hidden 12714 WriteLiteralTo(__razor_helper_writer, "</label>\r\n </div>\r\n"); 12715 12716 12717 #line 3257 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12718 } 12719 12720 12721 #line default 12722 #line hidden 12723 }); 12724 12725 #line 3258 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12726 } 12727 #line default 12728 #line hidden 12729 12730 12731 #line 3270 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12732 12733 string GoogleTagManagerID = ""; 12734 string GoogleAnalyticsID = ""; 12735 12736 #line default 12737 #line hidden 12738 12739 12740 #line 3348 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12741 public RazorEngine.Templating.TemplateWriter RenderCookieInformation() 12742 { 12743 #line default 12744 #line hidden 12745 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12746 12747 #line 3349 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12748 12749 12750 12751 #line default 12752 #line hidden 12753 WriteLiteralTo(__razor_helper_writer, " <script"); 12754 12755 WriteLiteralTo(__razor_helper_writer, " id=\"CookieConsent\""); 12756 12757 WriteLiteralTo(__razor_helper_writer, " src=\"https://policy.app.cookieinformation.com/uc.js\""); 12758 12759 WriteLiteralTo(__razor_helper_writer, " data-culture=\"EN\""); 12760 12761 WriteLiteralTo(__razor_helper_writer, " type=\"text/javascript\""); 12762 12763 WriteLiteralTo(__razor_helper_writer, "></script>\r\n"); 12764 12765 12766 #line 3351 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12767 12768 12769 12770 #line default 12771 #line hidden 12772 WriteLiteralTo(__razor_helper_writer, " <script"); 12773 12774 WriteLiteralTo(__razor_helper_writer, " type=\"text/javascript\""); 12775 12776 WriteLiteralTo(__razor_helper_writer, @"> 12777 window.addEventListener('CookieInformationConsentGiven', function (event) { 12778 if (!CookieInformation.getConsentGivenFor('cookie_cat_marketing')) { 12779 var allFrames = document.querySelectorAll(""iframe""); 12780 12781 //Start - Content replacing iframes 12782 for (i = 0; i < allFrames.length; i++) { 12783 var frame = allFrames[i]; 12784 if (frame.src.indexOf('youtu') !== -1 || frame.src.indexOf('vimeo') !== -1) { 12785 frame.insertAdjacentHTML(""beforebegin"", '<div class=""consent-placeholder u-brand-color-two"" data-category=""cookie_cat_marketing"" onClick=""CookieConsent.renew()"">"); 12786 12787 12788 #line 3361 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12789 WriteTo(__razor_helper_writer, Translate("Smartpage:Cookieinformation.Renew", "Renew or change your cookie consent to see this content")); 12790 12791 12792 #line default 12793 #line hidden 12794 WriteLiteralTo(__razor_helper_writer, @"</div>'); 12795 frame.parentNode.removeChild(frame); 12796 } 12797 } 12798 } 12799 // Google Consent mode implementation 12800 if (CookieInformation.getConsentGivenFor('cookie_cat_statistic') && window.gtag != undefined) { 12801 gtag('consent', 'update', { 'analytics_storage': 'granted' }); 12802 } 12803 if (CookieInformation.getConsentGivenFor('cookie_cat_marketing') && window.gtag != undefined) { 12804 gtag('consent', 'update', { 'ad_storage': 'granted' }); 12805 } 12806 }, false); 12807 12808 </script> 12809 "); 12810 12811 12812 #line 3376 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12813 12814 12815 #line default 12816 #line hidden 12817 }); 12818 12819 #line 3376 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12820 } 12821 #line default 12822 #line hidden 12823 12824 12825 #line 3378 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12826 public RazorEngine.Templating.TemplateWriter RenderGoogleConsentMode() 12827 { 12828 #line default 12829 #line hidden 12830 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12831 12832 #line 3379 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12833 12834 12835 12836 #line default 12837 #line hidden 12838 WriteLiteralTo(__razor_helper_writer, @" <script> 12839 window.dataLayer = window.dataLayer || []; 12840 function gtag() { 12841 dataLayer.push(arguments); 12842 } 12843 gtag('consent', 'default', { 12844 ad_storage: 'denied', 12845 analytics_storage: 'denied', 12846 wait_for_update: 500, 12847 }); 12848 gtag('set', 'ads_data_redaction', true); 12849 </script> 12850 "); 12851 12852 12853 #line 3392 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12854 12855 12856 #line default 12857 #line hidden 12858 }); 12859 12860 #line 3392 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12861 } 12862 #line default 12863 #line hidden 12864 12865 12866 #line 3394 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12867 public RazorEngine.Templating.TemplateWriter RenderGoogleAnalyticsSnippet() 12868 { 12869 #line default 12870 #line hidden 12871 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12872 12873 #line 3395 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12874 12875 12876 12877 #line default 12878 #line hidden 12879 WriteLiteralTo(__razor_helper_writer, " <!-- Global site tag (gtag.js) - Google Analytics -->\r\n"); 12880 12881 WriteLiteralTo(__razor_helper_writer, " <script async"); 12882 12883 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 137725), Tuple.Create("\"", 137793) 12884 , Tuple.Create(Tuple.Create("", 137731), Tuple.Create("https://www.googletagmanager.com/gtag/js?id=", 137731), true) 12885 12886 #line 3397 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12887 , Tuple.Create(Tuple.Create("", 137775), Tuple.Create<System.Object, System.Int32>(GoogleAnalyticsID 12888 12889 #line default 12890 #line hidden 12891 , 137775), false) 12892 ); 12893 12894 WriteLiteralTo(__razor_helper_writer, "></script>\r\n"); 12895 12896 WriteLiteralTo(__razor_helper_writer, " <script>\r\n window.dataLayer = window.dataLayer || [];\r\n function gt" + 12897 "ag(){dataLayer.push(arguments);}\r\n gtag(\'js\', new Date());\r\n\r\n gtag(\'c" + 12898 "onfig\', \'"); 12899 12900 12901 #line 3403 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12902 WriteTo(__razor_helper_writer, GoogleAnalyticsID); 12903 12904 12905 #line default 12906 #line hidden 12907 WriteLiteralTo(__razor_helper_writer, "\');\r\n </script>\r\n"); 12908 12909 12910 #line 3405 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12911 12912 12913 #line default 12914 #line hidden 12915 }); 12916 12917 #line 3405 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12918 } 12919 #line default 12920 #line hidden 12921 12922 12923 #line 3407 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12924 public RazorEngine.Templating.TemplateWriter RenderGoogleTagManager() 12925 { 12926 #line default 12927 #line hidden 12928 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12929 12930 #line 3408 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12931 12932 12933 12934 #line default 12935 #line hidden 12936 WriteLiteralTo(__razor_helper_writer, @" <script> 12937 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 12938 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 12939 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 12940 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 12941 })(window,document,'script','dataLayer','"); 12942 12943 12944 #line 3414 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12945 WriteTo(__razor_helper_writer, GoogleTagManagerID); 12946 12947 12948 #line default 12949 #line hidden 12950 WriteLiteralTo(__razor_helper_writer, "\');\r\n </script>\r\n"); 12951 12952 12953 #line 3416 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12954 12955 12956 #line default 12957 #line hidden 12958 }); 12959 12960 #line 3416 "C:\Dynamicweb.Net\Solutions\Philipson Wine\Files\Templates\Designs\Rapido\_parsed\ContentPage.parsed.cshtml" 12961 } 12962