Error compiling template "/Designs/Dwsimple/Paragraph/AjaxSpiritsProductList.cshtml"
Line 198: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 198: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 223: The variable 'hide' is assigned but its value is never used

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 2 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 11 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 22 using System.Web; 23 24 #line default 25 #line hidden 26 27 #line 4 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 28 using Dynamicweb.Security.UserManagement; 29 30 #line default 31 #line hidden 32 33 #line 5 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 34 using Dynamicweb.Security.UserManagement.Common.CustomFields; 35 36 #line default 37 #line hidden 38 39 #line 6 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 40 using Dynamicweb.Rendering; 41 42 #line default 43 #line hidden 44 45 #line 7 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 46 using Dynamicweb.Environment; 47 48 #line default 49 #line hidden 50 51 #line 10 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 52 using System.Text.RegularExpressions; 53 54 #line default 55 #line hidden 56 57 #line 9 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 58 using User = Dynamicweb.Security.UserManagement.User; 59 60 #line default 61 #line hidden 62 63 64 public class RazorEngine_9edc9594ea204e378c8462c5261da89c : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 65 66 #line hidden 67 68 #line 14 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 69 70 public class WrapMethods 71 { 72 //Gets the contrasting color 73 public static string getContrastYIQ(string hexcolor) 74 { 75 if (hexcolor != "") 76 { 77 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 78 79 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 80 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 81 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 82 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 83 84 if (yiq >= 128) 85 { 86 return "black"; 87 } 88 else 89 { 90 return "white"; 91 } 92 } 93 else 94 { 95 return "black"; 96 } 97 } 98 99 100 //Truncate text 101 public static string Truncate (string value, int count, bool strip=true) 102 { 103 if (strip == true){ 104 value = StripHtmlTagByCharArray(value); 105 } 106 107 if (value.Length > count) 108 { 109 value = value.Substring(0, count - 1) + "..."; 110 } 111 112 return value; 113 } 114 115 116 //Strip text from HTML 117 public static string StripHtmlTagByCharArray(string htmlString) 118 { 119 char[] array = new char[htmlString.Length]; 120 int arrayIndex = 0; 121 bool inside = false; 122 123 for (int i = 0; i < htmlString.Length; i++) 124 { 125 char let = htmlString[i]; 126 if (let == '<') 127 { 128 inside = true; 129 continue; 130 } 131 if (let == '>') 132 { 133 inside = false; 134 continue; 135 } 136 if (!inside) 137 { 138 array[arrayIndex] = let; 139 arrayIndex++; 140 } 141 } 142 return new string(array, 0, arrayIndex); 143 } 144 145 //Make the correct count of columns 146 public static string ColumnMaker(int Col, string ScreenSize) 147 { 148 string Columns = ""; 149 150 switch (Col) 151 { 152 case 1: 153 Columns = "col-"+ScreenSize+"-12"; 154 break; 155 156 case 2: 157 Columns = "col-"+ScreenSize+"-6"; 158 break; 159 160 case 3: 161 Columns = "col-"+ScreenSize+"-4"; 162 break; 163 164 case 4: 165 Columns = "col-"+ScreenSize+"-3"; 166 break; 167 168 default: 169 Columns = "col-"+ScreenSize+"-3"; 170 break; 171 } 172 173 return Columns; 174 } 175 176 177 private string Custom(string firstoption, string secondoption) 178 { 179 if (firstoption == "custom") 180 { 181 return secondoption; 182 } 183 else 184 { 185 return firstoption; 186 } 187 } 188 } 189 190 #line default 191 #line hidden 192 193 194 #line 150 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 195 196 public string IsSelected(string sortBy, string sortOrder) 197 { 198 return (Dynamicweb.Input.Request("SortOrder") == sortOrder && Dynamicweb.Input.Request("SortBy") == sortBy) ? "selected='selected'" : string.Empty; 199 } 200 201 202 203 #line default 204 #line hidden 205 206 207 public RazorEngine_9edc9594ea204e378c8462c5261da89c() { 208 } 209 210 public override void Execute() { 211 WriteLiteral("\r\n\r\n"); 212 213 WriteLiteral("\r\n\r\n\r\n\r\n\r\n"); 214 215 216 #line 140 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 217 218 string pageUrl = GetGlobalValue("Global:Pageview.Url.Raw"); 219 string productCatalogId = Pageview.Area.Item["SpiritsJsonPageId"].ToString(); 220 string feedPageUrl = new Regex("([?&]ID)=[^?&]+").Replace(pageUrl, "?ID=" + productCatalogId); 221 string requestQuery = GetGlobalValue("Global:Request.Query"); 222 string feedFullUrl = feedPageUrl + "&LayoutTemplate=Json.cshtml&DisableStatistics=True"; 223 string hide = ""; 224 string pageid = GetGlobalValue("Global:Page.ID"); 225 226 227 228 #line default 229 #line hidden 230 WriteLiteral("\r\n"); 231 232 233 #line 158 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 234 235 if (string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("ProductID"))) 236 { 237 238 239 240 241 242 #line default 243 #line hidden 244 WriteLiteral(" <div"); 245 246 WriteLiteral(" class=\"row js-ajax-container\""); 247 248 WriteLiteral(" id=\"productList\""); 249 250 WriteLiteral(" data-template=\"productContainer\""); 251 252 WriteLiteral(" data-json-feed=\""); 253 254 255 #line 164 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 256 Write(feedFullUrl); 257 258 259 #line default 260 #line hidden 261 WriteLiteral("\""); 262 263 WriteLiteral("></div>\r\n"); 264 265 WriteLiteral(" <script"); 266 267 WriteLiteral(" id=\"productContainer\""); 268 269 WriteLiteral(" type=\"text/x-template\""); 270 271 WriteLiteral(">\r\n <div class=\"col-md-3 col-sm-3 data.showLogin\">\r\n\r\n " + 272 "<div class=\"product-list-header product-list-header--clean hidden-xs\">\r\n " + 273 " <h5>"); 274 275 276 #line 169 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 277 Write(Translate("PRODUCT CATEGORY")); 278 279 280 #line default 281 #line hidden 282 WriteLiteral("</h5>\r\n"); 283 284 WriteLiteral(" "); 285 286 287 #line 170 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 288 Write(Translate("FILTER YOUR RESULTS")); 289 290 291 #line default 292 #line hidden 293 WriteLiteral("\r\n </div>\r\n <button class=\"product-list-header prod" + 294 "uct-list-header--clean visible-xs\" type=\"button\" data-toggle=\"collapse\" data-ta" + 295 "rget=\"#FacetGroups1\" aria-expanded=\"false\" aria-controls=\"FacetGroups\">\r\n"); 296 297 WriteLiteral(" "); 298 299 300 #line 173 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 301 Write(Translate("FILTER YOUR RESULTS")); 302 303 304 #line default 305 #line hidden 306 WriteLiteral(@" 307 </button> 308 309 <div id=""FacetGroups"" data-template=""facetGroup"" class=""collapse""></div> 310 </div> 311 <div class=""col-md-9 col-sm-9 product-list data.showLogin""> 312 <div class=""product-list-header""> 313 <div class=""col-sm-3 pull-left""> 314 <div class=""product-list-header__title text-left"">data.prodCnt "); 315 316 317 #line 181 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 318 Write(Translate("Items", "Items")); 319 320 321 #line default 322 #line hidden 323 WriteLiteral("</div>\r\n </div>\r\n <div class=\"sorting col-s" + 324 "m-6 dropdown\">\r\n <label class=\"hidden-xs\">"); 325 326 327 #line 184 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 328 Write(Translate("Sort:", "Sort:")); 329 330 331 #line default 332 #line hidden 333 WriteLiteral("</label>\r\n <button class=\"low-to-high-selector btn btn-xs " + 334 "btn-default dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\"><span class=\"t" + 335 "ext-left\">"); 336 337 338 #line 185 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 339 Write(Translate("Filter", "Filter")); 340 341 342 #line default 343 #line hidden 344 WriteLiteral("</span><span class=\"caret text-right\"></span></button>\r\n <" + 345 "ul class=\" dropdown-menu\" role=\"menu\" data-sortby=\"\" data-sortorder=\"\">\r\n " + 346 " <li><a data-sortby=\"Name\" data-sort=\"asc\" onclick=\"Facets.S" + 347 "orting(this, \'"); 348 349 350 #line 187 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 351 Write(productCatalogId); 352 353 354 #line default 355 #line hidden 356 WriteLiteral("\');\" class=\"pill-left\" data-checked=\"checked\">"); 357 358 359 #line 187 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 360 Write(Translate("Name low-high", "Name low-high")); 361 362 363 #line default 364 #line hidden 365 WriteLiteral(" </a></li>\r\n <li><a data-sortby=\"Name\" data-sort=\"desc" + 366 "\" onclick=\"Facets.Sorting(this, \'"); 367 368 369 #line 188 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 370 Write(productCatalogId); 371 372 373 #line default 374 #line hidden 375 WriteLiteral("\');\" class=\"pill-left\" data-checked=\"\">"); 376 377 378 #line 188 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 379 Write(Translate("Name high-low", "Price high-low")); 380 381 382 #line default 383 #line hidden 384 WriteLiteral(@" </a></li> 385 </ul> 386 </div> 387 388 <div class=""pull-right text-right hidden-sm""> 389 <button class=""btn product-list-header__view-btn"" onclick=""Dynamo.UpdateTemplate('Products', 'productItem')""><i class=""fa fa-list-ul""></i></button> 390 <button class=""btn product-list-header__view-btn"" onclick=""Dynamo.UpdateTemplate('Products', 'productGridItem')""><i class=""fa fa-th""></i></button> 391 </div> 392 <div class=""sorting col-xs-12 text-center visible-xs""> 393 394 </div> 395 </div> 396 <div class=""col-sm-12 container-priducts""> 397 <div id=""SelectedFilter"" class=""facet-options selected-option text-left""></div> 398 <div id=""RemoveFilters"" class=""text-left remove-all""></div> 399 <div id=""Products"" data-template=""productItem"" data-save-cookie=""true""></div> 400 401 <div class=""pull-left show-paging""> 402 "); 403 404 WriteLiteral(" "); 405 406 407 #line 206 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 408 Write(Translate("Showing page", "Showing page")); 409 410 411 #line default 412 #line hidden 413 WriteLiteral(" data.currentPage "); 414 415 416 #line 206 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 417 Write(Translate("of", "of")); 418 419 420 #line default 421 #line hidden 422 WriteLiteral(@" data.totalPages 423 </div> 424 <div class=""pull-right show-paging""> 425 <ul class=""pager"" id=""Pagination"" data-template=""DotsPages""></ul> 426 </div> 427 </div> 428 </div> 429 <div class=""productList-login col-xs-12 col-sm-6 data.hideLogin""> 430 431 <form class=""form-body"" method=""post"" action="""); 432 433 434 #line 215 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 435 Write(pageUrl); 436 437 438 #line default 439 #line hidden 440 WriteLiteral("\">\r\n <input type=\"hidden\" name=\"DWExtranetUsernameRemember\" va" + 441 "lue=\"True\" />\r\n <input type=\"hidden\" name=\"DWExtranetPassword" + 442 "Remember\" value=\"True\" />\r\n"); 443 444 445 #line 218 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 446 447 448 #line default 449 #line hidden 450 451 #line 218 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 452 if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.SuccessRedirectToPage"))) 453 { 454 string redirect = GetString("UserManagement:User.Login.SuccessRedirectToPage"); 455 456 457 #line default 458 #line hidden 459 WriteLiteral(" <input"); 460 461 WriteLiteral(" type=\"hidden\""); 462 463 WriteLiteral(" name=\"Redirect\""); 464 465 WriteAttribute("value", Tuple.Create(" value=\"", 8816), Tuple.Create("\"", 8833) 466 467 #line 221 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 468 , Tuple.Create(Tuple.Create("", 8824), Tuple.Create<System.Object, System.Int32>(redirect 469 470 #line default 471 #line hidden 472 , 8824), false) 473 ); 474 475 WriteLiteral(" />\r\n"); 476 477 478 #line 222 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 479 } 480 481 482 #line default 483 #line hidden 484 WriteLiteral(" <div class=\"row\">\r\n <div class=\"col-md" + 485 "-3 col-sm-3 col-xs-12\">\r\n <label class=\"control-label" + 486 "\" for=\"login-username\">\r\n"); 487 488 WriteLiteral(" "); 489 490 491 #line 226 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 492 Write(Translate("E-mail", "Email")); 493 494 495 #line default 496 #line hidden 497 WriteLiteral(":\r\n </label>\r\n </div>\r\n " + 498 " <div class=\"col-md-9 col-sm-9 col-xs-12\">\r\n"); 499 500 501 #line 230 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 502 503 504 #line default 505 #line hidden 506 507 #line 230 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 508 509 string defname = ""; 510 511 if (string.IsNullOrWhiteSpace(GetString("Server:Request.username"))) 512 { 513 defname = GetString("Server:Request.username"); 514 } 515 516 517 #line default 518 #line hidden 519 WriteLiteral("\r\n <input class=\"form-control\" type=\"text\" id=\"login-u" + 520 "sername\" name=\"username\" value=\""); 521 522 523 #line 238 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 524 Write(defname); 525 526 527 #line default 528 #line hidden 529 WriteLiteral(@""" /> 530 </div> 531 </div> 532 <div class=""row"">&nbsp;</div> 533 <div class=""row""> 534 <div class=""col-md-3 col-sm-3 col-xs-12""> 535 <label class=""control-label"" for=""login-password""> 536 "); 537 538 WriteLiteral(" "); 539 540 541 #line 245 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 542 Write(Translate("Password", "Password")); 543 544 545 #line default 546 #line hidden 547 WriteLiteral(":\r\n </label>\r\n </div>\r\n " + 548 " <div class=\"col-md-9 col-sm-9 col-xs-12\">\r\n"); 549 550 551 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 552 553 554 #line default 555 #line hidden 556 557 #line 249 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 558 559 string defpass = ""; 560 561 if (string.IsNullOrWhiteSpace(GetString("Server:Request.password"))) 562 { 563 defpass = GetString("Server:Request.password"); 564 } 565 566 567 #line default 568 #line hidden 569 WriteLiteral("\r\n <input class=\"form-control\" type=\"password\" id=\"log" + 570 "in-password\" name=\"password\" value=\""); 571 572 573 #line 257 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 574 Write(defpass); 575 576 577 #line default 578 #line hidden 579 WriteLiteral(@""" /> 580 </div> 581 </div> 582 <div class=""row"">&nbsp;</div> 583 <div class=""row""> 584 <div class=""col-md-6 hidden-sm hidden-xs""> 585 <a class=""btn btn-dw-primary pull-left"" href=""/Default.aspx?ID="); 586 587 588 #line 263 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 589 Write(pageid); 590 591 592 #line default 593 #line hidden 594 WriteLiteral("&LoginAction=Recovery\">"); 595 596 597 #line 263 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 598 Write(Translate("Forgot your password?", "Forgot your password?")); 599 600 601 #line default 602 #line hidden 603 WriteLiteral("</a>\r\n </div>\r\n <div class=\"col-md-" + 604 "6 col-sm-12 col-xs-12\">\r\n <button class=\"btn btn-dw-p" + 605 "rimary pull-right\" type=\"submit\" name=\"LoginAction\" value=\"Login\">"); 606 607 608 #line 266 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 609 Write(Translate("Login", "Login")); 610 611 612 #line default 613 #line hidden 614 WriteLiteral("</button>\r\n <div class=\"checkbox pull-right\" style=\"ma" + 615 "rgin-top: 6px !important\">\r\n <input type=\"checkbo" + 616 "x\" name=\"Autologin\" checked=\"checked\" value=\"True\"> "); 617 618 619 #line 268 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 620 Write(Translate("Remember me", "Remember me")); 621 622 623 #line default 624 #line hidden 625 WriteLiteral(@" &nbsp;&nbsp;&nbsp; 626 </div> 627 </div> 628 </div> 629 <div class=""row"">&nbsp;</div> 630 <div class=""row""> 631 <div class=""hidden-lg hidden-md col-sm-12 col-xs-12""> 632 <a class=""btn btn-dw-primary pull-left"" href=""/Default.aspx?id="); 633 634 635 #line 275 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 636 Write(pageid); 637 638 639 #line default 640 #line hidden 641 WriteLiteral("&LoginAction=Recovery\">"); 642 643 644 #line 275 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 645 Write(Translate("Forgot your password?", "Forgot your password?")); 646 647 648 #line default 649 #line hidden 650 WriteLiteral("</a>\r\n </div>\r\n </div>\r\n " + 651 " </form>\r\n </div>\r\n </script>\r\n"); 652 653 WriteLiteral(" <script"); 654 655 WriteLiteral(" type=\"text/javascript\""); 656 657 WriteLiteral(@"> 658 $('.low-to-high-selector').on(""click"", function () { 659 $(this).addClass('active'); 660 $('.sorting .dropdown-menu-right').slideToggle(200); 661 }); 662 663 664 $('.sorting .dropdown-menu-right').click(function () { 665 $('.low-to-high-selector').click(); 666 }); 667 </script> 668 "); 669 670 WriteLiteral(" <script"); 671 672 WriteLiteral(" id=\"PageButton\""); 673 674 WriteLiteral(" type=\"text/x-template\""); 675 676 WriteLiteral(">\r\n <li class=\"data.active\"><a href=\"data.url\">data.number</a></li>\r\n " + 677 " </script>\r\n"); 678 679 680 #line 295 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 681 682 683 684 #line default 685 #line hidden 686 WriteLiteral(" <script"); 687 688 WriteLiteral(" id=\"facetGroup\""); 689 690 WriteLiteral(" type=\"text/x-template\""); 691 692 WriteLiteral(@"> 693 <input type=""checkbox"" id=""OptionsGroup_data.counter"" class=""expand-trigger hidden"" checked /> 694 695 <div class=""facet-group""> 696 <div class=""facet-group__header"">data.name <label for=""OptionsGroup_data.counter"" class=""expand-btn collapsed""></label></div> 697 <div id=""FacetOptions"" class=""facet-options data.selectedin collapse""></div> 698 </div> 699 </script> 700 "); 701 702 703 #line 304 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 704 705 706 707 #line default 708 #line hidden 709 WriteLiteral(" <script"); 710 711 WriteLiteral(" id=\"CheckboxFacet\""); 712 713 WriteLiteral(" type=\"text/x-template\""); 714 715 WriteLiteral(">\r\n <div class=\"facet-option filter-option\">\r\n <button " + 716 "type=\"button\" class=\"btn btn-checkbox data.checked data.disabled data.queryParam" + 717 "eter\" data-check=\"data.checked\" onclick=\"Facets.UpdateFacets(this, \'"); 718 719 720 #line 307 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 721 Write(productCatalogId); 722 723 724 #line default 725 #line hidden 726 WriteLiteral("\');\" name=\"data.queryParameter\" value=\"data.value\" data.disabled>\r\n " + 727 " data.name (data.count)\r\n </button>\r\n </div>\r\n " + 728 " </script>\r\n"); 729 730 731 #line 312 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 732 733 734 735 #line default 736 #line hidden 737 WriteLiteral(" <script"); 738 739 WriteLiteral(" id=\"CheckFilter\""); 740 741 WriteLiteral(" type=\"x-template\""); 742 743 WriteLiteral(">\r\n <button type=\"button\" class=\"btn btn-checkbox data.checked data.di" + 744 "sabled \" name=\"data.tolower\" data-check=\"data.checked\" onclick=\"Facets.ResetSele" + 745 "ctedFacets(this, \'"); 746 747 748 #line 314 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 749 Write(productCatalogId); 750 751 752 #line default 753 #line hidden 754 WriteLiteral("\');\" value=\"data.value\" data.disabled>\r\n data.name\r\n </" + 755 "button>\r\n </script>\r\n"); 756 757 WriteLiteral(" <script"); 758 759 WriteLiteral(" id=\"RemoveAll\""); 760 761 WriteLiteral(" type=\"text/x-template\""); 762 763 WriteLiteral(">\r\n <a onclick=\"Facets.ResetFacets(this, \'"); 764 765 766 #line 319 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 767 Write(productCatalogId); 768 769 770 #line default 771 #line hidden 772 WriteLiteral("\');\">\r\n"); 773 774 WriteLiteral(" "); 775 776 777 #line 320 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 778 Write(Translate("Remove all items", "Remove all items")); 779 780 781 #line default 782 #line hidden 783 WriteLiteral("\r\n </a>\r\n </script>\r\n"); 784 785 WriteLiteral(" <script"); 786 787 WriteLiteral(" id=\"DotsPages\""); 788 789 WriteLiteral(" type=\"x-template\""); 790 791 WriteLiteral(@"> 792 <li class=""no-border data.prevdisplay""><a href=""data.prevpagelink""><i class=""fa fa-angle-left""></i></a></li> 793 <li class="" data.show""><a href=""data.firstpagelink"">data.firstpagenumber</a></li> 794 <li class="" data.firstdots""> data.firstdots</li> 795 <li class=""looppages""> 796 <ul id=""Pages""></ul> 797 </li> 798 <li class="" data.lastdots""> data.lastdots</li> 799 <li class="" data.lastsh""><a href=""data.lastpagelink"">data.lastpagenumber</a></li> 800 801 <li class=""no-border data.nextdisplay""><a href=""data.nextpagelink""><i class=""fa fa-angle-right""></i></a></li> 802 </script> 803 "); 804 805 WriteLiteral(" <script"); 806 807 WriteLiteral(" id=\"Numbering\""); 808 809 WriteLiteral(" type=\"x-template\""); 810 811 WriteLiteral(">\r\n <li class=\"\"><a href=\"data.pageslooplink\" class=\"data.active\">data" + 812 ".pagesloopnumber</a></li>\r\n </script>\r\n"); 813 814 WriteLiteral(" <script"); 815 816 WriteLiteral(" id=\"productItem\""); 817 818 WriteLiteral(" type=\"text/x-template\""); 819 820 WriteLiteral(">\r\n <div class=\"col-md-12\">\r\n <div class=\"row product-l" + 821 "ist-item\">\r\n <div class=\"col-xs-12 col-md-3 col-lg-3\">\r\n " + 822 " <a href=\"data.link\"><div class=\"product-list-item__image-cont" + 823 "ainer\"><img class=\"img-responsive product-list-item__image center-block\" src=\"da" + 824 "ta.image\" /></div></a>\r\n </div>\r\n <div cla" + 825 "ss=\"col-xs-12 col-lg-9 col-lg-9\">\r\n <div class=\"col-md-7\"" + 826 ">\r\n <div class=\"customTooltip\">\r\n " + 827 " <a href=\"data.link\"><h2 class=\"product-list-item__name\">data.name</h" + 828 "3></a>\r\n <span class=\"customTooltiptext\">data.too" + 829 "ltip</span>\r\n </div>\r\n <di" + 830 "v id=\"addRemove\" data-template=\"addRemove\"></div>\r\n <" + 831 "div class=\"limitedstock\">data.limitedStock</div>\r\n <d" + 832 "iv class=\"product-list-item__desc\">data.description</div>\r\n\r\n " + 833 " <ul class=\"features-list item-number productMetaInfo\">\r\n " + 834 " <li class=\"features-list__item\">\r\n " + 835 " <span class=\"features-list__label\">Item #</span> <span class=\"features-li" + 836 "st__name\">data.number</span>\r\n </li>\r\n " + 837 " <li class=\"features-list__item\">\r\n " + 838 " <div id=\"unitList\" data-template=\"hasUnit\"></div>\r\n " + 839 " </li>\r\n </ul>\r\n " + 840 "</div>\r\n <div class=\"col-md-5 right-col\">\r\n " + 841 " <div class=\"features-list\">\r\n <div " + 842 "class=\"features-list__item text-right\">\r\n <di" + 843 "v id=\"price\" data-template=\"AddToCart\"></div>\r\n <" + 844 "/div>\r\n <div class=\"features-list__item text-righ" + 845 "t\">\r\n <div id=\"AddToQuote\" data-template=\"Add" + 846 "ToQuote\"></div>\r\n </div>\r\n " + 847 " </div>\r\n </div>\r\n </div>\r\n " + 848 " </div>\r\n </div>\r\n </script>\r\n"); 849 850 WriteLiteral(" <script"); 851 852 WriteLiteral(" id=\"hasUnit\""); 853 854 WriteLiteral(" type=\"text/x-template\""); 855 856 WriteLiteral(">\r\n <span class=\"features-list__label\">"); 857 858 859 #line 378 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 860 Write(Translate("Unit")); 861 862 863 #line default 864 #line hidden 865 WriteLiteral(" : </span>\r\n <span class=\"features-list__name\">data.unit</span>\r\n " + 866 " </script>\r\n"); 867 868 WriteLiteral(" <script"); 869 870 WriteLiteral(" id=\"addRemove\""); 871 872 WriteLiteral(" type=\"text/x-template\""); 873 874 WriteLiteral(">\r\n\r\n <div class=\"favListDropdown\"><a class=\"addto\" href=\"javascript:D" + 875 "ynamo.UpdateContent(\'productList\',\'data.winelistRemoveLink\')\">data.icon data.tex" + 876 "t</a></div>\r\n\r\n </script>\r\n"); 877 878 WriteLiteral(" <script"); 879 880 WriteLiteral(" id=\"AddToFav\""); 881 882 WriteLiteral(" type=\"text/x-template\""); 883 884 WriteLiteral(">\r\n <li><a href=\"data.link\">data.icon <span>data.name</span></a></li>\r" + 885 "\n </script>\r\n"); 886 887 WriteLiteral(" <script"); 888 889 WriteLiteral(" id=\"EmployeeAddToFav\""); 890 891 WriteLiteral(" type=\"text/x-template\""); 892 893 WriteLiteral(">\r\n <a href=\"data.link\" class=\"addto\">data.icon <span>data.name</span>" + 894 "</a>\r\n </script>\r\n"); 895 896 WriteLiteral(" <script"); 897 898 WriteLiteral(" id=\"productGridItem\""); 899 900 WriteLiteral(" type=\"text/x-template\""); 901 902 WriteLiteral(">\r\n <div class=\"col-md-4 product-list-item product-list-item--grid\">\r\n" + 903 " <div class=\"product-list-item--grid-cont\">\r\n " + 904 "<a href=\"data.link\"><div class=\"product-list-item__image-container\"><img class=\"" + 905 "img-responsive product-list-item__image center-block\" src=\"data.image\" /></div><" + 906 "/a>\r\n <div class=\"row\">\r\n <div class=\"" + 907 "col-md-12\">\r\n <div class=\"customTooltip\">\r\n " + 908 " <a href=\"data.link\"><h2 class=\"product-list-item__name\">da" + 909 "ta.shortname</h3><span class=\"read-more hidden\">...</span></a>\r\n " + 910 " <span class=\"customTooltiptext\">data.tooltip</span>\r\n " + 911 " </div>\r\n </div>\r\n " + 912 " <div class=\"col-md-12\">\r\n <div id=\"addRemove\" data-t" + 913 "emplate=\"addRemove\"></div>\r\n <div class=\"limitedstock" + 914 " grid\">data.limitedStock &nbsp;</div>\r\n </div>\r\n\r\n " + 915 " </div>\r\n <div class=\"features-list\">\r\n " + 916 " <div class=\"row productGridMetaInfo\">\r\n " + 917 " <div class=\"col-xs-12\">\r\n <span>Item # data.numb" + 918 "er</span>\r\n </div>\r\n <div " + 919 "class=\"col-xs-12\">\r\n <div id=\"unitList\" data-temp" + 920 "late=\"hasUnit\"></div>\r\n </div>\r\n " + 921 " </div>\r\n <div class=\"features-list__item text-right\">\r" + 922 "\n <div id=\"price\" data-template=\"AddToCart\"></div>\r\n " + 923 " </div>\r\n <div class=\"features-list" + 924 "__item text-right\">\r\n <div id=\"AddToQuote\" data-templ" + 925 "ate=\"AddToQuote\"></div>\r\n </div>\r\n </d" + 926 "iv>\r\n\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n " + 927 " </div>\r\n </script>\r\n"); 928 929 930 #line 430 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 931 932 933 934 #line default 935 #line hidden 936 WriteLiteral(" <script"); 937 938 WriteLiteral(" id=\"SelectionOption\""); 939 940 WriteLiteral(" type=\"text/x-template\""); 941 942 WriteLiteral(">\r\n <option value=\"data.value\" data-infoprice=\"data.price\" data-infodu" + 943 "ty=\"data.duty\">data.name</option>\r\n </script>\r\n"); 944 945 WriteLiteral(" <script"); 946 947 WriteLiteral(" id=\"AddToCart\""); 948 949 WriteLiteral(" type=\"text/x-template\""); 950 951 WriteLiteral(@"> 952 <div class=""features-list__item""> 953 <span class=""price-text features-list__name"">data.value</span> 954 </div> 955 <div class=""features-list form-horizontal""> 956 <span class=""features-list__name customQuantity""> 957 <span class=""qty pull-left"">"); 958 959 960 #line 440 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 961 Write(Translate("Qty", "Qty")); 962 963 964 #line default 965 #line hidden 966 WriteLiteral(@"</span> 967 <input type=""number"" name=""Quantity"" class=""form-control input-number ecommerce-quantity-input quantity"" value=""1"" min=""1"" max=""9999"" id=""quantity_data.id"" oninput=""javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"" maxlength=""4""> 968 <div class=""quantity-nav""> 969 <div class=""quantity-button quantity-up fa fa-plus"" onclick=""Dynamo.UpdateQuantityUp(this)""></div> 970 <div class=""quantity-button quantity-down fa fa-minus"" onclick=""Dynamo.UpdateQuantityDown(this)""></div> 971 </div> 972 </span> 973 <button type=""button"" id=""CartButton_data.id"" class=""btn product-list-item__cart-btn pull-right"" name=""submit"" onclick=""Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');""> 974 975 <span> <i class=""fa fa-shopping-cart"" aria-hidden=""true""></i>"); 976 977 978 #line 449 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 979 Write(Translate("Add to cart")); 980 981 982 #line default 983 #line hidden 984 WriteLiteral("</span>\r\n </button>\r\n </div>\r\n </script>\r\n"); 985 986 WriteLiteral(" <script"); 987 988 WriteLiteral(" id=\"AddToQuote\""); 989 990 WriteLiteral(" type=\"text/x-template\""); 991 992 WriteLiteral(@"> 993 <input type=""number"" name=""Quantity"" class=""form-control input-number ecommerce-quantity-input quantity hidden"" value=""1"" min=""1"" max=""99999"" id=""quantity_data.id""> 994 <button type=""button"" id=""CartButton_data.id"" class=""btn product-list-item__cart-btn pull-right"" name=""submit"" onclick=""Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');""> 995 996 <span><i class=""fa fa-shopping-cart"" aria-hidden=""true""></i> "); 997 998 999 #line 457 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 1000 Write(Translate("REQUEST PRICE", "REQUEST PRICE")); 1001 1002 1003 #line default 1004 #line hidden 1005 WriteLiteral("</span>\r\n </button>\r\n </script>\r\n"); 1006 1007 WriteLiteral(" <script>\r\n document.addEventListener(\"DOMContentLoaded\", function (eve" + 1008 "nt) {\r\n Facets.Init(\'"); 1009 1010 1011 #line 462 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 1012 Write(requestQuery); 1013 1014 1015 #line default 1016 #line hidden 1017 WriteLiteral("\');\r\n \r\n });\r\n </script>\r\n"); 1018 1019 1020 #line 466 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSpiritsProductList.cshtml" 1021 } 1022 1023 1024 #line default 1025 #line hidden 1026 WriteLiteral("\r\n\r\n\r\n"); 1027 1028 } 1029 } 1030 } 1031

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System 3 @using System.Web 4 @using Dynamicweb.Security.UserManagement; 5 @using Dynamicweb.Security.UserManagement.Common.CustomFields; 6 @using Dynamicweb.Rendering; 7 @using Dynamicweb.Environment; 8 @using System.Text.RegularExpressions; 9 @using User = Dynamicweb.Security.UserManagement.User; 10 @using System.Text.RegularExpressions 11 @using System.Web 12 13 14 @functions{ 15 public class WrapMethods 16 { 17 //Gets the contrasting color 18 public static string getContrastYIQ(string hexcolor) 19 { 20 if (hexcolor != "") 21 { 22 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 23 24 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 25 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 26 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 27 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 28 29 if (yiq >= 128) 30 { 31 return "black"; 32 } 33 else 34 { 35 return "white"; 36 } 37 } 38 else 39 { 40 return "black"; 41 } 42 } 43 44 45 //Truncate text 46 public static string Truncate (string value, int count, bool strip=true) 47 { 48 if (strip == true){ 49 value = StripHtmlTagByCharArray(value); 50 } 51 52 if (value.Length > count) 53 { 54 value = value.Substring(0, count - 1) + "..."; 55 } 56 57 return value; 58 } 59 60 61 //Strip text from HTML 62 public static string StripHtmlTagByCharArray(string htmlString) 63 { 64 char[] array = new char[htmlString.Length]; 65 int arrayIndex = 0; 66 bool inside = false; 67 68 for (int i = 0; i < htmlString.Length; i++) 69 { 70 char let = htmlString[i]; 71 if (let == '<') 72 { 73 inside = true; 74 continue; 75 } 76 if (let == '>') 77 { 78 inside = false; 79 continue; 80 } 81 if (!inside) 82 { 83 array[arrayIndex] = let; 84 arrayIndex++; 85 } 86 } 87 return new string(array, 0, arrayIndex); 88 } 89 90 //Make the correct count of columns 91 public static string ColumnMaker(int Col, string ScreenSize) 92 { 93 string Columns = ""; 94 95 switch (Col) 96 { 97 case 1: 98 Columns = "col-"+ScreenSize+"-12"; 99 break; 100 101 case 2: 102 Columns = "col-"+ScreenSize+"-6"; 103 break; 104 105 case 3: 106 Columns = "col-"+ScreenSize+"-4"; 107 break; 108 109 case 4: 110 Columns = "col-"+ScreenSize+"-3"; 111 break; 112 113 default: 114 Columns = "col-"+ScreenSize+"-3"; 115 break; 116 } 117 118 return Columns; 119 } 120 121 122 private string Custom(string firstoption, string secondoption) 123 { 124 if (firstoption == "custom") 125 { 126 return secondoption; 127 } 128 else 129 { 130 return firstoption; 131 } 132 } 133 } 134 } 135 136 137 138 139 140 @{ 141 string pageUrl = GetGlobalValue("Global:Pageview.Url.Raw"); 142 string productCatalogId = Pageview.Area.Item["SpiritsJsonPageId"].ToString(); 143 string feedPageUrl = new Regex("([?&]ID)=[^?&]+").Replace(pageUrl, "?ID=" + productCatalogId); 144 string requestQuery = GetGlobalValue("Global:Request.Query"); 145 string feedFullUrl = feedPageUrl + "&LayoutTemplate=Json.cshtml&DisableStatistics=True"; 146 string hide = ""; 147 string pageid = GetGlobalValue("Global:Page.ID"); 148 149 } 150 @functions { 151 public string IsSelected(string sortBy, string sortOrder) 152 { 153 return (Dynamicweb.Input.Request("SortOrder") == sortOrder && Dynamicweb.Input.Request("SortBy") == sortBy) ? "selected='selected'" : string.Empty; 154 } 155 156 157 } 158 @{ 159 if (string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("ProductID"))) 160 { 161 162 163 164 <div class="row js-ajax-container" id="productList" data-template="productContainer" data-json-feed="@feedFullUrl"></div> 165 <script id="productContainer" type="text/x-template"> 166 <div class="col-md-3 col-sm-3 data.showLogin"> 167 168 <div class="product-list-header product-list-header--clean hidden-xs"> 169 <h5>@Translate("PRODUCT CATEGORY")</h5> 170 @Translate("FILTER YOUR RESULTS") 171 </div> 172 <button class="product-list-header product-list-header--clean visible-xs" type="button" data-toggle="collapse" data-target="#FacetGroups1" aria-expanded="false" aria-controls="FacetGroups"> 173 @Translate("FILTER YOUR RESULTS") 174 </button> 175 176 <div id="FacetGroups" data-template="facetGroup" class="collapse"></div> 177 </div> 178 <div class="col-md-9 col-sm-9 product-list data.showLogin"> 179 <div class="product-list-header"> 180 <div class="col-sm-3 pull-left"> 181 <div class="product-list-header__title text-left">data.prodCnt @Translate("Items", "Items")</div> 182 </div> 183 <div class="sorting col-sm-6 dropdown"> 184 <label class="hidden-xs">@Translate("Sort:", "Sort:")</label> 185 <button class="low-to-high-selector btn btn-xs btn-default dropdown-toggle" type="button" data-toggle="dropdown"><span class="text-left">@Translate("Filter", "Filter")</span><span class="caret text-right"></span></button> 186 <ul class=" dropdown-menu" role="menu" data-sortby="" data-sortorder=""> 187 <li><a data-sortby="Name" data-sort="asc" onclick="Facets.Sorting(this, '@productCatalogId');" class="pill-left" data-checked="checked">@Translate("Name low-high", "Name low-high") </a></li> 188 <li><a data-sortby="Name" data-sort="desc" onclick="Facets.Sorting(this, '@productCatalogId');" class="pill-left" data-checked="">@Translate("Name high-low", "Price high-low") </a></li> 189 </ul> 190 </div> 191 192 <div class="pull-right text-right hidden-sm"> 193 <button class="btn product-list-header__view-btn" onclick="Dynamo.UpdateTemplate('Products', 'productItem')"><i class="fa fa-list-ul"></i></button> 194 <button class="btn product-list-header__view-btn" onclick="Dynamo.UpdateTemplate('Products', 'productGridItem')"><i class="fa fa-th"></i></button> 195 </div> 196 <div class="sorting col-xs-12 text-center visible-xs"> 197 198 </div> 199 </div> 200 <div class="col-sm-12 container-priducts"> 201 <div id="SelectedFilter" class="facet-options selected-option text-left"></div> 202 <div id="RemoveFilters" class="text-left remove-all"></div> 203 <div id="Products" data-template="productItem" data-save-cookie="true"></div> 204 205 <div class="pull-left show-paging"> 206 @Translate("Showing page", "Showing page") data.currentPage @Translate("of", "of") data.totalPages 207 </div> 208 <div class="pull-right show-paging"> 209 <ul class="pager" id="Pagination" data-template="DotsPages"></ul> 210 </div> 211 </div> 212 </div> 213 <div class="productList-login col-xs-12 col-sm-6 data.hideLogin"> 214 215 <form class="form-body" method="post" action="@pageUrl"> 216 <input type="hidden" name="DWExtranetUsernameRemember" value="True" /> 217 <input type="hidden" name="DWExtranetPasswordRemember" value="True" /> 218 @if (!string.IsNullOrWhiteSpace(GetString("UserManagement:User.Login.SuccessRedirectToPage"))) 219 { 220 string redirect = GetString("UserManagement:User.Login.SuccessRedirectToPage"); 221 <input type="hidden" name="Redirect" value="@redirect" /> 222 } 223 <div class="row"> 224 <div class="col-md-3 col-sm-3 col-xs-12"> 225 <label class="control-label" for="login-username"> 226 @Translate("E-mail", "Email"): 227 </label> 228 </div> 229 <div class="col-md-9 col-sm-9 col-xs-12"> 230 @{ 231 string defname = ""; 232 233 if (string.IsNullOrWhiteSpace(GetString("Server:Request.username"))) 234 { 235 defname = GetString("Server:Request.username"); 236 } 237 } 238 <input class="form-control" type="text" id="login-username" name="username" value="@defname" /> 239 </div> 240 </div> 241 <div class="row">&nbsp;</div> 242 <div class="row"> 243 <div class="col-md-3 col-sm-3 col-xs-12"> 244 <label class="control-label" for="login-password"> 245 @Translate("Password", "Password"): 246 </label> 247 </div> 248 <div class="col-md-9 col-sm-9 col-xs-12"> 249 @{ 250 string defpass = ""; 251 252 if (string.IsNullOrWhiteSpace(GetString("Server:Request.password"))) 253 { 254 defpass = GetString("Server:Request.password"); 255 } 256 } 257 <input class="form-control" type="password" id="login-password" name="password" value="@defpass" /> 258 </div> 259 </div> 260 <div class="row">&nbsp;</div> 261 <div class="row"> 262 <div class="col-md-6 hidden-sm hidden-xs"> 263 <a class="btn btn-dw-primary pull-left" href="/Default.aspx?ID=@pageid&LoginAction=Recovery">@Translate("Forgot your password?", "Forgot your password?")</a> 264 </div> 265 <div class="col-md-6 col-sm-12 col-xs-12"> 266 <button class="btn btn-dw-primary pull-right" type="submit" name="LoginAction" value="Login">@Translate("Login", "Login")</button> 267 <div class="checkbox pull-right" style="margin-top: 6px !important"> 268 <input type="checkbox" name="Autologin" checked="checked" value="True"> @Translate("Remember me", "Remember me") &nbsp;&nbsp;&nbsp; 269 </div> 270 </div> 271 </div> 272 <div class="row">&nbsp;</div> 273 <div class="row"> 274 <div class="hidden-lg hidden-md col-sm-12 col-xs-12"> 275 <a class="btn btn-dw-primary pull-left" href="/Default.aspx?id=@pageid&LoginAction=Recovery">@Translate("Forgot your password?", "Forgot your password?")</a> 276 </div> 277 </div> 278 </form> 279 </div> 280 </script> 281 <script type="text/javascript"> 282 $('.low-to-high-selector').on("click", function () { 283 $(this).addClass('active'); 284 $('.sorting .dropdown-menu-right').slideToggle(200); 285 }); 286 287 288 $('.sorting .dropdown-menu-right').click(function () { 289 $('.low-to-high-selector').click(); 290 }); 291 </script> 292 <script id="PageButton" type="text/x-template"> 293 <li class="data.active"><a href="data.url">data.number</a></li> 294 </script> 295 296 <script id="facetGroup" type="text/x-template"> 297 <input type="checkbox" id="OptionsGroup_data.counter" class="expand-trigger hidden" checked /> 298 299 <div class="facet-group"> 300 <div class="facet-group__header">data.name <label for="OptionsGroup_data.counter" class="expand-btn collapsed"></label></div> 301 <div id="FacetOptions" class="facet-options data.selectedin collapse"></div> 302 </div> 303 </script> 304 305 <script id="CheckboxFacet" type="text/x-template"> 306 <div class="facet-option filter-option"> 307 <button type="button" class="btn btn-checkbox data.checked data.disabled data.queryParameter" data-check="data.checked" onclick="Facets.UpdateFacets(this, '@productCatalogId');" name="data.queryParameter" value="data.value" data.disabled> 308 data.name (data.count) 309 </button> 310 </div> 311 </script> 312 313 <script id="CheckFilter" type="x-template"> 314 <button type="button" class="btn btn-checkbox data.checked data.disabled " name="data.tolower" data-check="data.checked" onclick="Facets.ResetSelectedFacets(this, '@productCatalogId');" value="data.value" data.disabled> 315 data.name 316 </button> 317 </script> 318 <script id="RemoveAll" type="text/x-template"> 319 <a onclick="Facets.ResetFacets(this, '@productCatalogId');"> 320 @Translate("Remove all items", "Remove all items") 321 </a> 322 </script> 323 <script id="DotsPages" type="x-template"> 324 <li class="no-border data.prevdisplay"><a href="data.prevpagelink"><i class="fa fa-angle-left"></i></a></li> 325 <li class=" data.show"><a href="data.firstpagelink">data.firstpagenumber</a></li> 326 <li class=" data.firstdots"> data.firstdots</li> 327 <li class="looppages"> 328 <ul id="Pages"></ul> 329 </li> 330 <li class=" data.lastdots"> data.lastdots</li> 331 <li class=" data.lastsh"><a href="data.lastpagelink">data.lastpagenumber</a></li> 332 333 <li class="no-border data.nextdisplay"><a href="data.nextpagelink"><i class="fa fa-angle-right"></i></a></li> 334 </script> 335 <script id="Numbering" type="x-template"> 336 <li class=""><a href="data.pageslooplink" class="data.active">data.pagesloopnumber</a></li> 337 </script> 338 <script id="productItem" type="text/x-template"> 339 <div class="col-md-12"> 340 <div class="row product-list-item"> 341 <div class="col-xs-12 col-md-3 col-lg-3"> 342 <a href="data.link"><div class="product-list-item__image-container"><img class="img-responsive product-list-item__image center-block" src="data.image" /></div></a> 343 </div> 344 <div class="col-xs-12 col-lg-9 col-lg-9"> 345 <div class="col-md-7"> 346 <div class="customTooltip"> 347 <a href="data.link"><h2 class="product-list-item__name">data.name</h3></a> 348 <span class="customTooltiptext">data.tooltip</span> 349 </div> 350 <div id="addRemove" data-template="addRemove"></div> 351 <div class="limitedstock">data.limitedStock</div> 352 <div class="product-list-item__desc">data.description</div> 353 354 <ul class="features-list item-number productMetaInfo"> 355 <li class="features-list__item"> 356 <span class="features-list__label">Item #</span> <span class="features-list__name">data.number</span> 357 </li> 358 <li class="features-list__item"> 359 <div id="unitList" data-template="hasUnit"></div> 360 </li> 361 </ul> 362 </div> 363 <div class="col-md-5 right-col"> 364 <div class="features-list"> 365 <div class="features-list__item text-right"> 366 <div id="price" data-template="AddToCart"></div> 367 </div> 368 <div class="features-list__item text-right"> 369 <div id="AddToQuote" data-template="AddToQuote"></div> 370 </div> 371 </div> 372 </div> 373 </div> 374 </div> 375 </div> 376 </script> 377 <script id="hasUnit" type="text/x-template"> 378 <span class="features-list__label">@Translate("Unit") : </span> 379 <span class="features-list__name">data.unit</span> 380 </script> 381 <script id="addRemove" type="text/x-template"> 382 383 <div class="favListDropdown"><a class="addto" href="javascript:Dynamo.UpdateContent('productList','data.winelistRemoveLink')">data.icon data.text</a></div> 384 385 </script> 386 <script id="AddToFav" type="text/x-template"> 387 <li><a href="data.link">data.icon <span>data.name</span></a></li> 388 </script> 389 <script id="EmployeeAddToFav" type="text/x-template"> 390 <a href="data.link" class="addto">data.icon <span>data.name</span></a> 391 </script> 392 <script id="productGridItem" type="text/x-template"> 393 <div class="col-md-4 product-list-item product-list-item--grid"> 394 <div class="product-list-item--grid-cont"> 395 <a href="data.link"><div class="product-list-item__image-container"><img class="img-responsive product-list-item__image center-block" src="data.image" /></div></a> 396 <div class="row"> 397 <div class="col-md-12"> 398 <div class="customTooltip"> 399 <a href="data.link"><h2 class="product-list-item__name">data.shortname</h3><span class="read-more hidden">...</span></a> 400 <span class="customTooltiptext">data.tooltip</span> 401 </div> 402 </div> 403 <div class="col-md-12"> 404 <div id="addRemove" data-template="addRemove"></div> 405 <div class="limitedstock grid">data.limitedStock &nbsp;</div> 406 </div> 407 408 </div> 409 <div class="features-list"> 410 <div class="row productGridMetaInfo"> 411 <div class="col-xs-12"> 412 <span>Item # data.number</span> 413 </div> 414 <div class="col-xs-12"> 415 <div id="unitList" data-template="hasUnit"></div> 416 </div> 417 </div> 418 <div class="features-list__item text-right"> 419 <div id="price" data-template="AddToCart"></div> 420 </div> 421 <div class="features-list__item text-right"> 422 <div id="AddToQuote" data-template="AddToQuote"></div> 423 </div> 424 </div> 425 426 </div> 427 <div class="clearfix"></div> 428 </div> 429 </script> 430 431 <script id="SelectionOption" type="text/x-template"> 432 <option value="data.value" data-infoprice="data.price" data-infoduty="data.duty">data.name</option> 433 </script> 434 <script id="AddToCart" type="text/x-template"> 435 <div class="features-list__item"> 436 <span class="price-text features-list__name">data.value</span> 437 </div> 438 <div class="features-list form-horizontal"> 439 <span class="features-list__name customQuantity"> 440 <span class="qty pull-left">@Translate("Qty", "Qty")</span> 441 <input type="number" name="Quantity" class="form-control input-number ecommerce-quantity-input quantity" value="1" min="1" max="9999" id="quantity_data.id" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" maxlength="4"> 442 <div class="quantity-nav"> 443 <div class="quantity-button quantity-up fa fa-plus" onclick="Dynamo.UpdateQuantityUp(this)"></div> 444 <div class="quantity-button quantity-down fa fa-minus" onclick="Dynamo.UpdateQuantityDown(this)"></div> 445 </div> 446 </span> 447 <button type="button" id="CartButton_data.id" class="btn product-list-item__cart-btn pull-right" name="submit" onclick="Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');"> 448 449 <span> <i class="fa fa-shopping-cart" aria-hidden="true"></i>@Translate("Add to cart")</span> 450 </button> 451 </div> 452 </script> 453 <script id="AddToQuote" type="text/x-template"> 454 <input type="number" name="Quantity" class="form-control input-number ecommerce-quantity-input quantity hidden" value="1" min="1" max="99999" id="quantity_data.id"> 455 <button type="button" id="CartButton_data.id" class="btn product-list-item__cart-btn pull-right" name="submit" onclick="Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');"> 456 457 <span><i class="fa fa-shopping-cart" aria-hidden="true"></i> @Translate("REQUEST PRICE", "REQUEST PRICE")</span> 458 </button> 459 </script> 460 <script> 461 document.addEventListener("DOMContentLoaded", function (event) { 462 Facets.Init('@requestQuery'); 463 464 }); 465 </script> 466 } 467 } 468 469 470
box