2018 favoritter

Kærlighed til klassikere

Error compiling template "Designs/dcc/eCom/Productlist/espresso.cshtml"
Line 1509: The name 'defaultPresentation' does not exist in the current context
Line 1531: The name 'defaultPresentation' does not exist in the current context
Line 1850: The name 'defaultPresentation' does not exist in the current context
Line 1872: The name 'defaultPresentation' does not exist in the current context

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 12 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 13 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 15 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 16 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 32 using Co3.Espresso.Base.Extensions; 33 34 #line default 35 #line hidden 36 37 #line 17 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 38 using Co3.Espresso.Website.Models.FrontEnd; 39 40 #line default 41 #line hidden 42 43 #line 515 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 44 using Co3.Espresso.Website.Services; 45 46 #line default 47 #line hidden 48 49 #line 5 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 50 using Dynamicweb.Content; 51 52 #line default 53 #line hidden 54 55 #line 6 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 56 using Dynamicweb.Content.Items.Metadata; 57 58 #line default 59 #line hidden 60 61 #line 7 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 62 using Dynamicweb.Content.Items; 63 64 #line default 65 #line hidden 66 67 #line 20 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 68 using Dynamicweb.Frontend; 69 70 #line default 71 #line hidden 72 73 #line 9 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 74 using System.Web; 75 76 #line default 77 #line hidden 78 79 #line 10 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 80 using System.Web.Util; 81 82 #line default 83 #line hidden 84 85 #line 11 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 86 using ParagraphService = Co3.Espresso.Website.Services.ParagraphService; 87 88 #line default 89 #line hidden 90 91 #line 14 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 92 using System.Globalization; 93 94 #line default 95 #line hidden 96 97 #line 19 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 98 using Dynamicweb.Ecommerce.CustomerCenter; 99 100 #line default 101 #line hidden 102 103 #line 21 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 104 using Dynamicweb.Rendering; 105 106 #line default 107 #line hidden 108 109 #line 22 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 110 using Dynamicweb.Security.UserManagement; 111 112 #line default 113 #line hidden 114 115 #line 23 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 116 using EcomContext = Dynamicweb.Ecommerce.Common.Context; 117 118 #line default 119 #line hidden 120 121 122 public class RazorEngine_14da06392ea14b56a4c9be57ad5a2723 : Co3.Espresso.Website.TemplateBases.Paragraphs.Module { 123 124 #line hidden 125 126 #line 27 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 127 128 129 public static string GetStandardCollapseToggleTextExpand() 130 { 131 return "Se mere"; 132 } 133 134 public static string GetStandardCollapseToggleTextCollapse() 135 { 136 return "Se mindre"; 137 } 138 139 140 #line default 141 #line hidden 142 143 144 #line 42 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 145 public RazorEngine.Templating.TemplateWriter ProductDescription(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null) 146 { 147 #line default 148 #line hidden 149 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 150 151 #line 43 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 152 153 if ( string.IsNullOrEmpty( content ) == false ) 154 { 155 ClassList headingClassList = new ClassList(); 156 headingClassList.AddClasses( "col-12" ); 157 ClassList contentClassList = new ClassList(); 158 contentClassList.AddClasses( "col-12" ); 159 160 161 162 #line default 163 #line hidden 164 165 #line 51 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 166 WriteTo(__razor_helper_writer, sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses )); 167 168 169 #line default 170 #line hidden 171 172 #line 51 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 173 174 175 if ( string.IsNullOrEmpty( heading ) == false ) 176 { 177 178 179 #line default 180 #line hidden 181 WriteLiteralTo(__razor_helper_writer, " <div"); 182 183 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1696), Tuple.Create("\"", 1721) 184 185 #line 55 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 186 , Tuple.Create(Tuple.Create("", 1704), Tuple.Create<System.Object, System.Int32>(headingClassList 187 188 #line default 189 #line hidden 190 , 1704), false) 191 ); 192 193 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>"); 194 195 196 #line 56 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 197 WriteTo(__razor_helper_writer, heading); 198 199 200 #line default 201 #line hidden 202 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n"); 203 204 205 #line 58 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 206 } 207 208 209 #line default 210 #line hidden 211 WriteLiteralTo(__razor_helper_writer, " <div"); 212 213 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1781), Tuple.Create("\"", 1806) 214 215 #line 59 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 216 , Tuple.Create(Tuple.Create("", 1789), Tuple.Create<System.Object, System.Int32>(contentClassList 217 218 #line default 219 #line hidden 220 , 1789), false) 221 ); 222 223 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 224 225 WriteLiteralTo(__razor_helper_writer, " "); 226 227 228 #line 60 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 229 WriteTo(__razor_helper_writer, content); 230 231 232 #line default 233 #line hidden 234 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 235 236 237 #line 62 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 238 239 240 241 #line default 242 #line hidden 243 244 #line 63 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 245 WriteTo(__razor_helper_writer, sectionEnd()); 246 247 248 #line default 249 #line hidden 250 251 #line 63 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 252 253 } 254 255 256 #line default 257 #line hidden 258 }); 259 260 #line 65 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 261 } 262 #line default 263 #line hidden 264 265 266 #line 68 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 267 public RazorEngine.Templating.TemplateWriter ProductVideo(string sectionClasses = "e-section", string contentClasses = null, string heading = null, string videoURL = null) 268 { 269 #line default 270 #line hidden 271 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 272 273 #line 69 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 274 275 if ( string.IsNullOrEmpty( videoURL ) == false ) 276 { 277 ClassList headingClassList = new ClassList(); 278 headingClassList.AddClasses( "col-12" ); 279 ClassList contentClassList = new ClassList(); 280 contentClassList.AddClasses( "col-12" ); 281 282 283 284 285 #line default 286 #line hidden 287 288 #line 78 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 289 WriteTo(__razor_helper_writer, sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses )); 290 291 292 #line default 293 #line hidden 294 295 #line 78 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 296 297 298 if ( string.IsNullOrEmpty( heading ) == false ) 299 { 300 301 302 #line default 303 #line hidden 304 WriteLiteralTo(__razor_helper_writer, " <div"); 305 306 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 2422), Tuple.Create("\"", 2447) 307 308 #line 82 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 309 , Tuple.Create(Tuple.Create("", 2430), Tuple.Create<System.Object, System.Int32>(headingClassList 310 311 #line default 312 #line hidden 313 , 2430), false) 314 ); 315 316 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>"); 317 318 319 #line 83 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 320 WriteTo(__razor_helper_writer, heading); 321 322 323 #line default 324 #line hidden 325 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n"); 326 327 328 #line 85 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 329 } 330 331 332 333 #line default 334 #line hidden 335 WriteLiteralTo(__razor_helper_writer, " <div"); 336 337 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 2509), Tuple.Create("\"", 2534) 338 339 #line 87 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 340 , Tuple.Create(Tuple.Create("", 2517), Tuple.Create<System.Object, System.Int32>(contentClassList 341 342 #line default 343 #line hidden 344 , 2517), false) 345 ); 346 347 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 348 349 WriteLiteralTo(__razor_helper_writer, " class=\"embed-responsive embed-responsive-16by9 mb-2\""); 350 351 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe"); 352 353 WriteLiteralTo(__razor_helper_writer, " class=\"embed-responsive-item\""); 354 355 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 2649), Tuple.Create("\"", 2664) 356 357 #line 89 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 358 , Tuple.Create(Tuple.Create("", 2655), Tuple.Create<System.Object, System.Int32>(videoURL 359 360 #line default 361 #line hidden 362 , 2655), false) 363 ); 364 365 WriteLiteralTo(__razor_helper_writer, " width=\"1080\""); 366 367 WriteLiteralTo(__razor_helper_writer, " height=\"608\""); 368 369 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\""); 370 371 WriteLiteralTo(__razor_helper_writer, " webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\r\n </div>" + 372 "\r\n </div>\r\n"); 373 374 375 #line 92 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 376 377 378 #line default 379 #line hidden 380 381 #line 92 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 382 WriteTo(__razor_helper_writer, sectionEnd()); 383 384 385 #line default 386 #line hidden 387 388 #line 92 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 389 390 } 391 392 393 #line default 394 #line hidden 395 }); 396 397 #line 94 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 398 } 399 #line default 400 #line hidden 401 402 403 #line 96 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 404 public RazorEngine.Templating.TemplateWriter ProductRelatedProducts(string sectionClasses = "e-section", string contentClasses = null, string heading = null, 405 IEnumerable<RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem> productLoop = null) 406 { 407 #line default 408 #line hidden 409 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 410 411 #line 98 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 412 413 if ( productLoop != null && productLoop.Any() == true ) 414 { 415 ClassList headingClassList = new ClassList(); 416 headingClassList.AddClasses( "col-12" ); 417 ClassList contentClassList = new ClassList(); 418 contentClassList.AddClasses( "col-12" ); 419 420 421 422 #line default 423 #line hidden 424 425 #line 106 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 426 WriteTo(__razor_helper_writer, sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses )); 427 428 429 #line default 430 #line hidden 431 432 #line 106 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 433 434 435 if ( string.IsNullOrEmpty( heading ) == false ) 436 { 437 438 439 #line default 440 #line hidden 441 WriteLiteralTo(__razor_helper_writer, " <div"); 442 443 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3466), Tuple.Create("\"", 3491) 444 445 #line 110 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 446 , Tuple.Create(Tuple.Create("", 3474), Tuple.Create<System.Object, System.Int32>(headingClassList 447 448 #line default 449 #line hidden 450 , 3474), false) 451 ); 452 453 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2"); 454 455 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 456 457 WriteLiteralTo(__razor_helper_writer, ">"); 458 459 460 #line 111 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 461 WriteTo(__razor_helper_writer, heading); 462 463 464 #line default 465 #line hidden 466 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n"); 467 468 469 #line 113 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 470 } 471 472 473 474 475 #line default 476 #line hidden 477 WriteLiteralTo(__razor_helper_writer, " <div"); 478 479 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3575), Tuple.Create("\"", 3600) 480 481 #line 116 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 482 , Tuple.Create(Tuple.Create("", 3583), Tuple.Create<System.Object, System.Int32>(contentClassList 483 484 #line default 485 #line hidden 486 , 3583), false) 487 ); 488 489 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 490 491 WriteLiteralTo(__razor_helper_writer, " class=\"e-products mb-2\""); 492 493 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 494 495 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 496 497 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 498 499 500 #line 119 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 501 502 503 #line default 504 #line hidden 505 506 #line 119 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 507 508 string productlistItemClassList = ProductlistService.Instance.GetGridItemWidth( null ).ToResponsiveClasses(); 509 510 511 #line default 512 #line hidden 513 WriteLiteralTo(__razor_helper_writer, "\r\n"); 514 515 516 #line 122 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 517 518 519 #line default 520 #line hidden 521 522 #line 122 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 523 foreach ( RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem product in productLoop ) 524 { 525 526 527 #line default 528 #line hidden 529 530 #line 124 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 531 WriteTo(__razor_helper_writer, ProductlistItem( product, productlistItemClassList )); 532 533 534 #line default 535 #line hidden 536 537 #line 124 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 538 539 } 540 541 542 #line default 543 #line hidden 544 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n"); 545 546 547 #line 129 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 548 549 550 551 #line default 552 #line hidden 553 554 #line 130 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 555 WriteTo(__razor_helper_writer, sectionEnd()); 556 557 558 #line default 559 #line hidden 560 561 #line 130 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 562 563 } 564 565 566 #line default 567 #line hidden 568 }); 569 570 #line 132 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 571 } 572 #line default 573 #line hidden 574 575 576 #line 134 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 577 public RazorEngine.Templating.TemplateWriter ProductlistItem(RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem product, string productlistItemClassList = null) 578 { 579 #line default 580 #line hidden 581 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 582 583 #line 135 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 584 585 586 587 if ( product != null ) 588 { 589 dynamic productData = new 590 { 591 id = product.GetString( "Ecom:Product.ID" ), 592 url = ProductService.Instance.GetProductLink( product.GetString( "Ecom:Product.PrimaryOrFirstGroupID" ), product.GetString( "Ecom:Product.ID" ) ), 593 number = product.GetString( "Ecom:Product.Number" ), 594 name = product.GetString( "Ecom:Product.Name" ), 595 imageLarge = ImageService.Instance.GetImageURL( product.GetString( "Ecom:Product.ImageLarge.Clean" ), 240, 240, 5 ), 596 price = ProductService.Instance.GetPriceFormatted( product.GetDouble( "Ecom:Product.Price.Price" ) ), 597 descriptionShortExtra01 = product.GetString( "Ecom:Product:Field.DescriptionShortExtra01" ), 598 stock = new 599 { 600 id = product.GetString( "Ecom:Product:Stock.ID" ), 601 quantity = product.GetString( "Ecom:Product.Stock" ), 602 text = product.GetString( "Ecom:Product:Stock.Text" ), 603 delivery = product.GetString( "Ecom:Product:Stock.DeliveryText" ) 604 } 605 }; 606 607 608 609 #line default 610 #line hidden 611 WriteLiteralTo(__razor_helper_writer, " <div"); 612 613 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5267), Tuple.Create("\"", 5300) 614 615 #line 158 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 616 , Tuple.Create(Tuple.Create("", 5275), Tuple.Create<System.Object, System.Int32>(productlistItemClassList 617 618 #line default 619 #line hidden 620 , 5275), false) 621 ); 622 623 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 624 625 WriteLiteralTo(__razor_helper_writer, " class=\"border-0 e-products-item js-e-products-item\""); 626 627 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 628 629 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-container\""); 630 631 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 632 633 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-image-container\""); 634 635 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 636 637 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-image-wrapper\""); 638 639 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 5527), Tuple.Create("\"", 5550) 640 641 #line 162 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 642 , Tuple.Create(Tuple.Create("", 5534), Tuple.Create<System.Object, System.Int32>(productData.url 643 644 #line default 645 #line hidden 646 , 5534), false) 647 ); 648 649 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 650 651 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 5572), Tuple.Create("\"", 5601) 652 653 #line 163 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 654 , Tuple.Create(Tuple.Create("", 5578), Tuple.Create<System.Object, System.Int32>(productData.imageLarge 655 656 #line default 657 #line hidden 658 , 5578), false) 659 ); 660 661 WriteLiteralTo(__razor_helper_writer, " alt=\"\""); 662 663 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-image\""); 664 665 WriteLiteralTo(__razor_helper_writer, ">\r\n </a>\r\n </div>\r\n <div"); 666 667 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-text-container text-center\""); 668 669 WriteLiteralTo(__razor_helper_writer, ">\r\n <h3"); 670 671 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-name mb-0\""); 672 673 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 674 675 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 5814), Tuple.Create("\"", 5837) 676 677 #line 168 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 678 , Tuple.Create(Tuple.Create("", 5821), Tuple.Create<System.Object, System.Int32>(productData.url 679 680 #line default 681 #line hidden 682 , 5821), false) 683 ); 684 685 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 686 687 WriteLiteralTo(__razor_helper_writer, " "); 688 689 690 #line 169 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 691 WriteTo(__razor_helper_writer, productData.name); 692 693 694 #line default 695 #line hidden 696 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h3>\r\n"); 697 698 699 #line 172 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 700 701 702 #line default 703 #line hidden 704 705 #line 172 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 706 if ( string.IsNullOrEmpty( productData.descriptionShortExtra01 ) == false ) 707 { 708 709 710 #line default 711 #line hidden 712 WriteLiteralTo(__razor_helper_writer, " <p"); 713 714 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-text mb-0\""); 715 716 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 717 718 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6091), Tuple.Create("\"", 6114) 719 720 #line 175 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 721 , Tuple.Create(Tuple.Create("", 6098), Tuple.Create<System.Object, System.Int32>(productData.url 722 723 #line default 724 #line hidden 725 , 6098), false) 726 ); 727 728 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 729 730 WriteLiteralTo(__razor_helper_writer, " "); 731 732 733 #line 176 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 734 WriteTo(__razor_helper_writer, productData.descriptionShortExtra01); 735 736 737 #line default 738 #line hidden 739 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </p>\r\n"); 740 741 742 #line 179 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 743 } 744 745 746 #line default 747 #line hidden 748 WriteLiteralTo(__razor_helper_writer, " <p"); 749 750 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-text mb-0\""); 751 752 WriteLiteralTo(__razor_helper_writer, ">\r\n <small"); 753 754 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-price small text-muted\""); 755 756 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 757 758 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6370), Tuple.Create("\"", 6393) 759 760 #line 182 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 761 , Tuple.Create(Tuple.Create("", 6377), Tuple.Create<System.Object, System.Int32>(productData.url 762 763 #line default 764 #line hidden 765 , 6377), false) 766 ); 767 768 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 769 770 WriteLiteralTo(__razor_helper_writer, " "); 771 772 773 #line 183 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 774 WriteTo(__razor_helper_writer, productData.price); 775 776 777 #line default 778 #line hidden 779 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </small>\r\n </p>\r\n </div" + 780 ">\r\n </div>\r\n </div>\r\n </div>\r\n"); 781 782 783 #line 191 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 784 } 785 786 787 #line default 788 #line hidden 789 }); 790 791 #line 192 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 792 } 793 #line default 794 #line hidden 795 796 797 #line 195 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 798 public RazorEngine.Templating.TemplateWriter sectionStart( string sectionClasses = "e-section", string contentClasses = null, bool sectionCollapse = false, string sectionId = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null ) 799 { 800 #line default 801 #line hidden 802 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 803 804 #line 196 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 805 806 sectionId = string.IsNullOrEmpty( sectionId ) ? Guid.NewGuid().ToString( "N" ) : sectionId; 807 ClassList sectionClassList = new ClassList(); 808 sectionClassList.AddClasses( sectionClasses ); 809 ClassList contentClassList; 810 811 if ( contentClasses == null ) 812 { 813 contentClassList = Co3.Espresso.Website.Services.PageService.Instance.GetResponsiveClassesFromPageItem( PageView.Current().Page.Item ); 814 } 815 else 816 { 817 contentClassList = new ClassList(); 818 contentClassList.AddClasses( contentClasses ); 819 } 820 821 // TODO: Split collapse logic into separate helper function. 822 string collapseId = Guid.NewGuid().ToString( "N" ); 823 ClassList collapseToggleClassList = new ClassList(); 824 if ( sectionCollapse ) 825 { 826 sectionClassList.AddClasses( "p-section-collapse js-p-section-collapse" ); 827 collapseToggleClassList.AddClasses( contentClasses ); 828 collapseToggleClassList.AddClasses( "p-section-collapse-toggle collapsed order-last text-center" ); 829 contentClassList.AddClasses( "p-section-collapse-content collapse is-md" ); 830 } 831 832 833 834 #line default 835 #line hidden 836 WriteLiteralTo(__razor_helper_writer, " "); 837 838 WriteLiteralTo(__razor_helper_writer, "<section class=\""); 839 840 841 #line 223 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 842 WriteTo(__razor_helper_writer, sectionClassList); 843 844 845 #line default 846 #line hidden 847 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 848 849 850 #line 223 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 851 WriteTo(__razor_helper_writer, sectionId); 852 853 854 #line default 855 #line hidden 856 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 857 858 WriteLiteralTo(__razor_helper_writer, " "); 859 860 WriteLiteralTo(__razor_helper_writer, "<div class=\"container-fluid\">\r\n"); 861 862 WriteLiteralTo(__razor_helper_writer, " "); 863 864 WriteLiteralTo(__razor_helper_writer, "<div class=\"row\">\r\n"); 865 866 867 #line 226 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 868 869 // TODO: Split collapse logic into separate helper function. 870 if ( sectionCollapse ) 871 { 872 873 874 #line default 875 #line hidden 876 WriteLiteralTo(__razor_helper_writer, " <div"); 877 878 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 8086), Tuple.Create("\"", 8118) 879 880 #line 230 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 881 , Tuple.Create(Tuple.Create("", 8094), Tuple.Create<System.Object, System.Int32>(collapseToggleClassList 882 883 #line default 884 #line hidden 885 , 8094), false) 886 ); 887 888 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); 889 890 WriteLiteralTo(__razor_helper_writer, " data-target=\"#"); 891 892 893 #line 230 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 894 WriteTo(__razor_helper_writer, collapseId); 895 896 897 #line default 898 #line hidden 899 WriteLiteralTo(__razor_helper_writer, "\""); 900 901 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 902 903 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-primary p-section-collapse-toggle-btn\""); 904 905 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 906 907 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 908 909 WriteLiteralTo(__razor_helper_writer, " class=\"material-icons p-section-collapse-toggle-icon\""); 910 911 WriteLiteralTo(__razor_helper_writer, ">keyboard_arrow_down</i>\r\n </button>\r\n <small"); 912 913 WriteLiteralTo(__razor_helper_writer, " class=\"h4 p-section-collapse-toggle-text\""); 914 915 WriteLiteralTo(__razor_helper_writer, " data-expand-text=\""); 916 917 918 #line 234 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 919 WriteTo(__razor_helper_writer, string.IsNullOrEmpty( collapseToggleTextExpand ) ? GetStandardCollapseToggleTextExpand() : collapseToggleTextExpand ); 920 921 922 #line default 923 #line hidden 924 WriteLiteralTo(__razor_helper_writer, "\""); 925 926 WriteLiteralTo(__razor_helper_writer, " data-collapse-text=\""); 927 928 929 #line 234 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 930 WriteTo(__razor_helper_writer, string.IsNullOrEmpty( collapseToggleTextCollapse ) ? GetStandardCollapseToggleTextCollapse() : collapseToggleTextCollapse ); 931 932 933 #line default 934 #line hidden 935 WriteLiteralTo(__razor_helper_writer, "\""); 936 937 WriteLiteralTo(__razor_helper_writer, "></small>\r\n </div>\r\n"); 938 939 940 #line 236 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 941 } 942 943 944 945 #line default 946 #line hidden 947 WriteLiteralTo(__razor_helper_writer, " "); 948 949 WriteLiteralTo(__razor_helper_writer, "<div class=\""); 950 951 952 #line 238 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 953 WriteTo(__razor_helper_writer, contentClassList); 954 955 956 #line default 957 #line hidden 958 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 959 960 961 #line 238 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 962 WriteTo(__razor_helper_writer, collapseId); 963 964 965 #line default 966 #line hidden 967 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 968 969 WriteLiteralTo(__razor_helper_writer, " "); 970 971 WriteLiteralTo(__razor_helper_writer, "<div class=\"row\">\r\n"); 972 973 974 #line 240 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 975 976 977 #line default 978 #line hidden 979 }); 980 981 #line 240 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 982 } 983 #line default 984 #line hidden 985 986 987 #line 242 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 988 public RazorEngine.Templating.TemplateWriter sectionEnd() 989 { 990 #line default 991 #line hidden 992 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 993 994 #line 243 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 995 996 997 998 #line default 999 #line hidden 1000 WriteLiteralTo(__razor_helper_writer, " "); 1001 1002 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 1003 1004 WriteLiteralTo(__razor_helper_writer, " "); 1005 1006 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 1007 1008 WriteLiteralTo(__razor_helper_writer, " "); 1009 1010 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 1011 1012 WriteLiteralTo(__razor_helper_writer, " "); 1013 1014 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 1015 1016 WriteLiteralTo(__razor_helper_writer, " "); 1017 1018 WriteLiteralTo(__razor_helper_writer, "</section>\r\n"); 1019 1020 1021 #line 249 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1022 1023 1024 #line default 1025 #line hidden 1026 }); 1027 1028 #line 249 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1029 } 1030 #line default 1031 #line hidden 1032 1033 1034 #line 251 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1035 public RazorEngine.Templating.TemplateWriter GetSvgFileData(string svgfile) 1036 { 1037 #line default 1038 #line hidden 1039 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1040 1041 #line 252 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1042 1043 string rtnValue = svgfile; 1044 if (!string.IsNullOrEmpty(svgfile)) 1045 { 1046 string FilePath = svgfile; 1047 1048 if (System.IO.Path.GetExtension(FilePath) == ".svg") 1049 { 1050 System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings(); 1051 settings.DtdProcessing = System.Xml.DtdProcessing.Ignore; 1052 string svgFilePath = System.Web.HttpContext.Current.Server.MapPath(FilePath) ?? string.Empty; 1053 if (System.IO.File.Exists(svgFilePath)) 1054 { 1055 using (System.IO.StreamReader sr = new System.IO.StreamReader(svgFilePath)) 1056 { 1057 using (System.Xml.XmlReader xr = System.Xml.XmlReader.Create(sr, settings)) 1058 { 1059 bool done = false; 1060 while (xr.Read() && !done) 1061 { 1062 if (xr.NodeType == System.Xml.XmlNodeType.Element && xr.Name == "svg") 1063 { 1064 rtnValue = xr.ReadOuterXml(); 1065 done = true; 1066 } 1067 } 1068 } 1069 } 1070 } 1071 } 1072 } 1073 1074 1075 #line default 1076 #line hidden 1077 1078 #line 283 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1079 WriteTo(__razor_helper_writer, rtnValue); 1080 1081 1082 #line default 1083 #line hidden 1084 1085 #line 283 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1086 ; 1087 1088 1089 #line default 1090 #line hidden 1091 }); 1092 1093 #line 284 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1094 } 1095 #line default 1096 #line hidden 1097 1098 1099 public RazorEngine_14da06392ea14b56a4c9be57ad5a2723() { 1100 } 1101 1102 public override void Execute() { 1103 WriteLiteral("\r\n\r\n\r\n"); 1104 1105 WriteLiteral("\r\n\r\n"); 1106 1107 WriteLiteral("\r\n\r\n"); 1108 1109 WriteLiteral("\r\n"); 1110 1111 WriteLiteral("\r\n"); 1112 1113 WriteLiteral("\r\n\r\n"); 1114 1115 WriteLiteral("\r\n"); 1116 1117 WriteLiteral("\r\n"); 1118 1119 WriteLiteral("\r\n\r\n\r\n\r\n"); 1120 1121 1122 #line 289 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1123 1124 ClassList productlistMainClassList = new ClassList(); 1125 productlistMainClassList.AddClasses( "col-12" ); 1126 if ( Espresso.Item.FiltersShow == "True" ) 1127 { 1128 productlistMainClassList.AddClasses( "col-lg-9 col-xl-9" ); 1129 } 1130 ClassList productlistAsideClassList = new ClassList(); 1131 productlistAsideClassList.AddClasses( "col-12 col-lg-3 col-xl-3" ); 1132 1133 1134 ClassList productlistItemClassList = new ClassList(); 1135 Dictionary< string, decimal > paragraphEcommerceGridItemWidth = ProductlistService.Instance.GetGridItemWidth( PageView.Current().CurrentParagraph.Item.GetValue< string >( "ItemWidth" ) ); 1136 productlistItemClassList.AddClasses( paragraphEcommerceGridItemWidth.ToResponsiveClasses() ); 1137 1138 1139 #line default 1140 #line hidden 1141 WriteLiteral("\r\n<div"); 1142 1143 WriteLiteral(" class=\"js-e-loading-wait js-e-productlist\""); 1144 1145 WriteLiteral(">\r\n\r\n <div"); 1146 1147 WriteLiteral(" class=\"row\""); 1148 1149 WriteLiteral(">\r\n <div"); 1150 1151 WriteLiteral(" class=\"col-12\""); 1152 1153 WriteLiteral(">\r\n <div"); 1154 1155 WriteLiteral(" class=\"js-e-productslist-header small\""); 1156 1157 WriteLiteral(">\r\n <div"); 1158 1159 WriteLiteral(" class=\"align-items-end row\""); 1160 1161 WriteLiteral(">\r\n\r\n"); 1162 1163 1164 #line 311 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1165 1166 1167 #line default 1168 #line hidden 1169 1170 #line 311 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1171 if ( Espresso.Item.FiltersShow == "True" ) 1172 { 1173 1174 1175 #line default 1176 #line hidden 1177 WriteLiteral(" <div"); 1178 1179 WriteAttribute("class", Tuple.Create(" class=\"", 11206), Tuple.Create("\"", 11258) 1180 1181 #line 313 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1182 , Tuple.Create(Tuple.Create("", 11214), Tuple.Create<System.Object, System.Int32>(productlistAsideClassList 1183 1184 #line default 1185 #line hidden 1186 , 11214), false) 1187 , Tuple.Create(Tuple.Create(" ", 11240), Tuple.Create("d-lg-block", 11241), true) 1188 , Tuple.Create(Tuple.Create(" ", 11251), Tuple.Create("d-none", 11252), true) 1189 ); 1190 1191 WriteLiteral(">\r\n <div"); 1192 1193 WriteLiteral(" class=\"pb-0 e-productslist-header\""); 1194 1195 WriteLiteral(">\r\n <div"); 1196 1197 WriteLiteral(" class=\"nav nav-tabs\""); 1198 1199 WriteLiteral(" id=\"nav-tab\""); 1200 1201 WriteLiteral(" role=\"tablist\""); 1202 1203 WriteLiteral(">\r\n "); 1204 1205 WriteLiteral("\r\n <a"); 1206 1207 WriteLiteral(" class=\"nav-item nav-link active\""); 1208 1209 WriteLiteral(" id=\"nav-filters-tab\""); 1210 1211 WriteLiteral(" data-toggle=\"tab\""); 1212 1213 WriteLiteral(" href=\"#nav-filters\""); 1214 1215 WriteLiteral(" role=\"tab\""); 1216 1217 WriteLiteral(" aria-controls=\"nav-filters\""); 1218 1219 WriteLiteral(" aria-selected=\"false\""); 1220 1221 WriteLiteral(">"); 1222 1223 1224 #line 317 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1225 Write(Translate( "eCom Product List - Filters - Heading", "Filters" )); 1226 1227 1228 #line default 1229 #line hidden 1230 WriteLiteral("</a>\r\n </div>\r\n </div>\r\n </div>\r\n"); 1231 1232 1233 #line 321 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1234 } 1235 1236 1237 #line default 1238 #line hidden 1239 WriteLiteral("\r\n"); 1240 1241 1242 #line 323 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1243 1244 1245 #line default 1246 #line hidden 1247 1248 #line 323 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1249 if ( Espresso.Item.SortShow == "True" || Espresso.Item.PagingShow == "True" || Espresso.Item.FiltersShow == "True" ) 1250 { 1251 1252 1253 #line default 1254 #line hidden 1255 WriteLiteral(" <div"); 1256 1257 WriteAttribute("class", Tuple.Create(" class=\"", 12004), Tuple.Create("\"", 12037) 1258 1259 #line 325 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1260 , Tuple.Create(Tuple.Create("", 12012), Tuple.Create<System.Object, System.Int32>(productlistMainClassList 1261 1262 #line default 1263 #line hidden 1264 , 12012), false) 1265 ); 1266 1267 WriteLiteral(">\r\n <div"); 1268 1269 WriteLiteral(" class=\"align-items-end border-bottom d-lg-flex d-none e-productslist-header alig" + 1270 "n-content-between flex-wrap\""); 1271 1272 WriteLiteral(">\r\n"); 1273 1274 1275 #line 327 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1276 1277 1278 #line default 1279 #line hidden 1280 1281 #line 327 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1282 if ( Espresso.Item.SortShow == "True" ) 1283 { 1284 1285 1286 #line default 1287 #line hidden 1288 WriteLiteral(" <div"); 1289 1290 WriteLiteral(" class=\"align-items-center d-flex js-e-productlist-sort\""); 1291 1292 WriteLiteral(">\r\n <script"); 1293 1294 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-sort\""); 1295 1296 WriteLiteral(" type=\"text/x-handlebars-template\""); 1297 1298 WriteLiteral(">\r\n <fieldset class=\"form-inline\">\r\n <div class=\"\">\r\n <label for=\"" + 1299 "Sort\" class=\"mr-1 d-none\">\r\n"); 1300 1301 WriteLiteral(" "); 1302 1303 1304 #line 334 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1305 Write(Translate( "eCom Productlist - Sorting - Label", "Sort: " )); 1306 1307 1308 #line default 1309 #line hidden 1310 WriteLiteral("\r\n </label>\r\n <select name=\"Sort\" class=\"js-e-productlist-sort-sele" + 1311 "ct custom-select\" style=\"padding-bottom:0.25em;\">\r\n <option value=\"Stoc" + 1312 "k ASC\" {{#compare sort.sort \'===\' \'Stock ASC\'}}selected{{/compare}}>"); 1313 1314 1315 #line 337 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1316 Write(Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )); 1317 1318 1319 #line default 1320 #line hidden 1321 WriteLiteral("</option>\r\n <option value=\"Stock DESC\" {{#compare sort.sort \'===\' \'Stock" + 1322 " DESC\'}}selected{{/compare}}>"); 1323 1324 1325 #line 338 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1326 Write(Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )); 1327 1328 1329 #line default 1330 #line hidden 1331 WriteLiteral("</option>\r\n {{#if page.isExtranet}}\r\n <option value=\"Price AS" + 1332 "C\" {{#compare sort.sort \'===\' \'Price ASC\'}}selected{{/compare}}>"); 1333 1334 1335 #line 340 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1336 Write(Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )); 1337 1338 1339 #line default 1340 #line hidden 1341 WriteLiteral("</option>\r\n <option value=\"Price DESC\" {{#compare sort.sort \'===\' \'Pri" + 1342 "ce DESC\'}}selected{{/compare}}>"); 1343 1344 1345 #line 341 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1346 Write(Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )); 1347 1348 1349 #line default 1350 #line hidden 1351 WriteLiteral("</option>\r\n {{/if}}\r\n </select>\r\n </div>\r\n </fieldset>\r\n " + 1352 " </script>\r\n</div>\r\n"); 1353 1354 1355 #line 348 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1356 1357 } 1358 1359 1360 #line default 1361 #line hidden 1362 WriteLiteral(" "); 1363 1364 1365 #line 350 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1366 if ( Espresso.Item.PagingShow == "True" ) 1367 { 1368 1369 1370 #line default 1371 #line hidden 1372 WriteLiteral(" <div"); 1373 1374 WriteLiteral(" class=\"align-items-center d-flex e-productlist-paging js-e-productlist-paging ju" + 1375 "stify-content-between \""); 1376 1377 WriteLiteral(">\n <script"); 1378 1379 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-paging\""); 1380 1381 WriteLiteral(" type=\"text/x-handlebars-template\""); 1382 1383 WriteLiteral(@"> 1384 {{#if page.productCount}} 1385 <span class=""""> 1386 {{#compare page.prevPage '!==' 0 }} 1387 <a href=""{{page.pagingUrl}}={{page.prevPage}}"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-1 js-e-productlist-set-pagenum"" data-page-num=""{{page.prevPage}}""> 1388 <i class=""material-icons"">keyboard_arrow_left</i> 1389 <span class="""">"); 1390 1391 1392 #line 359 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1393 Write(Translate( "eCom Productlist Paging - Previous - Text", "Previous" )); 1394 1395 1396 #line default 1397 #line hidden 1398 WriteLiteral("</span>\n </a>\n {{/compare}}\n\n <span class=\"text-" + 1399 "nowrap ml-1 mr-1\">\n <strong>{{page.viewing.from}} - {{page.viewing" + 1400 ".to}}</strong> "); 1401 1402 1403 #line 364 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1404 Write(Translate( "eCom Productlist Paging - Product Count Of - Text", "of" )); 1405 1406 1407 #line default 1408 #line hidden 1409 WriteLiteral(@" 1410 <span> {{page.productCount}}</span> 1411 </span> 1412 1413 {{#compare page.nextPage '!==' 0 }} 1414 <a href=""{{page.pagingUrl}}={{page.nextPage}}"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 mr-1 pl-1 js-e-productlist-set-pagenum"" data-page-num=""{{page.nextPage}}""> 1415 <span class="""">"); 1416 1417 1418 #line 370 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1419 Write(Translate( "eCom Productlist Paging - Next - Text", "Next" )); 1420 1421 1422 #line default 1423 #line hidden 1424 WriteLiteral(@"</span> 1425 <i class=""material-icons"">keyboard_arrow_right</i></a> 1426 {{/compare}} 1427 1428 {{#compare page.pageSize '!==' 9999}} 1429 {{#compare page.productCount '<=' 50}} 1430 {{#compare page.totalPages '>' 1 }} 1431 <a href=""{{page.pagingUrl}}=9999"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-3 pr-2 pl-2 js-e-productlist-set-pagesize"" data-page-size=""9999""> 1432 "); 1433 1434 WriteLiteral(" "); 1435 1436 1437 #line 378 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1438 Write(Translate( "eCom Productlist Paging - Show All - Text", "Show all" )); 1439 1440 1441 #line default 1442 #line hidden 1443 WriteLiteral(@" 1444 </a> 1445 {{/compare}} 1446 {{/compare}} 1447 {{/compare}} 1448 1449 {{#compare page.pageSize '===' 9999}} 1450 <a href=""#"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-2 pl-2 js-e-productlist-set-pagesize"" data-page-size="""); 1451 1452 1453 #line 385 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1454 Write(GetString( "Ecom:ProductList.PageSize" )); 1455 1456 1457 #line default 1458 #line hidden 1459 WriteLiteral(" \">\n"); 1460 1461 WriteLiteral(" "); 1462 1463 1464 #line 386 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1465 Write(Translate( "eCom Productlist Paging - Reset - Link", "Reset" )); 1466 1467 1468 #line default 1469 #line hidden 1470 WriteLiteral("\n </a>\n {{/compare}}\n\n <span>\n {{/if}}\n " + 1471 "</script>\n</div>\n"); 1472 1473 1474 #line 394 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1475 1476 } 1477 1478 1479 #line default 1480 #line hidden 1481 WriteLiteral(" \r\n\r\n<div"); 1482 1483 WriteLiteral(" class=\"align-items-right d-flex justify-content-between ml-auto\""); 1484 1485 WriteLiteral(">\r\n <p"); 1486 1487 WriteLiteral(" class=\"mb-0 pb-0 mr-2\""); 1488 1489 WriteLiteral(">"); 1490 1491 1492 #line 399 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1493 Write(Translate( "eCom Productlist - Presentation - Text", "Visning")); 1494 1495 1496 #line default 1497 #line hidden 1498 WriteLiteral("</p>\r\n <a"); 1499 1500 WriteLiteral(" href=\"#\""); 1501 1502 WriteLiteral(" data-presentation=\"list\""); 1503 1504 WriteAttribute("class", Tuple.Create(" class=\"", 16331), Tuple.Create("\"", 16488) 1505 , Tuple.Create(Tuple.Create("", 16339), Tuple.Create("js-productlist-presentation-type", 16339), true) 1506 , Tuple.Create(Tuple.Create(" ", 16371), Tuple.Create("js-productlist-presentation-btn-list", 16372), true) 1507 1508 #line 400 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1509 , Tuple.Create(Tuple.Create(" ", 16408), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-list-item" ? "default-presentation" : string.Empty 1510 1511 #line default 1512 #line hidden 1513 , 16409), false) 1514 ); 1515 1516 WriteLiteral("><i"); 1517 1518 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted mr-1\""); 1519 1520 WriteLiteral(">storage</i></a>\r\n <a"); 1521 1522 WriteLiteral(" href=\"#\""); 1523 1524 WriteLiteral(" data-presentation=\"grid\""); 1525 1526 WriteAttribute("class", Tuple.Create(" class=\"", 16623), Tuple.Create("\"", 16780) 1527 , Tuple.Create(Tuple.Create("", 16631), Tuple.Create("js-productlist-presentation-type", 16631), true) 1528 , Tuple.Create(Tuple.Create(" ", 16663), Tuple.Create("js-productlist-presentation-btn-grid", 16664), true) 1529 1530 #line 401 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1531 , Tuple.Create(Tuple.Create(" ", 16700), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-grid-item" ? "default-presentation" : string.Empty 1532 1533 #line default 1534 #line hidden 1535 , 16701), false) 1536 ); 1537 1538 WriteLiteral("><i"); 1539 1540 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted\""); 1541 1542 WriteLiteral(">apps</i></a>\r\n</div>\r\n\r\n </div>\r\n <div"); 1543 1544 WriteLiteral(" class=\"align-items-stretch d-flex d-lg-none e-productslist-header flex-wrap just" + 1545 "ify-content-strech\""); 1546 1547 WriteLiteral(">\r\n <div"); 1548 1549 WriteLiteral(" class=\"align-items-center bg-info d-flex justify-content-between p-1 w-100\""); 1550 1551 WriteLiteral(">\r\n"); 1552 1553 1554 #line 407 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1555 1556 1557 #line default 1558 #line hidden 1559 1560 #line 407 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1561 if ( Espresso.Item.SortShow == "True" ) 1562 { 1563 1564 1565 #line default 1566 #line hidden 1567 WriteLiteral(" <div"); 1568 1569 WriteLiteral(" class=\"align-items-center d-flex js-e-productlist-sort\""); 1570 1571 WriteLiteral(">\r\n <script"); 1572 1573 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-sort\""); 1574 1575 WriteLiteral(" type=\"text/x-handlebars-template\""); 1576 1577 WriteLiteral(">\r\n <fieldset class=\"form-inline\">\r\n <div class=\"\">\r\n <label for=\"" + 1578 "Sort\" class=\"mr-1 d-none\">\r\n"); 1579 1580 WriteLiteral(" "); 1581 1582 1583 #line 414 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1584 Write(Translate( "eCom Productlist - Sorting - Label", "Sort: " )); 1585 1586 1587 #line default 1588 #line hidden 1589 WriteLiteral("\r\n </label>\r\n <select name=\"Sort\" class=\"js-e-productlist-sort-sele" + 1590 "ct custom-select\" style=\"padding-bottom:0.25em;\">\r\n <option value=\"Stoc" + 1591 "k ASC\" {{#compare sort.sort \'===\' \'Stock ASC\'}}selected{{/compare}}>"); 1592 1593 1594 #line 417 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1595 Write(Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )); 1596 1597 1598 #line default 1599 #line hidden 1600 WriteLiteral("</option>\r\n <option value=\"Stock DESC\" {{#compare sort.sort \'===\' \'Stock" + 1601 " DESC\'}}selected{{/compare}}>"); 1602 1603 1604 #line 418 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1605 Write(Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )); 1606 1607 1608 #line default 1609 #line hidden 1610 WriteLiteral("</option>\r\n {{#if page.isExtranet}}\r\n <option value=\"Price AS" + 1611 "C\" {{#compare sort.sort \'===\' \'Price ASC\'}}selected{{/compare}}>"); 1612 1613 1614 #line 420 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1615 Write(Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )); 1616 1617 1618 #line default 1619 #line hidden 1620 WriteLiteral("</option>\r\n <option value=\"Price DESC\" {{#compare sort.sort \'===\' \'Pri" + 1621 "ce DESC\'}}selected{{/compare}}>"); 1622 1623 1624 #line 421 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1625 Write(Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )); 1626 1627 1628 #line default 1629 #line hidden 1630 WriteLiteral("</option>\r\n {{/if}}\r\n </select>\r\n </div>\r\n </fieldset>\r\n " + 1631 " </script>\r\n</div>\r\n"); 1632 1633 1634 #line 428 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1635 1636 } 1637 1638 1639 #line default 1640 #line hidden 1641 WriteLiteral(" "); 1642 1643 1644 #line 430 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1645 if ( Espresso.Item.FiltersShow == "True" ) 1646 { 1647 1648 1649 #line default 1650 #line hidden 1651 WriteLiteral(" <button"); 1652 1653 WriteLiteral(" class=\"btn btn-primary js-e-productlist-filters-modal-toggle\""); 1654 1655 WriteLiteral(" data-target=\"#js-e-productlist-filters-modal\""); 1656 1657 WriteLiteral(" data-toggle=\"modal\""); 1658 1659 WriteLiteral(" type=\"button\""); 1660 1661 WriteLiteral(">\r\n <i"); 1662 1663 WriteLiteral(" class=\"material-icons material-icons-large\""); 1664 1665 WriteLiteral(">tune</i>\r\n"); 1666 1667 WriteLiteral(" "); 1668 1669 1670 #line 434 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1671 Write(Translate( "eCom Productlist Filters - Customize Selection - Button", "Filters" )); 1672 1673 1674 #line default 1675 #line hidden 1676 WriteLiteral("\r\n <span"); 1677 1678 WriteLiteral(" class=\"ml-2 badge badge-primary js-e-productlist-filters-applied-count\""); 1679 1680 WriteLiteral("></span>\r\n </button>\r\n"); 1681 1682 1683 #line 437 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1684 } 1685 1686 1687 #line default 1688 #line hidden 1689 WriteLiteral(" </div>\r\n <div"); 1690 1691 WriteLiteral(" class=\"py-1\""); 1692 1693 WriteLiteral(">\r\n"); 1694 1695 1696 #line 440 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1697 1698 1699 #line default 1700 #line hidden 1701 1702 #line 440 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1703 if ( Espresso.Item.PagingShow == "True" ) 1704 { 1705 1706 1707 #line default 1708 #line hidden 1709 WriteLiteral(" <div"); 1710 1711 WriteLiteral(" class=\"align-items-center d-flex e-productlist-paging js-e-productlist-paging ju" + 1712 "stify-content-between \""); 1713 1714 WriteLiteral(">\n <script"); 1715 1716 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-paging\""); 1717 1718 WriteLiteral(" type=\"text/x-handlebars-template\""); 1719 1720 WriteLiteral(@"> 1721 {{#if page.productCount}} 1722 <span class=""""> 1723 {{#compare page.prevPage '!==' 0 }} 1724 <a href=""{{page.pagingUrl}}={{page.prevPage}}"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-1 js-e-productlist-set-pagenum"" data-page-num=""{{page.prevPage}}""> 1725 <i class=""material-icons"">keyboard_arrow_left</i> 1726 <span class="""">"); 1727 1728 1729 #line 449 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1730 Write(Translate( "eCom Productlist Paging - Previous - Text", "Previous" )); 1731 1732 1733 #line default 1734 #line hidden 1735 WriteLiteral("</span>\n </a>\n {{/compare}}\n\n <span class=\"text-" + 1736 "nowrap ml-1 mr-1\">\n <strong>{{page.viewing.from}} - {{page.viewing" + 1737 ".to}}</strong> "); 1738 1739 1740 #line 454 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1741 Write(Translate( "eCom Productlist Paging - Product Count Of - Text", "of" )); 1742 1743 1744 #line default 1745 #line hidden 1746 WriteLiteral(@" 1747 <span> {{page.productCount}}</span> 1748 </span> 1749 1750 {{#compare page.nextPage '!==' 0 }} 1751 <a href=""{{page.pagingUrl}}={{page.nextPage}}"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 mr-1 pl-1 js-e-productlist-set-pagenum"" data-page-num=""{{page.nextPage}}""> 1752 <span class="""">"); 1753 1754 1755 #line 460 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1756 Write(Translate( "eCom Productlist Paging - Next - Text", "Next" )); 1757 1758 1759 #line default 1760 #line hidden 1761 WriteLiteral(@"</span> 1762 <i class=""material-icons"">keyboard_arrow_right</i></a> 1763 {{/compare}} 1764 1765 {{#compare page.pageSize '!==' 9999}} 1766 {{#compare page.productCount '<=' 50}} 1767 {{#compare page.totalPages '>' 1 }} 1768 <a href=""{{page.pagingUrl}}=9999"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-3 pr-2 pl-2 js-e-productlist-set-pagesize"" data-page-size=""9999""> 1769 "); 1770 1771 WriteLiteral(" "); 1772 1773 1774 #line 468 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1775 Write(Translate( "eCom Productlist Paging - Show All - Text", "Show all" )); 1776 1777 1778 #line default 1779 #line hidden 1780 WriteLiteral(@" 1781 </a> 1782 {{/compare}} 1783 {{/compare}} 1784 {{/compare}} 1785 1786 {{#compare page.pageSize '===' 9999}} 1787 <a href=""#"" class=""dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-2 pl-2 js-e-productlist-set-pagesize"" data-page-size="""); 1788 1789 1790 #line 475 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1791 Write(GetString( "Ecom:ProductList.PageSize" )); 1792 1793 1794 #line default 1795 #line hidden 1796 WriteLiteral(" \">\n"); 1797 1798 WriteLiteral(" "); 1799 1800 1801 #line 476 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1802 Write(Translate( "eCom Productlist Paging - Reset - Link", "Reset" )); 1803 1804 1805 #line default 1806 #line hidden 1807 WriteLiteral("\n </a>\n {{/compare}}\n\n <span>\n {{/if}}\n " + 1808 "</script>\n</div>\n"); 1809 1810 1811 #line 484 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1812 1813 } 1814 1815 1816 #line default 1817 #line hidden 1818 WriteLiteral(" </div>\r\n <div"); 1819 1820 WriteLiteral(" class=\"ml-auto py-1\""); 1821 1822 WriteLiteral(">\r\n \r\n\r\n<div"); 1823 1824 WriteLiteral(" class=\"align-items-right d-flex justify-content-between ml-auto\""); 1825 1826 WriteLiteral(">\r\n <p"); 1827 1828 WriteLiteral(" class=\"mb-0 pb-0 mr-2\""); 1829 1830 WriteLiteral(">"); 1831 1832 1833 #line 491 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1834 Write(Translate( "eCom Productlist - Presentation - Text", "Visning")); 1835 1836 1837 #line default 1838 #line hidden 1839 WriteLiteral("</p>\r\n <a"); 1840 1841 WriteLiteral(" href=\"#\""); 1842 1843 WriteLiteral(" data-presentation=\"list\""); 1844 1845 WriteAttribute("class", Tuple.Create(" class=\"", 21945), Tuple.Create("\"", 22102) 1846 , Tuple.Create(Tuple.Create("", 21953), Tuple.Create("js-productlist-presentation-type", 21953), true) 1847 , Tuple.Create(Tuple.Create(" ", 21985), Tuple.Create("js-productlist-presentation-btn-list", 21986), true) 1848 1849 #line 492 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1850 , Tuple.Create(Tuple.Create(" ", 22022), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-list-item" ? "default-presentation" : string.Empty 1851 1852 #line default 1853 #line hidden 1854 , 22023), false) 1855 ); 1856 1857 WriteLiteral("><i"); 1858 1859 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted mr-1\""); 1860 1861 WriteLiteral(">storage</i></a>\r\n <a"); 1862 1863 WriteLiteral(" href=\"#\""); 1864 1865 WriteLiteral(" data-presentation=\"grid\""); 1866 1867 WriteAttribute("class", Tuple.Create(" class=\"", 22237), Tuple.Create("\"", 22394) 1868 , Tuple.Create(Tuple.Create("", 22245), Tuple.Create("js-productlist-presentation-type", 22245), true) 1869 , Tuple.Create(Tuple.Create(" ", 22277), Tuple.Create("js-productlist-presentation-btn-grid", 22278), true) 1870 1871 #line 493 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1872 , Tuple.Create(Tuple.Create(" ", 22314), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-grid-item" ? "default-presentation" : string.Empty 1873 1874 #line default 1875 #line hidden 1876 , 22315), false) 1877 ); 1878 1879 WriteLiteral("><i"); 1880 1881 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted\""); 1882 1883 WriteLiteral(">apps</i></a>\r\n</div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n"); 1884 1885 1886 #line 499 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1887 } 1888 1889 1890 #line default 1891 #line hidden 1892 WriteLiteral("\r\n\r\n\r\n </div>\r\n</div>\r\n\r\n </div>\r\n </div>\r\n <div"); 1893 1894 WriteLiteral(" class=\"row\""); 1895 1896 WriteLiteral(">\r\n <div"); 1897 1898 WriteLiteral(" class=\"col-12\""); 1899 1900 WriteLiteral(">\r\n\r\n <div"); 1901 1902 WriteLiteral(" class=\"e-productlist-body\""); 1903 1904 WriteLiteral(">\r\n <div"); 1905 1906 WriteLiteral(" class=\"row\""); 1907 1908 WriteLiteral(">\r\n <div"); 1909 1910 WriteAttribute("class", Tuple.Create(" class=\"", 22726), Tuple.Create("\"", 22759) 1911 1912 #line 513 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1913 , Tuple.Create(Tuple.Create("", 22734), Tuple.Create<System.Object, System.Int32>(productlistMainClassList 1914 1915 #line default 1916 #line hidden 1917 , 22734), false) 1918 ); 1919 1920 WriteLiteral(">\r\n <div"); 1921 1922 WriteLiteral(" id=\"js-e-productlist-products\""); 1923 1924 WriteLiteral(">\r\n"); 1925 1926 1927 #line 515 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1928 1929 1930 #line default 1931 #line hidden 1932 WriteLiteral("<ul hidden itemscope"); 1933 1934 WriteLiteral(" itemtype=\"http://schema.org/ItemList\""); 1935 1936 WriteLiteral(">\r\n"); 1937 1938 1939 #line 517 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1940 1941 1942 #line default 1943 #line hidden 1944 1945 #line 517 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1946 foreach ( LoopItem product in GetLoop("Products") ) { 1947 1948 1949 #line default 1950 #line hidden 1951 WriteLiteral(" <li"); 1952 1953 WriteLiteral(" itemprop=\"itemListElement\""); 1954 1955 WriteLiteral(" itemscope"); 1956 1957 WriteLiteral(" itemtype=\"http://schema.org/Product\""); 1958 1959 WriteLiteral(">\r\n <a"); 1960 1961 WriteAttribute("href", Tuple.Create(" href=\"", 23074), Tuple.Create("\"", 23217) 1962 1963 #line 519 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1964 , Tuple.Create(Tuple.Create("", 23081), Tuple.Create<System.Object, System.Int32>(ProductService.Instance.GetProductLink( product.GetString("Ecom:Product.PrimaryOrFirstGroupID"), product.GetString("Ecom:Product.ID") ) 1965 1966 #line default 1967 #line hidden 1968 , 23081), false) 1969 ); 1970 1971 WriteAttribute("title", Tuple.Create(" title=\"", 23218), Tuple.Create("\"", 23265) 1972 1973 #line 519 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1974 , Tuple.Create(Tuple.Create("", 23226), Tuple.Create<System.Object, System.Int32>(product.GetString("Ecom:Product.Name") 1975 1976 #line default 1977 #line hidden 1978 , 23226), false) 1979 ); 1980 1981 WriteLiteral(" itemprop=\"url\""); 1982 1983 WriteLiteral(">\r\n <h3"); 1984 1985 WriteLiteral(" itemprop=\"name\""); 1986 1987 WriteLiteral(">"); 1988 1989 1990 #line 520 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1991 Write(product.GetString("Ecom:Product.Name")); 1992 1993 1994 #line default 1995 #line hidden 1996 WriteLiteral("</h3>\r\n <p"); 1997 1998 WriteLiteral(" itemprop=\"description\""); 1999 2000 WriteLiteral(">"); 2001 2002 2003 #line 521 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2004 Write(product.GetString("Ecom:Product.ShortDescription")); 2005 2006 2007 #line default 2008 #line hidden 2009 WriteLiteral("</p>\r\n </a>\r\n </li>\r\n"); 2010 2011 2012 #line 524 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2013 } 2014 2015 2016 #line default 2017 #line hidden 2018 WriteLiteral("</ul>\r\n\r\n\r\n <script"); 2019 2020 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-products\""); 2021 2022 WriteLiteral(" type=\"text/x-handlebars-template\""); 2023 2024 WriteLiteral(@"> 2025 <div class=""e-products""> 2026 <div class=""e-loading-overlay e-products-loading-overlay js-e-products-loading-overlay is-loading""> 2027 <div class=""e-loading-spinner""></div> 2028 </div> 2029 {{#if page.productCount}} 2030 <div class=""row""> 2031 {{#each products}} 2032 <div class="""); 2033 2034 2035 #line 536 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2036 Write(productlistItemClassList); 2037 2038 2039 #line default 2040 #line hidden 2041 WriteLiteral("\">\r\n <div class=\"e-products-item js-e-products-item js-e-block-link e-block-link" + 2042 " border-bottom\">\r\n <div class=\"e-products-item-container\">\r\n <div class=" + 2043 "\"e-products-item-image-container\">\r\n <a class=\"e-products-item-image-wrap" + 2044 "per\" href=\"{{url}}\">\r\n <img src=\"{{imageLarge}}\" alt=\"\" class=\"e-produc" + 2045 "ts-item-image\">\r\n </a>\r\n </div>\r\n <div class=\"e-products-item-t" + 2046 "ext-container small\">\r\n <h3 class=\"e-products-item-name mb-0\"><a href=\"{{" + 2047 "url}}\">{{name}}</a></h3>\r\n {{{keySellingPoints}}}\r\n </div>\r\n <d" + 2048 "iv class=\"e-products-item-buy-container\">\r\n <div class=\"small mb-3\">\r\n " + 2049 " <span class=\"mr-2\"><i class=\"material-icons text-primary\">lens</i><span c" + 2050 "lass=\"ml-1\">43 på lager</span></span>\r\n <span><i class=\"material-icons " + 2051 "text-primary\">favorite</i><span class=\"ml-1\">Føj til favorit</span></span>\r\n " + 2052 " </div>\r\n <p class=\"e-products-item-text mb-0\">\r\n <span class" + 2053 "=\"e-products-item-price h2 small\">\r\n <a href=\"{{url}}\">\r\n " + 2054 " {{{price}}}\r\n </a>\r\n </span>\r\n </p>\r\n \r\n<for" + 2055 "m action=\"/system/data/cart\" class=\"e-product-form js-e-product-form\" method=\"po" + 2056 "st\">\r\n <input name=\"CartCmd\" type=\"hidden\" value=\"Add\">\r\n <input type=\"hidden\"" + 2057 " name=\"ProductID\" value=\"{{id}}\">\r\n <input name=\"VariantID\" type=\"hidden\" value" + 2058 "=\"\">\r\n <input name=\"UnitID\" type=\"hidden\" value=\"\">\r\n <input name=\"Redirect\" t" + 2059 "ype=\"hidden\" value=\"\">\r\n <div class=\"dcc-product-list-add-to-cart-wrapper\">\r\n " + 2060 " <input name=\"Quantity\" type=\"number\" value=\"1\">\r\n <button class=\"btn btn-pr" + 2061 "imary\" type=\"submit\">"); 2062 2063 2064 #line 569 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2065 Write(Translate( "eCom Product - Add To Cart - Button", "Add to cart" )); 2066 2067 2068 #line default 2069 #line hidden 2070 WriteLiteral(@"</button> 2071 </div> 2072 </form> 2073 2074 2075 </div> 2076 </div> 2077 </div> 2078 </div> 2079 2080 {{/each}} 2081 </div> 2082 {{else}} 2083 <div class=""alert alert-warning mt-2"" role=""alert""> 2084 <strong><i class=""material-icons material-icons-2x"">sentiment_dissatisfied</i> "); 2085 2086 2087 #line 583 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2088 Write(Translate( "eCom Productlist - Sorry - Text", "Sorry..")); 2089 2090 2091 #line default 2092 #line hidden 2093 WriteLiteral("</strong>\r\n <br> "); 2094 2095 2096 #line 584 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2097 Write(Translate( "eCom Productlist - No Products - Text", "No products match your choices.")); 2098 2099 2100 #line default 2101 #line hidden 2102 WriteLiteral("\r\n </div>\r\n {{/if}}\r\n </div>\r\n</script>\r\n\r\n </div>\r\n"); 2103 2104 2105 #line 591 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2106 2107 2108 #line default 2109 #line hidden 2110 2111 #line 591 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2112 if ( Espresso.Item.FooterShow == "True" ) 2113 { 2114 2115 2116 #line default 2117 #line hidden 2118 WriteLiteral(" <div"); 2119 2120 WriteLiteral(" class=\"align-items-end d-flex justify-content-between pt-1 small\""); 2121 2122 WriteLiteral(">\r\n "); 2123 2124 WriteLiteral("\r\n"); 2125 2126 2127 #line 598 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2128 2129 2130 #line default 2131 #line hidden 2132 2133 #line 598 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2134 if ( Espresso.Item.PagingShow == "True" ) 2135 { 2136 2137 2138 #line default 2139 #line hidden 2140 WriteLiteral(" <div"); 2141 2142 WriteLiteral(" class=\"align-items-center d-flex e-productlist-paging js-e-productlist-paging ju" + 2143 "stify-content-between ml-auto\""); 2144 2145 WriteLiteral(">\r\n <script"); 2146 2147 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-paging\""); 2148 2149 WriteLiteral(" type=\"text/x-handlebars-template\""); 2150 2151 WriteLiteral(">\r\n {{#if page.productCount}}\r\n <span class=\"text-nowrap {{#compa" + 2152 "re page.totalPages \'>\' 1 }}mr-4{{/compare}}\">\r\n <strong>{{page.vi" + 2153 "ewing.from}} - {{page.viewing.to}}</strong> "); 2154 2155 2156 #line 604 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2157 Write(Translate( "eCom Productlist Paging - Product Count Of - Text", "of" )); 2158 2159 2160 #line default 2161 #line hidden 2162 WriteLiteral(@" 2163 <span> {{page.productCount}}</span> 2164 </span> 2165 2166 2167 <span class=""""> 2168 {{#compare page.prevPage '!==' 0 }} 2169 <a href=""{{page.pagingUrl}}={{page.prevPage}}"" class=""text-auto text-uppercase text-nowrap text-decoration-none p-0 pl-1 mr-1 js-e-productlist-set-pagenum"" data-page-num=""{{page.prevPage}}""> 2170 <i class=""material-icons"">arrow_back</i> 2171 <span class="""">"); 2172 2173 2174 #line 613 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2175 Write(Translate( "eCom Productlist Paging - Previous - Text", "Previous" )); 2176 2177 2178 #line default 2179 #line hidden 2180 WriteLiteral(@"</span> 2181 </a> 2182 {{/compare}} 2183 2184 {{#compare page.nextPage '!==' 0 }} 2185 <a href=""{{page.pagingUrl}}={{page.nextPage}}"" class=""text-auto text-uppercase text-nowrap text-decoration-none p-0 pr-1 ml-1 js-e-productlist-set-pagenum"" data-page-num=""{{page.nextPage}}""> 2186 <span class="""">"); 2187 2188 2189 #line 619 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2190 Write(Translate( "eCom Productlist Paging - Next - Text", "Next" )); 2191 2192 2193 #line default 2194 #line hidden 2195 WriteLiteral(@"</span> 2196 <i class=""material-icons"">arrow_forward</i></a> 2197 {{/compare}} 2198 2199 {{#compare page.pageSize '!==' 999}} 2200 {{#compare page.totalPages '>' 1 }} 2201 <a href=""{{page.pagingUrl}}=9999"" class=""text-auto text-uppercase text-nowrap text-decoration-none p-0 pl-1 js-e-productlist-set-pagesize"" data-page-size=""999""> 2202 "); 2203 2204 WriteLiteral(" "); 2205 2206 2207 #line 626 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2208 Write(Translate( "eCom Productlist Paging - Show All - Text", "Show all" )); 2209 2210 2211 #line default 2212 #line hidden 2213 WriteLiteral(@" 2214 </a> 2215 {{/compare}} 2216 {{/compare}} 2217 2218 {{#compare page.pageSize '===' 999}} 2219 <a href=""#"" class=""text-auto text-uppercase text-nowrap text-decoration-none p-0 pl-1 js-e-productlist-set-pagesize d-none"" data-page-size="""); 2220 2221 2222 #line 632 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2223 Write(Espresso.Item.Pagesize); 2224 2225 2226 #line default 2227 #line hidden 2228 WriteLiteral("\">\r\n"); 2229 2230 WriteLiteral(" "); 2231 2232 2233 #line 633 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2234 Write(Translate( "eCom Productlist Paging - Reset - Link", "Reset" )); 2235 2236 2237 #line default 2238 #line hidden 2239 WriteLiteral("\r\n </a>\r\n {{/compare}}\r\n\r\n <span>\r\n {{/if}}" + 2240 "\r\n </script>\r\n</div>\r\n"); 2241 2242 2243 #line 641 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2244 2245 } 2246 2247 2248 #line default 2249 #line hidden 2250 WriteLiteral(" </div>\r\n"); 2251 2252 2253 #line 644 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2254 } 2255 2256 2257 #line default 2258 #line hidden 2259 WriteLiteral("\r\n </div>\r\n <div"); 2260 2261 WriteAttribute("class", Tuple.Create(" class=\"", 28919), Tuple.Create("\"", 28968) 2262 2263 #line 647 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2264 , Tuple.Create(Tuple.Create("", 28927), Tuple.Create<System.Object, System.Int32>(productlistAsideClassList 2265 2266 #line default 2267 #line hidden 2268 , 28927), false) 2269 , Tuple.Create(Tuple.Create(" ", 28953), Tuple.Create("order-lg-first", 28954), true) 2270 ); 2271 2272 WriteLiteral(">\r\n <form"); 2273 2274 WriteLiteral(" class=\"js-e-productlist-form\""); 2275 2276 WriteLiteral(" data-action=\""); 2277 2278 2279 #line 648 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2280 Write(Espresso.Item.FacetUrl); 2281 2282 2283 #line default 2284 #line hidden 2285 WriteLiteral("\""); 2286 2287 WriteLiteral(">\r\n"); 2288 2289 2290 #line 649 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2291 2292 2293 #line default 2294 #line hidden 2295 2296 #line 649 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2297 2298 string pageUrl = GetGlobalValue( "Global:Pageview.Url" ); 2299 string sortBy = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortBy" ] ) ? GetString( "Ecom:ProductList.SortBy" ) : HttpContext.Current.Request[ "SortBy" ]; 2300 if ( sortBy == "Name" || sortBy == "Price" ) 2301 { 2302 sortBy = "Sort" + sortBy; 2303 } 2304 else if ( sortBy == "UserDefined" ) 2305 { 2306 sortBy = "PrimaryGroupSort"; 2307 } 2308 string sortOrder = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortOrder" ] ) ? GetString( "Ecom:ProductList.SortOrder" ) : HttpContext.Current.Request[ "SortOrder" ]; 2309 string pageSize = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageSize" ] ) ? GetString( "Ecom:ProductList.PageSize" ) : HttpContext.Current.Request[ "PageSize" ]; 2310 string pageNum = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageNum" ] ) ? GetString( "Ecom:ProductList.CurrentPage" ) : HttpContext.Current.Request[ "PageNum" ]; 2311 2312 2313 #line default 2314 #line hidden 2315 WriteLiteral("\r\n<input"); 2316 2317 WriteLiteral(" type=\"hidden\""); 2318 2319 WriteLiteral(" name=\"ViewPageID\""); 2320 2321 WriteAttribute("value", Tuple.Create(" value=\"", 30048), Tuple.Create("\"", 30073) 2322 2323 #line 664 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2324 , Tuple.Create(Tuple.Create("", 30056), Tuple.Create<System.Object, System.Int32>(Espresso.Page.ID 2325 2326 #line default 2327 #line hidden 2328 , 30056), false) 2329 ); 2330 2331 WriteLiteral(">\r\n<input"); 2332 2333 WriteLiteral(" type=\"hidden\""); 2334 2335 WriteLiteral(" name=\"PageNum\""); 2336 2337 WriteAttribute("value", Tuple.Create(" value=\"", 30112), Tuple.Create("\"", 30163) 2338 2339 #line 665 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2340 , Tuple.Create(Tuple.Create("", 30120), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( pageNum ) 2341 2342 #line default 2343 #line hidden 2344 , 30120), false) 2345 ); 2346 2347 WriteLiteral(">\r\n<input"); 2348 2349 WriteLiteral(" type=\"hidden\""); 2350 2351 WriteLiteral(" name=\"PageUrl\""); 2352 2353 WriteAttribute("value", Tuple.Create(" value=\"", 30202), Tuple.Create("\"", 30253) 2354 2355 #line 666 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2356 , Tuple.Create(Tuple.Create("", 30210), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( pageUrl ) 2357 2358 #line default 2359 #line hidden 2360 , 30210), false) 2361 ); 2362 2363 WriteLiteral(">\r\n<input"); 2364 2365 WriteLiteral(" type=\"hidden\""); 2366 2367 WriteLiteral(" name=\"SortBy\""); 2368 2369 WriteAttribute("value", Tuple.Create(" value=\"", 30291), Tuple.Create("\"", 30341) 2370 2371 #line 667 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2372 , Tuple.Create(Tuple.Create("", 30299), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( sortBy ) 2373 2374 #line default 2375 #line hidden 2376 , 30299), false) 2377 ); 2378 2379 WriteLiteral(">\r\n<input"); 2380 2381 WriteLiteral(" type=\"hidden\""); 2382 2383 WriteLiteral(" name=\"SortOrder\""); 2384 2385 WriteAttribute("value", Tuple.Create(" value=\"", 30382), Tuple.Create("\"", 30435) 2386 2387 #line 668 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2388 , Tuple.Create(Tuple.Create("", 30390), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( sortOrder ) 2389 2390 #line default 2391 #line hidden 2392 , 30390), false) 2393 ); 2394 2395 WriteLiteral(">\r\n<input"); 2396 2397 WriteLiteral(" type=\"hidden\""); 2398 2399 WriteLiteral(" name=\"PageSize\""); 2400 2401 WriteAttribute("value", Tuple.Create(" value=\"", 30475), Tuple.Create("\"", 30527) 2402 2403 #line 669 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2404 , Tuple.Create(Tuple.Create("", 30483), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( pageSize ) 2405 2406 #line default 2407 #line hidden 2408 , 30483), false) 2409 ); 2410 2411 WriteLiteral(">\r\n\r\n"); 2412 2413 2414 #line 671 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2415 if ( Espresso.Item.FiltersShow == "True" ) 2416 { 2417 foreach ( LoopItem facetGroup in GetLoop( "FacetGroups" ) ) 2418 { 2419 2420 2421 #line default 2422 #line hidden 2423 WriteLiteral(" <input"); 2424 2425 WriteLiteral(" type=\"hidden\""); 2426 2427 WriteLiteral(" name=\"fg\""); 2428 2429 WriteAttribute("value", Tuple.Create(" value=\"", 30683), Tuple.Create("\"", 30733) 2430 2431 #line 675 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2432 , Tuple.Create(Tuple.Create("", 30691), Tuple.Create<System.Object, System.Int32>(facetGroup.GetString( "FacetGroup.Name" ) 2433 2434 #line default 2435 #line hidden 2436 , 30691), false) 2437 ); 2438 2439 WriteLiteral(">\r\n"); 2440 2441 2442 #line 676 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2443 } 2444 2445 2446 #line default 2447 #line hidden 2448 WriteLiteral(" <input"); 2449 2450 WriteLiteral(" type=\"hidden\""); 2451 2452 WriteLiteral(" class=\"js-e-visible-options-count\""); 2453 2454 WriteAttribute("value", Tuple.Create(" value=\"", 30799), Tuple.Create("\"", 30847) 2455 2456 #line 677 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2457 , Tuple.Create(Tuple.Create("", 30807), Tuple.Create<System.Object, System.Int32>(Espresso.Item.FiltersVisibleOptionCount 2458 2459 #line default 2460 #line hidden 2461 , 30807), false) 2462 ); 2463 2464 WriteLiteral(">\r\n"); 2465 2466 2467 #line 678 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2468 } 2469 2470 2471 #line default 2472 #line hidden 2473 2474 #line 679 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2475 foreach ( LoopItem query in GetLoop( "Query.Parameters" ) ) 2476 { 2477 if ( string.IsNullOrEmpty( query.GetString( "Parameter.Value" ) ) == false ) 2478 { 2479 if ( query.GetBoolean( "Parameter.IsHandledAsFacet" ) == false && query.GetString( "Parameter.Name" ) != "q" ) 2480 { 2481 2482 2483 #line default 2484 #line hidden 2485 WriteLiteral(" <input"); 2486 2487 WriteLiteral(" type=\"hidden\""); 2488 2489 WriteAttribute("name", Tuple.Create(" name=\"", 31155), Tuple.Create("\"", 31198) 2490 2491 #line 685 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2492 , Tuple.Create(Tuple.Create("", 31162), Tuple.Create<System.Object, System.Int32>(query.GetString( "Parameter.Name" ) 2493 2494 #line default 2495 #line hidden 2496 , 31162), false) 2497 ); 2498 2499 WriteAttribute("value", Tuple.Create(" value=\"", 31199), Tuple.Create("\"", 31279) 2500 2501 #line 685 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2502 , Tuple.Create(Tuple.Create("", 31207), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( query.GetString( "Parameter.Value" ) ) 2503 2504 #line default 2505 #line hidden 2506 , 31207), false) 2507 ); 2508 2509 WriteLiteral(">\r\n"); 2510 2511 2512 #line 686 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2513 } 2514 } 2515 } 2516 2517 2518 #line default 2519 #line hidden 2520 WriteLiteral("\r\n"); 2521 2522 2523 #line 690 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2524 2525 2526 #line default 2527 #line hidden 2528 2529 #line 690 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2530 2531 bool isExtranet = GetGlobalValue("Global:Extranet.UserID") == "0" ? false : true; 2532 2533 2534 #line default 2535 #line hidden 2536 WriteLiteral("\r\n\r\n<div"); 2537 2538 WriteLiteral(" id=\"js-e-productlist-filters\""); 2539 2540 WriteLiteral(" class=\"d-lg-block d-none dcc-custom-productlist-filters-wrapper\""); 2541 2542 WriteLiteral(">\r\n "); 2543 2544 WriteLiteral("\r\n <script"); 2545 2546 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-filters\""); 2547 2548 WriteLiteral(" type=\"text/x-handlebars-template\""); 2549 2550 WriteLiteral(">\r\n\r\n\r\n\r\n<div class=\"tab-content\" id=\"nav-tabContent\">\r\n"); 2551 2552 2553 #line 701 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2554 2555 2556 #line default 2557 #line hidden 2558 2559 #line 701 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2560 if ( Espresso.Item.NavigationShow == "True" ) 2561 { 2562 2563 2564 #line default 2565 #line hidden 2566 WriteLiteral(" <div"); 2567 2568 WriteLiteral(" class=\"tab-pane fade\""); 2569 2570 WriteLiteral(" id=\"nav-navigation\""); 2571 2572 WriteLiteral(" role=\"tabpanel\""); 2573 2574 WriteLiteral(" aria-labelledby=\"nav-navigation-tab\""); 2575 2576 WriteLiteral(">\r\n <div"); 2577 2578 WriteLiteral(" class=\"e-productlist-filters-group js-e-productlist-filters-group\""); 2579 2580 WriteLiteral(">\r\n <fieldset"); 2581 2582 WriteLiteral(" id=\"e-productlist-filters-group-navigation\""); 2583 2584 WriteLiteral(" class=\"e-productlist-filters-group-options mb-2 small collapse show\""); 2585 2586 WriteLiteral(">\r\n <div"); 2587 2588 WriteLiteral(" class=\"e-nav-local e-nav-local-vertical\""); 2589 2590 WriteLiteral(">\r\n <nav"); 2591 2592 WriteLiteral(" class=\"e-nav-local-container\""); 2593 2594 WriteLiteral(">\r\n <ul"); 2595 2596 WriteLiteral(" class=\"nav flex-column\""); 2597 2598 WriteLiteral(">\r\n"); 2599 2600 WriteLiteral(" "); 2601 2602 2603 #line 709 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2604 Write(RenderNavigation( new 2605 { 2606 id = "dwnav-local-" + Espresso.Id, 2607 parentid = string.IsNullOrEmpty( Espresso.Item.NavigationParentPage ) == false ? Espresso.Item.NavigationParentPage : Espresso.Page.ID, 2608 template = "local-vertical.xslt", 2609 startlevel = Espresso.Item.NavigationLevelStart, 2610 endlevel = Espresso.Item.NavigationLevelEnd, 2611 expandmode = "path" 2612 } )); 2613 2614 2615 #line default 2616 #line hidden 2617 WriteLiteral("\r\n </ul>\r\n </nav>\r\n </div>\r\n </fieldset>\r" + 2618 "\n </div>\r\n </div>\r\n"); 2619 2620 2621 #line 724 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2622 } 2623 2624 2625 #line default 2626 #line hidden 2627 WriteLiteral(@" 2628 2629 <div class=""tab-pane fade show active"" id=""nav-filters"" role=""tabpanel"" aria-labelledby=""nav-filters-tab""> 2630 2631 {{#if page.filtersAppliedCount}} 2632 <div class=""e-productlist-filters-group e-productlist-filters-group-summery""> 2633 <p class=""e-productlist-filters-group-header small mb-0""> 2634 <button type=""button"" class=""btn btn-sm btn-primary btn-block py-1 my-3 js-e-productlist-filters-clear-all""><i class=""material-icons"">clear</i> "); 2635 2636 2637 #line 732 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2638 Write(Translate( "eCom Productlist Filter - Group Reset - Button", "Reset" )); 2639 2640 2641 #line default 2642 #line hidden 2643 WriteLiteral("</button>\r\n </p>\r\n </div>\r\n {{/if}}\r\n\r\n"); 2644 2645 2646 #line 737 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2647 2648 2649 #line default 2650 #line hidden 2651 2652 #line 737 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2653 if ( Espresso.Item.SearchShow == "True" ) 2654 { 2655 2656 2657 #line default 2658 #line hidden 2659 WriteLiteral(" <div"); 2660 2661 WriteLiteral(" class=\"e-productlist-filters-group js-e-productlist-filters-group\""); 2662 2663 WriteLiteral(">\r\n <p"); 2664 2665 WriteLiteral(" class=\"e-productlist-filters-group-header small mb-0 mt-2\""); 2666 2667 WriteLiteral(">\r\n\r\n </p>\r\n <fieldset"); 2668 2669 WriteLiteral(" id=\"e-productlist-filters-group-search\""); 2670 2671 WriteLiteral(" class=\"e-productlist-filters-group-options mb-2 small collapse show\""); 2672 2673 WriteLiteral(">\r\n <div"); 2674 2675 WriteLiteral(" class=\"js-e-search-input-group e-search-input-group {{#unless page.q}}is-empty{{" + 2676 "/unless}}\""); 2677 2678 WriteLiteral(">\r\n <label"); 2679 2680 WriteLiteral(" class=\"e-search-label\""); 2681 2682 WriteLiteral(" for=\"filter_search\""); 2683 2684 WriteLiteral("><a"); 2685 2686 WriteLiteral(" class=\"js-e-productlist-filters-search-submit\""); 2687 2688 WriteLiteral(" href=\"#\""); 2689 2690 WriteLiteral("><i"); 2691 2692 WriteLiteral(" class=\"material-icons text-muted\""); 2693 2694 WriteLiteral(">search</i></a></label>\r\n <input"); 2695 2696 WriteLiteral(" type=\"text\""); 2697 2698 WriteLiteral(" class=\"js-e-search-input e-search-input e-productlist-filters-search-input form-" + 2699 "control-plaintext\""); 2700 2701 WriteLiteral(" name=\"q\""); 2702 2703 WriteLiteral(" id=\"filter_search\""); 2704 2705 WriteLiteral(" value=\"{{page.q}}\""); 2706 2707 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 34282), Tuple.Create("\"", 34365) 2708 2709 #line 746 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2710 , Tuple.Create(Tuple.Create("", 34296), Tuple.Create<System.Object, System.Int32>(Translate( "eCom Productlist Filters - Search - Heading", "Search" ) 2711 2712 #line default 2713 #line hidden 2714 , 34296), false) 2715 ); 2716 2717 WriteLiteral(">\r\n <span"); 2718 2719 WriteLiteral(" class=\"js-e-search-clear e-search-clear\""); 2720 2721 WriteLiteral("><i"); 2722 2723 WriteLiteral(" class=\"material-icons\""); 2724 2725 WriteLiteral(">close</i></span>\r\n </div>\r\n </fieldset>\r\n </div>\r\n"); 2726 2727 2728 #line 751 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2729 } 2730 2731 2732 2733 #line default 2734 #line hidden 2735 2736 #line 786 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2737 2738 2739 2740 #line default 2741 #line hidden 2742 WriteLiteral(@" 2743 {{#each facets}} 2744 {{#compare count '>' 0}} 2745 {{#compare labelClean '===' 'Product in stock'}} 2746 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 2747 <p class=""e-productlist-filters-group-header small mb-0""> 2748 <a class=""e-productlist-filters-group-collapse-toggle "" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 2749 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 2750 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 2751 </a> 2752 {{#if selectedOptions.length}} 2753 <label for=""reset-filter-{{param}}"" class=""btn btn-sm btn-link py-1 px-0 m-0""> 2754 <i class=""material-icons material-icons-fixed text-danger"">clear</i> 2755 </label> 2756 {{/if}} 2757 </p> 2758 <fieldset id=""e-productlist-filters-group-{{param}}"" class=""e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small is-expanded show""> 2759 <div class=""{{#compare count '>' "); 2760 2761 2762 #line 804 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2763 Write(Espresso.Item.FiltersVisibleOptionCount); 2764 2765 2766 #line default 2767 #line hidden 2768 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 2769 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 2770 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 2771 <input class=""js-e-productlist-filters-option-reset-group custom-control-input"" name=""reset-filter-{{param}}"" id=""reset-filter-{{param}}"" type=""radio"" value=""true"" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 2772 <span class=""custom-control-indicator""></span> 2773 <span class=""custom-control-description"">"); 2774 2775 2776 #line 809 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2777 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 2778 2779 2780 #line default 2781 #line hidden 2782 WriteLiteral(@"</span> 2783 </label> 2784 </div> 2785 {{#each options}} 2786 <div class=""e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}""> 2787 <label for=""{{id}}"" class=""custom-control custom-checkbox""> 2788 <input id=""{{id}}"" name=""{{param}}"" class=""js-e-productlist-filter custom-control-input"" type=""radio"" value=""{{value}}"" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 2789 <span class=""custom-control-indicator""></span> 2790 <span class=""custom-control-description small"">{{labelRadio}} <span class=""e-productlist-filters-option-count small text-muted"">({{count}})</span></span> 2791 </label> 2792 </div> 2793 {{/each}} 2794 {{#compare count '>' "); 2795 2796 2797 #line 821 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2798 Write(Espresso.Item.FiltersVisibleOptionCount); 2799 2800 2801 #line default 2802 #line hidden 2803 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 2804 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 2805 "t=\""); 2806 2807 2808 #line 822 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2809 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 2810 2811 2812 #line default 2813 #line hidden 2814 WriteLiteral("\" data-open-text=\""); 2815 2816 2817 #line 822 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2818 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 2819 2820 2821 #line default 2822 #line hidden 2823 WriteLiteral(@"""><i class=""material-icons material-icons-fixed"">keyboard_arrow_down</i></a> 2824 {{/compare}} 2825 </div> 2826 </fieldset> 2827 </div> 2828 {{/compare}} 2829 {{/compare}} 2830 {{/each}} 2831 2832 2833 {{#each facets}} 2834 {{#compare count '>' 0}} 2835 {{#compare labelClean '===' 'Brand'}} 2836 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 2837 <p class=""e-productlist-filters-group-header small mb-0""> 2838 <a class=""e-productlist-filters-group-collapse-toggle "" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 2839 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 2840 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 2841 </a> 2842 {{#if selectedOptions.length}} 2843 <label for=""reset-filter-{{param}}"" class=""btn btn-sm btn-link py-1 px-0 m-0""> 2844 <i class=""material-icons material-icons-fixed text-danger"">clear</i> 2845 </label> 2846 {{/if}} 2847 </p> 2848 <fieldset id=""e-productlist-filters-group-{{param}}"" class=""e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small is-expanded show""> 2849 <div class=""{{#compare count '>' "); 2850 2851 2852 #line 848 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2853 Write(Espresso.Item.FiltersVisibleOptionCount); 2854 2855 2856 #line default 2857 #line hidden 2858 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 2859 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 2860 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 2861 <input class=""js-e-productlist-filters-option-reset-group custom-control-input"" name=""reset-filter-{{param}}"" id=""reset-filter-{{param}}"" type=""checkbox"" value=""true"" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 2862 <span class=""custom-control-indicator""></span> 2863 <span class=""custom-control-description"">"); 2864 2865 2866 #line 853 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2867 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 2868 2869 2870 #line default 2871 #line hidden 2872 WriteLiteral(@"</span> 2873 </label> 2874 </div> 2875 {{#each options}} 2876 <div class=""e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}""> 2877 <label for=""{{id}}"" class=""custom-control custom-checkbox""> 2878 <input id=""{{id}}"" name=""{{param}}"" class=""js-e-productlist-filter custom-control-input"" type=""checkbox"" value=""{{value}}"" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 2879 <span class=""custom-control-indicator""></span> 2880 <span class=""custom-control-description small"">{{label}} <span class=""e-productlist-filters-option-count small text-muted"">({{count}})</span></span> 2881 </label> 2882 </div> 2883 {{/each}} 2884 {{#compare count '>' "); 2885 2886 2887 #line 865 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2888 Write(Espresso.Item.FiltersVisibleOptionCount); 2889 2890 2891 #line default 2892 #line hidden 2893 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 2894 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 2895 "t=\""); 2896 2897 2898 #line 866 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2899 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 2900 2901 2902 #line default 2903 #line hidden 2904 WriteLiteral("\" data-open-text=\""); 2905 2906 2907 #line 866 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2908 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 2909 2910 2911 #line default 2912 #line hidden 2913 WriteLiteral(@"""><i class=""material-icons material-icons-fixed"">keyboard_arrow_down</i></a> 2914 {{/compare}} 2915 </div> 2916 </fieldset> 2917 </div> 2918 {{/compare}} 2919 {{/compare}} 2920 {{/each}} 2921 2922 2923 2924 {{#each facets}} 2925 {{#compare count '>' 0}} 2926 {{#compare labelClean '===' 'Condition'}} 2927 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 2928 <p class=""e-productlist-filters-group-header small mb-0""> 2929 <a class=""e-productlist-filters-group-collapse-toggle "" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 2930 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 2931 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 2932 </a> 2933 {{#if selectedOptions.length}} 2934 <label for=""reset-filter-{{param}}"" class=""btn btn-sm btn-link py-1 px-0 m-0""> 2935 <i class=""material-icons material-icons-fixed text-danger"">clear</i> 2936 </label> 2937 {{/if}} 2938 </p> 2939 <fieldset id=""e-productlist-filters-group-{{param}}"" class=""e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small is-expanded show""> 2940 <div class=""{{#compare count '>' "); 2941 2942 2943 #line 893 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2944 Write(Espresso.Item.FiltersVisibleOptionCount); 2945 2946 2947 #line default 2948 #line hidden 2949 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 2950 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 2951 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 2952 <input class=""js-e-productlist-filters-option-reset-group custom-control-input"" name=""reset-filter-{{param}}"" id=""reset-filter-{{param}}"" type=""checkbox"" value=""true"" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 2953 <span class=""custom-control-indicator""></span> 2954 <span class=""custom-control-description"">"); 2955 2956 2957 #line 898 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2958 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 2959 2960 2961 #line default 2962 #line hidden 2963 WriteLiteral(@"</span> 2964 </label> 2965 </div> 2966 {{#each options}} 2967 <div class=""e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}""> 2968 <label for=""{{id}}"" class=""custom-control custom-checkbox""> 2969 <input id=""{{id}}"" name=""{{param}}"" class=""js-e-productlist-filter custom-control-input"" type=""checkbox"" value=""{{value}}"" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 2970 <span class=""custom-control-indicator""></span> 2971 <span class=""custom-control-description small"">{{label}} <span class=""e-productlist-filters-option-count small text-muted"">({{count}})</span></span> 2972 </label> 2973 </div> 2974 {{/each}} 2975 {{#compare count '>' "); 2976 2977 2978 #line 910 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2979 Write(Espresso.Item.FiltersVisibleOptionCount); 2980 2981 2982 #line default 2983 #line hidden 2984 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 2985 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 2986 "t=\""); 2987 2988 2989 #line 911 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2990 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 2991 2992 2993 #line default 2994 #line hidden 2995 WriteLiteral("\" data-open-text=\""); 2996 2997 2998 #line 911 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2999 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 3000 3001 3002 #line default 3003 #line hidden 3004 WriteLiteral("\"><i class=\"material-icons material-icons-fixed\">keyboard_arrow_down</i></a>\r\n " + 3005 " {{/compare}}\r\n </div>\r\n </fieldset>\r\n </di" + 3006 "v>\r\n {{/compare}}\r\n {{/compare}}\r\n {{/each}}\r\n\r\n "); 3007 3008 WriteLiteral(@" 3009 3010 3011 {{#each facets}} 3012 {{#compare count '>' 0}} 3013 {{#compare_extended labelClean '!==' 'Condition,Brand,Product in stock'}} 3014 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 3015 <p class=""e-productlist-filters-group-header small mb-0""> 3016 <a class=""e-productlist-filters-group-collapse-toggle {{#unless selectedOptions.length }}{{#compare "); 3017 3018 WriteLiteral("@first \'&&\' "); 3019 3020 WriteLiteral(@"@root.page.hasNoInteraction}}{{else}}collapsed{{/compare}}{{/unless}}"" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 3021 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 3022 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 3023 </a> 3024 3025 </p> 3026 3027 <fieldset id=""e-productlist-filters-group-{{param}}"" class=""e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small collapse {{#if selectedOptions.length }}is-expanded{{else}}{{#compare "); 3028 3029 WriteLiteral("@first \'&&\' "); 3030 3031 WriteLiteral("@root.page.hasNoInteraction}}is-expanded{{/compare}}{{/if}}\">\r\n <div c" + 3032 "lass=\"{{#compare count \'>\' "); 3033 3034 3035 #line 972 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3036 Write(Espresso.Item.FiltersVisibleOptionCount); 3037 3038 3039 #line default 3040 #line hidden 3041 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 3042 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 3043 {{#compare type '===' 'Tags'}} 3044 <label for=""reset-filter-{{param}}"" class=""custom-control custom-radio""> 3045 <input class=""js-e-productlist-filters-option-reset-group custom-control-input"" name=""reset-filter-{{param}}"" id=""reset-filter-{{param}}"" type=""radio"" value=""true"" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 3046 <span class=""custom-control-indicator""></span> 3047 <span class=""custom-control-description"">"); 3048 3049 3050 #line 978 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3051 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 3052 3053 3054 #line default 3055 #line hidden 3056 WriteLiteral(@"</span> 3057 </label> 3058 {{else}} 3059 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 3060 <input class=""js-e-productlist-filters-option-reset-group custom-control-input"" name=""reset-filter-{{param}}"" id=""reset-filter-{{param}}"" type=""checkbox"" value=""true"" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 3061 <span class=""custom-control-indicator""></span> 3062 <span class=""custom-control-description"">"); 3063 3064 3065 #line 984 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3066 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 3067 3068 3069 #line default 3070 #line hidden 3071 WriteLiteral("</span>\r\n </label>\r\n {{/compare}}\r\n </" + 3072 "div>\r\n {{#each options}}\r\n <div class=\"e-productlist-f" + 3073 "ilters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if" + 3074 "}} {{#if isDisabled}}is-disabled text-muted{{/if}}\">\r\n {{#compare" + 3075 " ../type \'===\' \'Tags\'}}\r\n <label for=\"{{id}}\" class=\"custom-contr" + 3076 "ol custom-radio\">\r\n <input id=\"{{id}}\" name=\"{{param}}\" class" + 3077 "=\"js-e-productlist-filter custom-control-input\" type=\"radio\" value=\"{{value}}\" {" + 3078 "{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}>\r\n " + 3079 " <span class=\"custom-control-indicator\"></span>\r\n <spa" + 3080 "n class=\"custom-control-description small\">{{labelRadio}} <span class=\"e-product" + 3081 "list-filters-option-count small text-muted\">({{count}})</span></span>\r\n " + 3082 " </label>\r\n {{else}}\r\n\r\n <label for=\"{{i" + 3083 "d}}\" class=\"custom-control custom-checkbox\">\r\n <input id=\"{{i" + 3084 "d}}\" name=\"{{param}}\" class=\"js-e-productlist-filter custom-control-input\" type=" + 3085 "\"checkbox\" value=\"{{value}}\" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}" + 3086 "disabled{{/if}}>\r\n <span class=\"custom-control-indicator\"></s" + 3087 "pan>\r\n <span class=\"custom-control-description small\">{{label" + 3088 "}} <span class=\"e-productlist-filters-option-count small text-muted\">({{count}})" + 3089 "</span></span>\r\n </label>\r\n\r\n {{/compare}}\r\n " + 3090 " </div>\r\n {{/each}}\r\n {{#compare count \'>\' " + 3091 ""); 3092 3093 3094 #line 1007 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3095 Write(Espresso.Item.FiltersVisibleOptionCount); 3096 3097 3098 #line default 3099 #line hidden 3100 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 3101 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 3102 "t=\""); 3103 3104 3105 #line 1008 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3106 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 3107 3108 3109 #line default 3110 #line hidden 3111 WriteLiteral("\" data-open-text=\""); 3112 3113 3114 #line 1008 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3115 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 3116 3117 3118 #line default 3119 #line hidden 3120 WriteLiteral(@"""><i class=""material-icons material-icons-fixed"">keyboard_arrow_down</i></a> 3121 {{/compare}} 3122 </div> 3123 </fieldset> 3124 3125 3126 </div> 3127 {{/compare_extended}} 3128 {{/compare}} 3129 {{/each}} 3130 3131 3132 3133 </div> 3134 3135 </div> 3136 </div> 3137 </script> 3138 </div> 3139 3140 <div"); 3141 3142 WriteLiteral(" class=\"e-productlist-filters-modal fade modal modal-fullscreen\""); 3143 3144 WriteLiteral(" data-backdrop=\"false\""); 3145 3146 WriteLiteral(" id=\"js-e-productlist-filters-modal\""); 3147 3148 WriteLiteral(">\r\n <div"); 3149 3150 WriteLiteral(" class=\"modal-dialog\""); 3151 3152 WriteLiteral(">\r\n <div"); 3153 3154 WriteLiteral(" class=\"modal-content\""); 3155 3156 WriteLiteral(">\r\n <div"); 3157 3158 WriteLiteral(" class=\"modal-header\""); 3159 3160 WriteLiteral(">\r\n <h3"); 3161 3162 WriteLiteral(" class=\"modal-title\""); 3163 3164 WriteLiteral(">\r\n <i"); 3165 3166 WriteLiteral(" class=\"material-icons material-icons-large\""); 3167 3168 WriteLiteral(">tune</i>\r\n"); 3169 3170 WriteLiteral(" "); 3171 3172 3173 #line 1034 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3174 Write(Translate( "eCom Productlist Filters - Customize Selection - Heading", "Filter products" )); 3175 3176 3177 #line default 3178 #line hidden 3179 WriteLiteral("\r\n </h3>\r\n <button"); 3180 3181 WriteLiteral(" class=\"close\""); 3182 3183 WriteLiteral(" data-dismiss=\"modal\""); 3184 3185 WriteLiteral(" type=\"button\""); 3186 3187 WriteLiteral(">\r\n <i"); 3188 3189 WriteLiteral(" class=\"material-icons\""); 3190 3191 WriteLiteral(">close</i>\r\n </button>\r\n </div>\r\n <div"); 3192 3193 WriteLiteral(" class=\"modal-body pt-0\""); 3194 3195 WriteLiteral(">\r\n <div"); 3196 3197 WriteLiteral(" id=\"js-e-productlist-filters-modal-body\""); 3198 3199 WriteLiteral(" class=\"d-flex flex-column\""); 3200 3201 WriteLiteral(">\r\n\r\n </div>\r\n </div>\r\n <div"); 3202 3203 WriteLiteral(" class=\"modal-footer bg-info border-top-0\""); 3204 3205 WriteLiteral(">\r\n <button"); 3206 3207 WriteLiteral(" class=\"btn btn-primary btn-block\""); 3208 3209 WriteLiteral(" data-dismiss=\"modal\""); 3210 3211 WriteLiteral(" type=\"button\""); 3212 3213 WriteLiteral(">"); 3214 3215 3216 #line 1046 "C:\inetpub\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3217 Write(Translate( "eCom Productlist Filters - Customize Selection Apply - Button", "Show results" )); 3218 3219 3220 #line default 3221 #line hidden 3222 WriteLiteral("</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n </form>\r\n " + 3223 " </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n</div>\r\n"); 3224 3225 } 3226 } 3227 } 3228

1 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.Module 2 @using Co3.Espresso.Base.Extensions 3 @using Co3.Espresso.Website.Models.FrontEnd 4 @using Co3.Espresso.Website.Services 5 @using Dynamicweb.Content 6 @using Dynamicweb.Content.Items.Metadata 7 @using Dynamicweb.Content.Items 8 @using Dynamicweb.Frontend 9 @using System.Web 10 @using System.Web.Util 11 @using ParagraphService = Co3.Espresso.Website.Services.ParagraphService 12 @using System 13 @using System.Collections.Generic 14 @using System.Globalization 15 @using System.Linq 16 @using Co3.Espresso.Base.Extensions 17 @using Co3.Espresso.Website.Models.FrontEnd 18 @using Co3.Espresso.Website.Services 19 @using Dynamicweb.Ecommerce.CustomerCenter 20 @using Dynamicweb.Frontend 21 @using Dynamicweb.Rendering 22 @using Dynamicweb.Security.UserManagement 23 @using EcomContext = Dynamicweb.Ecommerce.Common.Context 24 25 26 27 @functions { 28 29 public static string GetStandardCollapseToggleTextExpand() 30 { 31 return "Se mere"; 32 } 33 34 public static string GetStandardCollapseToggleTextCollapse() 35 { 36 return "Se mindre"; 37 } 38 39 } 40 41 42 @helper ProductDescription(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null) 43 { 44 if ( string.IsNullOrEmpty( content ) == false ) 45 { 46 ClassList headingClassList = new ClassList(); 47 headingClassList.AddClasses( "col-12" ); 48 ClassList contentClassList = new ClassList(); 49 contentClassList.AddClasses( "col-12" ); 50 51 @sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses ) 52 53 if ( string.IsNullOrEmpty( heading ) == false ) 54 { 55 <div class="@headingClassList"> 56 <h2>@heading</h2> 57 </div> 58 } 59 <div class="@contentClassList"> 60 @content 61 </div> 62 63 @sectionEnd() 64 } 65 } 66 67 68 @helper ProductVideo(string sectionClasses = "e-section", string contentClasses = null, string heading = null, string videoURL = null) 69 { 70 if ( string.IsNullOrEmpty( videoURL ) == false ) 71 { 72 ClassList headingClassList = new ClassList(); 73 headingClassList.AddClasses( "col-12" ); 74 ClassList contentClassList = new ClassList(); 75 contentClassList.AddClasses( "col-12" ); 76 77 78 @sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses ) 79 80 if ( string.IsNullOrEmpty( heading ) == false ) 81 { 82 <div class="@headingClassList"> 83 <h2>@heading</h2> 84 </div> 85 } 86 87 <div class="@contentClassList"> 88 <div class="embed-responsive embed-responsive-16by9 mb-2"> 89 <iframe class="embed-responsive-item" src="@videoURL" width="1080" height="608" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> 90 </div> 91 </div> 92 @sectionEnd() 93 } 94 } 95 96 @helper ProductRelatedProducts(string sectionClasses = "e-section", string contentClasses = null, string heading = null, 97 IEnumerable<RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem> productLoop = null) 98 { 99 if ( productLoop != null && productLoop.Any() == true ) 100 { 101 ClassList headingClassList = new ClassList(); 102 headingClassList.AddClasses( "col-12" ); 103 ClassList contentClassList = new ClassList(); 104 contentClassList.AddClasses( "col-12" ); 105 106 @sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses ) 107 108 if ( string.IsNullOrEmpty( heading ) == false ) 109 { 110 <div class="@headingClassList"> 111 <h2 class="text-center">@heading</h2> 112 </div> 113 } 114 115 116 <div class="@contentClassList"> 117 <div class="e-products mb-2"> 118 <div class="row"> 119 @{ 120 string productlistItemClassList = ProductlistService.Instance.GetGridItemWidth( null ).ToResponsiveClasses(); 121 } 122 @foreach ( RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem product in productLoop ) 123 { 124 @ProductlistItem( product, productlistItemClassList ) 125 } 126 </div> 127 </div> 128 </div> 129 130 @sectionEnd() 131 } 132 } 133 134 @helper ProductlistItem(RazorTemplateBase<RazorTemplateModel<Template>>.LoopItem product, string productlistItemClassList = null) 135 { 136 137 138 if ( product != null ) 139 { 140 dynamic productData = new 141 { 142 id = product.GetString( "Ecom:Product.ID" ), 143 url = ProductService.Instance.GetProductLink( product.GetString( "Ecom:Product.PrimaryOrFirstGroupID" ), product.GetString( "Ecom:Product.ID" ) ), 144 number = product.GetString( "Ecom:Product.Number" ), 145 name = product.GetString( "Ecom:Product.Name" ), 146 imageLarge = ImageService.Instance.GetImageURL( product.GetString( "Ecom:Product.ImageLarge.Clean" ), 240, 240, 5 ), 147 price = ProductService.Instance.GetPriceFormatted( product.GetDouble( "Ecom:Product.Price.Price" ) ), 148 descriptionShortExtra01 = product.GetString( "Ecom:Product:Field.DescriptionShortExtra01" ), 149 stock = new 150 { 151 id = product.GetString( "Ecom:Product:Stock.ID" ), 152 quantity = product.GetString( "Ecom:Product.Stock" ), 153 text = product.GetString( "Ecom:Product:Stock.Text" ), 154 delivery = product.GetString( "Ecom:Product:Stock.DeliveryText" ) 155 } 156 }; 157 158 <div class="@productlistItemClassList"> 159 <div class="border-0 e-products-item js-e-products-item"> 160 <div class="e-products-item-container"> 161 <div class="e-products-item-image-container"> 162 <a class="e-products-item-image-wrapper" href="@productData.url"> 163 <img src="@productData.imageLarge" alt="" class="e-products-item-image"> 164 </a> 165 </div> 166 <div class="e-products-item-text-container text-center"> 167 <h3 class="e-products-item-name mb-0"> 168 <a href="@productData.url"> 169 @productData.name 170 </a> 171 </h3> 172 @if ( string.IsNullOrEmpty( productData.descriptionShortExtra01 ) == false ) 173 { 174 <p class="e-products-item-text mb-0"> 175 <a href="@productData.url"> 176 @productData.descriptionShortExtra01 177 </a> 178 </p> 179 } 180 <p class="e-products-item-text mb-0"> 181 <small class="e-products-item-price small text-muted"> 182 <a href="@productData.url"> 183 @productData.price 184 </a> 185 </small> 186 </p> 187 </div> 188 </div> 189 </div> 190 </div> 191 } 192 } 193 194 195 @helper sectionStart( string sectionClasses = "e-section", string contentClasses = null, bool sectionCollapse = false, string sectionId = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null ) 196 { 197 sectionId = string.IsNullOrEmpty( sectionId ) ? Guid.NewGuid().ToString( "N" ) : sectionId; 198 ClassList sectionClassList = new ClassList(); 199 sectionClassList.AddClasses( sectionClasses ); 200 ClassList contentClassList; 201 202 if ( contentClasses == null ) 203 { 204 contentClassList = Co3.Espresso.Website.Services.PageService.Instance.GetResponsiveClassesFromPageItem( PageView.Current().Page.Item ); 205 } 206 else 207 { 208 contentClassList = new ClassList(); 209 contentClassList.AddClasses( contentClasses ); 210 } 211 212 // TODO: Split collapse logic into separate helper function. 213 string collapseId = Guid.NewGuid().ToString( "N" ); 214 ClassList collapseToggleClassList = new ClassList(); 215 if ( sectionCollapse ) 216 { 217 sectionClassList.AddClasses( "p-section-collapse js-p-section-collapse" ); 218 collapseToggleClassList.AddClasses( contentClasses ); 219 collapseToggleClassList.AddClasses( "p-section-collapse-toggle collapsed order-last text-center" ); 220 contentClassList.AddClasses( "p-section-collapse-content collapse is-md" ); 221 } 222 223 @:<section class="@sectionClassList" id="@sectionId"> 224 @:<div class="container-fluid"> 225 @:<div class="row"> 226 227 // TODO: Split collapse logic into separate helper function. 228 if ( sectionCollapse ) 229 { 230 <div class="@collapseToggleClassList" data-toggle="collapse" data-target="#@collapseId"> 231 <button class="btn btn-primary p-section-collapse-toggle-btn" type="button"> 232 <i class="material-icons p-section-collapse-toggle-icon">keyboard_arrow_down</i> 233 </button> 234 <small class="h4 p-section-collapse-toggle-text" data-expand-text="@( string.IsNullOrEmpty( collapseToggleTextExpand ) ? GetStandardCollapseToggleTextExpand() : collapseToggleTextExpand )" data-collapse-text="@( string.IsNullOrEmpty( collapseToggleTextCollapse ) ? GetStandardCollapseToggleTextCollapse() : collapseToggleTextCollapse )"></small> 235 </div> 236 } 237 238 @:<div class="@contentClassList" id="@collapseId"> 239 @:<div class="row"> 240 } 241 242 @helper sectionEnd() 243 { 244 @:</div> 245 @:</div> 246 @:</div> 247 @:</div> 248 @:</section> 249 } 250 251 @helper GetSvgFileData(string svgfile) 252 { 253 string rtnValue = svgfile; 254 if (!string.IsNullOrEmpty(svgfile)) 255 { 256 string FilePath = svgfile; 257 258 if (System.IO.Path.GetExtension(FilePath) == ".svg") 259 { 260 System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings(); 261 settings.DtdProcessing = System.Xml.DtdProcessing.Ignore; 262 string svgFilePath = System.Web.HttpContext.Current.Server.MapPath(FilePath) ?? string.Empty; 263 if (System.IO.File.Exists(svgFilePath)) 264 { 265 using (System.IO.StreamReader sr = new System.IO.StreamReader(svgFilePath)) 266 { 267 using (System.Xml.XmlReader xr = System.Xml.XmlReader.Create(sr, settings)) 268 { 269 bool done = false; 270 while (xr.Read() && !done) 271 { 272 if (xr.NodeType == System.Xml.XmlNodeType.Element && xr.Name == "svg") 273 { 274 rtnValue = xr.ReadOuterXml(); 275 done = true; 276 } 277 } 278 } 279 } 280 } 281 } 282 } 283 @rtnValue; 284 } 285 286 287 288 289 @{ 290 ClassList productlistMainClassList = new ClassList(); 291 productlistMainClassList.AddClasses( "col-12" ); 292 if ( Espresso.Item.FiltersShow == "True" ) 293 { 294 productlistMainClassList.AddClasses( "col-lg-9 col-xl-9" ); 295 } 296 ClassList productlistAsideClassList = new ClassList(); 297 productlistAsideClassList.AddClasses( "col-12 col-lg-3 col-xl-3" ); 298 299 300 ClassList productlistItemClassList = new ClassList(); 301 Dictionary< string, decimal > paragraphEcommerceGridItemWidth = ProductlistService.Instance.GetGridItemWidth( PageView.Current().CurrentParagraph.Item.GetValue< string >( "ItemWidth" ) ); 302 productlistItemClassList.AddClasses( paragraphEcommerceGridItemWidth.ToResponsiveClasses() ); 303 } 304 <div class="js-e-loading-wait js-e-productlist"> 305 306 <div class="row"> 307 <div class="col-12"> 308 <div class="js-e-productslist-header small"> 309 <div class="align-items-end row"> 310 311 @if ( Espresso.Item.FiltersShow == "True" ) 312 { 313 <div class="@productlistAsideClassList d-lg-block d-none"> 314 <div class="pb-0 e-productslist-header"> 315 <div class="nav nav-tabs" id="nav-tab" role="tablist"> 316 @*<a class="nav-item nav-link" id="nav-navigation-tab" data-toggle="tab" href="#nav-navigation" role="tab" aria-controls="nav-navigation" aria-selected="true">Menu</a>*@ 317 <a class="nav-item nav-link active" id="nav-filters-tab" data-toggle="tab" href="#nav-filters" role="tab" aria-controls="nav-filters" aria-selected="false">@Translate( "eCom Product List - Filters - Heading", "Filters" )</a> 318 </div> 319 </div> 320 </div> 321 } 322 323 @if ( Espresso.Item.SortShow == "True" || Espresso.Item.PagingShow == "True" || Espresso.Item.FiltersShow == "True" ) 324 { 325 <div class="@productlistMainClassList"> 326 <div class="align-items-end border-bottom d-lg-flex d-none e-productslist-header align-content-between flex-wrap"> 327 @if ( Espresso.Item.SortShow == "True" ) 328 { 329 <div class="align-items-center d-flex js-e-productlist-sort"> 330 <script id="js-e-handlebars-tmpl-productlist-sort" type="text/x-handlebars-template"> 331 <fieldset class="form-inline"> 332 <div class=""> 333 <label for="Sort" class="mr-1 d-none"> 334 @Translate( "eCom Productlist - Sorting - Label", "Sort: " ) 335 </label> 336 <select name="Sort" class="js-e-productlist-sort-select custom-select" style="padding-bottom:0.25em;"> 337 <option value="Stock ASC" {{#compare sort.sort '===' 'Stock ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )</option> 338 <option value="Stock DESC" {{#compare sort.sort '===' 'Stock DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )</option> 339 {{#if page.isExtranet}} 340 <option value="Price ASC" {{#compare sort.sort '===' 'Price ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )</option> 341 <option value="Price DESC" {{#compare sort.sort '===' 'Price DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )</option> 342 {{/if}} 343 </select> 344 </div> 345 </fieldset> 346 </script> 347 </div> 348 349 } 350 @if ( Espresso.Item.PagingShow == "True" ) 351 { 352 <div class="align-items-center d-flex e-productlist-paging js-e-productlist-paging justify-content-between "> 353 <script id="js-e-handlebars-tmpl-productlist-paging" type="text/x-handlebars-template"> 354 {{#if page.productCount}} 355 <span class=""> 356 {{#compare page.prevPage '!==' 0 }} 357 <a href="{{page.pagingUrl}}={{page.prevPage}}" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-1 js-e-productlist-set-pagenum" data-page-num="{{page.prevPage}}"> 358 <i class="material-icons">keyboard_arrow_left</i> 359 <span class="">@Translate( "eCom Productlist Paging - Previous - Text", "Previous" )</span> 360 </a> 361 {{/compare}} 362 363 <span class="text-nowrap ml-1 mr-1"> 364 <strong>{{page.viewing.from}} - {{page.viewing.to}}</strong> @Translate( "eCom Productlist Paging - Product Count Of - Text", "of" ) 365 <span> {{page.productCount}}</span> 366 </span> 367 368 {{#compare page.nextPage '!==' 0 }} 369 <a href="{{page.pagingUrl}}={{page.nextPage}}" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 mr-1 pl-1 js-e-productlist-set-pagenum" data-page-num="{{page.nextPage}}"> 370 <span class="">@Translate( "eCom Productlist Paging - Next - Text", "Next" )</span> 371 <i class="material-icons">keyboard_arrow_right</i></a> 372 {{/compare}} 373 374 {{#compare page.pageSize '!==' 9999}} 375 {{#compare page.productCount '<=' 50}} 376 {{#compare page.totalPages '>' 1 }} 377 <a href="{{page.pagingUrl}}=9999" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-3 pr-2 pl-2 js-e-productlist-set-pagesize" data-page-size="9999"> 378 @Translate( "eCom Productlist Paging - Show All - Text", "Show all" ) 379 </a> 380 {{/compare}} 381 {{/compare}} 382 {{/compare}} 383 384 {{#compare page.pageSize '===' 9999}} 385 <a href="#" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-2 pl-2 js-e-productlist-set-pagesize" data-page-size="@GetString( "Ecom:ProductList.PageSize" ) "> 386 @Translate( "eCom Productlist Paging - Reset - Link", "Reset" ) 387 </a> 388 {{/compare}} 389 390 <span> 391 {{/if}} 392 </script> 393 </div> 394 395 } 396 397 398 <div class="align-items-right d-flex justify-content-between ml-auto"> 399 <p class="mb-0 pb-0 mr-2">@Translate( "eCom Productlist - Presentation - Text", "Visning")</p> 400 <a href="#" data-presentation="list" class="js-productlist-presentation-type js-productlist-presentation-btn-list @(defaultPresentation == "e-list-item" ? "default-presentation" : string.Empty)"><i class="material-icons material-icons-2x my-auto text-dark text-muted mr-1">storage</i></a> 401 <a href="#" data-presentation="grid" class="js-productlist-presentation-type js-productlist-presentation-btn-grid @(defaultPresentation == "e-grid-item" ? "default-presentation" : string.Empty)"><i class="material-icons material-icons-2x my-auto text-dark text-muted">apps</i></a> 402 </div> 403 404 </div> 405 <div class="align-items-stretch d-flex d-lg-none e-productslist-header flex-wrap justify-content-strech"> 406 <div class="align-items-center bg-info d-flex justify-content-between p-1 w-100"> 407 @if ( Espresso.Item.SortShow == "True" ) 408 { 409 <div class="align-items-center d-flex js-e-productlist-sort"> 410 <script id="js-e-handlebars-tmpl-productlist-sort" type="text/x-handlebars-template"> 411 <fieldset class="form-inline"> 412 <div class=""> 413 <label for="Sort" class="mr-1 d-none"> 414 @Translate( "eCom Productlist - Sorting - Label", "Sort: " ) 415 </label> 416 <select name="Sort" class="js-e-productlist-sort-select custom-select" style="padding-bottom:0.25em;"> 417 <option value="Stock ASC" {{#compare sort.sort '===' 'Stock ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )</option> 418 <option value="Stock DESC" {{#compare sort.sort '===' 'Stock DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )</option> 419 {{#if page.isExtranet}} 420 <option value="Price ASC" {{#compare sort.sort '===' 'Price ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )</option> 421 <option value="Price DESC" {{#compare sort.sort '===' 'Price DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )</option> 422 {{/if}} 423 </select> 424 </div> 425 </fieldset> 426 </script> 427 </div> 428 429 } 430 @if ( Espresso.Item.FiltersShow == "True" ) 431 { 432 <button class="btn btn-primary js-e-productlist-filters-modal-toggle" data-target="#js-e-productlist-filters-modal" data-toggle="modal" type="button"> 433 <i class="material-icons material-icons-large">tune</i> 434 @Translate( "eCom Productlist Filters - Customize Selection - Button", "Filters" ) 435 <span class="ml-2 badge badge-primary js-e-productlist-filters-applied-count"></span> 436 </button> 437 } 438 </div> 439 <div class="py-1"> 440 @if ( Espresso.Item.PagingShow == "True" ) 441 { 442 <div class="align-items-center d-flex e-productlist-paging js-e-productlist-paging justify-content-between "> 443 <script id="js-e-handlebars-tmpl-productlist-paging" type="text/x-handlebars-template"> 444 {{#if page.productCount}} 445 <span class=""> 446 {{#compare page.prevPage '!==' 0 }} 447 <a href="{{page.pagingUrl}}={{page.prevPage}}" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-1 js-e-productlist-set-pagenum" data-page-num="{{page.prevPage}}"> 448 <i class="material-icons">keyboard_arrow_left</i> 449 <span class="">@Translate( "eCom Productlist Paging - Previous - Text", "Previous" )</span> 450 </a> 451 {{/compare}} 452 453 <span class="text-nowrap ml-1 mr-1"> 454 <strong>{{page.viewing.from}} - {{page.viewing.to}}</strong> @Translate( "eCom Productlist Paging - Product Count Of - Text", "of" ) 455 <span> {{page.productCount}}</span> 456 </span> 457 458 {{#compare page.nextPage '!==' 0 }} 459 <a href="{{page.pagingUrl}}={{page.nextPage}}" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 mr-1 pl-1 js-e-productlist-set-pagenum" data-page-num="{{page.nextPage}}"> 460 <span class="">@Translate( "eCom Productlist Paging - Next - Text", "Next" )</span> 461 <i class="material-icons">keyboard_arrow_right</i></a> 462 {{/compare}} 463 464 {{#compare page.pageSize '!==' 9999}} 465 {{#compare page.productCount '<=' 50}} 466 {{#compare page.totalPages '>' 1 }} 467 <a href="{{page.pagingUrl}}=9999" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-3 pr-2 pl-2 js-e-productlist-set-pagesize" data-page-size="9999"> 468 @Translate( "eCom Productlist Paging - Show All - Text", "Show all" ) 469 </a> 470 {{/compare}} 471 {{/compare}} 472 {{/compare}} 473 474 {{#compare page.pageSize '===' 9999}} 475 <a href="#" class="dcc-productlist-paging text-nowrap text-decoration-none m-0 ml-1 pr-2 pl-2 js-e-productlist-set-pagesize" data-page-size="@GetString( "Ecom:ProductList.PageSize" ) "> 476 @Translate( "eCom Productlist Paging - Reset - Link", "Reset" ) 477 </a> 478 {{/compare}} 479 480 <span> 481 {{/if}} 482 </script> 483 </div> 484 485 } 486 </div> 487 <div class="ml-auto py-1"> 488 489 490 <div class="align-items-right d-flex justify-content-between ml-auto"> 491 <p class="mb-0 pb-0 mr-2">@Translate( "eCom Productlist - Presentation - Text", "Visning")</p> 492 <a href="#" data-presentation="list" class="js-productlist-presentation-type js-productlist-presentation-btn-list @(defaultPresentation == "e-list-item" ? "default-presentation" : string.Empty)"><i class="material-icons material-icons-2x my-auto text-dark text-muted mr-1">storage</i></a> 493 <a href="#" data-presentation="grid" class="js-productlist-presentation-type js-productlist-presentation-btn-grid @(defaultPresentation == "e-grid-item" ? "default-presentation" : string.Empty)"><i class="material-icons material-icons-2x my-auto text-dark text-muted">apps</i></a> 494 </div> 495 496 </div> 497 </div> 498 </div> 499 } 500 501 502 503 </div> 504 </div> 505 506 </div> 507 </div> 508 <div class="row"> 509 <div class="col-12"> 510 511 <div class="e-productlist-body"> 512 <div class="row"> 513 <div class="@productlistMainClassList"> 514 <div id="js-e-productlist-products"> 515 @using Co3.Espresso.Website.Services 516 <ul hidden itemscope itemtype="http://schema.org/ItemList"> 517 @foreach ( LoopItem product in GetLoop("Products") ) { 518 <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product"> 519 <a href="@ProductService.Instance.GetProductLink( product.GetString("Ecom:Product.PrimaryOrFirstGroupID"), product.GetString("Ecom:Product.ID") )" title="@product.GetString("Ecom:Product.Name")" itemprop="url"> 520 <h3 itemprop="name">@product.GetString("Ecom:Product.Name")</h3> 521 <p itemprop="description">@product.GetString("Ecom:Product.ShortDescription")</p> 522 </a> 523 </li> 524 } 525 </ul> 526 527 528 <script id="js-e-handlebars-tmpl-productlist-products" type="text/x-handlebars-template"> 529 <div class="e-products"> 530 <div class="e-loading-overlay e-products-loading-overlay js-e-products-loading-overlay is-loading"> 531 <div class="e-loading-spinner"></div> 532 </div> 533 {{#if page.productCount}} 534 <div class="row"> 535 {{#each products}} 536 <div class="@productlistItemClassList"> 537 <div class="e-products-item js-e-products-item js-e-block-link e-block-link border-bottom"> 538 <div class="e-products-item-container"> 539 <div class="e-products-item-image-container"> 540 <a class="e-products-item-image-wrapper" href="{{url}}"> 541 <img src="{{imageLarge}}" alt="" class="e-products-item-image"> 542 </a> 543 </div> 544 <div class="e-products-item-text-container small"> 545 <h3 class="e-products-item-name mb-0"><a href="{{url}}">{{name}}</a></h3> 546 {{{keySellingPoints}}} 547 </div> 548 <div class="e-products-item-buy-container"> 549 <div class="small mb-3"> 550 <span class="mr-2"><i class="material-icons text-primary">lens</i><span class="ml-1">43 på lager</span></span> 551 <span><i class="material-icons text-primary">favorite</i><span class="ml-1">Føj til favorit</span></span> 552 </div> 553 <p class="e-products-item-text mb-0"> 554 <span class="e-products-item-price h2 small"> 555 <a href="{{url}}"> 556 {{{price}}} 557 </a> 558 </span> 559 </p> 560 561 <form action="/system/data/cart" class="e-product-form js-e-product-form" method="post"> 562 <input name="CartCmd" type="hidden" value="Add"> 563 <input type="hidden" name="ProductID" value="{{id}}"> 564 <input name="VariantID" type="hidden" value=""> 565 <input name="UnitID" type="hidden" value=""> 566 <input name="Redirect" type="hidden" value=""> 567 <div class="dcc-product-list-add-to-cart-wrapper"> 568 <input name="Quantity" type="number" value="1"> 569 <button class="btn btn-primary" type="submit">@Translate( "eCom Product - Add To Cart - Button", "Add to cart" )</button> 570 </div> 571 </form> 572 573 574 </div> 575 </div> 576 </div> 577 </div> 578 579 {{/each}} 580 </div> 581 {{else}} 582 <div class="alert alert-warning mt-2" role="alert"> 583 <strong><i class="material-icons material-icons-2x">sentiment_dissatisfied</i> @Translate( "eCom Productlist - Sorry - Text", "Sorry..")</strong> 584 <br> @Translate( "eCom Productlist - No Products - Text", "No products match your choices.") 585 </div> 586 {{/if}} 587 </div> 588 </script> 589 590 </div> 591 @if ( Espresso.Item.FooterShow == "True" ) 592 { 593 <div class="align-items-end d-flex justify-content-between pt-1 small"> 594 @* <div class="align-items-center d-flex e-products-price-info"> 595 <span>@Translate( "eCom Productlist - Price Info - Text Public", "All prices are incl. VAT" )</span> 596 </div> 597 *@ 598 @if ( Espresso.Item.PagingShow == "True" ) 599 { 600 <div class="align-items-center d-flex e-productlist-paging js-e-productlist-paging justify-content-between ml-auto"> 601 <script id="js-e-handlebars-tmpl-productlist-paging" type="text/x-handlebars-template"> 602 {{#if page.productCount}} 603 <span class="text-nowrap {{#compare page.totalPages '>' 1 }}mr-4{{/compare}}"> 604 <strong>{{page.viewing.from}} - {{page.viewing.to}}</strong> @Translate( "eCom Productlist Paging - Product Count Of - Text", "of" ) 605 <span> {{page.productCount}}</span> 606 </span> 607 608 609 <span class=""> 610 {{#compare page.prevPage '!==' 0 }} 611 <a href="{{page.pagingUrl}}={{page.prevPage}}" class="text-auto text-uppercase text-nowrap text-decoration-none p-0 pl-1 mr-1 js-e-productlist-set-pagenum" data-page-num="{{page.prevPage}}"> 612 <i class="material-icons">arrow_back</i> 613 <span class="">@Translate( "eCom Productlist Paging - Previous - Text", "Previous" )</span> 614 </a> 615 {{/compare}} 616 617 {{#compare page.nextPage '!==' 0 }} 618 <a href="{{page.pagingUrl}}={{page.nextPage}}" class="text-auto text-uppercase text-nowrap text-decoration-none p-0 pr-1 ml-1 js-e-productlist-set-pagenum" data-page-num="{{page.nextPage}}"> 619 <span class="">@Translate( "eCom Productlist Paging - Next - Text", "Next" )</span> 620 <i class="material-icons">arrow_forward</i></a> 621 {{/compare}} 622 623 {{#compare page.pageSize '!==' 999}} 624 {{#compare page.totalPages '>' 1 }} 625 <a href="{{page.pagingUrl}}=9999" class="text-auto text-uppercase text-nowrap text-decoration-none p-0 pl-1 js-e-productlist-set-pagesize" data-page-size="999"> 626 @Translate( "eCom Productlist Paging - Show All - Text", "Show all" ) 627 </a> 628 {{/compare}} 629 {{/compare}} 630 631 {{#compare page.pageSize '===' 999}} 632 <a href="#" class="text-auto text-uppercase text-nowrap text-decoration-none p-0 pl-1 js-e-productlist-set-pagesize d-none" data-page-size="@Espresso.Item.Pagesize"> 633 @Translate( "eCom Productlist Paging - Reset - Link", "Reset" ) 634 </a> 635 {{/compare}} 636 637 <span> 638 {{/if}} 639 </script> 640 </div> 641 642 } 643 </div> 644 } 645 646 </div> 647 <div class="@productlistAsideClassList order-lg-first"> 648 <form class="js-e-productlist-form" data-action="@Espresso.Item.FacetUrl"> 649 @{ 650 string pageUrl = GetGlobalValue( "Global:Pageview.Url" ); 651 string sortBy = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortBy" ] ) ? GetString( "Ecom:ProductList.SortBy" ) : HttpContext.Current.Request[ "SortBy" ]; 652 if ( sortBy == "Name" || sortBy == "Price" ) 653 { 654 sortBy = "Sort" + sortBy; 655 } 656 else if ( sortBy == "UserDefined" ) 657 { 658 sortBy = "PrimaryGroupSort"; 659 } 660 string sortOrder = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortOrder" ] ) ? GetString( "Ecom:ProductList.SortOrder" ) : HttpContext.Current.Request[ "SortOrder" ]; 661 string pageSize = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageSize" ] ) ? GetString( "Ecom:ProductList.PageSize" ) : HttpContext.Current.Request[ "PageSize" ]; 662 string pageNum = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageNum" ] ) ? GetString( "Ecom:ProductList.CurrentPage" ) : HttpContext.Current.Request[ "PageNum" ]; 663 } 664 <input type="hidden" name="ViewPageID" value="@Espresso.Page.ID"> 665 <input type="hidden" name="PageNum" value="@HttpUtility.HtmlAttributeEncode( pageNum )"> 666 <input type="hidden" name="PageUrl" value="@HttpUtility.HtmlAttributeEncode( pageUrl )"> 667 <input type="hidden" name="SortBy" value="@HttpUtility.HtmlAttributeEncode( sortBy )"> 668 <input type="hidden" name="SortOrder" value="@HttpUtility.HtmlAttributeEncode( sortOrder )"> 669 <input type="hidden" name="PageSize" value="@HttpUtility.HtmlAttributeEncode( pageSize )"> 670 671 @if ( Espresso.Item.FiltersShow == "True" ) 672 { 673 foreach ( LoopItem facetGroup in GetLoop( "FacetGroups" ) ) 674 { 675 <input type="hidden" name="fg" value="@facetGroup.GetString( "FacetGroup.Name" )"> 676 } 677 <input type="hidden" class="js-e-visible-options-count" value="@Espresso.Item.FiltersVisibleOptionCount"> 678 } 679 @foreach ( LoopItem query in GetLoop( "Query.Parameters" ) ) 680 { 681 if ( string.IsNullOrEmpty( query.GetString( "Parameter.Value" ) ) == false ) 682 { 683 if ( query.GetBoolean( "Parameter.IsHandledAsFacet" ) == false && query.GetString( "Parameter.Name" ) != "q" ) 684 { 685 <input type="hidden" name="@query.GetString( "Parameter.Name" )" value="@HttpUtility.HtmlAttributeEncode( query.GetString( "Parameter.Value" ) )"> 686 } 687 } 688 } 689 690 @{ 691 bool isExtranet = GetGlobalValue("Global:Extranet.UserID") == "0" ? false : true; 692 } 693 694 <div id="js-e-productlist-filters" class="d-lg-block d-none dcc-custom-productlist-filters-wrapper"> 695 @*<input type="hidden" name="ProductInStock" value="True"/>*@ 696 <script id="js-e-handlebars-tmpl-productlist-filters" type="text/x-handlebars-template"> 697 698 699 700 <div class="tab-content" id="nav-tabContent"> 701 @if ( Espresso.Item.NavigationShow == "True" ) 702 { 703 <div class="tab-pane fade" id="nav-navigation" role="tabpanel" aria-labelledby="nav-navigation-tab"> 704 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 705 <fieldset id="e-productlist-filters-group-navigation" class="e-productlist-filters-group-options mb-2 small collapse show"> 706 <div class="e-nav-local e-nav-local-vertical"> 707 <nav class="e-nav-local-container"> 708 <ul class="nav flex-column"> 709 @RenderNavigation( new 710 { 711 id = "dwnav-local-" + Espresso.Id, 712 parentid = string.IsNullOrEmpty( Espresso.Item.NavigationParentPage ) == false ? Espresso.Item.NavigationParentPage : Espresso.Page.ID, 713 template = "local-vertical.xslt", 714 startlevel = Espresso.Item.NavigationLevelStart, 715 endlevel = Espresso.Item.NavigationLevelEnd, 716 expandmode = "path" 717 } ) 718 </ul> 719 </nav> 720 </div> 721 </fieldset> 722 </div> 723 </div> 724 } 725 726 727 <div class="tab-pane fade show active" id="nav-filters" role="tabpanel" aria-labelledby="nav-filters-tab"> 728 729 {{#if page.filtersAppliedCount}} 730 <div class="e-productlist-filters-group e-productlist-filters-group-summery"> 731 <p class="e-productlist-filters-group-header small mb-0"> 732 <button type="button" class="btn btn-sm btn-primary btn-block py-1 my-3 js-e-productlist-filters-clear-all"><i class="material-icons">clear</i> @Translate( "eCom Productlist Filter - Group Reset - Button", "Reset" )</button> 733 </p> 734 </div> 735 {{/if}} 736 737 @if ( Espresso.Item.SearchShow == "True" ) 738 { 739 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 740 <p class="e-productlist-filters-group-header small mb-0 mt-2"> 741 742 </p> 743 <fieldset id="e-productlist-filters-group-search" class="e-productlist-filters-group-options mb-2 small collapse show"> 744 <div class="js-e-search-input-group e-search-input-group {{#unless page.q}}is-empty{{/unless}}"> 745 <label class="e-search-label" for="filter_search"><a class="js-e-productlist-filters-search-submit" href="#"><i class="material-icons text-muted">search</i></a></label> 746 <input type="text" class="js-e-search-input e-search-input e-productlist-filters-search-input form-control-plaintext" name="q" id="filter_search" value="{{page.q}}" placeholder="@Translate( "eCom Productlist Filters - Search - Heading", "Search" )"> 747 <span class="js-e-search-clear e-search-clear"><i class="material-icons">close</i></span> 748 </div> 749 </fieldset> 750 </div> 751 } 752 753 @* 754 {{#if page.filtersAppliedCount}} 755 <div class="e-productlist-filters-group e-productlist-filters-group-summery"> 756 <p class="e-productlist-filters-group-header small mb-0"> 757 <span class="e-productlist-filters-group-name h4 m-0 pl-0">@Translate( "eCom Productlist Filters - Selected - Text", "Selected filters" )</span> 758 <button type="button" class="btn btn-sm btn-link py-1 px-0 js-e-productlist-filters-clear-all">@Translate( "eCom Productlist Filter - Group Reset - Button", "Reset" )</button> 759 </p> 760 <div class="e-productlist-filters-group-options-selected small mb-2"> 761 {{#each facets}} 762 {{#if selectedOptions.length}} 763 {{#each selectedOptions}} 764 <a class="e-productlist-filters-option-selected js-e-productlist-filters-remove d-flex align-items-center text-decoration-none mb-1" href="#" data-value="{{value}}"> 765 <i class="material-icons material-icons-fixed text-danger mr-1">add_circle</i> 766 <span>{{../name}}: {{label}}</span> 767 </a> 768 {{/each}} 769 {{/if}} 770 {{/each}} 771 {{#if page.q}} 772 <a class="e-productlist-filters-option-selected d-flex align-items-center text-decoration-none mb-1 js-e-productlist-filters-search-clear" href="#"> 773 <i class="material-icons material-icons-fixed text-danger mr-1">add_circle</i> 774 <span>@Translate( "eCom Productlist Filters - Search - Text", "Search" ): {{page.q}}</span> 775 </a> 776 {{/if}} 777 {{#compare page.minPrice.clean '&&' page.maxPrice.clean}} 778 <a class="e-productlist-filters-option-selected d-flex align-items-center text-decoration-none mb-1 js-e-productlist-filters-range-clear" href="#" data-group-id="js-e-productlist-filters-range-group-price"> 779 <i class="material-icons material-icons-fixed text-danger mr-1">add_circle</i> 780 <span>@Translate( "eCom Productlist Filters - Price - Heading", "Price" ): {{{page.minPrice.formatted}}} - {{{page.maxPrice.formatted}}}</span> 781 </a> 782 {{/compare}} 783 </div> 784 </div> 785 {{/if}} 786 *@ 787 788 {{#each facets}} 789 {{#compare count '>' 0}} 790 {{#compare labelClean '===' 'Product in stock'}} 791 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 792 <p class="e-productlist-filters-group-header small mb-0"> 793 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 794 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 795 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 796 </a> 797 {{#if selectedOptions.length}} 798 <label for="reset-filter-{{param}}" class="btn btn-sm btn-link py-1 px-0 m-0"> 799 <i class="material-icons material-icons-fixed text-danger">clear</i> 800 </label> 801 {{/if}} 802 </p> 803 <fieldset id="e-productlist-filters-group-{{param}}" class="e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small is-expanded show"> 804 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 805 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 806 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 807 <input class="js-e-productlist-filters-option-reset-group custom-control-input" name="reset-filter-{{param}}" id="reset-filter-{{param}}" type="radio" value="true" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 808 <span class="custom-control-indicator"></span> 809 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 810 </label> 811 </div> 812 {{#each options}} 813 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 814 <label for="{{id}}" class="custom-control custom-checkbox"> 815 <input id="{{id}}" name="{{param}}" class="js-e-productlist-filter custom-control-input" type="radio" value="{{value}}" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 816 <span class="custom-control-indicator"></span> 817 <span class="custom-control-description small">{{labelRadio}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 818 </label> 819 </div> 820 {{/each}} 821 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 822 <a href="#" class="js-e-productlist-filters-options-collapse-peek-toggle e-productlist-filters-options-collapse-peek-toggle" data-closed-text="@Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )" data-open-text="@Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )"><i class="material-icons material-icons-fixed">keyboard_arrow_down</i></a> 823 {{/compare}} 824 </div> 825 </fieldset> 826 </div> 827 {{/compare}} 828 {{/compare}} 829 {{/each}} 830 831 832 {{#each facets}} 833 {{#compare count '>' 0}} 834 {{#compare labelClean '===' 'Brand'}} 835 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 836 <p class="e-productlist-filters-group-header small mb-0"> 837 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 838 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 839 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 840 </a> 841 {{#if selectedOptions.length}} 842 <label for="reset-filter-{{param}}" class="btn btn-sm btn-link py-1 px-0 m-0"> 843 <i class="material-icons material-icons-fixed text-danger">clear</i> 844 </label> 845 {{/if}} 846 </p> 847 <fieldset id="e-productlist-filters-group-{{param}}" class="e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small is-expanded show"> 848 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 849 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 850 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 851 <input class="js-e-productlist-filters-option-reset-group custom-control-input" name="reset-filter-{{param}}" id="reset-filter-{{param}}" type="checkbox" value="true" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 852 <span class="custom-control-indicator"></span> 853 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 854 </label> 855 </div> 856 {{#each options}} 857 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 858 <label for="{{id}}" class="custom-control custom-checkbox"> 859 <input id="{{id}}" name="{{param}}" class="js-e-productlist-filter custom-control-input" type="checkbox" value="{{value}}" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 860 <span class="custom-control-indicator"></span> 861 <span class="custom-control-description small">{{label}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 862 </label> 863 </div> 864 {{/each}} 865 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 866 <a href="#" class="js-e-productlist-filters-options-collapse-peek-toggle e-productlist-filters-options-collapse-peek-toggle" data-closed-text="@Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )" data-open-text="@Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )"><i class="material-icons material-icons-fixed">keyboard_arrow_down</i></a> 867 {{/compare}} 868 </div> 869 </fieldset> 870 </div> 871 {{/compare}} 872 {{/compare}} 873 {{/each}} 874 875 876 877 {{#each facets}} 878 {{#compare count '>' 0}} 879 {{#compare labelClean '===' 'Condition'}} 880 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 881 <p class="e-productlist-filters-group-header small mb-0"> 882 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 883 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 884 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 885 </a> 886 {{#if selectedOptions.length}} 887 <label for="reset-filter-{{param}}" class="btn btn-sm btn-link py-1 px-0 m-0"> 888 <i class="material-icons material-icons-fixed text-danger">clear</i> 889 </label> 890 {{/if}} 891 </p> 892 <fieldset id="e-productlist-filters-group-{{param}}" class="e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small is-expanded show"> 893 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 894 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 895 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 896 <input class="js-e-productlist-filters-option-reset-group custom-control-input" name="reset-filter-{{param}}" id="reset-filter-{{param}}" type="checkbox" value="true" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 897 <span class="custom-control-indicator"></span> 898 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 899 </label> 900 </div> 901 {{#each options}} 902 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 903 <label for="{{id}}" class="custom-control custom-checkbox"> 904 <input id="{{id}}" name="{{param}}" class="js-e-productlist-filter custom-control-input" type="checkbox" value="{{value}}" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 905 <span class="custom-control-indicator"></span> 906 <span class="custom-control-description small">{{label}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 907 </label> 908 </div> 909 {{/each}} 910 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 911 <a href="#" class="js-e-productlist-filters-options-collapse-peek-toggle e-productlist-filters-options-collapse-peek-toggle" data-closed-text="@Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )" data-open-text="@Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )"><i class="material-icons material-icons-fixed">keyboard_arrow_down</i></a> 912 {{/compare}} 913 </div> 914 </fieldset> 915 </div> 916 {{/compare}} 917 {{/compare}} 918 {{/each}} 919 920 @* 921 922 @if ( Espresso.Item.PriceRangeShow == "True" ) 923 924 { 925 if ( isExtranet ) 926 { 927 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 928 <p class="e-productlist-filters-group-header small mb-0"> 929 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-pricerange"> 930 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 931 <span class="e-productlist-filters-group-name h4 m-0">@Translate( "eCom Productlist Filters - Price Range - Heading", "Price" )</span> 932 </a> 933 {{#compare page.minPrice.clean '||' page.maxPrice.clean}} 934 <button type="button" class="btn btn-sm btn-link py-1 px-0 js-e-productlist-filters-range-clear"> 935 <i class="material-icons material-icons-fixed text-danger">clear</i> 936 </button> 937 {{/compare}} 938 </p> 939 <fieldset id="e-productlist-filters-group-pricerange" class="e-productlist-filters-group-options mb-2 small is-expanded show"> 940 <div id="js-e-productlist-filters-range-group-price" class="row align-items-center mt-1 e-productlist-filters-range-group js-e-productlist-filters-range-group"> 941 <div class="col-12 col-lg-4 mb-1 mb-lg-0"> 942 <input type="text" class="form-control js-e-productlist-filters-range js-e-productlist-filters-range-min" name="PriceRangeMin" id="PriceRangeMin" value="{{page.minPrice.clean}}" placeholder="@Translate( "eCom Productlist Filters - Price Min - Text", "From" )" min="0"> 943 </div> 944 <div class="col-12 col-lg-4 mb-1 mb-lg-0"> 945 <input type="text" class="form-control js-e-productlist-filters-range js-e-productlist-filters-range-max" name="PriceRangeMax" id="PriceRangeMax" value="{{page.maxPrice.clean}}" placeholder="@Translate( "eCom Productlist Filters - Price Max - Text", "To" )" data-msg-rangeValid="@Translate( "eCom Productlist Filters - Price Error - Msg", "Prices entered incorrectly" )"> 946 </div> 947 <div class="col-12 col-lg-3"> 948 <button type="button" class="btn btn-primary px-0 btn-sm btn-block e-productlist-filters-apply-range js-e-productlist-filters-apply-range"><i class="material-icons">sync</i></button> 949 </div> 950 </div> 951 </fieldset> 952 </div> 953 } 954 } 955 956 *@ 957 958 959 {{#each facets}} 960 {{#compare count '>' 0}} 961 {{#compare_extended labelClean '!==' 'Condition,Brand,Product in stock'}} 962 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 963 <p class="e-productlist-filters-group-header small mb-0"> 964 <a class="e-productlist-filters-group-collapse-toggle {{#unless selectedOptions.length }}{{#compare @@first '&&' @@root.page.hasNoInteraction}}{{else}}collapsed{{/compare}}{{/unless}}" data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 965 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 966 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 967 </a> 968 969 </p> 970 971 <fieldset id="e-productlist-filters-group-{{param}}" class="e-productlist-filters-group-options js-e-productlist-filters-group-options mb-2 small collapse {{#if selectedOptions.length }}is-expanded{{else}}{{#compare @@first '&&' @@root.page.hasNoInteraction}}is-expanded{{/compare}}{{/if}}"> 972 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 973 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 974 {{#compare type '===' 'Tags'}} 975 <label for="reset-filter-{{param}}" class="custom-control custom-radio"> 976 <input class="js-e-productlist-filters-option-reset-group custom-control-input" name="reset-filter-{{param}}" id="reset-filter-{{param}}" type="radio" value="true" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 977 <span class="custom-control-indicator"></span> 978 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 979 </label> 980 {{else}} 981 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 982 <input class="js-e-productlist-filters-option-reset-group custom-control-input" name="reset-filter-{{param}}" id="reset-filter-{{param}}" type="checkbox" value="true" {{#compare isCleared '||' isEmpty}}checked{{/compare}}> 983 <span class="custom-control-indicator"></span> 984 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 985 </label> 986 {{/compare}} 987 </div> 988 {{#each options}} 989 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 990 {{#compare ../type '===' 'Tags'}} 991 <label for="{{id}}" class="custom-control custom-radio"> 992 <input id="{{id}}" name="{{param}}" class="js-e-productlist-filter custom-control-input" type="radio" value="{{value}}" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 993 <span class="custom-control-indicator"></span> 994 <span class="custom-control-description small">{{labelRadio}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 995 </label> 996 {{else}} 997 998 <label for="{{id}}" class="custom-control custom-checkbox"> 999 <input id="{{id}}" name="{{param}}" class="js-e-productlist-filter custom-control-input" type="checkbox" value="{{value}}" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}> 1000 <span class="custom-control-indicator"></span> 1001 <span class="custom-control-description small">{{label}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 1002 </label> 1003 1004 {{/compare}} 1005 </div> 1006 {{/each}} 1007 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 1008 <a href="#" class="js-e-productlist-filters-options-collapse-peek-toggle e-productlist-filters-options-collapse-peek-toggle" data-closed-text="@Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )" data-open-text="@Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )"><i class="material-icons material-icons-fixed">keyboard_arrow_down</i></a> 1009 {{/compare}} 1010 </div> 1011 </fieldset> 1012 1013 1014 </div> 1015 {{/compare_extended}} 1016 {{/compare}} 1017 {{/each}} 1018 1019 1020 1021 </div> 1022 1023 </div> 1024 </div> 1025 </script> 1026 </div> 1027 1028 <div class="e-productlist-filters-modal fade modal modal-fullscreen" data-backdrop="false" id="js-e-productlist-filters-modal"> 1029 <div class="modal-dialog"> 1030 <div class="modal-content"> 1031 <div class="modal-header"> 1032 <h3 class="modal-title"> 1033 <i class="material-icons material-icons-large">tune</i> 1034 @Translate( "eCom Productlist Filters - Customize Selection - Heading", "Filter products" ) 1035 </h3> 1036 <button class="close" data-dismiss="modal" type="button"> 1037 <i class="material-icons">close</i> 1038 </button> 1039 </div> 1040 <div class="modal-body pt-0"> 1041 <div id="js-e-productlist-filters-modal-body" class="d-flex flex-column"> 1042 1043 </div> 1044 </div> 1045 <div class="modal-footer bg-info border-top-0"> 1046 <button class="btn btn-primary btn-block" data-dismiss="modal" type="button">@Translate( "eCom Productlist Filters - Customize Selection Apply - Button", "Show results" )</button> 1047 </div> 1048 </div> 1049 </div> 1050 </div> 1051 1052 </form> 1053 </div> 1054 </div> 1055 </div> 1056 1057 </div> 1058 </div> 1059 1060 </div> 1061

Søren Viktor
+45 6360 1192
sovi@dcc.dk