Error compiling template "/Designs/Rapido/Paragraph/404Alternativ.cshtml"
Line 1733: Unexpected character '´'
Line 35: The type or namespace name 'Timursdll' could not be found (are you missing a using directive or an assembly reference?)
Line 1324: The result of the expression is always 'true' since a value of type 'bool' is never equal to 'null' of type 'bool?'

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 using System.Linq; 15 16 #line 1 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 17 using System.Web; 18 19 #line default 20 #line hidden 21 22 #line 2 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 23 using System.Net; 24 25 #line default 26 #line hidden 27 28 #line 3 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 29 using System.IO; 30 31 #line default 32 #line hidden 33 34 #line 4 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 35 using Timursdll; 36 37 #line default 38 #line hidden 39 40 #line 19 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 41 using Dynamicweb.Frontend; 42 43 #line default 44 #line hidden 45 46 47 public class RazorEngine_4d59a9dde29344099836726a7af56bfb : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 48 49 #line hidden 50 51 #line 8 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 52 53 public string columnClass() 54 { 55 string columnValue = Model.Item.GetList("Width") != null ? Model.Item.GetList("Width").SelectedValue : "12"; 56 string columnClasses = "grid__col-lg-" + columnValue + " grid__col-md-" + columnValue + " grid__col-sm-" + columnValue; 57 string hideOnMobile = Model.Item.GetList("WidthMobile").SelectedValue == "hide" ? " u-hidden-xs u-hidden-xxs" : " grid__col-xs-" + Model.Item.GetList("WidthMobile").SelectedValue; 58 59 return columnClasses + hideOnMobile; 60 } 61 62 #line default 63 #line hidden 64 65 66 #line 21 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 67 public RazorEngine.Templating.TemplateWriter RenderContent(ItemViewModel item, bool isCarousel = false) 68 { 69 #line default 70 #line hidden 71 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 72 73 #line 22 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 74 75 string cardClass = item.GetBoolean("ShowAsCard") ? "paragraph-card" : "grid__cell"; 76 cardClass = Pageview.Device.ToString() != "Tablet" ? cardClass : "grid__cell"; 77 78 string contentPosition = item.GetList("ContentPositions").SelectedValue; 79 80 switch (contentPosition) { 81 case "title-top": 82 83 84 #line default 85 #line hidden 86 WriteLiteralTo(__razor_helper_writer, " <div"); 87 88 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1329), Tuple.Create("\"", 1347) 89 90 #line 30 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 91 , Tuple.Create(Tuple.Create("", 1337), Tuple.Create<System.Object, System.Int32>(cardClass 92 93 #line default 94 #line hidden 95 , 1337), false) 96 ); 97 98 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 99 100 WriteLiteralTo(__razor_helper_writer, " "); 101 102 103 #line 31 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 104 WriteTo(__razor_helper_writer, RenderHeading(item)); 105 106 107 #line default 108 #line hidden 109 WriteLiteralTo(__razor_helper_writer, "\r\n"); 110 111 WriteLiteralTo(__razor_helper_writer, " "); 112 113 114 #line 32 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 115 WriteTo(__razor_helper_writer, RenderImage(item, isCarousel)); 116 117 118 #line default 119 #line hidden 120 WriteLiteralTo(__razor_helper_writer, "\r\n"); 121 122 WriteLiteralTo(__razor_helper_writer, " "); 123 124 125 #line 33 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 126 WriteTo(__razor_helper_writer, RenderText(item)); 127 128 129 #line default 130 #line hidden 131 WriteLiteralTo(__razor_helper_writer, "\r\n"); 132 133 WriteLiteralTo(__razor_helper_writer, " "); 134 135 136 #line 34 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 137 WriteTo(__razor_helper_writer, RenderModule(item)); 138 139 140 #line default 141 #line hidden 142 WriteLiteralTo(__razor_helper_writer, "\r\n\t\t </div>\r\n"); 143 144 145 #line 36 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 146 147 148 #line default 149 #line hidden 150 151 #line 36 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 152 WriteTo(__razor_helper_writer, RenderButton(item)); 153 154 155 #line default 156 #line hidden 157 158 #line 36 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 159 160 break; 161 case "image-left": 162 163 164 #line default 165 #line hidden 166 WriteLiteralTo(__razor_helper_writer, " <div"); 167 168 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 169 170 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 171 172 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-3\""); 173 174 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 175 176 WriteLiteralTo(__razor_helper_writer, " "); 177 178 179 #line 41 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 180 WriteTo(__razor_helper_writer, RenderImage(item, isCarousel)); 181 182 183 #line default 184 #line hidden 185 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div"); 186 187 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-9\""); 188 189 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 190 191 WriteLiteralTo(__razor_helper_writer, " "); 192 193 194 #line 44 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 195 WriteTo(__razor_helper_writer, RenderHeading(item)); 196 197 198 #line default 199 #line hidden 200 WriteLiteralTo(__razor_helper_writer, "\r\n"); 201 202 WriteLiteralTo(__razor_helper_writer, " "); 203 204 205 #line 45 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 206 WriteTo(__razor_helper_writer, RenderText(item)); 207 208 209 #line default 210 #line hidden 211 WriteLiteralTo(__razor_helper_writer, "\r\n"); 212 213 WriteLiteralTo(__razor_helper_writer, " "); 214 215 216 #line 46 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 217 WriteTo(__razor_helper_writer, RenderModule(item)); 218 219 220 #line default 221 #line hidden 222 WriteLiteralTo(__razor_helper_writer, "\r\n"); 223 224 WriteLiteralTo(__razor_helper_writer, " "); 225 226 227 #line 47 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 228 WriteTo(__razor_helper_writer, RenderButton(item)); 229 230 231 #line default 232 #line hidden 233 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n"); 234 235 236 #line 50 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 237 break; 238 case "image-right": 239 240 241 #line default 242 #line hidden 243 WriteLiteralTo(__razor_helper_writer, " <div"); 244 245 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 246 247 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 248 249 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-9\""); 250 251 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 252 253 WriteLiteralTo(__razor_helper_writer, " "); 254 255 256 #line 54 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 257 WriteTo(__razor_helper_writer, RenderHeading(item)); 258 259 260 #line default 261 #line hidden 262 WriteLiteralTo(__razor_helper_writer, "\r\n"); 263 264 WriteLiteralTo(__razor_helper_writer, " "); 265 266 267 #line 55 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 268 WriteTo(__razor_helper_writer, RenderText(item)); 269 270 271 #line default 272 #line hidden 273 WriteLiteralTo(__razor_helper_writer, "\r\n"); 274 275 WriteLiteralTo(__razor_helper_writer, " "); 276 277 278 #line 56 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 279 WriteTo(__razor_helper_writer, RenderModule(item)); 280 281 282 #line default 283 #line hidden 284 WriteLiteralTo(__razor_helper_writer, "\r\n"); 285 286 WriteLiteralTo(__razor_helper_writer, " "); 287 288 289 #line 57 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 290 WriteTo(__razor_helper_writer, RenderButton(item)); 291 292 293 #line default 294 #line hidden 295 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div"); 296 297 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-3\""); 298 299 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 300 301 WriteLiteralTo(__razor_helper_writer, " "); 302 303 304 #line 60 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 305 WriteTo(__razor_helper_writer, RenderImage(item, isCarousel)); 306 307 308 #line default 309 #line hidden 310 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n"); 311 312 313 #line 63 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 314 break; 315 case "all-centered": 316 317 318 #line default 319 #line hidden 320 WriteLiteralTo(__razor_helper_writer, " <div"); 321 322 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 2521), Tuple.Create("\"", 2551) 323 , Tuple.Create(Tuple.Create("", 2529), Tuple.Create("u-ta-center", 2529), true) 324 325 #line 65 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 326 , Tuple.Create(Tuple.Create(" ", 2540), Tuple.Create<System.Object, System.Int32>(cardClass 327 328 #line default 329 #line hidden 330 , 2541), false) 331 ); 332 333 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 334 335 WriteLiteralTo(__razor_helper_writer, " "); 336 337 338 #line 66 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 339 WriteTo(__razor_helper_writer, RenderImage(item, isCarousel)); 340 341 342 #line default 343 #line hidden 344 WriteLiteralTo(__razor_helper_writer, "\r\n"); 345 346 WriteLiteralTo(__razor_helper_writer, " "); 347 348 349 #line 67 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 350 WriteTo(__razor_helper_writer, RenderHeading(item)); 351 352 353 #line default 354 #line hidden 355 WriteLiteralTo(__razor_helper_writer, "\r\n"); 356 357 WriteLiteralTo(__razor_helper_writer, " "); 358 359 360 #line 68 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 361 WriteTo(__razor_helper_writer, RenderText(item)); 362 363 364 #line default 365 #line hidden 366 WriteLiteralTo(__razor_helper_writer, "\r\n"); 367 368 WriteLiteralTo(__razor_helper_writer, " "); 369 370 371 #line 69 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 372 WriteTo(__razor_helper_writer, RenderModule(item)); 373 374 375 #line default 376 #line hidden 377 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 378 379 380 #line 71 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 381 382 383 #line default 384 #line hidden 385 386 #line 71 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 387 WriteTo(__razor_helper_writer, RenderButton(item)); 388 389 390 #line default 391 #line hidden 392 393 #line 71 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 394 395 break; 396 case "middle-center": 397 case "middle-left": 398 399 400 #line default 401 #line hidden 402 403 #line 75 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 404 405 406 407 #line default 408 #line hidden 409 WriteLiteralTo(__razor_helper_writer, " <div"); 410 411 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 2952), Tuple.Create("\"", 3030) 412 413 #line 76 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 414 , Tuple.Create(Tuple.Create("", 2960), Tuple.Create<System.Object, System.Int32>(contentPosition == "middle-center" ? "grid--align-self-center" : "" 415 416 #line default 417 #line hidden 418 , 2960), false) 419 ); 420 421 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 422 423 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3054), Tuple.Create("\"", 3072) 424 425 #line 77 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 426 , Tuple.Create(Tuple.Create("", 3062), Tuple.Create<System.Object, System.Int32>(cardClass 427 428 #line default 429 #line hidden 430 , 3062), false) 431 ); 432 433 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 434 435 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3100), Tuple.Create("\"", 3166) 436 437 #line 78 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 438 , Tuple.Create(Tuple.Create("", 3108), Tuple.Create<System.Object, System.Int32>(contentPosition == "middle-center" ? "u-ta-center" : "" 439 440 #line default 441 #line hidden 442 , 3108), false) 443 ); 444 445 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 446 447 WriteLiteralTo(__razor_helper_writer, " "); 448 449 450 #line 79 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 451 WriteTo(__razor_helper_writer, RenderImage(item, isCarousel)); 452 453 454 #line default 455 #line hidden 456 WriteLiteralTo(__razor_helper_writer, "\r\n"); 457 458 WriteLiteralTo(__razor_helper_writer, " "); 459 460 461 #line 80 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 462 WriteTo(__razor_helper_writer, RenderHeading(item)); 463 464 465 #line default 466 #line hidden 467 WriteLiteralTo(__razor_helper_writer, "\r\n"); 468 469 WriteLiteralTo(__razor_helper_writer, " "); 470 471 472 #line 81 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 473 WriteTo(__razor_helper_writer, RenderText(item)); 474 475 476 #line default 477 #line hidden 478 WriteLiteralTo(__razor_helper_writer, "\r\n"); 479 480 WriteLiteralTo(__razor_helper_writer, " "); 481 482 483 #line 82 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 484 WriteTo(__razor_helper_writer, RenderModule(item)); 485 486 487 #line default 488 #line hidden 489 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n"); 490 491 WriteLiteralTo(__razor_helper_writer, " "); 492 493 494 #line 85 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 495 WriteTo(__razor_helper_writer, RenderButton(item)); 496 497 498 #line default 499 #line hidden 500 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 501 502 503 #line 87 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 504 break; 505 //for "image-top" and "image-centered" 506 default: 507 508 509 #line default 510 #line hidden 511 WriteLiteralTo(__razor_helper_writer, " <div"); 512 513 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3571), Tuple.Create("\"", 3589) 514 515 #line 90 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 516 , Tuple.Create(Tuple.Create("", 3579), Tuple.Create<System.Object, System.Int32>(cardClass 517 518 #line default 519 #line hidden 520 , 3579), false) 521 ); 522 523 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 524 525 WriteLiteralTo(__razor_helper_writer, " "); 526 527 528 #line 91 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 529 WriteTo(__razor_helper_writer, RenderImage(item, isCarousel)); 530 531 532 #line default 533 #line hidden 534 WriteLiteralTo(__razor_helper_writer, "\r\n"); 535 536 WriteLiteralTo(__razor_helper_writer, " "); 537 538 539 #line 92 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 540 WriteTo(__razor_helper_writer, RenderHeading(item)); 541 542 543 #line default 544 #line hidden 545 WriteLiteralTo(__razor_helper_writer, "\r\n"); 546 547 WriteLiteralTo(__razor_helper_writer, " "); 548 549 550 #line 93 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 551 WriteTo(__razor_helper_writer, RenderText(item)); 552 553 554 #line default 555 #line hidden 556 WriteLiteralTo(__razor_helper_writer, "\r\n"); 557 558 WriteLiteralTo(__razor_helper_writer, " "); 559 560 561 #line 94 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 562 WriteTo(__razor_helper_writer, RenderModule(item)); 563 564 565 #line default 566 #line hidden 567 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 568 569 570 #line 96 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 571 572 573 #line default 574 #line hidden 575 576 #line 96 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 577 WriteTo(__razor_helper_writer, RenderButton(item)); 578 579 580 #line default 581 #line hidden 582 583 #line 96 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 584 585 break; 586 } 587 588 589 #line default 590 #line hidden 591 }); 592 593 #line 99 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 594 } 595 #line default 596 #line hidden 597 598 599 #line 101 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 600 public RazorEngine.Templating.TemplateWriter RenderHeading(ItemViewModel item) 601 { 602 #line default 603 #line hidden 604 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 605 606 #line 102 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 607 608 if (item.GetBoolean("ShowTitle") != false && !string.IsNullOrEmpty(item.GetString("Title"))) 609 { 610 string headerMargin = item.GetString("Text") != "" && item.GetString("Image") != "" ? "u-margin-bottom" : ""; 611 headerMargin = Model.GetModuleOutput() == "" ? headerMargin : "u-margin-bottom"; 612 string url = item.GetString("Link"); 613 614 if (!String.IsNullOrEmpty(url)) 615 { 616 617 618 #line default 619 #line hidden 620 WriteLiteralTo(__razor_helper_writer, " <a"); 621 622 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4310), Tuple.Create("\"", 4322) 623 624 #line 111 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 625 , Tuple.Create(Tuple.Create("", 4318), Tuple.Create<System.Object, System.Int32>(url 626 627 #line default 628 #line hidden 629 , 4318), false) 630 ); 631 632 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2"); 633 634 WriteLiteralTo(__razor_helper_writer, " data-insights-category=\"readMore\""); 635 636 WriteLiteralTo(__razor_helper_writer, " data-insights-action=\"redirect\""); 637 638 WriteLiteralTo(__razor_helper_writer, " data-insights-value=\""); 639 640 641 #line 112 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 642 WriteTo(__razor_helper_writer, item.GetString("Title")); 643 644 645 #line default 646 #line hidden 647 WriteLiteralTo(__razor_helper_writer, "\""); 648 649 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4458), Tuple.Create("\"", 4491) 650 , Tuple.Create(Tuple.Create("", 4466), Tuple.Create("u-no-margin", 4466), true) 651 652 #line 112 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 653 , Tuple.Create(Tuple.Create(" ", 4477), Tuple.Create<System.Object, System.Int32>(headerMargin 654 655 #line default 656 #line hidden 657 , 4478), false) 658 ); 659 660 WriteLiteralTo(__razor_helper_writer, ">"); 661 662 663 #line 112 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 664 WriteTo(__razor_helper_writer, item.GetString("Title")); 665 666 667 #line default 668 #line hidden 669 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </a>\r\n"); 670 671 672 #line 114 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 673 } 674 else 675 { 676 677 678 #line default 679 #line hidden 680 WriteLiteralTo(__razor_helper_writer, " <h2"); 681 682 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4593), Tuple.Create("\"", 4626) 683 , Tuple.Create(Tuple.Create("", 4601), Tuple.Create("u-no-margin", 4601), true) 684 685 #line 117 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 686 , Tuple.Create(Tuple.Create(" ", 4612), Tuple.Create<System.Object, System.Int32>(headerMargin 687 688 #line default 689 #line hidden 690 , 4613), false) 691 ); 692 693 WriteLiteralTo(__razor_helper_writer, ">"); 694 695 696 #line 117 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 697 WriteTo(__razor_helper_writer, item.GetString("Title")); 698 699 700 #line default 701 #line hidden 702 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 703 704 705 #line 118 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 706 } 707 } 708 709 710 #line default 711 #line hidden 712 }); 713 714 #line 120 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 715 } 716 #line default 717 #line hidden 718 719 720 #line 122 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 721 public RazorEngine.Templating.TemplateWriter RenderButton(ItemViewModel item) 722 { 723 #line default 724 #line hidden 725 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 726 727 #line 123 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 728 729 string url = item.GetString("Link"); 730 string linkText = item.GetString("LinkText"); 731 string secondaryUrl = item.GetString("SecondaryLink"); 732 string secondaryLinkText = item.GetString("SecondaryLinkText"); 733 string footerCssClass = ""; 734 string cardFooterClass = item.GetBoolean("ShowAsCard") ? "paragraph-card-footer" : "grid__cell-footer"; 735 cardFooterClass = Pageview.Device.ToString() != "Tablet" ? cardFooterClass : ""; 736 string alingClass = ""; 737 738 if (item.GetList("ContentPositions").SelectedValue == "all-centered" || item.GetList("ContentPositions").SelectedValue == "middle-center") { 739 footerCssClass = "grid--justify-center"; 740 alingClass = "grid--justify-center"; 741 } 742 743 if ((!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(linkText)) || (!string.IsNullOrEmpty(secondaryUrl) && !string.IsNullOrEmpty(secondaryLinkText))) 744 { 745 746 747 #line default 748 #line hidden 749 WriteLiteralTo(__razor_helper_writer, " <div"); 750 751 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5636), Tuple.Create("\"", 5687) 752 , Tuple.Create(Tuple.Create("", 5644), Tuple.Create("grid__cell", 5644), true) 753 754 #line 140 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 755 , Tuple.Create(Tuple.Create(" ", 5654), Tuple.Create<System.Object, System.Int32>(footerCssClass 756 757 #line default 758 #line hidden 759 , 5655), false) 760 761 #line 140 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 762 , Tuple.Create(Tuple.Create(" ", 5670), Tuple.Create<System.Object, System.Int32>(cardFooterClass 763 764 #line default 765 #line hidden 766 , 5671), false) 767 ); 768 769 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 770 771 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5707), Tuple.Create("\"", 5759) 772 , Tuple.Create(Tuple.Create("", 5715), Tuple.Create("u-margin-top--lg", 5715), true) 773 , Tuple.Create(Tuple.Create(" ", 5731), Tuple.Create("u-margin-bottom", 5732), true) 774 775 #line 141 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 776 , Tuple.Create(Tuple.Create(" ", 5747), Tuple.Create<System.Object, System.Int32>(alingClass 777 778 #line default 779 #line hidden 780 , 5748), false) 781 ); 782 783 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n"); 784 785 786 #line 143 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 787 788 789 #line default 790 #line hidden 791 792 #line 143 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 793 if (!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(linkText)) 794 { 795 string buttonStyle = !String.IsNullOrEmpty(item.GetList("ButtonDesign").SelectedValue) ? item.GetList("ButtonDesign").SelectedValue : "primary"; 796 if (url.Contains("http")) 797 { 798 799 800 #line default 801 #line hidden 802 WriteLiteralTo(__razor_helper_writer, " <a"); 803 804 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6131), Tuple.Create("\"", 6142) 805 806 #line 148 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 807 , Tuple.Create(Tuple.Create("", 6138), Tuple.Create<System.Object, System.Int32>(url 808 809 #line default 810 #line hidden 811 , 6138), false) 812 ); 813 814 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6143), Tuple.Create("\"", 6179) 815 , Tuple.Create(Tuple.Create("", 6151), Tuple.Create("btn", 6151), true) 816 , Tuple.Create(Tuple.Create(" ", 6154), Tuple.Create("btn--", 6155), true) 817 818 #line 148 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 819 , Tuple.Create(Tuple.Create("", 6160), Tuple.Create<System.Object, System.Int32>(buttonStyle 820 821 #line default 822 #line hidden 823 , 6160), false) 824 , Tuple.Create(Tuple.Create(" ", 6172), Tuple.Create("dw-mod", 6173), true) 825 ); 826 827 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 828 829 WriteLiteralTo(__razor_helper_writer, ">"); 830 831 832 #line 148 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 833 WriteTo(__razor_helper_writer, linkText); 834 835 836 #line default 837 #line hidden 838 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 839 840 841 #line 149 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 842 } 843 else if (url.Contains("/")) 844 { 845 846 847 #line default 848 #line hidden 849 WriteLiteralTo(__razor_helper_writer, " <a"); 850 851 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6333), Tuple.Create("\"", 6344) 852 853 #line 152 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 854 , Tuple.Create(Tuple.Create("", 6340), Tuple.Create<System.Object, System.Int32>(url 855 856 #line default 857 #line hidden 858 , 6340), false) 859 ); 860 861 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6345), Tuple.Create("\"", 6381) 862 , Tuple.Create(Tuple.Create("", 6353), Tuple.Create("btn", 6353), true) 863 , Tuple.Create(Tuple.Create(" ", 6356), Tuple.Create("btn--", 6357), true) 864 865 #line 152 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 866 , Tuple.Create(Tuple.Create("", 6362), Tuple.Create<System.Object, System.Int32>(buttonStyle 867 868 #line default 869 #line hidden 870 , 6362), false) 871 , Tuple.Create(Tuple.Create(" ", 6374), Tuple.Create("dw-mod", 6375), true) 872 ); 873 874 WriteLiteralTo(__razor_helper_writer, " download>"); 875 876 877 #line 152 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 878 WriteTo(__razor_helper_writer, linkText); 879 880 881 #line default 882 #line hidden 883 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 884 885 886 #line 153 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 887 } 888 else 889 { 890 891 892 #line default 893 #line hidden 894 WriteLiteralTo(__razor_helper_writer, " <a"); 895 896 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6505), Tuple.Create("\"", 6516) 897 898 #line 156 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 899 , Tuple.Create(Tuple.Create("", 6512), Tuple.Create<System.Object, System.Int32>(url 900 901 #line default 902 #line hidden 903 , 6512), false) 904 ); 905 906 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6517), Tuple.Create("\"", 6553) 907 , Tuple.Create(Tuple.Create("", 6525), Tuple.Create("btn", 6525), true) 908 , Tuple.Create(Tuple.Create(" ", 6528), Tuple.Create("btn--", 6529), true) 909 910 #line 156 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 911 , Tuple.Create(Tuple.Create("", 6534), Tuple.Create<System.Object, System.Int32>(buttonStyle 912 913 #line default 914 #line hidden 915 , 6534), false) 916 , Tuple.Create(Tuple.Create(" ", 6546), Tuple.Create("dw-mod", 6547), true) 917 ); 918 919 WriteLiteralTo(__razor_helper_writer, ">"); 920 921 922 #line 156 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 923 WriteTo(__razor_helper_writer, linkText); 924 925 926 #line default 927 #line hidden 928 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 929 930 931 #line 157 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 932 } 933 } 934 935 936 #line default 937 #line hidden 938 WriteLiteralTo(__razor_helper_writer, "\r\n"); 939 940 941 #line 160 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 942 943 944 #line default 945 #line hidden 946 947 #line 160 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 948 if (!string.IsNullOrEmpty(secondaryUrl) && !string.IsNullOrEmpty(secondaryLinkText)) 949 { 950 string secondaryButtonStyle = !String.IsNullOrEmpty(item.GetList("SecondaryButtonDesign").SelectedValue) ? item.GetList("SecondaryButtonDesign").SelectedValue : "primary"; 951 if (secondaryUrl.Contains("http")) 952 { 953 954 955 #line default 956 #line hidden 957 WriteLiteralTo(__razor_helper_writer, " <a"); 958 959 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 7034), Tuple.Create("\"", 7054) 960 961 #line 165 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 962 , Tuple.Create(Tuple.Create("", 7041), Tuple.Create<System.Object, System.Int32>(secondaryUrl 963 964 #line default 965 #line hidden 966 , 7041), false) 967 ); 968 969 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7055), Tuple.Create("\"", 7100) 970 , Tuple.Create(Tuple.Create("", 7063), Tuple.Create("btn", 7063), true) 971 , Tuple.Create(Tuple.Create(" ", 7066), Tuple.Create("btn--", 7067), true) 972 973 #line 165 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 974 , Tuple.Create(Tuple.Create("", 7072), Tuple.Create<System.Object, System.Int32>(secondaryButtonStyle 975 976 #line default 977 #line hidden 978 , 7072), false) 979 , Tuple.Create(Tuple.Create(" ", 7093), Tuple.Create("dw-mod", 7094), true) 980 ); 981 982 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 983 984 WriteLiteralTo(__razor_helper_writer, ">"); 985 986 987 #line 165 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 988 WriteTo(__razor_helper_writer, secondaryLinkText); 989 990 991 #line default 992 #line hidden 993 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 994 995 996 #line 166 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 997 } 998 else if (secondaryUrl.Contains("/")) 999 { 1000 1001 1002 #line default 1003 #line hidden 1004 WriteLiteralTo(__razor_helper_writer, " <a"); 1005 1006 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 7272), Tuple.Create("\"", 7292) 1007 1008 #line 169 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1009 , Tuple.Create(Tuple.Create("", 7279), Tuple.Create<System.Object, System.Int32>(secondaryUrl 1010 1011 #line default 1012 #line hidden 1013 , 7279), false) 1014 ); 1015 1016 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7293), Tuple.Create("\"", 7338) 1017 , Tuple.Create(Tuple.Create("", 7301), Tuple.Create("btn", 7301), true) 1018 , Tuple.Create(Tuple.Create(" ", 7304), Tuple.Create("btn--", 7305), true) 1019 1020 #line 169 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1021 , Tuple.Create(Tuple.Create("", 7310), Tuple.Create<System.Object, System.Int32>(secondaryButtonStyle 1022 1023 #line default 1024 #line hidden 1025 , 7310), false) 1026 , Tuple.Create(Tuple.Create(" ", 7331), Tuple.Create("dw-mod", 7332), true) 1027 ); 1028 1029 WriteLiteralTo(__razor_helper_writer, " download>"); 1030 1031 1032 #line 169 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1033 WriteTo(__razor_helper_writer, secondaryLinkText); 1034 1035 1036 #line default 1037 #line hidden 1038 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1039 1040 1041 #line 170 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1042 } 1043 else 1044 { 1045 1046 1047 #line default 1048 #line hidden 1049 WriteLiteralTo(__razor_helper_writer, " <a"); 1050 1051 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 7471), Tuple.Create("\"", 7491) 1052 1053 #line 173 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1054 , Tuple.Create(Tuple.Create("", 7478), Tuple.Create<System.Object, System.Int32>(secondaryUrl 1055 1056 #line default 1057 #line hidden 1058 , 7478), false) 1059 ); 1060 1061 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7492), Tuple.Create("\"", 7537) 1062 , Tuple.Create(Tuple.Create("", 7500), Tuple.Create("btn", 7500), true) 1063 , Tuple.Create(Tuple.Create(" ", 7503), Tuple.Create("btn--", 7504), true) 1064 1065 #line 173 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1066 , Tuple.Create(Tuple.Create("", 7509), Tuple.Create<System.Object, System.Int32>(secondaryButtonStyle 1067 1068 #line default 1069 #line hidden 1070 , 7509), false) 1071 , Tuple.Create(Tuple.Create(" ", 7530), Tuple.Create("dw-mod", 7531), true) 1072 ); 1073 1074 WriteLiteralTo(__razor_helper_writer, ">"); 1075 1076 1077 #line 173 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1078 WriteTo(__razor_helper_writer, secondaryLinkText); 1079 1080 1081 #line default 1082 #line hidden 1083 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1084 1085 1086 #line 174 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1087 } 1088 } 1089 1090 1091 #line default 1092 #line hidden 1093 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 1094 1095 1096 #line 178 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1097 } else { 1098 1099 1100 #line default 1101 #line hidden 1102 WriteLiteralTo(__razor_helper_writer, " <div"); 1103 1104 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7667), Tuple.Create("\"", 7725) 1105 , Tuple.Create(Tuple.Create("", 7675), Tuple.Create("grid__cell-footer", 7675), true) 1106 1107 #line 179 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1108 , Tuple.Create(Tuple.Create(" ", 7692), Tuple.Create<System.Object, System.Int32>(footerCssClass 1109 1110 #line default 1111 #line hidden 1112 , 7693), false) 1113 1114 #line 179 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1115 , Tuple.Create(Tuple.Create(" ", 7708), Tuple.Create<System.Object, System.Int32>(cardFooterClass 1116 1117 #line default 1118 #line hidden 1119 , 7709), false) 1120 ); 1121 1122 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 1123 1124 1125 #line 180 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1126 } 1127 1128 1129 #line default 1130 #line hidden 1131 }); 1132 1133 #line 181 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1134 } 1135 #line default 1136 #line hidden 1137 1138 1139 #line 183 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1140 public RazorEngine.Templating.TemplateWriter RenderText(ItemViewModel item) 1141 { 1142 #line default 1143 #line hidden 1144 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1145 1146 #line 184 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1147 1148 if (!string.IsNullOrWhiteSpace(item.GetString("Text"))) 1149 { 1150 1151 1152 #line default 1153 #line hidden 1154 1155 #line 187 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1156 WriteTo(__razor_helper_writer, item.GetString("Text")); 1157 1158 1159 #line default 1160 #line hidden 1161 1162 #line 187 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1163 1164 } 1165 1166 1167 #line default 1168 #line hidden 1169 }); 1170 1171 #line 189 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1172 } 1173 #line default 1174 #line hidden 1175 1176 1177 #line 191 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1178 public RazorEngine.Templating.TemplateWriter RenderModule(ItemViewModel item) 1179 { 1180 #line default 1181 #line hidden 1182 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1183 1184 #line 192 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1185 1186 1187 1188 #line default 1189 #line hidden 1190 1191 #line 193 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1192 WriteTo(__razor_helper_writer, Model.GetModuleOutput()); 1193 1194 1195 #line default 1196 #line hidden 1197 1198 #line 193 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1199 ; 1200 1201 1202 #line default 1203 #line hidden 1204 }); 1205 1206 #line 194 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1207 } 1208 #line default 1209 #line hidden 1210 1211 1212 #line 196 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1213 public RazorEngine.Templating.TemplateWriter RenderImage(ItemViewModel item, bool isCarousel) 1214 { 1215 #line default 1216 #line hidden 1217 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1218 1219 #line 197 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1220 1221 if (!string.IsNullOrEmpty(item.GetString("Image")) && item.GetList("ImageStyle").SelectedValue != "background") 1222 { 1223 string url = item.GetString("Link"); 1224 1225 1226 1227 #line default 1228 #line hidden 1229 WriteLiteralTo(__razor_helper_writer, " <div"); 1230 1231 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-bottom\""); 1232 1233 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1234 1235 1236 #line 203 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1237 1238 1239 #line default 1240 #line hidden 1241 1242 #line 203 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1243 if (!String.IsNullOrEmpty(url)) 1244 { 1245 1246 1247 #line default 1248 #line hidden 1249 WriteLiteralTo(__razor_helper_writer, " <a"); 1250 1251 WriteLiteralTo(__razor_helper_writer, " class=\"SneDummyClass\""); 1252 1253 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1254 1255 WriteLiteralTo(__razor_helper_writer, " "); 1256 1257 1258 #line 206 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1259 WriteTo(__razor_helper_writer, RenderImageElement(item, isCarousel)); 1260 1261 1262 #line default 1263 #line hidden 1264 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 1265 1266 1267 #line 208 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1268 } 1269 else 1270 { 1271 1272 1273 #line default 1274 #line hidden 1275 1276 #line 211 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1277 WriteTo(__razor_helper_writer, RenderImageElement(item, isCarousel)); 1278 1279 1280 #line default 1281 #line hidden 1282 1283 #line 211 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1284 1285 } 1286 1287 1288 #line default 1289 #line hidden 1290 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 1291 1292 1293 #line 214 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1294 } 1295 1296 1297 #line default 1298 #line hidden 1299 }); 1300 1301 #line 215 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1302 } 1303 #line default 1304 #line hidden 1305 1306 1307 #line 217 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1308 public RazorEngine.Templating.TemplateWriter RenderImageElement(ItemViewModel item, bool isCarousel) 1309 { 1310 #line default 1311 #line hidden 1312 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1313 1314 #line 218 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1315 1316 string image = item.GetFile("Image") != null ? item.GetFile("Image").PathUrlEncoded : ""; 1317 string imageFilterColor = item.GetList("ColorForTheFilter").SelectedValue != null ? item.GetList("ColorForTheFilter").SelectedValue : "none"; 1318 string imageFilterPrimary = item.GetList("ImageFilterPrimary").SelectedValue != null ? item.GetList("ImageFilterPrimary").SelectedValue : "none"; 1319 string imageFilterSecondary = item.GetList("ImageFilterSecondary").SelectedValue != null ? item.GetList("ImageFilterSecondary").SelectedValue : "none"; 1320 string imageFilterBall = item.GetList("ImageStyle").SelectedValue == "ball" ? "image-filter--ball" : ""; 1321 string altText = item.GetString("Title"); 1322 string imgCssClass = ""; 1323 string imgCrop = !string.IsNullOrEmpty(item.GetList("ImageCrop").SelectedValue) ? item.GetList("ImageCrop").SelectedValue : "5"; 1324 bool fillCanvas = item.GetBoolean("FillCanvas") != null ? item.GetBoolean("FillCanvas") : true; 1325 string fillCanvasString = fillCanvas == true ? "&amp;FillCanvas=true" : ""; 1326 string imageBoxWidth = "480"; 1327 int imageWidth = Int32.Parse(item.GetList("Width").SelectedValue) < 8 ? 620 : 1240; 1328 int imageHeight = Int32.Parse(item.GetList("Width").SelectedValue) < 8 ? 496 : 950; 1329 string placeHolderImage = "/Files/Images/placeholder.gif"; 1330 1331 if (imageFilterPrimary == "colorize") { 1332 imageFilterPrimary = imageFilterColor; 1333 } 1334 1335 if (item.GetList("ContentPositions").SelectedValue == "image-centered" || item.GetList("ContentPositions").SelectedValue == "all-centered" || item.GetList("ContentPositions").SelectedValue == "middle-center") 1336 { 1337 imgCssClass = "grid__cell-img--centered"; 1338 } 1339 1340 1341 1342 #line default 1343 #line hidden 1344 WriteLiteralTo(__razor_helper_writer, " <div"); 1345 1346 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10382), Tuple.Create("\"", 10574) 1347 , Tuple.Create(Tuple.Create("", 10390), Tuple.Create("image", 10390), true) 1348 , Tuple.Create(Tuple.Create(" ", 10395), Tuple.Create("image-filter", 10396), true) 1349 , Tuple.Create(Tuple.Create(" ", 10408), Tuple.Create("image-filter--", 10409), true) 1350 1351 #line 243 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1352 , Tuple.Create(Tuple.Create("", 10423), Tuple.Create<System.Object, System.Int32>(imageFilterPrimary 1353 1354 #line default 1355 #line hidden 1356 , 10423), false) 1357 1358 #line 243 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1359 , Tuple.Create(Tuple.Create(" ", 10442), Tuple.Create<System.Object, System.Int32>(imageFilterBall 1360 1361 #line default 1362 #line hidden 1363 , 10443), false) 1364 , Tuple.Create(Tuple.Create(" ", 10459), Tuple.Create("dw-mod", 10460), true) 1365 , Tuple.Create(Tuple.Create(" ", 10466), Tuple.Create("js-main-image-filter", 10467), true) 1366 1367 #line 243 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1368 , Tuple.Create(Tuple.Create(" ", 10487), Tuple.Create<System.Object, System.Int32>(item.GetList("ContentPositions").SelectedValue == "middle-center" ? "u-middle" : "" 1369 1370 #line default 1371 #line hidden 1372 , 10488), false) 1373 ); 1374 1375 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1376 1377 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10590), Tuple.Create("\"", 10670) 1378 , Tuple.Create(Tuple.Create("", 10598), Tuple.Create("image-filter", 10598), true) 1379 , Tuple.Create(Tuple.Create(" ", 10610), Tuple.Create("image-filter--", 10611), true) 1380 1381 #line 244 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1382 , Tuple.Create(Tuple.Create("", 10625), Tuple.Create<System.Object, System.Int32>(imageFilterSecondary 1383 1384 #line default 1385 #line hidden 1386 , 10625), false) 1387 1388 #line 244 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1389 , Tuple.Create(Tuple.Create(" ", 10646), Tuple.Create<System.Object, System.Int32>(imageFilterBall 1390 1391 #line default 1392 #line hidden 1393 , 10647), false) 1394 , Tuple.Create(Tuple.Create(" ", 10663), Tuple.Create("dw-mod", 10664), true) 1395 ); 1396 1397 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1398 1399 1400 #line 245 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1401 1402 1403 #line default 1404 #line hidden 1405 1406 #line 245 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1407 if (item.GetList("ImageStyle").SelectedValue == "ball") 1408 { 1409 imgCssClass += " grid__cell-img--ball"; 1410 if (!isCarousel) 1411 { 1412 1413 1414 #line default 1415 #line hidden 1416 WriteLiteralTo(__razor_helper_writer, " <img"); 1417 1418 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10893), Tuple.Create("\"", 10935) 1419 , Tuple.Create(Tuple.Create("", 10901), Tuple.Create("grid__cell-img", 10901), true) 1420 1421 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1422 , Tuple.Create(Tuple.Create(" ", 10915), Tuple.Create<System.Object, System.Int32>(imgCssClass 1423 1424 #line default 1425 #line hidden 1426 , 10916), false) 1427 , Tuple.Create(Tuple.Create(" ", 10928), Tuple.Create("b-lazy", 10929), true) 1428 ); 1429 1430 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 10936), Tuple.Create("\"", 10959) 1431 1432 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1433 , Tuple.Create(Tuple.Create("", 10942), Tuple.Create<System.Object, System.Int32>(placeHolderImage 1434 1435 #line default 1436 #line hidden 1437 , 10942), false) 1438 ); 1439 1440 WriteLiteralTo(__razor_helper_writer, " data-src=\"/Admin/Public/GetImage.ashx?width="); 1441 1442 1443 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1444 WriteTo(__razor_helper_writer, imageBoxWidth); 1445 1446 1447 #line default 1448 #line hidden 1449 WriteLiteralTo(__razor_helper_writer, "&amp;height="); 1450 1451 1452 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1453 WriteTo(__razor_helper_writer, imageBoxWidth); 1454 1455 1456 #line default 1457 #line hidden 1458 WriteLiteralTo(__razor_helper_writer, "&amp;crop="); 1459 1460 1461 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1462 WriteTo(__razor_helper_writer, imgCrop); 1463 1464 1465 #line default 1466 #line hidden 1467 WriteLiteralTo(__razor_helper_writer, "&amp;Compression=75&amp;format=png&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;" + 1468 "image="); 1469 1470 1471 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1472 WriteTo(__razor_helper_writer, image); 1473 1474 1475 #line default 1476 #line hidden 1477 WriteLiteralTo(__razor_helper_writer, "\""); 1478 1479 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 11157), Tuple.Create("\"", 11171) 1480 1481 #line 250 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1482 , Tuple.Create(Tuple.Create("", 11163), Tuple.Create<System.Object, System.Int32>(altText 1483 1484 #line default 1485 #line hidden 1486 , 11163), false) 1487 ); 1488 1489 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1490 1491 1492 #line 251 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1493 } 1494 else 1495 { 1496 1497 1498 #line default 1499 #line hidden 1500 WriteLiteralTo(__razor_helper_writer, " <img"); 1501 1502 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 11262), Tuple.Create("\"", 11297) 1503 , Tuple.Create(Tuple.Create("", 11270), Tuple.Create("grid__cell-img", 11270), true) 1504 1505 #line 254 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1506 , Tuple.Create(Tuple.Create(" ", 11284), Tuple.Create<System.Object, System.Int32>(imgCssClass 1507 1508 #line default 1509 #line hidden 1510 , 11285), false) 1511 ); 1512 1513 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 11298), Tuple.Create("\"", 11469) 1514 , Tuple.Create(Tuple.Create("", 11304), Tuple.Create("/Admin/Public/GetImage.ashx?width=", 11304), true) 1515 1516 #line 254 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1517 , Tuple.Create(Tuple.Create("", 11338), Tuple.Create<System.Object, System.Int32>(imageBoxWidth 1518 1519 #line default 1520 #line hidden 1521 , 11338), false) 1522 , Tuple.Create(Tuple.Create("", 11352), Tuple.Create("&amp;height=", 11352), true) 1523 1524 #line 254 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1525 , Tuple.Create(Tuple.Create("", 11364), Tuple.Create<System.Object, System.Int32>(imageBoxWidth 1526 1527 #line default 1528 #line hidden 1529 , 11364), false) 1530 , Tuple.Create(Tuple.Create("", 11378), Tuple.Create("&amp;crop=", 11378), true) 1531 1532 #line 254 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1533 , Tuple.Create(Tuple.Create("", 11388), Tuple.Create<System.Object, System.Int32>(imgCrop 1534 1535 #line default 1536 #line hidden 1537 , 11388), false) 1538 , Tuple.Create(Tuple.Create("", 11396), Tuple.Create("&amp;Compression=75&amp;DoNotUpscale=true&amp;format=png&amp;image=", 11396), true) 1539 1540 #line 254 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1541 , Tuple.Create(Tuple.Create("", 11463), Tuple.Create<System.Object, System.Int32>(image 1542 1543 #line default 1544 #line hidden 1545 , 11463), false) 1546 ); 1547 1548 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 11470), Tuple.Create("\"", 11484) 1549 1550 #line 254 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1551 , Tuple.Create(Tuple.Create("", 11476), Tuple.Create<System.Object, System.Int32>(altText 1552 1553 #line default 1554 #line hidden 1555 , 11476), false) 1556 ); 1557 1558 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1559 1560 1561 #line 255 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1562 } 1563 } 1564 else 1565 { 1566 string retinaImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth*2 + "&amp;height=" + imageHeight*2 + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString + "&amp;DoNotUpscale=true&amp;format=png&amp;image=" + image; 1567 string largeImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth + "&amp;height=" + imageHeight + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString + "&amp;DoNotUpscale=true&amp;format=png&amp;image=" + image; 1568 string smallImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth + "&amp;height=" + imageHeight + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString+ "&amp;DoNotUpscale=true&amp;format=png&amp;image=" + image; 1569 1570 if (!isCarousel) 1571 { 1572 1573 1574 #line default 1575 #line hidden 1576 WriteLiteralTo(__razor_helper_writer, " <img"); 1577 1578 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 12382), Tuple.Create("\"", 12409) 1579 1580 #line 265 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1581 , Tuple.Create(Tuple.Create("", 12390), Tuple.Create<System.Object, System.Int32>(imgCssClass 1582 1583 #line default 1584 #line hidden 1585 , 12390), false) 1586 , Tuple.Create(Tuple.Create(" ", 12402), Tuple.Create("b-lazy", 12403), true) 1587 ); 1588 1589 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 12410), Tuple.Create("\"", 12433) 1590 1591 #line 265 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1592 , Tuple.Create(Tuple.Create("", 12416), Tuple.Create<System.Object, System.Int32>(placeHolderImage 1593 1594 #line default 1595 #line hidden 1596 , 12416), false) 1597 ); 1598 1599 WriteLiteralTo(__razor_helper_writer, " data-src=\""); 1600 1601 1602 #line 265 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1603 WriteTo(__razor_helper_writer, largeImage); 1604 1605 1606 #line default 1607 #line hidden 1608 WriteLiteralTo(__razor_helper_writer, "|"); 1609 1610 1611 #line 265 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1612 WriteTo(__razor_helper_writer, retinaImage); 1613 1614 1615 #line default 1616 #line hidden 1617 WriteLiteralTo(__razor_helper_writer, "\""); 1618 1619 WriteLiteralTo(__razor_helper_writer, " data-src-small=\""); 1620 1621 1622 #line 265 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1623 WriteTo(__razor_helper_writer, smallImage); 1624 1625 1626 #line default 1627 #line hidden 1628 WriteLiteralTo(__razor_helper_writer, "\""); 1629 1630 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 12499), Tuple.Create("\"", 12513) 1631 1632 #line 265 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1633 , Tuple.Create(Tuple.Create("", 12505), Tuple.Create<System.Object, System.Int32>(altText 1634 1635 #line default 1636 #line hidden 1637 , 12505), false) 1638 ); 1639 1640 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1641 1642 1643 #line 266 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1644 } 1645 else 1646 { 1647 1648 1649 #line default 1650 #line hidden 1651 WriteLiteralTo(__razor_helper_writer, " <img"); 1652 1653 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 12601), Tuple.Create("\"", 12621) 1654 1655 #line 269 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1656 , Tuple.Create(Tuple.Create("", 12609), Tuple.Create<System.Object, System.Int32>(imgCssClass 1657 1658 #line default 1659 #line hidden 1660 , 12609), false) 1661 ); 1662 1663 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 12622), Tuple.Create("\"", 12639) 1664 1665 #line 269 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1666 , Tuple.Create(Tuple.Create("", 12628), Tuple.Create<System.Object, System.Int32>(largeImage 1667 1668 #line default 1669 #line hidden 1670 , 12628), false) 1671 ); 1672 1673 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 12640), Tuple.Create("\"", 12654) 1674 1675 #line 269 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1676 , Tuple.Create(Tuple.Create("", 12646), Tuple.Create<System.Object, System.Int32>(altText 1677 1678 #line default 1679 #line hidden 1680 , 12646), false) 1681 ); 1682 1683 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1684 1685 1686 #line 270 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1687 } 1688 } 1689 1690 1691 #line default 1692 #line hidden 1693 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 1694 1695 1696 #line 274 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1697 1698 1699 #line default 1700 #line hidden 1701 }); 1702 1703 #line 274 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1704 } 1705 #line default 1706 #line hidden 1707 1708 1709 public RazorEngine_4d59a9dde29344099836726a7af56bfb() { 1710 } 1711 1712 public override void Execute() { 1713 WriteLiteral("\r\n"); 1714 1715 WriteLiteral("\r\n"); 1716 1717 WriteLiteral("\r\n"); 1718 1719 WriteLiteral("\r\n"); 1720 1721 WriteLiteral("\r\n"); 1722 1723 WriteLiteral("\r\n"); 1724 1725 WriteLiteral("\r\n"); 1726 1727 WriteLiteral("\r\n\r\n"); 1728 1729 1730 #line 277 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1731 1732 1733 var message = "Hej"´; 1734 1735 1736 1737 1738 1739 #line default 1740 #line hidden 1741 WriteLiteral("\r\n\r\n\r\n\r\n"); 1742 1743 1744 #line 287 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1745 1746 string backgroundImage = ""; 1747 string backgroundImageSmall = ""; 1748 string backgroundImageFilterColor = Model.Item.GetList("ColorForTheFilter").SelectedValue != null ? Model.Item.GetList("ColorForTheFilter").SelectedValue : "none"; 1749 string backgroundImageFilterPrimary = Model.Item.GetList("ImageFilterPrimary").SelectedValue != null ? Model.Item.GetList("ImageFilterPrimary").SelectedValue : "none"; 1750 string backgroundImageFilterSecondary = Model.Item.GetList("ImageFilterSecondary").SelectedValue != null ? Model.Item.GetList("ImageFilterSecondary").SelectedValue : "none"; 1751 string extraCssClasses = ""; 1752 string imageStyle = Model.Item.GetList("ImageStyle").SelectedValue; 1753 string placeHolderImage = "/Files/Images/placeholder.gif"; 1754 var CustomCssClass = Model.Item.GetValue("CustomCssClass"); 1755 1756 if (imageStyle == "background") 1757 { 1758 extraCssClasses = " grid__col--bg"; 1759 string cropMode = Model.Item.GetList("ImageCrop") != null ? Model.Item.GetList("ImageCrop").SelectedValue : "0"; 1760 string imagePath = Model.Item.GetFile("Image") != null ? Model.Item.GetFile("Image").PathUrlEncoded : ""; 1761 backgroundImage = "/Admin/Public/GetImage.ashx?width=2500&amp;height=1100&amp;crop=" + cropMode + "&DoNotUpscale=true&amp;Compression=75&amp;image=" + imagePath; 1762 backgroundImageSmall = "/Admin/Public/GetImage.ashx?width=1000&amp;height=850&amp;crop=" + cropMode + "&DoNotUpscale=true&amp;Compression=75&amp;image=" + imagePath; 1763 } 1764 1765 if (backgroundImageFilterPrimary == "colorize") 1766 { 1767 backgroundImageFilterPrimary = backgroundImageFilterColor; 1768 } 1769 1770 string paragraphContainerPadding = Model.Item.GetBoolean("HidePadding") ? "paragraph-container--no-padding" : ""; 1771 string hideOnMobile = Model.Item.GetList("WidthMobile").SelectedValue == "hide" ? " u-hidden-xs u-hidden-xxs" : " grid__col-xs-" + Model.Item.GetList("WidthMobile").SelectedValue; 1772 1773 string contentPosition = Model.Item.GetList("ContentPositions").SelectedValue; 1774 string contentPositionClasses = contentPosition == "middle-center" || contentPosition == "middle-left" ? "grid--justify-center u-middle " : ""; 1775 1776 1777 #line default 1778 #line hidden 1779 WriteLiteral("\r\n\r\n<div"); 1780 1781 WriteAttribute("class", Tuple.Create(" class=\"", 14973), Tuple.Create("\"", 15106) 1782 1783 #line 319 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1784 , Tuple.Create(Tuple.Create("", 14981), Tuple.Create<System.Object, System.Int32>(columnClass() 1785 1786 #line default 1787 #line hidden 1788 , 14981), false) 1789 1790 #line 319 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1791 , Tuple.Create(Tuple.Create(" ", 14995), Tuple.Create<System.Object, System.Int32>(extraCssClasses 1792 1793 #line default 1794 #line hidden 1795 , 14996), false) 1796 , Tuple.Create(Tuple.Create(" ", 15012), Tuple.Create("paragraph-container", 15013), true) 1797 1798 #line 319 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1799 , Tuple.Create(Tuple.Create(" ", 15032), Tuple.Create<System.Object, System.Int32>(paragraphContainerPadding 1800 1801 #line default 1802 #line hidden 1803 , 15033), false) 1804 1805 #line 319 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1806 , Tuple.Create(Tuple.Create(" ", 15059), Tuple.Create<System.Object, System.Int32>(contentPositionClasses 1807 1808 #line default 1809 #line hidden 1810 , 15060), false) 1811 , Tuple.Create(Tuple.Create(" ", 15083), Tuple.Create("dw-mod", 15084), true) 1812 1813 #line 319 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1814 , Tuple.Create(Tuple.Create(" ", 15090), Tuple.Create<System.Object, System.Int32>(CustomCssClass 1815 1816 #line default 1817 #line hidden 1818 , 15091), false) 1819 ); 1820 1821 WriteLiteral(">\r\n\r\n\r\n\r\n"); 1822 1823 1824 #line 323 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1825 1826 1827 #line default 1828 #line hidden 1829 1830 #line 323 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1831 if (imageStyle == "background" && Model.Item.GetFile("Image") != null) 1832 { 1833 1834 1835 #line default 1836 #line hidden 1837 WriteLiteral(" <div"); 1838 1839 WriteAttribute("class", Tuple.Create(" class=\"", 15212), Tuple.Create("\"", 15300) 1840 , Tuple.Create(Tuple.Create("", 15220), Tuple.Create("background-image", 15220), true) 1841 , Tuple.Create(Tuple.Create(" ", 15236), Tuple.Create("image-filter", 15237), true) 1842 , Tuple.Create(Tuple.Create(" ", 15249), Tuple.Create("image-filter--", 15250), true) 1843 1844 #line 325 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1845 , Tuple.Create(Tuple.Create("", 15264), Tuple.Create<System.Object, System.Int32>(backgroundImageFilterPrimary 1846 1847 #line default 1848 #line hidden 1849 , 15264), false) 1850 , Tuple.Create(Tuple.Create(" ", 15293), Tuple.Create("dw-mod", 15294), true) 1851 ); 1852 1853 WriteLiteral(">\r\n <div"); 1854 1855 WriteAttribute("class", Tuple.Create(" class=\"", 15320), Tuple.Create("\"", 15419) 1856 , Tuple.Create(Tuple.Create("", 15328), Tuple.Create("background-image__wrapper", 15328), true) 1857 , Tuple.Create(Tuple.Create(" ", 15353), Tuple.Create("image-filter", 15354), true) 1858 , Tuple.Create(Tuple.Create(" ", 15366), Tuple.Create("image-filter--", 15367), true) 1859 1860 #line 326 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1861 , Tuple.Create(Tuple.Create("", 15381), Tuple.Create<System.Object, System.Int32>(backgroundImageFilterSecondary 1862 1863 #line default 1864 #line hidden 1865 , 15381), false) 1866 , Tuple.Create(Tuple.Create(" ", 15412), Tuple.Create("dw-mod", 15413), true) 1867 ); 1868 1869 WriteLiteral(">\r\n <img"); 1870 1871 WriteLiteral(" class=\"background-image__cover dw-mod b-lazy\""); 1872 1873 WriteAttribute("src", Tuple.Create(" src=\"", 15489), Tuple.Create("\"", 15512) 1874 1875 #line 327 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1876 , Tuple.Create(Tuple.Create("", 15495), Tuple.Create<System.Object, System.Int32>(placeHolderImage 1877 1878 #line default 1879 #line hidden 1880 , 15495), false) 1881 ); 1882 1883 WriteLiteral(" data-src=\""); 1884 1885 1886 #line 327 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1887 Write(backgroundImage); 1888 1889 1890 #line default 1891 #line hidden 1892 WriteLiteral("\""); 1893 1894 WriteLiteral(" data-src-small=\""); 1895 1896 1897 #line 327 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1898 Write(backgroundImageSmall); 1899 1900 1901 #line default 1902 #line hidden 1903 WriteLiteral("\""); 1904 1905 WriteLiteral(" alt=\"\""); 1906 1907 WriteLiteral(">\r\n </div>\r\n </div>\r\n"); 1908 1909 1910 #line 330 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1911 } 1912 1913 1914 #line default 1915 #line hidden 1916 WriteLiteral("\r\n"); 1917 1918 WriteLiteral(" "); 1919 1920 1921 #line 332 "D:\home\site\wwwroot\Files\Templates\Designs\Rapido\Paragraph\404Alternativ.cshtml" 1922 Write(RenderContent(Model.Item)); 1923 1924 1925 #line default 1926 #line hidden 1927 WriteLiteral("\r\n</div> "); 1928 1929 } 1930 } 1931 } 1932

1 @using System.Web; 2 @using System.Net; 3 @using System.IO; 4 @using Timursdll; 5 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 6 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 7 8 @functions { 9 public string columnClass() 10 { 11 string columnValue = Model.Item.GetList("Width") != null ? Model.Item.GetList("Width").SelectedValue : "12"; 12 string columnClasses = "grid__col-lg-" + columnValue + " grid__col-md-" + columnValue + " grid__col-sm-" + columnValue; 13 string hideOnMobile = Model.Item.GetList("WidthMobile").SelectedValue == "hide" ? " u-hidden-xs u-hidden-xxs" : " grid__col-xs-" + Model.Item.GetList("WidthMobile").SelectedValue; 14 15 return columnClasses + hideOnMobile; 16 } 17 } 18 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 19 @using Dynamicweb.Frontend 20 21 @helper RenderContent(ItemViewModel item, bool isCarousel = false) 22 { 23 string cardClass = item.GetBoolean("ShowAsCard") ? "paragraph-card" : "grid__cell"; 24 cardClass = Pageview.Device.ToString() != "Tablet" ? cardClass : "grid__cell"; 25 26 string contentPosition = item.GetList("ContentPositions").SelectedValue; 27 28 switch (contentPosition) { 29 case "title-top": 30 <div class="@cardClass"> 31 @RenderHeading(item) 32 @RenderImage(item, isCarousel) 33 @RenderText(item) 34 @RenderModule(item) 35 </div> 36 @RenderButton(item) 37 break; 38 case "image-left": 39 <div class="grid"> 40 <div class="grid__col-3"> 41 @RenderImage(item, isCarousel) 42 </div> 43 <div class="grid__col-9"> 44 @RenderHeading(item) 45 @RenderText(item) 46 @RenderModule(item) 47 @RenderButton(item) 48 </div> 49 </div> 50 break; 51 case "image-right": 52 <div class="grid"> 53 <div class="grid__col-9"> 54 @RenderHeading(item) 55 @RenderText(item) 56 @RenderModule(item) 57 @RenderButton(item) 58 </div> 59 <div class="grid__col-3"> 60 @RenderImage(item, isCarousel) 61 </div> 62 </div> 63 break; 64 case "all-centered": 65 <div class="u-ta-center @cardClass"> 66 @RenderImage(item, isCarousel) 67 @RenderHeading(item) 68 @RenderText(item) 69 @RenderModule(item) 70 </div> 71 @RenderButton(item) 72 break; 73 case "middle-center": 74 case "middle-left": 75 @*Part of styles is placed in Paragraph.cshtml & ParagraphContainer.cshtml*@ 76 <div class="@(contentPosition == "middle-center" ? "grid--align-self-center" : "")"> 77 <div class="@cardClass"> 78 <div class="@(contentPosition == "middle-center" ? "u-ta-center" : "")"> 79 @RenderImage(item, isCarousel) 80 @RenderHeading(item) 81 @RenderText(item) 82 @RenderModule(item) 83 </div> 84 </div> 85 @RenderButton(item) 86 </div> 87 break; 88 //for "image-top" and "image-centered" 89 default: 90 <div class="@cardClass"> 91 @RenderImage(item, isCarousel) 92 @RenderHeading(item) 93 @RenderText(item) 94 @RenderModule(item) 95 </div> 96 @RenderButton(item) 97 break; 98 } 99 } 100 101 @helper RenderHeading(ItemViewModel item) 102 { 103 if (item.GetBoolean("ShowTitle") != false && !string.IsNullOrEmpty(item.GetString("Title"))) 104 { 105 string headerMargin = item.GetString("Text") != "" && item.GetString("Image") != "" ? "u-margin-bottom" : ""; 106 headerMargin = Model.GetModuleOutput() == "" ? headerMargin : "u-margin-bottom"; 107 string url = item.GetString("Link"); 108 109 if (!String.IsNullOrEmpty(url)) 110 { 111 <a href="@url"> 112 <h2 data-insights-category="readMore" data-insights-action="redirect" data-insights-value="@item.GetString("Title")" class="u-no-margin @headerMargin">@item.GetString("Title")</h2> 113 </a> 114 } 115 else 116 { 117 <h2 class="u-no-margin @headerMargin">@item.GetString("Title")</h2> 118 } 119 } 120 } 121 122 @helper RenderButton(ItemViewModel item) 123 { 124 string url = item.GetString("Link"); 125 string linkText = item.GetString("LinkText"); 126 string secondaryUrl = item.GetString("SecondaryLink"); 127 string secondaryLinkText = item.GetString("SecondaryLinkText"); 128 string footerCssClass = ""; 129 string cardFooterClass = item.GetBoolean("ShowAsCard") ? "paragraph-card-footer" : "grid__cell-footer"; 130 cardFooterClass = Pageview.Device.ToString() != "Tablet" ? cardFooterClass : ""; 131 string alingClass = ""; 132 133 if (item.GetList("ContentPositions").SelectedValue == "all-centered" || item.GetList("ContentPositions").SelectedValue == "middle-center") { 134 footerCssClass = "grid--justify-center"; 135 alingClass = "grid--justify-center"; 136 } 137 138 if ((!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(linkText)) || (!string.IsNullOrEmpty(secondaryUrl) && !string.IsNullOrEmpty(secondaryLinkText))) 139 { 140 <div class="grid__cell @footerCssClass @cardFooterClass"> 141 <div class="u-margin-top--lg u-margin-bottom @alingClass"> 142 143 @if (!string.IsNullOrEmpty(url) && !string.IsNullOrEmpty(linkText)) 144 { 145 string buttonStyle = !String.IsNullOrEmpty(item.GetList("ButtonDesign").SelectedValue) ? item.GetList("ButtonDesign").SelectedValue : "primary"; 146 if (url.Contains("http")) 147 { 148 <a href="@url" class="btn btn--@buttonStyle dw-mod" target="_blank">@linkText</a> 149 } 150 else if (url.Contains("/")) 151 { 152 <a href="@url" class="btn btn--@buttonStyle dw-mod" download>@linkText</a> 153 } 154 else 155 { 156 <a href="@url" class="btn btn--@buttonStyle dw-mod">@linkText</a> 157 } 158 } 159 160 @if (!string.IsNullOrEmpty(secondaryUrl) && !string.IsNullOrEmpty(secondaryLinkText)) 161 { 162 string secondaryButtonStyle = !String.IsNullOrEmpty(item.GetList("SecondaryButtonDesign").SelectedValue) ? item.GetList("SecondaryButtonDesign").SelectedValue : "primary"; 163 if (secondaryUrl.Contains("http")) 164 { 165 <a href="@secondaryUrl" class="btn btn--@secondaryButtonStyle dw-mod" target="_blank">@secondaryLinkText</a> 166 } 167 else if (secondaryUrl.Contains("/")) 168 { 169 <a href="@secondaryUrl" class="btn btn--@secondaryButtonStyle dw-mod" download>@secondaryLinkText</a> 170 } 171 else 172 { 173 <a href="@secondaryUrl" class="btn btn--@secondaryButtonStyle dw-mod">@secondaryLinkText</a> 174 } 175 } 176 </div> 177 </div> 178 } else { 179 <div class="grid__cell-footer @footerCssClass @cardFooterClass"></div> 180 } 181 } 182 183 @helper RenderText(ItemViewModel item) 184 { 185 if (!string.IsNullOrWhiteSpace(item.GetString("Text"))) 186 { 187 @item.GetString("Text") 188 } 189 } 190 191 @helper RenderModule(ItemViewModel item) 192 { 193 @Model.GetModuleOutput(); 194 } 195 196 @helper RenderImage(ItemViewModel item, bool isCarousel) 197 { 198 if (!string.IsNullOrEmpty(item.GetString("Image")) && item.GetList("ImageStyle").SelectedValue != "background") 199 { 200 string url = item.GetString("Link"); 201 202 <div class="u-margin-bottom"> 203 @if (!String.IsNullOrEmpty(url)) 204 { 205 <a class="SneDummyClass"> 206 @RenderImageElement(item, isCarousel) 207 </a> 208 } 209 else 210 { 211 @RenderImageElement(item, isCarousel) 212 } 213 </div> 214 } 215 } 216 217 @helper RenderImageElement(ItemViewModel item, bool isCarousel) 218 { 219 string image = item.GetFile("Image") != null ? item.GetFile("Image").PathUrlEncoded : ""; 220 string imageFilterColor = item.GetList("ColorForTheFilter").SelectedValue != null ? item.GetList("ColorForTheFilter").SelectedValue : "none"; 221 string imageFilterPrimary = item.GetList("ImageFilterPrimary").SelectedValue != null ? item.GetList("ImageFilterPrimary").SelectedValue : "none"; 222 string imageFilterSecondary = item.GetList("ImageFilterSecondary").SelectedValue != null ? item.GetList("ImageFilterSecondary").SelectedValue : "none"; 223 string imageFilterBall = item.GetList("ImageStyle").SelectedValue == "ball" ? "image-filter--ball" : ""; 224 string altText = item.GetString("Title"); 225 string imgCssClass = ""; 226 string imgCrop = !string.IsNullOrEmpty(item.GetList("ImageCrop").SelectedValue) ? item.GetList("ImageCrop").SelectedValue : "5"; 227 bool fillCanvas = item.GetBoolean("FillCanvas") != null ? item.GetBoolean("FillCanvas") : true; 228 string fillCanvasString = fillCanvas == true ? "&amp;FillCanvas=true" : ""; 229 string imageBoxWidth = "480"; 230 int imageWidth = Int32.Parse(item.GetList("Width").SelectedValue) < 8 ? 620 : 1240; 231 int imageHeight = Int32.Parse(item.GetList("Width").SelectedValue) < 8 ? 496 : 950; 232 string placeHolderImage = "/Files/Images/placeholder.gif"; 233 234 if (imageFilterPrimary == "colorize") { 235 imageFilterPrimary = imageFilterColor; 236 } 237 238 if (item.GetList("ContentPositions").SelectedValue == "image-centered" || item.GetList("ContentPositions").SelectedValue == "all-centered" || item.GetList("ContentPositions").SelectedValue == "middle-center") 239 { 240 imgCssClass = "grid__cell-img--centered"; 241 } 242 243 <div class="image image-filter image-filter--@imageFilterPrimary @imageFilterBall dw-mod js-main-image-filter @(item.GetList("ContentPositions").SelectedValue == "middle-center" ? "u-middle" : "")"> 244 <div class="image-filter image-filter--@imageFilterSecondary @imageFilterBall dw-mod"> 245 @if (item.GetList("ImageStyle").SelectedValue == "ball") 246 { 247 imgCssClass += " grid__cell-img--ball"; 248 if (!isCarousel) 249 { 250 <img class="grid__cell-img @imgCssClass b-lazy" src="@placeHolderImage" data-src="/Admin/Public/GetImage.ashx?width=@imageBoxWidth&amp;height=@imageBoxWidth&amp;crop=@imgCrop&amp;Compression=75&amp;format=png&amp;DoNotUpscale=true&amp;FillCanvas=true&amp;image=@image" alt="@altText"> 251 } 252 else 253 { 254 <img class="grid__cell-img @imgCssClass" src="/Admin/Public/GetImage.ashx?width=@imageBoxWidth&amp;height=@imageBoxWidth&amp;crop=@imgCrop&amp;Compression=75&amp;DoNotUpscale=true&amp;format=png&amp;image=@image" alt="@altText"> 255 } 256 } 257 else 258 { 259 string retinaImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth*2 + "&amp;height=" + imageHeight*2 + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString + "&amp;DoNotUpscale=true&amp;format=png&amp;image=" + image; 260 string largeImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth + "&amp;height=" + imageHeight + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString + "&amp;DoNotUpscale=true&amp;format=png&amp;image=" + image; 261 string smallImage = "/Admin/Public/GetImage.ashx?width=" + imageWidth + "&amp;height=" + imageHeight + "&amp;crop=" + imgCrop + "&amp;Compression=75" + fillCanvasString+ "&amp;DoNotUpscale=true&amp;format=png&amp;image=" + image; 262 263 if (!isCarousel) 264 { 265 <img class="@imgCssClass b-lazy" src="@placeHolderImage" data-src="@largeImage|@retinaImage" data-src-small="@smallImage" alt="@altText"> 266 } 267 else 268 { 269 <img class="@imgCssClass" src="@largeImage" alt="@altText"> 270 } 271 } 272 </div> 273 </div> 274 } 275 276 277 @{ 278 279 var message = "Hej"´; 280 281 282 283 } 284 285 286 287 @{ 288 string backgroundImage = ""; 289 string backgroundImageSmall = ""; 290 string backgroundImageFilterColor = Model.Item.GetList("ColorForTheFilter").SelectedValue != null ? Model.Item.GetList("ColorForTheFilter").SelectedValue : "none"; 291 string backgroundImageFilterPrimary = Model.Item.GetList("ImageFilterPrimary").SelectedValue != null ? Model.Item.GetList("ImageFilterPrimary").SelectedValue : "none"; 292 string backgroundImageFilterSecondary = Model.Item.GetList("ImageFilterSecondary").SelectedValue != null ? Model.Item.GetList("ImageFilterSecondary").SelectedValue : "none"; 293 string extraCssClasses = ""; 294 string imageStyle = Model.Item.GetList("ImageStyle").SelectedValue; 295 string placeHolderImage = "/Files/Images/placeholder.gif"; 296 var CustomCssClass = Model.Item.GetValue("CustomCssClass"); 297 298 if (imageStyle == "background") 299 { 300 extraCssClasses = " grid__col--bg"; 301 string cropMode = Model.Item.GetList("ImageCrop") != null ? Model.Item.GetList("ImageCrop").SelectedValue : "0"; 302 string imagePath = Model.Item.GetFile("Image") != null ? Model.Item.GetFile("Image").PathUrlEncoded : ""; 303 backgroundImage = "/Admin/Public/GetImage.ashx?width=2500&amp;height=1100&amp;crop=" + cropMode + "&DoNotUpscale=true&amp;Compression=75&amp;image=" + imagePath; 304 backgroundImageSmall = "/Admin/Public/GetImage.ashx?width=1000&amp;height=850&amp;crop=" + cropMode + "&DoNotUpscale=true&amp;Compression=75&amp;image=" + imagePath; 305 } 306 307 if (backgroundImageFilterPrimary == "colorize") 308 { 309 backgroundImageFilterPrimary = backgroundImageFilterColor; 310 } 311 312 string paragraphContainerPadding = Model.Item.GetBoolean("HidePadding") ? "paragraph-container--no-padding" : ""; 313 string hideOnMobile = Model.Item.GetList("WidthMobile").SelectedValue == "hide" ? " u-hidden-xs u-hidden-xxs" : " grid__col-xs-" + Model.Item.GetList("WidthMobile").SelectedValue; 314 315 string contentPosition = Model.Item.GetList("ContentPositions").SelectedValue; 316 string contentPositionClasses = contentPosition == "middle-center" || contentPosition == "middle-left" ? "grid--justify-center u-middle " : ""; 317 } 318 319 <div class="@columnClass() @extraCssClasses paragraph-container @paragraphContainerPadding @contentPositionClasses dw-mod @CustomCssClass"> 320 321 322 323 @if (imageStyle == "background" && Model.Item.GetFile("Image") != null) 324 { 325 <div class="background-image image-filter image-filter--@backgroundImageFilterPrimary dw-mod"> 326 <div class="background-image__wrapper image-filter image-filter--@backgroundImageFilterSecondary dw-mod"> 327 <img class="background-image__cover dw-mod b-lazy" src="@placeHolderImage" data-src="@backgroundImage" data-src-small="@backgroundImageSmall" alt=""> 328 </div> 329 </div> 330 } 331 332 @RenderContent(Model.Item) 333 </div>