keyboard_arrow_down

Cult

En moderne klassiker er født

Oplev Cult

Vores favoritter

Ray

Id nibh ultricies vehicula ut id elit.

Køb nu

Esk

Id nibh ultricies vehicula ut id elit.

Køb nu

Lyne

Nullam id dolor id nibh ultricies vehicula ut id elit.

Køb nu

Patton

Nullam id dolor id nibh ultricies vehicula ut id elit.

Køb nu

2018 favoritter

Kærlighed til klassikere

Error compiling template "Designs/dcc/eCom/Productlist/espresso.cshtml"
Line 1514: The name 'defaultPresentation' does not exist in the current context
Line 1536: The name 'defaultPresentation' does not exist in the current context
Line 1855: The name 'defaultPresentation' does not exist in the current context
Line 1877: 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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 520 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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_c6f08d6d284f483e8f3a0fc3877d1a13 : Co3.Espresso.Website.TemplateBases.Paragraphs.Module { 123 124 #line hidden 125 126 #line 27 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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=\"", 1653), Tuple.Create("\"", 1678) 184 185 #line 55 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 186 , Tuple.Create(Tuple.Create("", 1661), Tuple.Create<System.Object, System.Int32>(headingClassList 187 188 #line default 189 #line hidden 190 , 1661), false) 191 ); 192 193 WriteLiteralTo(__razor_helper_writer, ">\n <h2>"); 194 195 196 #line 56 "D:\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>\n </div>\n"); 203 204 205 #line 58 "D:\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=\"", 1734), Tuple.Create("\"", 1759) 214 215 #line 59 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 216 , Tuple.Create(Tuple.Create("", 1742), Tuple.Create<System.Object, System.Int32>(contentClassList 217 218 #line default 219 #line hidden 220 , 1742), false) 221 ); 222 223 WriteLiteralTo(__razor_helper_writer, ">\n"); 224 225 WriteLiteralTo(__razor_helper_writer, " "); 226 227 228 #line 60 "D:\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, "\n </div>\n"); 235 236 237 #line 62 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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=\"", 2352), Tuple.Create("\"", 2377) 307 308 #line 82 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 309 , Tuple.Create(Tuple.Create("", 2360), Tuple.Create<System.Object, System.Int32>(headingClassList 310 311 #line default 312 #line hidden 313 , 2360), false) 314 ); 315 316 WriteLiteralTo(__razor_helper_writer, ">\n <h2>"); 317 318 319 #line 83 "D:\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>\n </div>\n"); 326 327 328 #line 85 "D:\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=\"", 2434), Tuple.Create("\"", 2459) 338 339 #line 87 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 340 , Tuple.Create(Tuple.Create("", 2442), Tuple.Create<System.Object, System.Int32>(contentClassList 341 342 #line default 343 #line hidden 344 , 2442), false) 345 ); 346 347 WriteLiteralTo(__razor_helper_writer, ">\n <div"); 348 349 WriteLiteralTo(__razor_helper_writer, " class=\"embed-responsive embed-responsive-16by9 mb-2\""); 350 351 WriteLiteralTo(__razor_helper_writer, ">\n <iframe"); 352 353 WriteLiteralTo(__razor_helper_writer, " class=\"embed-responsive-item\""); 354 355 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 2572), Tuple.Create("\"", 2587) 356 357 #line 89 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 358 , Tuple.Create(Tuple.Create("", 2578), Tuple.Create<System.Object, System.Int32>(videoURL 359 360 #line default 361 #line hidden 362 , 2578), 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>\n </div>\n" + 372 " </div>\n"); 373 374 375 #line 92 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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=\"", 3368), Tuple.Create("\"", 3393) 444 445 #line 110 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 446 , Tuple.Create(Tuple.Create("", 3376), Tuple.Create<System.Object, System.Int32>(headingClassList 447 448 #line default 449 #line hidden 450 , 3376), false) 451 ); 452 453 WriteLiteralTo(__razor_helper_writer, ">\n <h2"); 454 455 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 456 457 WriteLiteralTo(__razor_helper_writer, ">"); 458 459 460 #line 111 "D:\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>\n </div>\n"); 467 468 469 #line 113 "D:\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=\"", 3471), Tuple.Create("\"", 3496) 480 481 #line 116 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 482 , Tuple.Create(Tuple.Create("", 3479), Tuple.Create<System.Object, System.Int32>(contentClassList 483 484 #line default 485 #line hidden 486 , 3479), false) 487 ); 488 489 WriteLiteralTo(__razor_helper_writer, ">\n <div"); 490 491 WriteLiteralTo(__razor_helper_writer, " class=\"e-products mb-2\""); 492 493 WriteLiteralTo(__razor_helper_writer, ">\n <div"); 494 495 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 496 497 WriteLiteralTo(__razor_helper_writer, ">\n"); 498 499 500 #line 119 "D:\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 "D:\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, "\n"); 514 515 516 #line 122 "D:\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 "D:\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 "D:\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 "D:\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>\n </div>\n </div>\n"); 545 546 547 #line 129 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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 "D:\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=\"", 5121), Tuple.Create("\"", 5154) 614 615 #line 158 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 616 , Tuple.Create(Tuple.Create("", 5129), Tuple.Create<System.Object, System.Int32>(productlistItemClassList 617 618 #line default 619 #line hidden 620 , 5129), false) 621 ); 622 623 WriteLiteralTo(__razor_helper_writer, ">\n <div"); 624 625 WriteLiteralTo(__razor_helper_writer, " class=\"border-0 e-products-item js-e-products-item\""); 626 627 WriteLiteralTo(__razor_helper_writer, ">\n <div"); 628 629 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-container\""); 630 631 WriteLiteralTo(__razor_helper_writer, ">\n <div"); 632 633 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-image-container\""); 634 635 WriteLiteralTo(__razor_helper_writer, ">\n <a"); 636 637 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-image-wrapper\""); 638 639 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 5377), Tuple.Create("\"", 5400) 640 641 #line 162 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 642 , Tuple.Create(Tuple.Create("", 5384), Tuple.Create<System.Object, System.Int32>(productData.url 643 644 #line default 645 #line hidden 646 , 5384), false) 647 ); 648 649 WriteLiteralTo(__razor_helper_writer, ">\n <img"); 650 651 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 5421), Tuple.Create("\"", 5450) 652 653 #line 163 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 654 , Tuple.Create(Tuple.Create("", 5427), Tuple.Create<System.Object, System.Int32>(productData.imageLarge 655 656 #line default 657 #line hidden 658 , 5427), 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, ">\n </a>\n </div>\n <div"); 666 667 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-text-container text-center\""); 668 669 WriteLiteralTo(__razor_helper_writer, ">\n <h3"); 670 671 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-name mb-0\""); 672 673 WriteLiteralTo(__razor_helper_writer, ">\n <a"); 674 675 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 5658), Tuple.Create("\"", 5681) 676 677 #line 168 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 678 , Tuple.Create(Tuple.Create("", 5665), Tuple.Create<System.Object, System.Int32>(productData.url 679 680 #line default 681 #line hidden 682 , 5665), false) 683 ); 684 685 WriteLiteralTo(__razor_helper_writer, ">\n"); 686 687 WriteLiteralTo(__razor_helper_writer, " "); 688 689 690 #line 169 "D:\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, "\n </a>\n </h3>\n"); 697 698 699 #line 172 "D:\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 "D:\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, ">\n <a"); 717 718 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 5928), Tuple.Create("\"", 5951) 719 720 #line 175 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 721 , Tuple.Create(Tuple.Create("", 5935), Tuple.Create<System.Object, System.Int32>(productData.url 722 723 #line default 724 #line hidden 725 , 5935), false) 726 ); 727 728 WriteLiteralTo(__razor_helper_writer, ">\n"); 729 730 WriteLiteralTo(__razor_helper_writer, " "); 731 732 733 #line 176 "D:\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, "\n </a>\n </p>\n"); 740 741 742 #line 179 "D:\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, ">\n <small"); 753 754 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-price small text-muted\""); 755 756 WriteLiteralTo(__razor_helper_writer, ">\n <a"); 757 758 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6200), Tuple.Create("\"", 6223) 759 760 #line 182 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 761 , Tuple.Create(Tuple.Create("", 6207), Tuple.Create<System.Object, System.Int32>(productData.url 762 763 #line default 764 #line hidden 765 , 6207), false) 766 ); 767 768 WriteLiteralTo(__razor_helper_writer, ">\n"); 769 770 WriteLiteralTo(__razor_helper_writer, " "); 771 772 773 #line 183 "D:\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, "\n </a>\n </small>\n </p>\n </div>\n " + 780 " </div>\n </div>\n </div>\n"); 781 782 783 #line 191 "D:\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 "D:\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 "D:\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, bool collapsetoggleHidden = false ) 799 { 800 #line default 801 #line hidden 802 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 803 804 #line 196 "D:\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 if (contentClasses.Contains( "show" ) == true ) 831 { 832 collapseToggleClassList.RemoveClasses( "collapsed" ); 833 } 834 835 } 836 837 838 839 #line default 840 #line hidden 841 WriteLiteralTo(__razor_helper_writer, " "); 842 843 WriteLiteralTo(__razor_helper_writer, "<section class=\""); 844 845 846 #line 228 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 847 WriteTo(__razor_helper_writer, sectionClassList); 848 849 850 #line default 851 #line hidden 852 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 853 854 855 #line 228 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 856 WriteTo(__razor_helper_writer, sectionId); 857 858 859 #line default 860 #line hidden 861 WriteLiteralTo(__razor_helper_writer, "\">\n"); 862 863 WriteLiteralTo(__razor_helper_writer, " "); 864 865 WriteLiteralTo(__razor_helper_writer, "<div class=\"container-fluid\">\n"); 866 867 WriteLiteralTo(__razor_helper_writer, " "); 868 869 WriteLiteralTo(__razor_helper_writer, "<div class=\"row\">\n"); 870 871 872 #line 231 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 873 874 // TODO: Split collapse logic into separate helper function. 875 if ( sectionCollapse && collapsetoggleHidden != true ) 876 { 877 878 879 #line default 880 #line hidden 881 WriteLiteralTo(__razor_helper_writer, " <div"); 882 883 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 8065), Tuple.Create("\"", 8097) 884 885 #line 235 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 886 , Tuple.Create(Tuple.Create("", 8073), Tuple.Create<System.Object, System.Int32>(collapseToggleClassList 887 888 #line default 889 #line hidden 890 , 8073), false) 891 ); 892 893 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); 894 895 WriteLiteralTo(__razor_helper_writer, " data-target=\"#"); 896 897 898 #line 235 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 899 WriteTo(__razor_helper_writer, collapseId); 900 901 902 #line default 903 #line hidden 904 WriteLiteralTo(__razor_helper_writer, "\""); 905 906 WriteLiteralTo(__razor_helper_writer, ">\n <button"); 907 908 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-primary p-section-collapse-toggle-btn\""); 909 910 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 911 912 WriteLiteralTo(__razor_helper_writer, ">\n <i"); 913 914 WriteLiteralTo(__razor_helper_writer, " class=\"material-icons p-section-collapse-toggle-icon\""); 915 916 WriteLiteralTo(__razor_helper_writer, ">keyboard_arrow_down</i>\n </button>\n <small"); 917 918 WriteLiteralTo(__razor_helper_writer, " class=\"h4 p-section-collapse-toggle-text\""); 919 920 WriteLiteralTo(__razor_helper_writer, " data-expand-text=\""); 921 922 923 #line 239 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 924 WriteTo(__razor_helper_writer, string.IsNullOrEmpty( collapseToggleTextExpand ) ? GetStandardCollapseToggleTextExpand() : collapseToggleTextExpand ); 925 926 927 #line default 928 #line hidden 929 WriteLiteralTo(__razor_helper_writer, "\""); 930 931 WriteLiteralTo(__razor_helper_writer, " data-collapse-text=\""); 932 933 934 #line 239 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 935 WriteTo(__razor_helper_writer, string.IsNullOrEmpty( collapseToggleTextCollapse ) ? GetStandardCollapseToggleTextCollapse() : collapseToggleTextCollapse ); 936 937 938 #line default 939 #line hidden 940 WriteLiteralTo(__razor_helper_writer, "\""); 941 942 WriteLiteralTo(__razor_helper_writer, "></small>\n </div>\n"); 943 944 945 #line 241 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 946 } 947 948 949 950 #line default 951 #line hidden 952 WriteLiteralTo(__razor_helper_writer, " "); 953 954 WriteLiteralTo(__razor_helper_writer, "<div class=\""); 955 956 957 #line 243 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 958 WriteTo(__razor_helper_writer, contentClassList); 959 960 961 #line default 962 #line hidden 963 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 964 965 966 #line 243 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 967 WriteTo(__razor_helper_writer, collapseId); 968 969 970 #line default 971 #line hidden 972 WriteLiteralTo(__razor_helper_writer, "\">\n"); 973 974 WriteLiteralTo(__razor_helper_writer, " "); 975 976 WriteLiteralTo(__razor_helper_writer, "<div class=\"row\">\n"); 977 978 979 #line 245 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 980 981 982 #line default 983 #line hidden 984 }); 985 986 #line 245 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 987 } 988 #line default 989 #line hidden 990 991 992 #line 247 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 993 public RazorEngine.Templating.TemplateWriter sectionEnd() 994 { 995 #line default 996 #line hidden 997 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 998 999 #line 248 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1000 1001 1002 1003 #line default 1004 #line hidden 1005 WriteLiteralTo(__razor_helper_writer, " "); 1006 1007 WriteLiteralTo(__razor_helper_writer, "</div>\n"); 1008 1009 WriteLiteralTo(__razor_helper_writer, " "); 1010 1011 WriteLiteralTo(__razor_helper_writer, "</div>\n"); 1012 1013 WriteLiteralTo(__razor_helper_writer, " "); 1014 1015 WriteLiteralTo(__razor_helper_writer, "</div>\n"); 1016 1017 WriteLiteralTo(__razor_helper_writer, " "); 1018 1019 WriteLiteralTo(__razor_helper_writer, "</div>\n"); 1020 1021 WriteLiteralTo(__razor_helper_writer, " "); 1022 1023 WriteLiteralTo(__razor_helper_writer, "</section>\n"); 1024 1025 1026 #line 254 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1027 1028 1029 #line default 1030 #line hidden 1031 }); 1032 1033 #line 254 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1034 } 1035 #line default 1036 #line hidden 1037 1038 1039 #line 256 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1040 public RazorEngine.Templating.TemplateWriter GetSvgFileData(string svgfile) 1041 { 1042 #line default 1043 #line hidden 1044 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1045 1046 #line 257 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1047 1048 string rtnValue = svgfile; 1049 if (!string.IsNullOrEmpty(svgfile)) 1050 { 1051 string FilePath = svgfile; 1052 1053 if (System.IO.Path.GetExtension(FilePath) == ".svg") 1054 { 1055 System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings(); 1056 settings.DtdProcessing = System.Xml.DtdProcessing.Ignore; 1057 string svgFilePath = System.Web.HttpContext.Current.Server.MapPath(FilePath) ?? string.Empty; 1058 if (System.IO.File.Exists(svgFilePath)) 1059 { 1060 using (System.IO.StreamReader sr = new System.IO.StreamReader(svgFilePath)) 1061 { 1062 using (System.Xml.XmlReader xr = System.Xml.XmlReader.Create(sr, settings)) 1063 { 1064 bool done = false; 1065 while (xr.Read() && !done) 1066 { 1067 if (xr.NodeType == System.Xml.XmlNodeType.Element && xr.Name == "svg") 1068 { 1069 rtnValue = xr.ReadOuterXml(); 1070 done = true; 1071 } 1072 } 1073 } 1074 } 1075 } 1076 } 1077 } 1078 1079 1080 #line default 1081 #line hidden 1082 1083 #line 288 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1084 WriteTo(__razor_helper_writer, rtnValue); 1085 1086 1087 #line default 1088 #line hidden 1089 1090 #line 288 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1091 ; 1092 1093 1094 #line default 1095 #line hidden 1096 }); 1097 1098 #line 289 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1099 } 1100 #line default 1101 #line hidden 1102 1103 1104 public RazorEngine_c6f08d6d284f483e8f3a0fc3877d1a13() { 1105 } 1106 1107 public override void Execute() { 1108 WriteLiteral("\n\n\n"); 1109 1110 WriteLiteral("\n\n"); 1111 1112 WriteLiteral("\n\n"); 1113 1114 WriteLiteral("\n"); 1115 1116 WriteLiteral("\n"); 1117 1118 WriteLiteral("\n\n"); 1119 1120 WriteLiteral("\n"); 1121 1122 WriteLiteral("\n"); 1123 1124 WriteLiteral("\r\n\r\n\r\n\r\n"); 1125 1126 1127 #line 294 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1128 1129 ClassList productlistMainClassList = new ClassList(); 1130 productlistMainClassList.AddClasses( "col-12" ); 1131 if ( Espresso.Item.FiltersShow == "True" ) 1132 { 1133 productlistMainClassList.AddClasses( "col-lg-9 col-xl-9" ); 1134 } 1135 ClassList productlistAsideClassList = new ClassList(); 1136 productlistAsideClassList.AddClasses( "col-12 col-lg-3 col-xl-3" ); 1137 1138 1139 ClassList productlistItemClassList = new ClassList(); 1140 Dictionary< string, decimal > paragraphEcommerceGridItemWidth = ProductlistService.Instance.GetGridItemWidth( PageView.Current().CurrentParagraph.Item.GetValue< string >( "ItemWidth" ) ); 1141 productlistItemClassList.AddClasses( paragraphEcommerceGridItemWidth.ToResponsiveClasses() ); 1142 1143 1144 #line default 1145 #line hidden 1146 WriteLiteral("\r\n<div"); 1147 1148 WriteLiteral(" class=\"js-e-loading-wait js-e-productlist\""); 1149 1150 WriteLiteral(">\r\n\r\n <div"); 1151 1152 WriteLiteral(" class=\"row\""); 1153 1154 WriteLiteral(">\r\n <div"); 1155 1156 WriteLiteral(" class=\"col-12\""); 1157 1158 WriteLiteral(">\r\n <div"); 1159 1160 WriteLiteral(" class=\"js-e-productslist-header small\""); 1161 1162 WriteLiteral(">\r\n <div"); 1163 1164 WriteLiteral(" class=\"align-items-end row\""); 1165 1166 WriteLiteral(">\r\n\r\n"); 1167 1168 1169 #line 316 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1170 1171 1172 #line default 1173 #line hidden 1174 1175 #line 316 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1176 if ( Espresso.Item.FiltersShow == "True" ) 1177 { 1178 1179 1180 #line default 1181 #line hidden 1182 WriteLiteral(" <div"); 1183 1184 WriteAttribute("class", Tuple.Create(" class=\"", 11130), Tuple.Create("\"", 11182) 1185 1186 #line 318 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1187 , Tuple.Create(Tuple.Create("", 11138), Tuple.Create<System.Object, System.Int32>(productlistAsideClassList 1188 1189 #line default 1190 #line hidden 1191 , 11138), false) 1192 , Tuple.Create(Tuple.Create(" ", 11164), Tuple.Create("d-lg-block", 11165), true) 1193 , Tuple.Create(Tuple.Create(" ", 11175), Tuple.Create("d-none", 11176), true) 1194 ); 1195 1196 WriteLiteral(">\r\n <div"); 1197 1198 WriteLiteral(" class=\"pb-0 e-productslist-header\""); 1199 1200 WriteLiteral(">\r\n <div"); 1201 1202 WriteLiteral(" class=\"nav nav-tabs\""); 1203 1204 WriteLiteral(" id=\"nav-tab\""); 1205 1206 WriteLiteral(" role=\"tablist\""); 1207 1208 WriteLiteral(">\r\n "); 1209 1210 WriteLiteral("\r\n <a"); 1211 1212 WriteLiteral(" class=\"nav-item nav-link active\""); 1213 1214 WriteLiteral(" id=\"nav-filters-tab\""); 1215 1216 WriteLiteral(" data-toggle=\"tab\""); 1217 1218 WriteLiteral(" href=\"#nav-filters\""); 1219 1220 WriteLiteral(" role=\"tab\""); 1221 1222 WriteLiteral(" aria-controls=\"nav-filters\""); 1223 1224 WriteLiteral(" aria-selected=\"false\""); 1225 1226 WriteLiteral(">"); 1227 1228 1229 #line 322 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1230 Write(Translate( "eCom Product List - Filters - Heading", "Filters" )); 1231 1232 1233 #line default 1234 #line hidden 1235 WriteLiteral("</a>\r\n </div>\r\n </div>\r\n </div>\r\n"); 1236 1237 1238 #line 326 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1239 } 1240 1241 1242 #line default 1243 #line hidden 1244 WriteLiteral("\r\n"); 1245 1246 1247 #line 328 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1248 1249 1250 #line default 1251 #line hidden 1252 1253 #line 328 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1254 if ( Espresso.Item.SortShow == "True" || Espresso.Item.PagingShow == "True" || Espresso.Item.FiltersShow == "True" ) 1255 { 1256 1257 1258 #line default 1259 #line hidden 1260 WriteLiteral(" <div"); 1261 1262 WriteAttribute("class", Tuple.Create(" class=\"", 11928), Tuple.Create("\"", 11961) 1263 1264 #line 330 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1265 , Tuple.Create(Tuple.Create("", 11936), Tuple.Create<System.Object, System.Int32>(productlistMainClassList 1266 1267 #line default 1268 #line hidden 1269 , 11936), false) 1270 ); 1271 1272 WriteLiteral(">\r\n <div"); 1273 1274 WriteLiteral(" class=\"align-items-end border-bottom d-lg-flex d-none e-productslist-header alig" + 1275 "n-content-between flex-wrap\""); 1276 1277 WriteLiteral(">\r\n"); 1278 1279 1280 #line 332 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1281 1282 1283 #line default 1284 #line hidden 1285 1286 #line 332 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1287 if ( Espresso.Item.SortShow == "True" ) 1288 { 1289 1290 1291 #line default 1292 #line hidden 1293 WriteLiteral(" <div"); 1294 1295 WriteLiteral(" class=\"align-items-center d-flex js-e-productlist-sort\""); 1296 1297 WriteLiteral(">\n <script"); 1298 1299 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-sort\""); 1300 1301 WriteLiteral(" type=\"text/x-handlebars-template\""); 1302 1303 WriteLiteral(">\n <fieldset class=\"form-inline\">\n <div class=\"\">\n <label for=\"Sor" + 1304 "t\" class=\"mr-1 d-none\">\n"); 1305 1306 WriteLiteral(" "); 1307 1308 1309 #line 339 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1310 Write(Translate( "eCom Productlist - Sorting - Label", "Sort: " )); 1311 1312 1313 #line default 1314 #line hidden 1315 WriteLiteral("\n </label>\n <select name=\"Sort\" class=\"js-e-productlist-sort-select" + 1316 " custom-select\" style=\"padding-bottom:0.25em;\">\n <option value=\"UnitSto" + 1317 "ck ASC\" {{#compare sort.sort \'===\' \'UnitStock ASC\'}}selected{{/compare}}>"); 1318 1319 1320 #line 342 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1321 Write(Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )); 1322 1323 1324 #line default 1325 #line hidden 1326 WriteLiteral("</option>\n <option value=\"UnitStock DESC\" {{#compare sort.sort \'===\' \'Un" + 1327 "itStock DESC\'}}selected{{/compare}}>"); 1328 1329 1330 #line 343 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1331 Write(Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )); 1332 1333 1334 #line default 1335 #line hidden 1336 WriteLiteral("</option>\n {{#if page.isExtranet}}\n <option value=\"Price ASC\"" + 1337 " {{#compare sort.sort \'===\' \'Price ASC\'}}selected{{/compare}}>"); 1338 1339 1340 #line 345 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1341 Write(Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )); 1342 1343 1344 #line default 1345 #line hidden 1346 WriteLiteral("</option>\n <option value=\"Price DESC\" {{#compare sort.sort \'===\' \'Pric" + 1347 "e DESC\'}}selected{{/compare}}>"); 1348 1349 1350 #line 346 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1351 Write(Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )); 1352 1353 1354 #line default 1355 #line hidden 1356 WriteLiteral("</option>\n {{/if}}\n </select>\n </div>\n </fieldset>\n </sc" + 1357 "ript>\n</div>\n"); 1358 1359 1360 #line 353 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1361 1362 } 1363 1364 1365 #line default 1366 #line hidden 1367 WriteLiteral(" "); 1368 1369 1370 #line 355 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1371 if ( Espresso.Item.PagingShow == "True" ) 1372 { 1373 1374 1375 #line default 1376 #line hidden 1377 WriteLiteral(" <div"); 1378 1379 WriteLiteral(" class=\"align-items-center d-flex e-productlist-paging js-e-productlist-paging ju" + 1380 "stify-content-between \""); 1381 1382 WriteLiteral(">\n <script"); 1383 1384 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-paging\""); 1385 1386 WriteLiteral(" type=\"text/x-handlebars-template\""); 1387 1388 WriteLiteral(@"> 1389 {{#if page.productCount}} 1390 <span class=""""> 1391 {{#compare page.prevPage '!==' 0 }} 1392 <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}}""> 1393 <i class=""material-icons"">keyboard_arrow_left</i> 1394 <span class="""">"); 1395 1396 1397 #line 364 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1398 Write(Translate( "eCom Productlist Paging - Previous - Text", "Previous" )); 1399 1400 1401 #line default 1402 #line hidden 1403 WriteLiteral("</span>\n </a>\n {{/compare}}\n\n <span class=\"text-" + 1404 "nowrap ml-1 mr-1\">\n <strong>{{page.viewing.from}} - {{page.viewing" + 1405 ".to}}</strong> "); 1406 1407 1408 #line 369 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1409 Write(Translate( "eCom Productlist Paging - Product Count Of - Text", "of" )); 1410 1411 1412 #line default 1413 #line hidden 1414 WriteLiteral(@" 1415 <span> {{page.productCount}}</span> 1416 </span> 1417 1418 {{#compare page.nextPage '!==' 0 }} 1419 <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}}""> 1420 <span class="""">"); 1421 1422 1423 #line 375 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1424 Write(Translate( "eCom Productlist Paging - Next - Text", "Next" )); 1425 1426 1427 #line default 1428 #line hidden 1429 WriteLiteral(@"</span> 1430 <i class=""material-icons"">keyboard_arrow_right</i></a> 1431 {{/compare}} 1432 1433 {{#compare page.pageSize '!==' 9999}} 1434 {{#compare page.productCount '<=' 50}} 1435 {{#compare page.totalPages '>' 1 }} 1436 <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""> 1437 "); 1438 1439 WriteLiteral(" "); 1440 1441 1442 #line 383 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1443 Write(Translate( "eCom Productlist Paging - Show All - Text", "Show all" )); 1444 1445 1446 #line default 1447 #line hidden 1448 WriteLiteral(@" 1449 </a> 1450 {{/compare}} 1451 {{/compare}} 1452 {{/compare}} 1453 1454 {{#compare page.pageSize '===' 9999}} 1455 <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="""); 1456 1457 1458 #line 390 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1459 Write(GetString( "Ecom:ProductList.PageSize" )); 1460 1461 1462 #line default 1463 #line hidden 1464 WriteLiteral(" \">\n"); 1465 1466 WriteLiteral(" "); 1467 1468 1469 #line 391 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1470 Write(Translate( "eCom Productlist Paging - Reset - Link", "Reset" )); 1471 1472 1473 #line default 1474 #line hidden 1475 WriteLiteral("\n </a>\n {{/compare}}\n\n <span>\n {{/if}}\n " + 1476 "</script>\n</div>\n"); 1477 1478 1479 #line 399 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1480 1481 } 1482 1483 1484 #line default 1485 #line hidden 1486 WriteLiteral(" \r\n\r\n<div"); 1487 1488 WriteLiteral(" class=\"align-items-right d-flex justify-content-between ml-auto\""); 1489 1490 WriteLiteral(">\r\n <p"); 1491 1492 WriteLiteral(" class=\"mb-0 pb-0 mr-2\""); 1493 1494 WriteLiteral(">"); 1495 1496 1497 #line 404 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1498 Write(Translate( "eCom Productlist - Presentation - Text", "Visning")); 1499 1500 1501 #line default 1502 #line hidden 1503 WriteLiteral("</p>\r\n <a"); 1504 1505 WriteLiteral(" href=\"#\""); 1506 1507 WriteLiteral(" data-presentation=\"list\""); 1508 1509 WriteAttribute("class", Tuple.Create(" class=\"", 16252), Tuple.Create("\"", 16409) 1510 , Tuple.Create(Tuple.Create("", 16260), Tuple.Create("js-productlist-presentation-type", 16260), true) 1511 , Tuple.Create(Tuple.Create(" ", 16292), Tuple.Create("js-productlist-presentation-btn-list", 16293), true) 1512 1513 #line 405 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1514 , Tuple.Create(Tuple.Create(" ", 16329), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-list-item" ? "default-presentation" : string.Empty 1515 1516 #line default 1517 #line hidden 1518 , 16330), false) 1519 ); 1520 1521 WriteLiteral("><i"); 1522 1523 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted mr-1\""); 1524 1525 WriteLiteral(">storage</i></a>\r\n <a"); 1526 1527 WriteLiteral(" href=\"#\""); 1528 1529 WriteLiteral(" data-presentation=\"grid\""); 1530 1531 WriteAttribute("class", Tuple.Create(" class=\"", 16544), Tuple.Create("\"", 16701) 1532 , Tuple.Create(Tuple.Create("", 16552), Tuple.Create("js-productlist-presentation-type", 16552), true) 1533 , Tuple.Create(Tuple.Create(" ", 16584), Tuple.Create("js-productlist-presentation-btn-grid", 16585), true) 1534 1535 #line 406 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1536 , Tuple.Create(Tuple.Create(" ", 16621), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-grid-item" ? "default-presentation" : string.Empty 1537 1538 #line default 1539 #line hidden 1540 , 16622), false) 1541 ); 1542 1543 WriteLiteral("><i"); 1544 1545 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted\""); 1546 1547 WriteLiteral(">apps</i></a>\r\n</div>\r\n\r\n </div>\r\n <div"); 1548 1549 WriteLiteral(" class=\"align-items-stretch d-flex d-lg-none e-productslist-header flex-wrap just" + 1550 "ify-content-strech\""); 1551 1552 WriteLiteral(">\r\n <div"); 1553 1554 WriteLiteral(" class=\"align-items-center bg-info d-flex justify-content-between p-1 w-100\""); 1555 1556 WriteLiteral(">\r\n"); 1557 1558 1559 #line 412 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1560 1561 1562 #line default 1563 #line hidden 1564 1565 #line 412 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1566 if ( Espresso.Item.SortShow == "True" ) 1567 { 1568 1569 1570 #line default 1571 #line hidden 1572 WriteLiteral(" <div"); 1573 1574 WriteLiteral(" class=\"align-items-center d-flex js-e-productlist-sort\""); 1575 1576 WriteLiteral(">\n <script"); 1577 1578 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-sort\""); 1579 1580 WriteLiteral(" type=\"text/x-handlebars-template\""); 1581 1582 WriteLiteral(">\n <fieldset class=\"form-inline\">\n <div class=\"\">\n <label for=\"Sor" + 1583 "t\" class=\"mr-1 d-none\">\n"); 1584 1585 WriteLiteral(" "); 1586 1587 1588 #line 419 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1589 Write(Translate( "eCom Productlist - Sorting - Label", "Sort: " )); 1590 1591 1592 #line default 1593 #line hidden 1594 WriteLiteral("\n </label>\n <select name=\"Sort\" class=\"js-e-productlist-sort-select" + 1595 " custom-select\" style=\"padding-bottom:0.25em;\">\n <option value=\"UnitSto" + 1596 "ck ASC\" {{#compare sort.sort \'===\' \'UnitStock ASC\'}}selected{{/compare}}>"); 1597 1598 1599 #line 422 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1600 Write(Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )); 1601 1602 1603 #line default 1604 #line hidden 1605 WriteLiteral("</option>\n <option value=\"UnitStock DESC\" {{#compare sort.sort \'===\' \'Un" + 1606 "itStock DESC\'}}selected{{/compare}}>"); 1607 1608 1609 #line 423 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1610 Write(Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )); 1611 1612 1613 #line default 1614 #line hidden 1615 WriteLiteral("</option>\n {{#if page.isExtranet}}\n <option value=\"Price ASC\"" + 1616 " {{#compare sort.sort \'===\' \'Price ASC\'}}selected{{/compare}}>"); 1617 1618 1619 #line 425 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1620 Write(Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )); 1621 1622 1623 #line default 1624 #line hidden 1625 WriteLiteral("</option>\n <option value=\"Price DESC\" {{#compare sort.sort \'===\' \'Pric" + 1626 "e DESC\'}}selected{{/compare}}>"); 1627 1628 1629 #line 426 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1630 Write(Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )); 1631 1632 1633 #line default 1634 #line hidden 1635 WriteLiteral("</option>\n {{/if}}\n </select>\n </div>\n </fieldset>\n </sc" + 1636 "ript>\n</div>\n"); 1637 1638 1639 #line 433 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1640 1641 } 1642 1643 1644 #line default 1645 #line hidden 1646 WriteLiteral(" "); 1647 1648 1649 #line 435 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1650 if ( Espresso.Item.FiltersShow == "True" ) 1651 { 1652 1653 1654 #line default 1655 #line hidden 1656 WriteLiteral(" <button"); 1657 1658 WriteLiteral(" class=\"btn btn-primary js-e-productlist-filters-modal-toggle\""); 1659 1660 WriteLiteral(" data-target=\"#js-e-productlist-filters-modal\""); 1661 1662 WriteLiteral(" data-toggle=\"modal\""); 1663 1664 WriteLiteral(" type=\"button\""); 1665 1666 WriteLiteral(">\r\n <i"); 1667 1668 WriteLiteral(" class=\"material-icons material-icons-large\""); 1669 1670 WriteLiteral(">tune</i>\r\n"); 1671 1672 WriteLiteral(" "); 1673 1674 1675 #line 439 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1676 Write(Translate( "eCom Productlist Filters - Customize Selection - Button", "Filters" )); 1677 1678 1679 #line default 1680 #line hidden 1681 WriteLiteral("\r\n <span"); 1682 1683 WriteLiteral(" class=\"ml-2 badge badge-primary js-e-productlist-filters-applied-count\""); 1684 1685 WriteLiteral("></span>\r\n </button>\r\n"); 1686 1687 1688 #line 442 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1689 } 1690 1691 1692 #line default 1693 #line hidden 1694 WriteLiteral(" </div>\r\n <div"); 1695 1696 WriteLiteral(" class=\"py-1\""); 1697 1698 WriteLiteral(">\r\n"); 1699 1700 1701 #line 445 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1702 1703 1704 #line default 1705 #line hidden 1706 1707 #line 445 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1708 if ( Espresso.Item.PagingShow == "True" ) 1709 { 1710 1711 1712 #line default 1713 #line hidden 1714 WriteLiteral(" <div"); 1715 1716 WriteLiteral(" class=\"align-items-center d-flex e-productlist-paging js-e-productlist-paging ju" + 1717 "stify-content-between \""); 1718 1719 WriteLiteral(">\n <script"); 1720 1721 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-paging\""); 1722 1723 WriteLiteral(" type=\"text/x-handlebars-template\""); 1724 1725 WriteLiteral(@"> 1726 {{#if page.productCount}} 1727 <span class=""""> 1728 {{#compare page.prevPage '!==' 0 }} 1729 <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}}""> 1730 <i class=""material-icons"">keyboard_arrow_left</i> 1731 <span class="""">"); 1732 1733 1734 #line 454 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1735 Write(Translate( "eCom Productlist Paging - Previous - Text", "Previous" )); 1736 1737 1738 #line default 1739 #line hidden 1740 WriteLiteral("</span>\n </a>\n {{/compare}}\n\n <span class=\"text-" + 1741 "nowrap ml-1 mr-1\">\n <strong>{{page.viewing.from}} - {{page.viewing" + 1742 ".to}}</strong> "); 1743 1744 1745 #line 459 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1746 Write(Translate( "eCom Productlist Paging - Product Count Of - Text", "of" )); 1747 1748 1749 #line default 1750 #line hidden 1751 WriteLiteral(@" 1752 <span> {{page.productCount}}</span> 1753 </span> 1754 1755 {{#compare page.nextPage '!==' 0 }} 1756 <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}}""> 1757 <span class="""">"); 1758 1759 1760 #line 465 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1761 Write(Translate( "eCom Productlist Paging - Next - Text", "Next" )); 1762 1763 1764 #line default 1765 #line hidden 1766 WriteLiteral(@"</span> 1767 <i class=""material-icons"">keyboard_arrow_right</i></a> 1768 {{/compare}} 1769 1770 {{#compare page.pageSize '!==' 9999}} 1771 {{#compare page.productCount '<=' 50}} 1772 {{#compare page.totalPages '>' 1 }} 1773 <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""> 1774 "); 1775 1776 WriteLiteral(" "); 1777 1778 1779 #line 473 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1780 Write(Translate( "eCom Productlist Paging - Show All - Text", "Show all" )); 1781 1782 1783 #line default 1784 #line hidden 1785 WriteLiteral(@" 1786 </a> 1787 {{/compare}} 1788 {{/compare}} 1789 {{/compare}} 1790 1791 {{#compare page.pageSize '===' 9999}} 1792 <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="""); 1793 1794 1795 #line 480 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1796 Write(GetString( "Ecom:ProductList.PageSize" )); 1797 1798 1799 #line default 1800 #line hidden 1801 WriteLiteral(" \">\n"); 1802 1803 WriteLiteral(" "); 1804 1805 1806 #line 481 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1807 Write(Translate( "eCom Productlist Paging - Reset - Link", "Reset" )); 1808 1809 1810 #line default 1811 #line hidden 1812 WriteLiteral("\n </a>\n {{/compare}}\n\n <span>\n {{/if}}\n " + 1813 "</script>\n</div>\n"); 1814 1815 1816 #line 489 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1817 1818 } 1819 1820 1821 #line default 1822 #line hidden 1823 WriteLiteral(" </div>\r\n <div"); 1824 1825 WriteLiteral(" class=\"ml-auto py-1\""); 1826 1827 WriteLiteral(">\r\n \r\n\r\n<div"); 1828 1829 WriteLiteral(" class=\"align-items-right d-flex justify-content-between ml-auto\""); 1830 1831 WriteLiteral(">\r\n <p"); 1832 1833 WriteLiteral(" class=\"mb-0 pb-0 mr-2\""); 1834 1835 WriteLiteral(">"); 1836 1837 1838 #line 496 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1839 Write(Translate( "eCom Productlist - Presentation - Text", "Visning")); 1840 1841 1842 #line default 1843 #line hidden 1844 WriteLiteral("</p>\r\n <a"); 1845 1846 WriteLiteral(" href=\"#\""); 1847 1848 WriteLiteral(" data-presentation=\"list\""); 1849 1850 WriteAttribute("class", Tuple.Create(" class=\"", 21863), Tuple.Create("\"", 22020) 1851 , Tuple.Create(Tuple.Create("", 21871), Tuple.Create("js-productlist-presentation-type", 21871), true) 1852 , Tuple.Create(Tuple.Create(" ", 21903), Tuple.Create("js-productlist-presentation-btn-list", 21904), true) 1853 1854 #line 497 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1855 , Tuple.Create(Tuple.Create(" ", 21940), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-list-item" ? "default-presentation" : string.Empty 1856 1857 #line default 1858 #line hidden 1859 , 21941), false) 1860 ); 1861 1862 WriteLiteral("><i"); 1863 1864 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted mr-1\""); 1865 1866 WriteLiteral(">storage</i></a>\r\n <a"); 1867 1868 WriteLiteral(" href=\"#\""); 1869 1870 WriteLiteral(" data-presentation=\"grid\""); 1871 1872 WriteAttribute("class", Tuple.Create(" class=\"", 22155), Tuple.Create("\"", 22312) 1873 , Tuple.Create(Tuple.Create("", 22163), Tuple.Create("js-productlist-presentation-type", 22163), true) 1874 , Tuple.Create(Tuple.Create(" ", 22195), Tuple.Create("js-productlist-presentation-btn-grid", 22196), true) 1875 1876 #line 498 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1877 , Tuple.Create(Tuple.Create(" ", 22232), Tuple.Create<System.Object, System.Int32>(defaultPresentation == "e-grid-item" ? "default-presentation" : string.Empty 1878 1879 #line default 1880 #line hidden 1881 , 22233), false) 1882 ); 1883 1884 WriteLiteral("><i"); 1885 1886 WriteLiteral(" class=\"material-icons material-icons-2x my-auto text-dark text-muted\""); 1887 1888 WriteLiteral(">apps</i></a>\r\n</div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n"); 1889 1890 1891 #line 504 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1892 } 1893 1894 1895 #line default 1896 #line hidden 1897 WriteLiteral("\r\n\r\n\r\n </div>\r\n</div>\r\n\r\n </div>\r\n </div>\r\n <div"); 1898 1899 WriteLiteral(" class=\"row\""); 1900 1901 WriteLiteral(">\r\n <div"); 1902 1903 WriteLiteral(" class=\"col-12\""); 1904 1905 WriteLiteral(">\r\n\r\n <div"); 1906 1907 WriteLiteral(" class=\"e-productlist-body\""); 1908 1909 WriteLiteral(">\r\n <div"); 1910 1911 WriteLiteral(" class=\"row\""); 1912 1913 WriteLiteral(">\r\n <div"); 1914 1915 WriteAttribute("class", Tuple.Create(" class=\"", 22644), Tuple.Create("\"", 22677) 1916 1917 #line 518 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1918 , Tuple.Create(Tuple.Create("", 22652), Tuple.Create<System.Object, System.Int32>(productlistMainClassList 1919 1920 #line default 1921 #line hidden 1922 , 22652), false) 1923 ); 1924 1925 WriteLiteral(">\r\n <div"); 1926 1927 WriteLiteral(" id=\"js-e-productlist-products\""); 1928 1929 WriteLiteral(">\r\n"); 1930 1931 1932 #line 520 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1933 1934 1935 #line default 1936 #line hidden 1937 WriteLiteral("<ul hidden itemscope"); 1938 1939 WriteLiteral(" itemtype=\"http://schema.org/ItemList\""); 1940 1941 WriteLiteral(">\r\n"); 1942 1943 1944 #line 522 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1945 1946 1947 #line default 1948 #line hidden 1949 1950 #line 522 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1951 foreach ( LoopItem product in GetLoop("Products") ) { 1952 1953 1954 #line default 1955 #line hidden 1956 WriteLiteral(" <li"); 1957 1958 WriteLiteral(" itemprop=\"itemListElement\""); 1959 1960 WriteLiteral(" itemscope"); 1961 1962 WriteLiteral(" itemtype=\"http://schema.org/Product\""); 1963 1964 WriteLiteral(">\r\n <a"); 1965 1966 WriteAttribute("href", Tuple.Create(" href=\"", 22992), Tuple.Create("\"", 23135) 1967 1968 #line 524 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1969 , Tuple.Create(Tuple.Create("", 22999), Tuple.Create<System.Object, System.Int32>(ProductService.Instance.GetProductLink( product.GetString("Ecom:Product.PrimaryOrFirstGroupID"), product.GetString("Ecom:Product.ID") ) 1970 1971 #line default 1972 #line hidden 1973 , 22999), false) 1974 ); 1975 1976 WriteAttribute("title", Tuple.Create(" title=\"", 23136), Tuple.Create("\"", 23183) 1977 1978 #line 524 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1979 , Tuple.Create(Tuple.Create("", 23144), Tuple.Create<System.Object, System.Int32>(product.GetString("Ecom:Product.Name") 1980 1981 #line default 1982 #line hidden 1983 , 23144), false) 1984 ); 1985 1986 WriteLiteral(" itemprop=\"url\""); 1987 1988 WriteLiteral(">\r\n <h3"); 1989 1990 WriteLiteral(" itemprop=\"name\""); 1991 1992 WriteLiteral(">"); 1993 1994 1995 #line 525 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 1996 Write(product.GetString("Ecom:Product.Name")); 1997 1998 1999 #line default 2000 #line hidden 2001 WriteLiteral("</h3>\r\n <p"); 2002 2003 WriteLiteral(" itemprop=\"description\""); 2004 2005 WriteLiteral(">"); 2006 2007 2008 #line 526 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2009 Write(product.GetString("Ecom:Product.ShortDescription")); 2010 2011 2012 #line default 2013 #line hidden 2014 WriteLiteral("</p>\r\n </a>\r\n </li>\r\n"); 2015 2016 2017 #line 529 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2018 } 2019 2020 2021 #line default 2022 #line hidden 2023 WriteLiteral("</ul>\r\n\r\n\r\n <script"); 2024 2025 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-products\""); 2026 2027 WriteLiteral(" type=\"text/x-handlebars-template\""); 2028 2029 WriteLiteral(@"> 2030 <div class=""e-products""> 2031 <div class=""e-loading-overlay e-products-loading-overlay js-e-products-loading-overlay is-loading""> 2032 <div class=""e-loading-spinner""></div> 2033 </div> 2034 {{#if page.productCount}} 2035 <div class=""row""> 2036 {{#each products}} 2037 <div class="""); 2038 2039 2040 #line 541 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2041 Write(productlistItemClassList); 2042 2043 2044 #line default 2045 #line hidden 2046 WriteLiteral("\">\r\n <div class=\"e-products-item js-e-products-item js-e-block-link e-block-link" + 2047 " border-bottom\">\r\n <div class=\"e-products-item-container\">\r\n <div class=" + 2048 "\"e-products-item-image-container\">\r\n <a class=\"e-products-item-image-wrap" + 2049 "per\" href=\"{{url}}\">\r\n <img src=\"{{imageLarge}}\" alt=\"\" class=\"e-produc" + 2050 "ts-item-image\">\r\n </a>\r\n </div>\r\n <div class=\"e-products-item-t" + 2051 "ext-container small\">\r\n <h3 class=\"e-products-item-name mb-0\"><a href=\"{{" + 2052 "url}}\">{{name}}</a></h3>\r\n {{{keySellingPoints}}}\r\n </div>\r\n <d" + 2053 "iv class=\"e-products-item-buy-container\">\r\n <div class=\"small mb-3\">\r\n " + 2054 " <span class=\"mr-2\"><i class=\"material-icons text-primary\">lens</i><span c" + 2055 "lass=\"ml-1\">43 på lager</span></span>\r\n <span><i class=\"material-icons " + 2056 "text-primary\">favorite</i><span class=\"ml-1\">Føj til favorit</span></span>\r\n " + 2057 " </div>\r\n <p class=\"e-products-item-text mb-0\">\r\n <span class" + 2058 "=\"e-products-item-price h2 small\">\r\n <a href=\"{{url}}\">\r\n " + 2059 " {{{price}}}\r\n </a>\r\n </span>\r\n </p>\r\n <form " + 2060 "action=\"/system/data/cart\" class=\"e-product-form js-e-product-form\" method=\"post" + 2061 "\">\n <input name=\"CartCmd\" type=\"hidden\" value=\"Add\">\n <input type=\"hidden\" nam" + 2062 "e=\"ProductID\" value=\"{{id}}\">\n <input name=\"VariantID\" type=\"hidden\" value=\"\">\n" + 2063 " <input name=\"UnitID\" type=\"hidden\" value=\"\">\n <input name=\"Redirect\" type=\"hi" + 2064 "dden\" value=\"\">\n <input type=\"hidden\" value=\"false\" name=\"EcomOrderLineFieldInp" + 2065 "ut_IsConfigurable\" />\n <input type=\"hidden\" value=\"false\" name=\"EcomOrderLineFi" + 2066 "eldInput_HasConfiguration\" />\n <div class=\"dcc-product-list-add-to-cart-wrapper" + 2067 "\">\n <input name=\"Quantity\" type=\"number\" value=\"1\" autocomplete=\"off\">\n <b" + 2068 "utton class=\"btn btn-primary\" type=\"submit\">"); 2069 2070 2071 #line 575 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2072 Write(Translate( "eCom Product - Add To Cart - Button", "Add to cart" )); 2073 2074 2075 #line default 2076 #line hidden 2077 WriteLiteral(@"</button> 2078 </div> 2079 </form> 2080 2081 </div> 2082 </div> 2083 </div> 2084 </div> 2085 2086 {{/each}} 2087 </div> 2088 {{else}} 2089 <div class=""alert alert-warning mt-2"" role=""alert""> 2090 <strong><i class=""material-icons material-icons-2x"">sentiment_dissatisfied</i> "); 2091 2092 2093 #line 588 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2094 Write(Translate( "eCom Productlist - Sorry - Text", "Sorry..")); 2095 2096 2097 #line default 2098 #line hidden 2099 WriteLiteral("</strong>\r\n <br> "); 2100 2101 2102 #line 589 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2103 Write(Translate( "eCom Productlist - No Products - Text", "No products match your choices.")); 2104 2105 2106 #line default 2107 #line hidden 2108 WriteLiteral("\r\n </div>\r\n {{/if}}\r\n </div>\r\n</script>\r\n\r\n </div>\r\n"); 2109 2110 2111 #line 596 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2112 2113 2114 #line default 2115 #line hidden 2116 2117 #line 596 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2118 if ( Espresso.Item.FooterShow == "True" ) 2119 { 2120 2121 2122 #line default 2123 #line hidden 2124 WriteLiteral(" <div"); 2125 2126 WriteLiteral(" class=\"align-items-end d-flex justify-content-between pt-1 small\""); 2127 2128 WriteLiteral(">\r\n "); 2129 2130 WriteLiteral("\r\n"); 2131 2132 2133 #line 603 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2134 2135 2136 #line default 2137 #line hidden 2138 2139 #line 603 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2140 if ( Espresso.Item.PagingShow == "True" ) 2141 { 2142 2143 2144 #line default 2145 #line hidden 2146 WriteLiteral(" <div"); 2147 2148 WriteLiteral(" class=\"align-items-center d-flex e-productlist-paging js-e-productlist-paging ju" + 2149 "stify-content-between ml-auto\""); 2150 2151 WriteLiteral(">\r\n <script"); 2152 2153 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-paging\""); 2154 2155 WriteLiteral(" type=\"text/x-handlebars-template\""); 2156 2157 WriteLiteral(">\r\n {{#if page.productCount}}\r\n <span class=\"text-nowrap {{#compa" + 2158 "re page.totalPages \'>\' 1 }}mr-4{{/compare}}\">\r\n <strong>{{page.vi" + 2159 "ewing.from}} - {{page.viewing.to}}</strong> "); 2160 2161 2162 #line 609 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2163 Write(Translate( "eCom Productlist Paging - Product Count Of - Text", "of" )); 2164 2165 2166 #line default 2167 #line hidden 2168 WriteLiteral(@" 2169 <span> {{page.productCount}}</span> 2170 </span> 2171 2172 2173 <span class=""""> 2174 {{#compare page.prevPage '!==' 0 }} 2175 <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}}""> 2176 <i class=""material-icons"">arrow_back</i> 2177 <span class="""">"); 2178 2179 2180 #line 618 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2181 Write(Translate( "eCom Productlist Paging - Previous - Text", "Previous" )); 2182 2183 2184 #line default 2185 #line hidden 2186 WriteLiteral(@"</span> 2187 </a> 2188 {{/compare}} 2189 2190 {{#compare page.nextPage '!==' 0 }} 2191 <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}}""> 2192 <span class="""">"); 2193 2194 2195 #line 624 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2196 Write(Translate( "eCom Productlist Paging - Next - Text", "Next" )); 2197 2198 2199 #line default 2200 #line hidden 2201 WriteLiteral(@"</span> 2202 <i class=""material-icons"">arrow_forward</i></a> 2203 {{/compare}} 2204 2205 {{#compare page.pageSize '!==' 999}} 2206 {{#compare page.totalPages '>' 1 }} 2207 <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""> 2208 "); 2209 2210 WriteLiteral(" "); 2211 2212 2213 #line 631 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2214 Write(Translate( "eCom Productlist Paging - Show All - Text", "Show all" )); 2215 2216 2217 #line default 2218 #line hidden 2219 WriteLiteral(@" 2220 </a> 2221 {{/compare}} 2222 {{/compare}} 2223 2224 {{#compare page.pageSize '===' 999}} 2225 <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="""); 2226 2227 2228 #line 637 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2229 Write(Espresso.Item.Pagesize); 2230 2231 2232 #line default 2233 #line hidden 2234 WriteLiteral("\">\r\n"); 2235 2236 WriteLiteral(" "); 2237 2238 2239 #line 638 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2240 Write(Translate( "eCom Productlist Paging - Reset - Link", "Reset" )); 2241 2242 2243 #line default 2244 #line hidden 2245 WriteLiteral("\r\n </a>\r\n {{/compare}}\r\n\r\n <span>\r\n {{/if}}" + 2246 "\r\n </script>\r\n</div>\r\n"); 2247 2248 2249 #line 646 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2250 2251 } 2252 2253 2254 #line default 2255 #line hidden 2256 WriteLiteral(" </div>\r\n"); 2257 2258 2259 #line 649 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2260 } 2261 2262 2263 #line default 2264 #line hidden 2265 WriteLiteral("\r\n </div>\r\n <div"); 2266 2267 WriteAttribute("class", Tuple.Create(" class=\"", 29015), Tuple.Create("\"", 29064) 2268 2269 #line 652 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2270 , Tuple.Create(Tuple.Create("", 29023), Tuple.Create<System.Object, System.Int32>(productlistAsideClassList 2271 2272 #line default 2273 #line hidden 2274 , 29023), false) 2275 , Tuple.Create(Tuple.Create(" ", 29049), Tuple.Create("order-lg-first", 29050), true) 2276 ); 2277 2278 WriteLiteral(">\r\n <form"); 2279 2280 WriteLiteral(" class=\"js-e-productlist-form\""); 2281 2282 WriteLiteral(" data-action=\""); 2283 2284 2285 #line 653 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2286 Write(Espresso.Item.FacetUrl); 2287 2288 2289 #line default 2290 #line hidden 2291 WriteLiteral("\""); 2292 2293 WriteLiteral(">\r\n"); 2294 2295 2296 #line 654 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2297 2298 2299 #line default 2300 #line hidden 2301 2302 #line 654 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2303 2304 string pageUrl = GetGlobalValue( "Global:Pageview.Url" ); 2305 string sortBy = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortBy" ] ) ? GetString( "Ecom:ProductList.SortBy" ) : HttpContext.Current.Request[ "SortBy" ]; 2306 if ( sortBy == "Name" || sortBy == "Price" ) 2307 { 2308 sortBy = "Sort" + sortBy; 2309 } 2310 else if ( sortBy == "UserDefined" ) 2311 { 2312 sortBy = "PrimaryGroupSort"; 2313 } 2314 string sortOrder = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortOrder" ] ) ? GetString( "Ecom:ProductList.SortOrder" ) : HttpContext.Current.Request[ "SortOrder" ]; 2315 string pageSize = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageSize" ] ) ? GetString( "Ecom:ProductList.PageSize" ) : HttpContext.Current.Request[ "PageSize" ]; 2316 string pageNum = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageNum" ] ) ? GetString( "Ecom:ProductList.CurrentPage" ) : HttpContext.Current.Request[ "PageNum" ]; 2317 2318 2319 #line default 2320 #line hidden 2321 WriteLiteral("\r\n<input"); 2322 2323 WriteLiteral(" type=\"hidden\""); 2324 2325 WriteLiteral(" name=\"ViewPageID\""); 2326 2327 WriteAttribute("value", Tuple.Create(" value=\"", 30144), Tuple.Create("\"", 30169) 2328 2329 #line 669 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2330 , Tuple.Create(Tuple.Create("", 30152), Tuple.Create<System.Object, System.Int32>(Espresso.Page.ID 2331 2332 #line default 2333 #line hidden 2334 , 30152), false) 2335 ); 2336 2337 WriteLiteral(">\r\n<input"); 2338 2339 WriteLiteral(" type=\"hidden\""); 2340 2341 WriteLiteral(" name=\"PageNum\""); 2342 2343 WriteAttribute("value", Tuple.Create(" value=\"", 30208), Tuple.Create("\"", 30259) 2344 2345 #line 670 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2346 , Tuple.Create(Tuple.Create("", 30216), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( pageNum ) 2347 2348 #line default 2349 #line hidden 2350 , 30216), false) 2351 ); 2352 2353 WriteLiteral(">\r\n<input"); 2354 2355 WriteLiteral(" type=\"hidden\""); 2356 2357 WriteLiteral(" name=\"PageUrl\""); 2358 2359 WriteAttribute("value", Tuple.Create(" value=\"", 30298), Tuple.Create("\"", 30349) 2360 2361 #line 671 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2362 , Tuple.Create(Tuple.Create("", 30306), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( pageUrl ) 2363 2364 #line default 2365 #line hidden 2366 , 30306), false) 2367 ); 2368 2369 WriteLiteral(">\r\n<input"); 2370 2371 WriteLiteral(" type=\"hidden\""); 2372 2373 WriteLiteral(" name=\"SortBy\""); 2374 2375 WriteAttribute("value", Tuple.Create(" value=\"", 30387), Tuple.Create("\"", 30437) 2376 2377 #line 672 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2378 , Tuple.Create(Tuple.Create("", 30395), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( sortBy ) 2379 2380 #line default 2381 #line hidden 2382 , 30395), false) 2383 ); 2384 2385 WriteLiteral(">\r\n<input"); 2386 2387 WriteLiteral(" type=\"hidden\""); 2388 2389 WriteLiteral(" name=\"SortOrder\""); 2390 2391 WriteAttribute("value", Tuple.Create(" value=\"", 30478), Tuple.Create("\"", 30531) 2392 2393 #line 673 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2394 , Tuple.Create(Tuple.Create("", 30486), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( sortOrder ) 2395 2396 #line default 2397 #line hidden 2398 , 30486), false) 2399 ); 2400 2401 WriteLiteral(">\r\n<input"); 2402 2403 WriteLiteral(" type=\"hidden\""); 2404 2405 WriteLiteral(" name=\"PageSize\""); 2406 2407 WriteAttribute("value", Tuple.Create(" value=\"", 30571), Tuple.Create("\"", 30623) 2408 2409 #line 674 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2410 , Tuple.Create(Tuple.Create("", 30579), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( pageSize ) 2411 2412 #line default 2413 #line hidden 2414 , 30579), false) 2415 ); 2416 2417 WriteLiteral(">\r\n\r\n"); 2418 2419 2420 #line 676 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2421 if ( Espresso.Item.FiltersShow == "True" ) 2422 { 2423 foreach ( LoopItem facetGroup in GetLoop( "FacetGroups" ) ) 2424 { 2425 2426 2427 #line default 2428 #line hidden 2429 WriteLiteral(" <input"); 2430 2431 WriteLiteral(" type=\"hidden\""); 2432 2433 WriteLiteral(" name=\"fg\""); 2434 2435 WriteAttribute("value", Tuple.Create(" value=\"", 30779), Tuple.Create("\"", 30829) 2436 2437 #line 680 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2438 , Tuple.Create(Tuple.Create("", 30787), Tuple.Create<System.Object, System.Int32>(facetGroup.GetString( "FacetGroup.Name" ) 2439 2440 #line default 2441 #line hidden 2442 , 30787), false) 2443 ); 2444 2445 WriteLiteral(">\r\n"); 2446 2447 2448 #line 681 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2449 } 2450 2451 2452 #line default 2453 #line hidden 2454 WriteLiteral(" <input"); 2455 2456 WriteLiteral(" type=\"hidden\""); 2457 2458 WriteLiteral(" class=\"js-e-visible-options-count\""); 2459 2460 WriteAttribute("value", Tuple.Create(" value=\"", 30895), Tuple.Create("\"", 30943) 2461 2462 #line 682 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2463 , Tuple.Create(Tuple.Create("", 30903), Tuple.Create<System.Object, System.Int32>(Espresso.Item.FiltersVisibleOptionCount 2464 2465 #line default 2466 #line hidden 2467 , 30903), false) 2468 ); 2469 2470 WriteLiteral(">\r\n"); 2471 2472 2473 #line 683 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2474 } 2475 2476 2477 #line default 2478 #line hidden 2479 2480 #line 684 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2481 foreach ( LoopItem query in GetLoop( "Query.Parameters" ) ) 2482 { 2483 if ( string.IsNullOrEmpty( query.GetString( "Parameter.Value" ) ) == false ) 2484 { 2485 if ( query.GetBoolean( "Parameter.IsHandledAsFacet" ) == false && query.GetString( "Parameter.Name" ) != "q" ) 2486 { 2487 2488 2489 #line default 2490 #line hidden 2491 WriteLiteral(" <input"); 2492 2493 WriteLiteral(" type=\"hidden\""); 2494 2495 WriteAttribute("name", Tuple.Create(" name=\"", 31251), Tuple.Create("\"", 31294) 2496 2497 #line 690 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2498 , Tuple.Create(Tuple.Create("", 31258), Tuple.Create<System.Object, System.Int32>(query.GetString( "Parameter.Name" ) 2499 2500 #line default 2501 #line hidden 2502 , 31258), false) 2503 ); 2504 2505 WriteAttribute("value", Tuple.Create(" value=\"", 31295), Tuple.Create("\"", 31375) 2506 2507 #line 690 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2508 , Tuple.Create(Tuple.Create("", 31303), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlAttributeEncode( query.GetString( "Parameter.Value" ) ) 2509 2510 #line default 2511 #line hidden 2512 , 31303), false) 2513 ); 2514 2515 WriteLiteral(">\r\n"); 2516 2517 2518 #line 691 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2519 } 2520 } 2521 } 2522 2523 2524 #line default 2525 #line hidden 2526 WriteLiteral("\r\n"); 2527 2528 2529 #line 695 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2530 2531 2532 #line default 2533 #line hidden 2534 2535 #line 695 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2536 2537 bool isExtranet = GetGlobalValue("Global:Extranet.UserID") == "0" ? false : true; 2538 2539 2540 #line default 2541 #line hidden 2542 WriteLiteral("\r\n\r\n<div"); 2543 2544 WriteLiteral(" id=\"js-e-productlist-filters\""); 2545 2546 WriteLiteral(" class=\"d-lg-block d-none dcc-custom-productlist-filters-wrapper\""); 2547 2548 WriteLiteral(">\r\n "); 2549 2550 WriteLiteral("\r\n <script"); 2551 2552 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-filters\""); 2553 2554 WriteLiteral(" type=\"text/x-handlebars-template\""); 2555 2556 WriteLiteral(">\r\n\r\n\r\n\r\n<div class=\"tab-content\" id=\"nav-tabContent\">\r\n"); 2557 2558 2559 #line 706 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2560 2561 2562 #line default 2563 #line hidden 2564 2565 #line 706 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2566 if ( Espresso.Item.NavigationShow == "True" ) 2567 { 2568 2569 2570 #line default 2571 #line hidden 2572 WriteLiteral(" <div"); 2573 2574 WriteLiteral(" class=\"tab-pane fade\""); 2575 2576 WriteLiteral(" id=\"nav-navigation\""); 2577 2578 WriteLiteral(" role=\"tabpanel\""); 2579 2580 WriteLiteral(" aria-labelledby=\"nav-navigation-tab\""); 2581 2582 WriteLiteral(">\r\n <div"); 2583 2584 WriteLiteral(" class=\"e-productlist-filters-group js-e-productlist-filters-group\""); 2585 2586 WriteLiteral(">\r\n <fieldset"); 2587 2588 WriteLiteral(" id=\"e-productlist-filters-group-navigation\""); 2589 2590 WriteLiteral(" class=\"e-productlist-filters-group-options mb-2 small collapse show\""); 2591 2592 WriteLiteral(">\r\n <div"); 2593 2594 WriteLiteral(" class=\"e-nav-local e-nav-local-vertical\""); 2595 2596 WriteLiteral(">\r\n <nav"); 2597 2598 WriteLiteral(" class=\"e-nav-local-container\""); 2599 2600 WriteLiteral(">\r\n <ul"); 2601 2602 WriteLiteral(" class=\"nav flex-column\""); 2603 2604 WriteLiteral(">\r\n"); 2605 2606 WriteLiteral(" "); 2607 2608 2609 #line 714 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2610 Write(RenderNavigation( new 2611 { 2612 id = "dwnav-local-" + Espresso.Id, 2613 parentid = string.IsNullOrEmpty( Espresso.Item.NavigationParentPage ) == false ? Espresso.Item.NavigationParentPage : Espresso.Page.ID, 2614 template = "local-vertical.xslt", 2615 startlevel = Espresso.Item.NavigationLevelStart, 2616 endlevel = Espresso.Item.NavigationLevelEnd, 2617 expandmode = "path" 2618 } )); 2619 2620 2621 #line default 2622 #line hidden 2623 WriteLiteral("\r\n </ul>\r\n </nav>\r\n </div>\r\n </fieldset>\r" + 2624 "\n </div>\r\n </div>\r\n"); 2625 2626 2627 #line 729 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2628 } 2629 2630 2631 #line default 2632 #line hidden 2633 WriteLiteral(@" 2634 2635 <div class=""tab-pane fade show active"" id=""nav-filters"" role=""tabpanel"" aria-labelledby=""nav-filters-tab""> 2636 2637 {{#if page.filtersAppliedCount}} 2638 <div class=""e-productlist-filters-group e-productlist-filters-group-summery""> 2639 <p class=""e-productlist-filters-group-header small mb-0""> 2640 <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> "); 2641 2642 2643 #line 737 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2644 Write(Translate( "eCom Productlist Filter - Group Reset - Button", "Reset" )); 2645 2646 2647 #line default 2648 #line hidden 2649 WriteLiteral("</button>\r\n </p>\r\n </div>\r\n {{/if}}\r\n\r\n"); 2650 2651 2652 #line 742 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2653 2654 2655 #line default 2656 #line hidden 2657 2658 #line 742 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2659 if ( Espresso.Item.SearchShow == "True" ) 2660 { 2661 2662 2663 #line default 2664 #line hidden 2665 WriteLiteral(" <div"); 2666 2667 WriteLiteral(" class=\"e-productlist-filters-group js-e-productlist-filters-group\""); 2668 2669 WriteLiteral(">\r\n <p"); 2670 2671 WriteLiteral(" class=\"e-productlist-filters-group-header small mb-0 mt-2\""); 2672 2673 WriteLiteral(">\r\n\r\n </p>\r\n <fieldset"); 2674 2675 WriteLiteral(" id=\"e-productlist-filters-group-search\""); 2676 2677 WriteLiteral(" class=\"e-productlist-filters-group-options mb-2 small collapse show\""); 2678 2679 WriteLiteral(">\r\n <div"); 2680 2681 WriteLiteral(" class=\"js-e-search-input-group e-search-input-group {{#unless page.q}}is-empty{{" + 2682 "/unless}}\""); 2683 2684 WriteLiteral(">\r\n <label"); 2685 2686 WriteLiteral(" class=\"e-search-label\""); 2687 2688 WriteLiteral(" for=\"filter_search\""); 2689 2690 WriteLiteral("><a"); 2691 2692 WriteLiteral(" class=\"js-e-productlist-filters-search-submit\""); 2693 2694 WriteLiteral(" href=\"#\""); 2695 2696 WriteLiteral("><i"); 2697 2698 WriteLiteral(" class=\"material-icons text-muted\""); 2699 2700 WriteLiteral(">search</i></a></label>\r\n <input"); 2701 2702 WriteLiteral(" type=\"text\""); 2703 2704 WriteLiteral(" class=\"js-e-search-input e-search-input e-productlist-filters-search-input form-" + 2705 "control-plaintext\""); 2706 2707 WriteLiteral(" name=\"q\""); 2708 2709 WriteLiteral(" id=\"filter_search\""); 2710 2711 WriteLiteral(" value=\"{{page.q}}\""); 2712 2713 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 34378), Tuple.Create("\"", 34461) 2714 2715 #line 751 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2716 , Tuple.Create(Tuple.Create("", 34392), Tuple.Create<System.Object, System.Int32>(Translate( "eCom Productlist Filters - Search - Heading", "Search" ) 2717 2718 #line default 2719 #line hidden 2720 , 34392), false) 2721 ); 2722 2723 WriteLiteral(">\r\n <span"); 2724 2725 WriteLiteral(" class=\"js-e-search-clear e-search-clear\""); 2726 2727 WriteLiteral("><i"); 2728 2729 WriteLiteral(" class=\"material-icons\""); 2730 2731 WriteLiteral(">close</i></span>\r\n </div>\r\n </fieldset>\r\n </div>\r\n"); 2732 2733 2734 #line 756 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2735 } 2736 2737 2738 2739 #line default 2740 #line hidden 2741 2742 #line 791 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2743 2744 2745 2746 #line default 2747 #line hidden 2748 WriteLiteral(@" 2749 {{#each facets}} 2750 {{#compare count '>' 0}} 2751 {{#compare labelClean '===' 'Product in stock'}} 2752 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 2753 <p class=""e-productlist-filters-group-header small mb-0""> 2754 <a class=""e-productlist-filters-group-collapse-toggle "" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 2755 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 2756 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 2757 </a> 2758 {{#if selectedOptions.length}} 2759 <label for=""reset-filter-{{param}}"" class=""btn btn-sm btn-link py-1 px-0 m-0""> 2760 <i class=""material-icons material-icons-fixed text-danger"">clear</i> 2761 </label> 2762 {{/if}} 2763 </p> 2764 <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""> 2765 <div class=""{{#compare count '>' "); 2766 2767 2768 #line 809 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2769 Write(Espresso.Item.FiltersVisibleOptionCount); 2770 2771 2772 #line default 2773 #line hidden 2774 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 2775 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 2776 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 2777 <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}}> 2778 <span class=""custom-control-indicator""></span> 2779 <span class=""custom-control-description"">"); 2780 2781 2782 #line 814 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2783 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 2784 2785 2786 #line default 2787 #line hidden 2788 WriteLiteral(@"</span> 2789 </label> 2790 </div> 2791 {{#each options}} 2792 <div class=""e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}""> 2793 <label for=""{{id}}"" class=""custom-control custom-checkbox""> 2794 <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}}> 2795 <span class=""custom-control-indicator""></span> 2796 <span class=""custom-control-description small"">{{labelRadio}} <span class=""e-productlist-filters-option-count small text-muted"">({{count}})</span></span> 2797 </label> 2798 </div> 2799 {{/each}} 2800 {{#compare count '>' "); 2801 2802 2803 #line 826 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2804 Write(Espresso.Item.FiltersVisibleOptionCount); 2805 2806 2807 #line default 2808 #line hidden 2809 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 2810 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 2811 "t=\""); 2812 2813 2814 #line 827 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2815 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 2816 2817 2818 #line default 2819 #line hidden 2820 WriteLiteral("\" data-open-text=\""); 2821 2822 2823 #line 827 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2824 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 2825 2826 2827 #line default 2828 #line hidden 2829 WriteLiteral(@"""><i class=""material-icons material-icons-fixed"">keyboard_arrow_down</i></a> 2830 {{/compare}} 2831 </div> 2832 </fieldset> 2833 </div> 2834 {{/compare}} 2835 {{/compare}} 2836 {{/each}} 2837 2838 2839 {{#each facets}} 2840 {{#compare count '>' 0}} 2841 {{#compare labelClean '===' 'Brand'}} 2842 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 2843 <p class=""e-productlist-filters-group-header small mb-0""> 2844 <a class=""e-productlist-filters-group-collapse-toggle "" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 2845 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 2846 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 2847 </a> 2848 {{#if selectedOptions.length}} 2849 <label for=""reset-filter-{{param}}"" class=""btn btn-sm btn-link py-1 px-0 m-0""> 2850 <i class=""material-icons material-icons-fixed text-danger"">clear</i> 2851 </label> 2852 {{/if}} 2853 </p> 2854 <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""> 2855 <div class=""{{#compare count '>' "); 2856 2857 2858 #line 853 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2859 Write(Espresso.Item.FiltersVisibleOptionCount); 2860 2861 2862 #line default 2863 #line hidden 2864 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 2865 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 2866 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 2867 <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}}> 2868 <span class=""custom-control-indicator""></span> 2869 <span class=""custom-control-description"">"); 2870 2871 2872 #line 858 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2873 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 2874 2875 2876 #line default 2877 #line hidden 2878 WriteLiteral(@"</span> 2879 </label> 2880 </div> 2881 {{#each options}} 2882 <div class=""e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}""> 2883 <label for=""{{id}}"" class=""custom-control custom-checkbox""> 2884 <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}}> 2885 <span class=""custom-control-indicator""></span> 2886 <span class=""custom-control-description small"">{{label}} <span class=""e-productlist-filters-option-count small text-muted"">({{count}})</span></span> 2887 </label> 2888 </div> 2889 {{/each}} 2890 {{#compare count '>' "); 2891 2892 2893 #line 870 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2894 Write(Espresso.Item.FiltersVisibleOptionCount); 2895 2896 2897 #line default 2898 #line hidden 2899 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 2900 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 2901 "t=\""); 2902 2903 2904 #line 871 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2905 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 2906 2907 2908 #line default 2909 #line hidden 2910 WriteLiteral("\" data-open-text=\""); 2911 2912 2913 #line 871 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2914 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 2915 2916 2917 #line default 2918 #line hidden 2919 WriteLiteral(@"""><i class=""material-icons material-icons-fixed"">keyboard_arrow_down</i></a> 2920 {{/compare}} 2921 </div> 2922 </fieldset> 2923 </div> 2924 {{/compare}} 2925 {{/compare}} 2926 {{/each}} 2927 2928 2929 2930 {{#each facets}} 2931 {{#compare count '>' 0}} 2932 {{#compare labelClean '===' 'Condition'}} 2933 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 2934 <p class=""e-productlist-filters-group-header small mb-0""> 2935 <a class=""e-productlist-filters-group-collapse-toggle "" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 2936 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 2937 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 2938 </a> 2939 {{#if selectedOptions.length}} 2940 <label for=""reset-filter-{{param}}"" class=""btn btn-sm btn-link py-1 px-0 m-0""> 2941 <i class=""material-icons material-icons-fixed text-danger"">clear</i> 2942 </label> 2943 {{/if}} 2944 </p> 2945 <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""> 2946 <div class=""{{#compare count '>' "); 2947 2948 2949 #line 898 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2950 Write(Espresso.Item.FiltersVisibleOptionCount); 2951 2952 2953 #line default 2954 #line hidden 2955 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 2956 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 2957 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 2958 <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}}> 2959 <span class=""custom-control-indicator""></span> 2960 <span class=""custom-control-description"">"); 2961 2962 2963 #line 903 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2964 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 2965 2966 2967 #line default 2968 #line hidden 2969 WriteLiteral(@"</span> 2970 </label> 2971 </div> 2972 {{#each options}} 2973 <div class=""e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}""> 2974 <label for=""{{id}}"" class=""custom-control custom-checkbox""> 2975 <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}}> 2976 <span class=""custom-control-indicator""></span> 2977 <span class=""custom-control-description small"">{{label}} <span class=""e-productlist-filters-option-count small text-muted"">({{count}})</span></span> 2978 </label> 2979 </div> 2980 {{/each}} 2981 {{#compare count '>' "); 2982 2983 2984 #line 915 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2985 Write(Espresso.Item.FiltersVisibleOptionCount); 2986 2987 2988 #line default 2989 #line hidden 2990 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 2991 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 2992 "t=\""); 2993 2994 2995 #line 916 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 2996 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 2997 2998 2999 #line default 3000 #line hidden 3001 WriteLiteral("\" data-open-text=\""); 3002 3003 3004 #line 916 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3005 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 3006 3007 3008 #line default 3009 #line hidden 3010 WriteLiteral("\"><i class=\"material-icons material-icons-fixed\">keyboard_arrow_down</i></a>\r\n " + 3011 " {{/compare}}\r\n </div>\r\n </fieldset>\r\n </di" + 3012 "v>\r\n {{/compare}}\r\n {{/compare}}\r\n {{/each}}\r\n\r\n "); 3013 3014 WriteLiteral(@" 3015 3016 3017 {{#each facets}} 3018 {{#compare count '>' 0}} 3019 {{#compare_extended labelClean '!==' 'Condition,Brand,Product in stock'}} 3020 <div class=""e-productlist-filters-group js-e-productlist-filters-group""> 3021 <p class=""e-productlist-filters-group-header small mb-0""> 3022 <a class=""e-productlist-filters-group-collapse-toggle {{#unless selectedOptions.length }}{{#compare "); 3023 3024 WriteLiteral("@first \'&&\' "); 3025 3026 WriteLiteral(@"@root.page.hasNoInteraction}}{{else}}collapsed{{/compare}}{{/unless}}"" data-toggle=""collapse"" data-target=""#e-productlist-filters-group-{{param}}""> 3027 <i class=""material-icons material-icons-fixed"">arrow_drop_down</i> 3028 <span class=""e-productlist-filters-group-name h4 m-0"">{{label}}</span> 3029 </a> 3030 3031 </p> 3032 3033 <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 "); 3034 3035 WriteLiteral("@first \'&&\' "); 3036 3037 WriteLiteral("@root.page.hasNoInteraction}}is-expanded{{/compare}}{{/if}}\">\r\n <div c" + 3038 "lass=\"{{#compare count \'>\' "); 3039 3040 3041 #line 977 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3042 Write(Espresso.Item.FiltersVisibleOptionCount); 3043 3044 3045 #line default 3046 #line hidden 3047 WriteLiteral(@" }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}""> 3048 <div class=""e-productlist-filters-option js-e-productlist-filters-option""> 3049 {{#compare type '===' 'Tags'}} 3050 <label for=""reset-filter-{{param}}"" class=""custom-control custom-radio""> 3051 <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}}> 3052 <span class=""custom-control-indicator""></span> 3053 <span class=""custom-control-description"">"); 3054 3055 3056 #line 983 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3057 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 3058 3059 3060 #line default 3061 #line hidden 3062 WriteLiteral(@"</span> 3063 </label> 3064 {{else}} 3065 <label for=""reset-filter-{{param}}"" class=""custom-control custom-checkbox""> 3066 <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}}> 3067 <span class=""custom-control-indicator""></span> 3068 <span class=""custom-control-description"">"); 3069 3070 3071 #line 989 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3072 Write(Translate( "eCom Productlist Filter - Options View All - Label", "All" )); 3073 3074 3075 #line default 3076 #line hidden 3077 WriteLiteral("</span>\r\n </label>\r\n {{/compare}}\r\n </" + 3078 "div>\r\n {{#each options}}\r\n <div class=\"e-productlist-f" + 3079 "ilters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if" + 3080 "}} {{#if isDisabled}}is-disabled text-muted{{/if}}\">\r\n {{#compare" + 3081 " ../type \'===\' \'Tags\'}}\r\n <label for=\"{{id}}\" class=\"custom-contr" + 3082 "ol custom-radio\">\r\n <input id=\"{{id}}\" name=\"{{param}}\" class" + 3083 "=\"js-e-productlist-filter custom-control-input\" type=\"radio\" value=\"{{value}}\" {" + 3084 "{#if isSelected}}checked{{/if}} {{#if isDisabled}}disabled{{/if}}>\r\n " + 3085 " <span class=\"custom-control-indicator\"></span>\r\n <spa" + 3086 "n class=\"custom-control-description small\">{{labelRadio}} <span class=\"e-product" + 3087 "list-filters-option-count small text-muted\">({{count}})</span></span>\r\n " + 3088 " </label>\r\n {{else}}\r\n\r\n <label for=\"{{i" + 3089 "d}}\" class=\"custom-control custom-checkbox\">\r\n <input id=\"{{i" + 3090 "d}}\" name=\"{{param}}\" class=\"js-e-productlist-filter custom-control-input\" type=" + 3091 "\"checkbox\" value=\"{{value}}\" {{#if isSelected}}checked{{/if}} {{#if isDisabled}}" + 3092 "disabled{{/if}}>\r\n <span class=\"custom-control-indicator\"></s" + 3093 "pan>\r\n <span class=\"custom-control-description small\">{{label" + 3094 "}} <span class=\"e-productlist-filters-option-count small text-muted\">({{count}})" + 3095 "</span></span>\r\n </label>\r\n\r\n {{/compare}}\r\n " + 3096 " </div>\r\n {{/each}}\r\n {{#compare count \'>\' " + 3097 ""); 3098 3099 3100 #line 1012 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3101 Write(Espresso.Item.FiltersVisibleOptionCount); 3102 3103 3104 #line default 3105 #line hidden 3106 WriteLiteral(" }}\r\n <a href=\"#\" class=\"js-e-productlist-filters-options-collapse" + 3107 "-peek-toggle e-productlist-filters-options-collapse-peek-toggle\" data-closed-tex" + 3108 "t=\""); 3109 3110 3111 #line 1013 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3112 Write(Translate( "eCom Productlist Filter - Options Show More - Link", "Show more" )); 3113 3114 3115 #line default 3116 #line hidden 3117 WriteLiteral("\" data-open-text=\""); 3118 3119 3120 #line 1013 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3121 Write(Translate( "eCom Productlist Filter - Options Show Less - Link", "Show less" )); 3122 3123 3124 #line default 3125 #line hidden 3126 WriteLiteral(@"""><i class=""material-icons material-icons-fixed"">keyboard_arrow_down</i></a> 3127 {{/compare}} 3128 </div> 3129 </fieldset> 3130 3131 3132 </div> 3133 {{/compare_extended}} 3134 {{/compare}} 3135 {{/each}} 3136 3137 3138 3139 </div> 3140 3141 </div> 3142 </div> 3143 </script> 3144 </div> 3145 3146 <div"); 3147 3148 WriteLiteral(" class=\"e-productlist-filters-modal fade modal modal-fullscreen\""); 3149 3150 WriteLiteral(" data-backdrop=\"false\""); 3151 3152 WriteLiteral(" id=\"js-e-productlist-filters-modal\""); 3153 3154 WriteLiteral(">\r\n <div"); 3155 3156 WriteLiteral(" class=\"modal-dialog\""); 3157 3158 WriteLiteral(">\r\n <div"); 3159 3160 WriteLiteral(" class=\"modal-content\""); 3161 3162 WriteLiteral(">\r\n <div"); 3163 3164 WriteLiteral(" class=\"modal-header\""); 3165 3166 WriteLiteral(">\r\n <h3"); 3167 3168 WriteLiteral(" class=\"modal-title\""); 3169 3170 WriteLiteral(">\r\n <i"); 3171 3172 WriteLiteral(" class=\"material-icons material-icons-large\""); 3173 3174 WriteLiteral(">tune</i>\r\n"); 3175 3176 WriteLiteral(" "); 3177 3178 3179 #line 1039 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3180 Write(Translate( "eCom Productlist Filters - Customize Selection - Heading", "Filter products" )); 3181 3182 3183 #line default 3184 #line hidden 3185 WriteLiteral("\r\n </h3>\r\n <button"); 3186 3187 WriteLiteral(" class=\"close\""); 3188 3189 WriteLiteral(" data-dismiss=\"modal\""); 3190 3191 WriteLiteral(" type=\"button\""); 3192 3193 WriteLiteral(">\r\n <i"); 3194 3195 WriteLiteral(" class=\"material-icons\""); 3196 3197 WriteLiteral(">close</i>\r\n </button>\r\n </div>\r\n <div"); 3198 3199 WriteLiteral(" class=\"modal-body pt-0\""); 3200 3201 WriteLiteral(">\r\n <div"); 3202 3203 WriteLiteral(" id=\"js-e-productlist-filters-modal-body\""); 3204 3205 WriteLiteral(" class=\"d-flex flex-column\""); 3206 3207 WriteLiteral(">\r\n\r\n </div>\r\n </div>\r\n <div"); 3208 3209 WriteLiteral(" class=\"modal-footer bg-info border-top-0\""); 3210 3211 WriteLiteral(">\r\n <button"); 3212 3213 WriteLiteral(" class=\"btn btn-primary btn-block\""); 3214 3215 WriteLiteral(" data-dismiss=\"modal\""); 3216 3217 WriteLiteral(" type=\"button\""); 3218 3219 WriteLiteral(">"); 3220 3221 3222 #line 1051 "D:\dynamicweb.net\Solutions\dcc.espresso4.dk\files\Templates\Designs\dcc\eCom\Productlist\espresso.cshtml" 3223 Write(Translate( "eCom Productlist Filters - Customize Selection Apply - Button", "Show results" )); 3224 3225 3226 #line default 3227 #line hidden 3228 WriteLiteral("</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n </form>\r\n " + 3229 " </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n</div>\r\n"); 3230 3231 } 3232 } 3233 } 3234

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, bool collapsetoggleHidden = false ) 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 if (contentClasses.Contains( "show" ) == true ) 222 { 223 collapseToggleClassList.RemoveClasses( "collapsed" ); 224 } 225 226 } 227 228 @:<section class="@sectionClassList" id="@sectionId"> 229 @:<div class="container-fluid"> 230 @:<div class="row"> 231 232 // TODO: Split collapse logic into separate helper function. 233 if ( sectionCollapse && collapsetoggleHidden != true ) 234 { 235 <div class="@collapseToggleClassList" data-toggle="collapse" data-target="#@collapseId"> 236 <button class="btn btn-primary p-section-collapse-toggle-btn" type="button"> 237 <i class="material-icons p-section-collapse-toggle-icon">keyboard_arrow_down</i> 238 </button> 239 <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> 240 </div> 241 } 242 243 @:<div class="@contentClassList" id="@collapseId"> 244 @:<div class="row"> 245 } 246 247 @helper sectionEnd() 248 { 249 @:</div> 250 @:</div> 251 @:</div> 252 @:</div> 253 @:</section> 254 } 255 256 @helper GetSvgFileData(string svgfile) 257 { 258 string rtnValue = svgfile; 259 if (!string.IsNullOrEmpty(svgfile)) 260 { 261 string FilePath = svgfile; 262 263 if (System.IO.Path.GetExtension(FilePath) == ".svg") 264 { 265 System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings(); 266 settings.DtdProcessing = System.Xml.DtdProcessing.Ignore; 267 string svgFilePath = System.Web.HttpContext.Current.Server.MapPath(FilePath) ?? string.Empty; 268 if (System.IO.File.Exists(svgFilePath)) 269 { 270 using (System.IO.StreamReader sr = new System.IO.StreamReader(svgFilePath)) 271 { 272 using (System.Xml.XmlReader xr = System.Xml.XmlReader.Create(sr, settings)) 273 { 274 bool done = false; 275 while (xr.Read() && !done) 276 { 277 if (xr.NodeType == System.Xml.XmlNodeType.Element && xr.Name == "svg") 278 { 279 rtnValue = xr.ReadOuterXml(); 280 done = true; 281 } 282 } 283 } 284 } 285 } 286 } 287 } 288 @rtnValue; 289 } 290 291 292 293 294 @{ 295 ClassList productlistMainClassList = new ClassList(); 296 productlistMainClassList.AddClasses( "col-12" ); 297 if ( Espresso.Item.FiltersShow == "True" ) 298 { 299 productlistMainClassList.AddClasses( "col-lg-9 col-xl-9" ); 300 } 301 ClassList productlistAsideClassList = new ClassList(); 302 productlistAsideClassList.AddClasses( "col-12 col-lg-3 col-xl-3" ); 303 304 305 ClassList productlistItemClassList = new ClassList(); 306 Dictionary< string, decimal > paragraphEcommerceGridItemWidth = ProductlistService.Instance.GetGridItemWidth( PageView.Current().CurrentParagraph.Item.GetValue< string >( "ItemWidth" ) ); 307 productlistItemClassList.AddClasses( paragraphEcommerceGridItemWidth.ToResponsiveClasses() ); 308 } 309 <div class="js-e-loading-wait js-e-productlist"> 310 311 <div class="row"> 312 <div class="col-12"> 313 <div class="js-e-productslist-header small"> 314 <div class="align-items-end row"> 315 316 @if ( Espresso.Item.FiltersShow == "True" ) 317 { 318 <div class="@productlistAsideClassList d-lg-block d-none"> 319 <div class="pb-0 e-productslist-header"> 320 <div class="nav nav-tabs" id="nav-tab" role="tablist"> 321 @*<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>*@ 322 <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> 323 </div> 324 </div> 325 </div> 326 } 327 328 @if ( Espresso.Item.SortShow == "True" || Espresso.Item.PagingShow == "True" || Espresso.Item.FiltersShow == "True" ) 329 { 330 <div class="@productlistMainClassList"> 331 <div class="align-items-end border-bottom d-lg-flex d-none e-productslist-header align-content-between flex-wrap"> 332 @if ( Espresso.Item.SortShow == "True" ) 333 { 334 <div class="align-items-center d-flex js-e-productlist-sort"> 335 <script id="js-e-handlebars-tmpl-productlist-sort" type="text/x-handlebars-template"> 336 <fieldset class="form-inline"> 337 <div class=""> 338 <label for="Sort" class="mr-1 d-none"> 339 @Translate( "eCom Productlist - Sorting - Label", "Sort: " ) 340 </label> 341 <select name="Sort" class="js-e-productlist-sort-select custom-select" style="padding-bottom:0.25em;"> 342 <option value="UnitStock ASC" {{#compare sort.sort '===' 'UnitStock ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )</option> 343 <option value="UnitStock DESC" {{#compare sort.sort '===' 'UnitStock DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )</option> 344 {{#if page.isExtranet}} 345 <option value="Price ASC" {{#compare sort.sort '===' 'Price ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )</option> 346 <option value="Price DESC" {{#compare sort.sort '===' 'Price DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )</option> 347 {{/if}} 348 </select> 349 </div> 350 </fieldset> 351 </script> 352 </div> 353 354 } 355 @if ( Espresso.Item.PagingShow == "True" ) 356 { 357 <div class="align-items-center d-flex e-productlist-paging js-e-productlist-paging justify-content-between "> 358 <script id="js-e-handlebars-tmpl-productlist-paging" type="text/x-handlebars-template"> 359 {{#if page.productCount}} 360 <span class=""> 361 {{#compare page.prevPage '!==' 0 }} 362 <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}}"> 363 <i class="material-icons">keyboard_arrow_left</i> 364 <span class="">@Translate( "eCom Productlist Paging - Previous - Text", "Previous" )</span> 365 </a> 366 {{/compare}} 367 368 <span class="text-nowrap ml-1 mr-1"> 369 <strong>{{page.viewing.from}} - {{page.viewing.to}}</strong> @Translate( "eCom Productlist Paging - Product Count Of - Text", "of" ) 370 <span> {{page.productCount}}</span> 371 </span> 372 373 {{#compare page.nextPage '!==' 0 }} 374 <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}}"> 375 <span class="">@Translate( "eCom Productlist Paging - Next - Text", "Next" )</span> 376 <i class="material-icons">keyboard_arrow_right</i></a> 377 {{/compare}} 378 379 {{#compare page.pageSize '!==' 9999}} 380 {{#compare page.productCount '<=' 50}} 381 {{#compare page.totalPages '>' 1 }} 382 <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"> 383 @Translate( "eCom Productlist Paging - Show All - Text", "Show all" ) 384 </a> 385 {{/compare}} 386 {{/compare}} 387 {{/compare}} 388 389 {{#compare page.pageSize '===' 9999}} 390 <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" ) "> 391 @Translate( "eCom Productlist Paging - Reset - Link", "Reset" ) 392 </a> 393 {{/compare}} 394 395 <span> 396 {{/if}} 397 </script> 398 </div> 399 400 } 401 402 403 <div class="align-items-right d-flex justify-content-between ml-auto"> 404 <p class="mb-0 pb-0 mr-2">@Translate( "eCom Productlist - Presentation - Text", "Visning")</p> 405 <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> 406 <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> 407 </div> 408 409 </div> 410 <div class="align-items-stretch d-flex d-lg-none e-productslist-header flex-wrap justify-content-strech"> 411 <div class="align-items-center bg-info d-flex justify-content-between p-1 w-100"> 412 @if ( Espresso.Item.SortShow == "True" ) 413 { 414 <div class="align-items-center d-flex js-e-productlist-sort"> 415 <script id="js-e-handlebars-tmpl-productlist-sort" type="text/x-handlebars-template"> 416 <fieldset class="form-inline"> 417 <div class=""> 418 <label for="Sort" class="mr-1 d-none"> 419 @Translate( "eCom Productlist - Sorting - Label", "Sort: " ) 420 </label> 421 <select name="Sort" class="js-e-productlist-sort-select custom-select" style="padding-bottom:0.25em;"> 422 <option value="UnitStock ASC" {{#compare sort.sort '===' 'UnitStock ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - ASC - Label", "Stock Ascending" )</option> 423 <option value="UnitStock DESC" {{#compare sort.sort '===' 'UnitStock DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Stock - DESC - Label", "Stock Descending" )</option> 424 {{#if page.isExtranet}} 425 <option value="Price ASC" {{#compare sort.sort '===' 'Price ASC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - ASC - Label", "Price Ascending" )</option> 426 <option value="Price DESC" {{#compare sort.sort '===' 'Price DESC'}}selected{{/compare}}>@Translate( "eCom Productlist - Sorting - Price - DESC - Label", "Price Descending" )</option> 427 {{/if}} 428 </select> 429 </div> 430 </fieldset> 431 </script> 432 </div> 433 434 } 435 @if ( Espresso.Item.FiltersShow == "True" ) 436 { 437 <button class="btn btn-primary js-e-productlist-filters-modal-toggle" data-target="#js-e-productlist-filters-modal" data-toggle="modal" type="button"> 438 <i class="material-icons material-icons-large">tune</i> 439 @Translate( "eCom Productlist Filters - Customize Selection - Button", "Filters" ) 440 <span class="ml-2 badge badge-primary js-e-productlist-filters-applied-count"></span> 441 </button> 442 } 443 </div> 444 <div class="py-1"> 445 @if ( Espresso.Item.PagingShow == "True" ) 446 { 447 <div class="align-items-center d-flex e-productlist-paging js-e-productlist-paging justify-content-between "> 448 <script id="js-e-handlebars-tmpl-productlist-paging" type="text/x-handlebars-template"> 449 {{#if page.productCount}} 450 <span class=""> 451 {{#compare page.prevPage '!==' 0 }} 452 <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}}"> 453 <i class="material-icons">keyboard_arrow_left</i> 454 <span class="">@Translate( "eCom Productlist Paging - Previous - Text", "Previous" )</span> 455 </a> 456 {{/compare}} 457 458 <span class="text-nowrap ml-1 mr-1"> 459 <strong>{{page.viewing.from}} - {{page.viewing.to}}</strong> @Translate( "eCom Productlist Paging - Product Count Of - Text", "of" ) 460 <span> {{page.productCount}}</span> 461 </span> 462 463 {{#compare page.nextPage '!==' 0 }} 464 <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}}"> 465 <span class="">@Translate( "eCom Productlist Paging - Next - Text", "Next" )</span> 466 <i class="material-icons">keyboard_arrow_right</i></a> 467 {{/compare}} 468 469 {{#compare page.pageSize '!==' 9999}} 470 {{#compare page.productCount '<=' 50}} 471 {{#compare page.totalPages '>' 1 }} 472 <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"> 473 @Translate( "eCom Productlist Paging - Show All - Text", "Show all" ) 474 </a> 475 {{/compare}} 476 {{/compare}} 477 {{/compare}} 478 479 {{#compare page.pageSize '===' 9999}} 480 <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" ) "> 481 @Translate( "eCom Productlist Paging - Reset - Link", "Reset" ) 482 </a> 483 {{/compare}} 484 485 <span> 486 {{/if}} 487 </script> 488 </div> 489 490 } 491 </div> 492 <div class="ml-auto py-1"> 493 494 495 <div class="align-items-right d-flex justify-content-between ml-auto"> 496 <p class="mb-0 pb-0 mr-2">@Translate( "eCom Productlist - Presentation - Text", "Visning")</p> 497 <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> 498 <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> 499 </div> 500 501 </div> 502 </div> 503 </div> 504 } 505 506 507 508 </div> 509 </div> 510 511 </div> 512 </div> 513 <div class="row"> 514 <div class="col-12"> 515 516 <div class="e-productlist-body"> 517 <div class="row"> 518 <div class="@productlistMainClassList"> 519 <div id="js-e-productlist-products"> 520 @using Co3.Espresso.Website.Services 521 <ul hidden itemscope itemtype="http://schema.org/ItemList"> 522 @foreach ( LoopItem product in GetLoop("Products") ) { 523 <li itemprop="itemListElement" itemscope itemtype="http://schema.org/Product"> 524 <a href="@ProductService.Instance.GetProductLink( product.GetString("Ecom:Product.PrimaryOrFirstGroupID"), product.GetString("Ecom:Product.ID") )" title="@product.GetString("Ecom:Product.Name")" itemprop="url"> 525 <h3 itemprop="name">@product.GetString("Ecom:Product.Name")</h3> 526 <p itemprop="description">@product.GetString("Ecom:Product.ShortDescription")</p> 527 </a> 528 </li> 529 } 530 </ul> 531 532 533 <script id="js-e-handlebars-tmpl-productlist-products" type="text/x-handlebars-template"> 534 <div class="e-products"> 535 <div class="e-loading-overlay e-products-loading-overlay js-e-products-loading-overlay is-loading"> 536 <div class="e-loading-spinner"></div> 537 </div> 538 {{#if page.productCount}} 539 <div class="row"> 540 {{#each products}} 541 <div class="@productlistItemClassList"> 542 <div class="e-products-item js-e-products-item js-e-block-link e-block-link border-bottom"> 543 <div class="e-products-item-container"> 544 <div class="e-products-item-image-container"> 545 <a class="e-products-item-image-wrapper" href="{{url}}"> 546 <img src="{{imageLarge}}" alt="" class="e-products-item-image"> 547 </a> 548 </div> 549 <div class="e-products-item-text-container small"> 550 <h3 class="e-products-item-name mb-0"><a href="{{url}}">{{name}}</a></h3> 551 {{{keySellingPoints}}} 552 </div> 553 <div class="e-products-item-buy-container"> 554 <div class="small mb-3"> 555 <span class="mr-2"><i class="material-icons text-primary">lens</i><span class="ml-1">43 på lager</span></span> 556 <span><i class="material-icons text-primary">favorite</i><span class="ml-1">Føj til favorit</span></span> 557 </div> 558 <p class="e-products-item-text mb-0"> 559 <span class="e-products-item-price h2 small"> 560 <a href="{{url}}"> 561 {{{price}}} 562 </a> 563 </span> 564 </p> 565 <form action="/system/data/cart" class="e-product-form js-e-product-form" method="post"> 566 <input name="CartCmd" type="hidden" value="Add"> 567 <input type="hidden" name="ProductID" value="{{id}}"> 568 <input name="VariantID" type="hidden" value=""> 569 <input name="UnitID" type="hidden" value=""> 570 <input name="Redirect" type="hidden" value=""> 571 <input type="hidden" value="false" name="EcomOrderLineFieldInput_IsConfigurable" /> 572 <input type="hidden" value="false" name="EcomOrderLineFieldInput_HasConfiguration" /> 573 <div class="dcc-product-list-add-to-cart-wrapper"> 574 <input name="Quantity" type="number" value="1" autocomplete="off"> 575 <button class="btn btn-primary" type="submit">@Translate( "eCom Product - Add To Cart - Button", "Add to cart" )</button> 576 </div> 577 </form> 578 579 </div> 580 </div> 581 </div> 582 </div> 583 584 {{/each}} 585 </div> 586 {{else}} 587 <div class="alert alert-warning mt-2" role="alert"> 588 <strong><i class="material-icons material-icons-2x">sentiment_dissatisfied</i> @Translate( "eCom Productlist - Sorry - Text", "Sorry..")</strong> 589 <br> @Translate( "eCom Productlist - No Products - Text", "No products match your choices.") 590 </div> 591 {{/if}} 592 </div> 593 </script> 594 595 </div> 596 @if ( Espresso.Item.FooterShow == "True" ) 597 { 598 <div class="align-items-end d-flex justify-content-between pt-1 small"> 599 @* <div class="align-items-center d-flex e-products-price-info"> 600 <span>@Translate( "eCom Productlist - Price Info - Text Public", "All prices are incl. VAT" )</span> 601 </div> 602 *@ 603 @if ( Espresso.Item.PagingShow == "True" ) 604 { 605 <div class="align-items-center d-flex e-productlist-paging js-e-productlist-paging justify-content-between ml-auto"> 606 <script id="js-e-handlebars-tmpl-productlist-paging" type="text/x-handlebars-template"> 607 {{#if page.productCount}} 608 <span class="text-nowrap {{#compare page.totalPages '>' 1 }}mr-4{{/compare}}"> 609 <strong>{{page.viewing.from}} - {{page.viewing.to}}</strong> @Translate( "eCom Productlist Paging - Product Count Of - Text", "of" ) 610 <span> {{page.productCount}}</span> 611 </span> 612 613 614 <span class=""> 615 {{#compare page.prevPage '!==' 0 }} 616 <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}}"> 617 <i class="material-icons">arrow_back</i> 618 <span class="">@Translate( "eCom Productlist Paging - Previous - Text", "Previous" )</span> 619 </a> 620 {{/compare}} 621 622 {{#compare page.nextPage '!==' 0 }} 623 <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}}"> 624 <span class="">@Translate( "eCom Productlist Paging - Next - Text", "Next" )</span> 625 <i class="material-icons">arrow_forward</i></a> 626 {{/compare}} 627 628 {{#compare page.pageSize '!==' 999}} 629 {{#compare page.totalPages '>' 1 }} 630 <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"> 631 @Translate( "eCom Productlist Paging - Show All - Text", "Show all" ) 632 </a> 633 {{/compare}} 634 {{/compare}} 635 636 {{#compare page.pageSize '===' 999}} 637 <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"> 638 @Translate( "eCom Productlist Paging - Reset - Link", "Reset" ) 639 </a> 640 {{/compare}} 641 642 <span> 643 {{/if}} 644 </script> 645 </div> 646 647 } 648 </div> 649 } 650 651 </div> 652 <div class="@productlistAsideClassList order-lg-first"> 653 <form class="js-e-productlist-form" data-action="@Espresso.Item.FacetUrl"> 654 @{ 655 string pageUrl = GetGlobalValue( "Global:Pageview.Url" ); 656 string sortBy = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortBy" ] ) ? GetString( "Ecom:ProductList.SortBy" ) : HttpContext.Current.Request[ "SortBy" ]; 657 if ( sortBy == "Name" || sortBy == "Price" ) 658 { 659 sortBy = "Sort" + sortBy; 660 } 661 else if ( sortBy == "UserDefined" ) 662 { 663 sortBy = "PrimaryGroupSort"; 664 } 665 string sortOrder = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortOrder" ] ) ? GetString( "Ecom:ProductList.SortOrder" ) : HttpContext.Current.Request[ "SortOrder" ]; 666 string pageSize = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageSize" ] ) ? GetString( "Ecom:ProductList.PageSize" ) : HttpContext.Current.Request[ "PageSize" ]; 667 string pageNum = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageNum" ] ) ? GetString( "Ecom:ProductList.CurrentPage" ) : HttpContext.Current.Request[ "PageNum" ]; 668 } 669 <input type="hidden" name="ViewPageID" value="@Espresso.Page.ID"> 670 <input type="hidden" name="PageNum" value="@HttpUtility.HtmlAttributeEncode( pageNum )"> 671 <input type="hidden" name="PageUrl" value="@HttpUtility.HtmlAttributeEncode( pageUrl )"> 672 <input type="hidden" name="SortBy" value="@HttpUtility.HtmlAttributeEncode( sortBy )"> 673 <input type="hidden" name="SortOrder" value="@HttpUtility.HtmlAttributeEncode( sortOrder )"> 674 <input type="hidden" name="PageSize" value="@HttpUtility.HtmlAttributeEncode( pageSize )"> 675 676 @if ( Espresso.Item.FiltersShow == "True" ) 677 { 678 foreach ( LoopItem facetGroup in GetLoop( "FacetGroups" ) ) 679 { 680 <input type="hidden" name="fg" value="@facetGroup.GetString( "FacetGroup.Name" )"> 681 } 682 <input type="hidden" class="js-e-visible-options-count" value="@Espresso.Item.FiltersVisibleOptionCount"> 683 } 684 @foreach ( LoopItem query in GetLoop( "Query.Parameters" ) ) 685 { 686 if ( string.IsNullOrEmpty( query.GetString( "Parameter.Value" ) ) == false ) 687 { 688 if ( query.GetBoolean( "Parameter.IsHandledAsFacet" ) == false && query.GetString( "Parameter.Name" ) != "q" ) 689 { 690 <input type="hidden" name="@query.GetString( "Parameter.Name" )" value="@HttpUtility.HtmlAttributeEncode( query.GetString( "Parameter.Value" ) )"> 691 } 692 } 693 } 694 695 @{ 696 bool isExtranet = GetGlobalValue("Global:Extranet.UserID") == "0" ? false : true; 697 } 698 699 <div id="js-e-productlist-filters" class="d-lg-block d-none dcc-custom-productlist-filters-wrapper"> 700 @*<input type="hidden" name="ProductInStock" value="True"/>*@ 701 <script id="js-e-handlebars-tmpl-productlist-filters" type="text/x-handlebars-template"> 702 703 704 705 <div class="tab-content" id="nav-tabContent"> 706 @if ( Espresso.Item.NavigationShow == "True" ) 707 { 708 <div class="tab-pane fade" id="nav-navigation" role="tabpanel" aria-labelledby="nav-navigation-tab"> 709 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 710 <fieldset id="e-productlist-filters-group-navigation" class="e-productlist-filters-group-options mb-2 small collapse show"> 711 <div class="e-nav-local e-nav-local-vertical"> 712 <nav class="e-nav-local-container"> 713 <ul class="nav flex-column"> 714 @RenderNavigation( new 715 { 716 id = "dwnav-local-" + Espresso.Id, 717 parentid = string.IsNullOrEmpty( Espresso.Item.NavigationParentPage ) == false ? Espresso.Item.NavigationParentPage : Espresso.Page.ID, 718 template = "local-vertical.xslt", 719 startlevel = Espresso.Item.NavigationLevelStart, 720 endlevel = Espresso.Item.NavigationLevelEnd, 721 expandmode = "path" 722 } ) 723 </ul> 724 </nav> 725 </div> 726 </fieldset> 727 </div> 728 </div> 729 } 730 731 732 <div class="tab-pane fade show active" id="nav-filters" role="tabpanel" aria-labelledby="nav-filters-tab"> 733 734 {{#if page.filtersAppliedCount}} 735 <div class="e-productlist-filters-group e-productlist-filters-group-summery"> 736 <p class="e-productlist-filters-group-header small mb-0"> 737 <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> 738 </p> 739 </div> 740 {{/if}} 741 742 @if ( Espresso.Item.SearchShow == "True" ) 743 { 744 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 745 <p class="e-productlist-filters-group-header small mb-0 mt-2"> 746 747 </p> 748 <fieldset id="e-productlist-filters-group-search" class="e-productlist-filters-group-options mb-2 small collapse show"> 749 <div class="js-e-search-input-group e-search-input-group {{#unless page.q}}is-empty{{/unless}}"> 750 <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> 751 <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" )"> 752 <span class="js-e-search-clear e-search-clear"><i class="material-icons">close</i></span> 753 </div> 754 </fieldset> 755 </div> 756 } 757 758 @* 759 {{#if page.filtersAppliedCount}} 760 <div class="e-productlist-filters-group e-productlist-filters-group-summery"> 761 <p class="e-productlist-filters-group-header small mb-0"> 762 <span class="e-productlist-filters-group-name h4 m-0 pl-0">@Translate( "eCom Productlist Filters - Selected - Text", "Selected filters" )</span> 763 <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> 764 </p> 765 <div class="e-productlist-filters-group-options-selected small mb-2"> 766 {{#each facets}} 767 {{#if selectedOptions.length}} 768 {{#each selectedOptions}} 769 <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}}"> 770 <i class="material-icons material-icons-fixed text-danger mr-1">add_circle</i> 771 <span>{{../name}}: {{label}}</span> 772 </a> 773 {{/each}} 774 {{/if}} 775 {{/each}} 776 {{#if page.q}} 777 <a class="e-productlist-filters-option-selected d-flex align-items-center text-decoration-none mb-1 js-e-productlist-filters-search-clear" href="#"> 778 <i class="material-icons material-icons-fixed text-danger mr-1">add_circle</i> 779 <span>@Translate( "eCom Productlist Filters - Search - Text", "Search" ): {{page.q}}</span> 780 </a> 781 {{/if}} 782 {{#compare page.minPrice.clean '&&' page.maxPrice.clean}} 783 <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"> 784 <i class="material-icons material-icons-fixed text-danger mr-1">add_circle</i> 785 <span>@Translate( "eCom Productlist Filters - Price - Heading", "Price" ): {{{page.minPrice.formatted}}} - {{{page.maxPrice.formatted}}}</span> 786 </a> 787 {{/compare}} 788 </div> 789 </div> 790 {{/if}} 791 *@ 792 793 {{#each facets}} 794 {{#compare count '>' 0}} 795 {{#compare labelClean '===' 'Product in stock'}} 796 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 797 <p class="e-productlist-filters-group-header small mb-0"> 798 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 799 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 800 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 801 </a> 802 {{#if selectedOptions.length}} 803 <label for="reset-filter-{{param}}" class="btn btn-sm btn-link py-1 px-0 m-0"> 804 <i class="material-icons material-icons-fixed text-danger">clear</i> 805 </label> 806 {{/if}} 807 </p> 808 <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"> 809 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 810 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 811 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 812 <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}}> 813 <span class="custom-control-indicator"></span> 814 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 815 </label> 816 </div> 817 {{#each options}} 818 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 819 <label for="{{id}}" class="custom-control custom-checkbox"> 820 <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}}> 821 <span class="custom-control-indicator"></span> 822 <span class="custom-control-description small">{{labelRadio}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 823 </label> 824 </div> 825 {{/each}} 826 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 827 <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> 828 {{/compare}} 829 </div> 830 </fieldset> 831 </div> 832 {{/compare}} 833 {{/compare}} 834 {{/each}} 835 836 837 {{#each facets}} 838 {{#compare count '>' 0}} 839 {{#compare labelClean '===' 'Brand'}} 840 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 841 <p class="e-productlist-filters-group-header small mb-0"> 842 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 843 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 844 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 845 </a> 846 {{#if selectedOptions.length}} 847 <label for="reset-filter-{{param}}" class="btn btn-sm btn-link py-1 px-0 m-0"> 848 <i class="material-icons material-icons-fixed text-danger">clear</i> 849 </label> 850 {{/if}} 851 </p> 852 <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"> 853 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 854 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 855 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 856 <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}}> 857 <span class="custom-control-indicator"></span> 858 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 859 </label> 860 </div> 861 {{#each options}} 862 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 863 <label for="{{id}}" class="custom-control custom-checkbox"> 864 <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}}> 865 <span class="custom-control-indicator"></span> 866 <span class="custom-control-description small">{{label}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 867 </label> 868 </div> 869 {{/each}} 870 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 871 <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> 872 {{/compare}} 873 </div> 874 </fieldset> 875 </div> 876 {{/compare}} 877 {{/compare}} 878 {{/each}} 879 880 881 882 {{#each facets}} 883 {{#compare count '>' 0}} 884 {{#compare labelClean '===' 'Condition'}} 885 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 886 <p class="e-productlist-filters-group-header small mb-0"> 887 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-{{param}}"> 888 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 889 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 890 </a> 891 {{#if selectedOptions.length}} 892 <label for="reset-filter-{{param}}" class="btn btn-sm btn-link py-1 px-0 m-0"> 893 <i class="material-icons material-icons-fixed text-danger">clear</i> 894 </label> 895 {{/if}} 896 </p> 897 <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"> 898 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 899 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 900 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 901 <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}}> 902 <span class="custom-control-indicator"></span> 903 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 904 </label> 905 </div> 906 {{#each options}} 907 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 908 <label for="{{id}}" class="custom-control custom-checkbox"> 909 <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}}> 910 <span class="custom-control-indicator"></span> 911 <span class="custom-control-description small">{{label}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 912 </label> 913 </div> 914 {{/each}} 915 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 916 <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> 917 {{/compare}} 918 </div> 919 </fieldset> 920 </div> 921 {{/compare}} 922 {{/compare}} 923 {{/each}} 924 925 @* 926 927 @if ( Espresso.Item.PriceRangeShow == "True" ) 928 929 { 930 if ( isExtranet ) 931 { 932 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 933 <p class="e-productlist-filters-group-header small mb-0"> 934 <a class="e-productlist-filters-group-collapse-toggle " data-toggle="collapse" data-target="#e-productlist-filters-group-pricerange"> 935 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 936 <span class="e-productlist-filters-group-name h4 m-0">@Translate( "eCom Productlist Filters - Price Range - Heading", "Price" )</span> 937 </a> 938 {{#compare page.minPrice.clean '||' page.maxPrice.clean}} 939 <button type="button" class="btn btn-sm btn-link py-1 px-0 js-e-productlist-filters-range-clear"> 940 <i class="material-icons material-icons-fixed text-danger">clear</i> 941 </button> 942 {{/compare}} 943 </p> 944 <fieldset id="e-productlist-filters-group-pricerange" class="e-productlist-filters-group-options mb-2 small is-expanded show"> 945 <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"> 946 <div class="col-12 col-lg-4 mb-1 mb-lg-0"> 947 <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"> 948 </div> 949 <div class="col-12 col-lg-4 mb-1 mb-lg-0"> 950 <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" )"> 951 </div> 952 <div class="col-12 col-lg-3"> 953 <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> 954 </div> 955 </div> 956 </fieldset> 957 </div> 958 } 959 } 960 961 *@ 962 963 964 {{#each facets}} 965 {{#compare count '>' 0}} 966 {{#compare_extended labelClean '!==' 'Condition,Brand,Product in stock'}} 967 <div class="e-productlist-filters-group js-e-productlist-filters-group"> 968 <p class="e-productlist-filters-group-header small mb-0"> 969 <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}}"> 970 <i class="material-icons material-icons-fixed">arrow_drop_down</i> 971 <span class="e-productlist-filters-group-name h4 m-0">{{label}}</span> 972 </a> 973 974 </p> 975 976 <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}}"> 977 <div class="{{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }}js-e-productlist-filters-options-collapse-peek e-productlist-filters-options-collapse-peek is-peeking{{/compare}}"> 978 <div class="e-productlist-filters-option js-e-productlist-filters-option"> 979 {{#compare type '===' 'Tags'}} 980 <label for="reset-filter-{{param}}" class="custom-control custom-radio"> 981 <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}}> 982 <span class="custom-control-indicator"></span> 983 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 984 </label> 985 {{else}} 986 <label for="reset-filter-{{param}}" class="custom-control custom-checkbox"> 987 <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}}> 988 <span class="custom-control-indicator"></span> 989 <span class="custom-control-description">@Translate( "eCom Productlist Filter - Options View All - Label", "All" )</span> 990 </label> 991 {{/compare}} 992 </div> 993 {{#each options}} 994 <div class="e-productlist-filters-option js-e-productlist-filters-option {{#if isSelected}}is-selected{{/if}} {{#if isDisabled}}is-disabled text-muted{{/if}}"> 995 {{#compare ../type '===' 'Tags'}} 996 <label for="{{id}}" class="custom-control custom-radio"> 997 <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}}> 998 <span class="custom-control-indicator"></span> 999 <span class="custom-control-description small">{{labelRadio}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 1000 </label> 1001 {{else}} 1002 1003 <label for="{{id}}" class="custom-control custom-checkbox"> 1004 <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}}> 1005 <span class="custom-control-indicator"></span> 1006 <span class="custom-control-description small">{{label}} <span class="e-productlist-filters-option-count small text-muted">({{count}})</span></span> 1007 </label> 1008 1009 {{/compare}} 1010 </div> 1011 {{/each}} 1012 {{#compare count '>' @Espresso.Item.FiltersVisibleOptionCount }} 1013 <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> 1014 {{/compare}} 1015 </div> 1016 </fieldset> 1017 1018 1019 </div> 1020 {{/compare_extended}} 1021 {{/compare}} 1022 {{/each}} 1023 1024 1025 1026 </div> 1027 1028 </div> 1029 </div> 1030 </script> 1031 </div> 1032 1033 <div class="e-productlist-filters-modal fade modal modal-fullscreen" data-backdrop="false" id="js-e-productlist-filters-modal"> 1034 <div class="modal-dialog"> 1035 <div class="modal-content"> 1036 <div class="modal-header"> 1037 <h3 class="modal-title"> 1038 <i class="material-icons material-icons-large">tune</i> 1039 @Translate( "eCom Productlist Filters - Customize Selection - Heading", "Filter products" ) 1040 </h3> 1041 <button class="close" data-dismiss="modal" type="button"> 1042 <i class="material-icons">close</i> 1043 </button> 1044 </div> 1045 <div class="modal-body pt-0"> 1046 <div id="js-e-productlist-filters-modal-body" class="d-flex flex-column"> 1047 1048 </div> 1049 </div> 1050 <div class="modal-footer bg-info border-top-0"> 1051 <button class="btn btn-primary btn-block" data-dismiss="modal" type="button">@Translate( "eCom Productlist Filters - Customize Selection Apply - Button", "Show results" )</button> 1052 </div> 1053 </div> 1054 </div> 1055 </div> 1056 1057 </form> 1058 </div> 1059 </div> 1060 </div> 1061 1062 </div> 1063 </div> 1064 1065 </div> 1066

Mathias Egelund
+45 6360 1136
maeg@dcc.dk