Our Canopy Hood Products

Component Hardware has provided the Flame Gard® Canopy Hood line of products since 1968. With a focus on superior performance and safety, Component Hardware has a broad offering including grease filters, kitchen exhaust supplies, and other accessories for canopy hood applications.

Error compiling template "Designs/CHG/eCom/Productlist/GroupsFeaturedOnBrandDetailPage.cshtml"
Line 11356: The name 'GetPriceLabel' 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 2908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 3564 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 2910 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 3566 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 32 using Dna.Frontend.UI; 33 34 #line default 35 #line hidden 36 37 #line 2916 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 38 using Dna.Validation; 39 40 #line default 41 #line hidden 42 43 #line 3656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 44 using Dynamicweb.Core; 45 46 #line default 47 #line hidden 48 49 #line 2434 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 50 using System.Text; 51 52 #line default 53 #line hidden 54 55 #line 2911 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 56 using System.Web; 57 58 #line default 59 #line hidden 60 61 #line 2912 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 62 using Dna.Frontend; 63 64 #line default 65 #line hidden 66 67 #line 3565 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 68 using Dna.Frontend.Forms; 69 70 #line default 71 #line hidden 72 73 #line 2438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 74 using Dna.UrlServices; 75 76 #line default 77 #line hidden 78 79 #line 3568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 80 using Dynamicweb.Forms; 81 82 #line default 83 #line hidden 84 85 #line 19 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 86 using Dynamicweb.Content; 87 88 #line default 89 #line hidden 90 91 #line 2918 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 92 using Dynamicweb.Ecommerce; 93 94 #line default 95 #line hidden 96 97 #line 3655 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 98 using Dynamicweb.Rendering; 99 100 #line default 101 #line hidden 102 103 #line 2365 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 104 using Dynamicweb.Security.UserManagement; 105 106 #line default 107 #line hidden 108 109 #line 23 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 110 using SF.Snowball; 111 112 #line default 113 #line hidden 114 115 #line 26 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 116 using System.IO; 117 118 #line default 119 #line hidden 120 121 #line 30 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 122 using System.Text.RegularExpressions; 123 124 #line default 125 #line hidden 126 127 #line 32 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 128 using System.Collections.Specialized; 129 130 #line default 131 #line hidden 132 133 #line 2366 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 134 using Lucene.Net.Search; 135 136 #line default 137 #line hidden 138 139 #line 2915 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 140 using Dna.ImageProcessing; 141 142 #line default 143 #line hidden 144 145 #line 2920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 146 using FieldType = Dynamicweb.Forms.FieldType; 147 148 #line default 149 #line hidden 150 151 152 public class RazorEngine_503d2b6205cb44ba9db1f68aa264bf42 : RazorTemplateBase<RazorTemplateModel<Template>> { 153 154 #line hidden 155 156 #line 41 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 157 158 159 #region Url functions 160 161 public string GetCustomerCenterSortUrl(string field, string listType = "Order") 162 { 163 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 164 var sortDirectionParameter = "CCSort" + listType + paragraphId; 165 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 166 var sortDirection = Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 167 168 if (field.IsNotNullOrEmpty()) 169 { 170 return "/Default.aspx?Id=" + Pageview.Page.ID + "&" + sortFieldParameter + "=" + field + "&" + sortDirectionParameter + "=" + sortDirection; 171 } 172 173 return string.Empty; 174 } 175 176 public string GetSortFieldParameter(string key, string field = "", string listType = "Order") 177 { 178 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 179 if (key.IsNullOrEmpty()) throw new NotSupportedException("'key' is a required field"); 180 181 switch (key) 182 { 183 case "name": 184 var parameter = "CC" + listType + "ByField" + paragraphId; 185 return Sanitize.Parameter(parameter); 186 case "value": 187 if (field.IsNullOrEmpty()) return "asc"; 188 var sortDirectionParameter = "CCSort" + listType + paragraphId; 189 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 190 return Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 191 default: 192 throw new NotSupportedException(string.Format("The key '{0}' in not supported", key)); 193 } 194 } 195 196 #endregion Url functions 197 198 #region Generic functions 199 200 public static string GetAttributes(Dictionary<string, string> attributes) 201 { 202 if (attributes == null || !attributes.Any()) 203 { 204 return string.Empty; 205 } 206 207 var attributesConcat = attributes.Aggregate(string.Empty, (current, attribute) => current + GetAttribute(attribute.Key, attribute.Value)); 208 209 return attributesConcat; 210 } 211 212 public static string GetAttribute(string attributeName, string attributeValue) 213 { 214 if (attributeValue.IsNullOrEmpty() && !attributeName.Equals("value", StringComparison.InvariantCultureIgnoreCase)) return string.Empty; 215 return " " + attributeName + "=\"" + attributeValue + "\""; 216 } 217 218 #endregion Generic functions 219 220 #region Files functions 221 222 const string ImagesListTitleKey = "title"; 223 const string ImagesListImageKey = "image"; 224 225 /// <summary> 226 /// Gets the list of files from a folder. 227 /// </summary> 228 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType.</return> 229 public static List<Tuple<string,string,FileType>> GetFilesInFolder(string defaultFile, string searchPattern, string fileTitle = "", bool addDefaultFile = true) 230 { 231 var files = new List<Tuple<string,string,FileType>>(); 232 var mapPath = HttpContext.Current.Server.MapPath(defaultFile); 233 var folderServerPath = Path.GetDirectoryName(mapPath); 234 235 if (!Directory.Exists(folderServerPath)) return files; 236 237 // Get Images from folder 238 const string temp = @"\"; 239 const string metafield = "title"; 240 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(defaultFile); 241 var title = metadata != null && metadata.GetValue(metafield).IsNotNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 242 var folderWebPath = defaultFile.Contains("/") ? defaultFile.Substring(0, defaultFile.LastIndexOf("/")) : defaultFile; 243 244 var dctImage = new Dictionary<string, string>(); 245 246 if (addDefaultFile && File.Exists(mapPath)) 247 { 248 files.Add(new Tuple<string, string, FileType>(defaultFile, title, defaultFile.GetFileType())); 249 } 250 251 foreach (var file in Directory.GetFiles(folderServerPath, searchPattern)) 252 { 253 var filePath = folderWebPath + "/" + file.Substring(file.LastIndexOf(temp, StringComparison.Ordinal) + 1, file.Length - file.LastIndexOf(temp, StringComparison.Ordinal) - 1); 254 metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(filePath); 255 title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 256 257 files.Add(new Tuple<string, string, FileType>(filePath, title, file.GetFileType())); 258 } 259 260 return files; 261 } 262 /// <summary> 263 /// Gets the list of image or HTML5 video files from a folder. 264 /// </summary> 265 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType (Image, Video).</return> 266 public static List<Tuple<string,string,FileType>> GetMediaFilesInFolder(string defaulMedia, string searchPattern, string defaultName = "", bool addDefaultMedia = true) 267 { 268 return GetFilesInFolder(defaulMedia, searchPattern, defaultName, addDefaultMedia).Where(f => f.Item3 == FileType.Image || f.Item3 == FileType.Video).ToList(); 269 } 270 271 #endregion Files functions 272 273 #region Image functions 274 275 public static Dictionary<string, string> GetWidthAndHeightFromQueryString(string imageSource, bool addSource = false) 276 { 277 var widthAndHeight = new Dictionary<string, string>(); 278 279 if(imageSource.Contains("?")){ 280 var querySubstring = imageSource.Substring(imageSource.LastIndexOf('?') + 1); 281 var queryParams = HttpUtility.HtmlDecode(querySubstring).Split('&'); 282 283 if (!queryParams.Any()) 284 return widthAndHeight; 285 286 foreach (var param in queryParams.Where(k => k.StartsWith("width") || k.StartsWith("height"))) 287 { 288 var keyValuePair = param.Split('='); 289 290 if (keyValuePair[1].IsNotNullOrEmpty()) 291 { 292 widthAndHeight.Add(keyValuePair[0].ToLower(), keyValuePair[1]); 293 } 294 } 295 } 296 else if(imageSource.Contains("width") || imageSource.Contains("height")) 297 { 298 var queryParams = imageSource.Split('/'); 299 var imgParam = string.Empty; 300 301 foreach (var param in queryParams) 302 { 303 switch (imgParam) 304 { 305 case "width": 306 widthAndHeight.Add("width", param); 307 break; 308 case "height": 309 widthAndHeight.Add("height", param); 310 break; 311 } 312 313 switch (param) 314 { 315 case "width": 316 imgParam = "width"; 317 break; 318 case "height": 319 imgParam = "height"; 320 break; 321 default: 322 imgParam = string.Empty; 323 break; 324 } 325 } 326 } 327 328 if (addSource && imageSource.IsNotNullOrEmpty()) 329 { 330 widthAndHeight.Add("srcset", imageSource); 331 } 332 333 return widthAndHeight; 334 } 335 336 #endregion Image functions 337 338 #region Form Field functions 339 340 public string GetWrapperStart(bool includeWrapper, FieldType fieldType, string htmlElement, bool isRequired = false, string fieldClass = "") 341 { 342 if (!includeWrapper || htmlElement.IsNullOrEmpty()) return string.Empty; 343 var cssClass = new List<string> {fieldType.ToString().ToLower(), fieldClass}; 344 if (isRequired) 345 { 346 cssClass.Add("mandatory"); 347 } 348 var attributes = new Dictionary<string, string>() 349 { 350 {"class", string.Join(" ", cssClass.ToArray())} 351 }; 352 return GetHtmlElement(htmlElement, attributes); 353 } 354 355 public string GetWrapperEnd(bool includeWrapper, string htmlElement) 356 { 357 return !includeWrapper ? string.Empty : GetHtmlElement(htmlElement, true); 358 } 359 360 public string GetControlWithRequiredClass(bool isRequired, string control, string cssClass = "") 361 { 362 if (!isRequired) return control; 363 var regex = new Regex(Regex.Escape(" ")); 364 return regex.Replace(control, " required class=\"mandatory "+cssClass+"\"", 1); 365 } 366 367 public static string GetAttributes(FieldSettings settings, bool returnFieldType = true) 368 { 369 var attributes = new StringBuilder(); 370 if (returnFieldType) 371 { 372 var fieldType = string.Empty; 373 switch (settings.Type) 374 { 375 case FieldType.Select: 376 break; 377 case FieldType.Checkboxlist: 378 fieldType = FieldType.Checkbox.ToString().ToLower(); 379 break; 380 case FieldType.DatetimeLocal: 381 fieldType = "datetime-local"; 382 break; 383 case FieldType.Textarea: 384 case FieldType.File: 385 case FieldType.Text: 386 case FieldType.Hidden: 387 case FieldType.Submit: 388 case FieldType.Reset: 389 case FieldType.Radio: 390 case FieldType.Checkbox: 391 case FieldType.Divider: 392 case FieldType.Image: 393 case FieldType.Password: 394 case FieldType.Textstring: 395 case FieldType.Button: 396 case FieldType.Search: 397 case FieldType.Email: 398 case FieldType.Url: 399 case FieldType.Tel: 400 case FieldType.Number: 401 case FieldType.Range: 402 case FieldType.Date: 403 case FieldType.Month: 404 case FieldType.Week: 405 case FieldType.Time: 406 case FieldType.Datetime: 407 case FieldType.Color: 408 case FieldType.Unknown: 409 default: 410 fieldType = settings.Type.ToString().ToLower(); 411 break; 412 } 413 if (!settings.Attributes.ContainsKey("type")) 414 { 415 attributes.Append(GetAttribute("type", fieldType)); 416 } 417 } 418 attributes.Append(GetAttribute("class", settings.CssClass)); 419 attributes.Append(GetAttribute("id", settings.Id)); 420 attributes.Append(GetAttribute("name", settings.SystemName)); 421 attributes.Append(GetAttribute("value", settings.Value)); 422 if (settings.Type == FieldType.Email || settings.Type == FieldType.Password || settings.Type == FieldType.Search || settings.Type == FieldType.Tel || settings.Type == FieldType.Text || settings.Type == FieldType.Url || settings.Type == FieldType.Textarea) 423 { 424 // Only works wit these types 425 attributes.Append(GetAttribute("placeholder", settings.Placeholder)); 426 } 427 if (settings.Type == FieldType.Datetime) 428 { 429 attributes.Append(GetAttribute("placeholder", "&#x1f4c5;")); 430 } 431 if (settings.Type != FieldType.Checkboxlist) 432 { 433 attributes.Append(GetAttribute("required", settings.IsRequired)); 434 } 435 attributes.Append(GetAttributes(settings.Attributes)); 436 return attributes.ToString(); 437 } 438 439 public static string GetAttributes(FieldOption optionSettings, FieldType fieldType = FieldType.Select) 440 { 441 var attributes = new StringBuilder(); 442 if (fieldType != FieldType.Select) 443 { 444 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 445 } 446 attributes.Append(GetAttribute("value", optionSettings.Value)); 447 attributes.Append(GetAttributes(optionSettings.Attributes)); 448 return attributes.ToString(); 449 } 450 451 public static string GetAttribute(string attributeName, bool attributeValue) 452 { 453 if (!attributeValue) return string.Empty; 454 return " " + attributeName + "=\"" + attributeName + "\""; 455 } 456 457 #endregion 458 459 #region Dynamicweb Template Engine Workaround 460 461 public static string GetHtmlElement(string element, bool isClosingElement = false) 462 { 463 return GetHtmlElementForDw(element, null, string.Empty, isClosingElement); 464 } 465 466 public static string GetHtmlElement(string element, Dictionary<string, string> attributes, bool isClosingElement = false) 467 { 468 return GetHtmlElementForDw(element, attributes, string.Empty, isClosingElement); 469 } 470 471 public static string GetHtmlElement(string element, string processedAttributes, bool isClosingElement = false) 472 { 473 return GetHtmlElementForDw(element, null, processedAttributes, isClosingElement); 474 } 475 476 private static string GetHtmlElementForDw(string element, Dictionary<string, string> attributes = null, string processedAttributes = "", bool isClosingElement = false) 477 { 478 var result = new StringBuilder("<"); 479 480 if (attributes != null || processedAttributes.IsNotNullOrEmpty()) 481 { 482 result.Append(element); 483 if (attributes != null) 484 { 485 result.Append(GetAttributes(attributes)); 486 } 487 else if (processedAttributes.IsNotNullOrEmpty()) 488 { 489 result.Append(processedAttributes); 490 } 491 if (isClosingElement) 492 { 493 result.Append("/"); 494 } 495 } 496 else 497 { 498 if (isClosingElement) 499 { 500 result.Append("/"); 501 } 502 result.Append(element); 503 } 504 505 result.Append(">"); 506 507 return result.ToString(); 508 } 509 510 #endregion Dynamicweb Template Engine Workaround 511 512 #line default 513 #line hidden 514 515 516 #line 399 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 517 public RazorEngine.Templating.TemplateWriter InternalRenderTabHeader(string key, string label, string cssClass = "") 518 { 519 #line default 520 #line hidden 521 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 522 523 #line 400 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 524 525 526 527 #line default 528 #line hidden 529 530 #line 401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 531 WriteTo(__razor_helper_writer, SnippetStart("tabHeaders")); 532 533 534 #line default 535 #line hidden 536 537 #line 401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 538 539 540 541 #line default 542 #line hidden 543 WriteLiteralTo(__razor_helper_writer, " <li"); 544 545 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 15640), Tuple.Create("\"", 15657) 546 547 #line 402 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 548 , Tuple.Create(Tuple.Create("", 15648), Tuple.Create<System.Object, System.Int32>(cssClass 549 550 #line default 551 #line hidden 552 , 15648), false) 553 ); 554 555 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 556 557 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 15675), Tuple.Create("\"", 15686) 558 559 #line 403 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 560 , Tuple.Create(Tuple.Create("", 15682), Tuple.Create<System.Object, System.Int32>(key 561 562 #line default 563 #line hidden 564 , 15682), false) 565 ); 566 567 WriteLiteralTo(__razor_helper_writer, ">"); 568 569 570 #line 403 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 571 WriteTo(__razor_helper_writer, label); 572 573 574 #line default 575 #line hidden 576 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 577 578 579 #line 405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 580 581 582 #line default 583 #line hidden 584 585 #line 405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 586 WriteTo(__razor_helper_writer, SnippetEnd("tabHeaders")); 587 588 589 #line default 590 #line hidden 591 592 #line 405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 593 594 595 596 #line default 597 #line hidden 598 }); 599 600 #line 406 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 601 } 602 #line default 603 #line hidden 604 605 606 #line 410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 607 public RazorEngine.Templating.TemplateWriter InternalRenderGoToFirstPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int currentPageNum = 0) 608 { 609 #line default 610 #line hidden 611 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 612 613 #line 411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 614 615 if (currentPageNum == 0) 616 { 617 currentPageNum = currentPage; 618 } 619 620 if (currentPage > 2 && numOfPages > loopPageSize && currentPageNum != 1) 621 { 622 queryParameters.Remove(pageNumQueryParameter); 623 624 625 #line default 626 #line hidden 627 628 #line 420 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 629 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, "1")); 630 631 632 #line default 633 #line hidden 634 635 #line 420 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 636 637 638 639 #line default 640 #line hidden 641 642 #line 421 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 643 WriteTo(__razor_helper_writer, InternalRenderEllipsis()); 644 645 646 #line default 647 #line hidden 648 649 #line 421 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 650 651 } 652 653 654 #line default 655 #line hidden 656 }); 657 658 #line 423 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 659 } 660 #line default 661 #line hidden 662 663 664 #line 425 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 665 public RazorEngine.Templating.TemplateWriter InternalRenderGoToLastPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int endPage) 666 { 667 #line default 668 #line hidden 669 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 670 671 #line 426 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 672 673 if (currentPage < numOfPages - 1 && numOfPages > loopPageSize && endPage != numOfPages) 674 { 675 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, numOfPages.ToString()); 676 677 678 #line default 679 #line hidden 680 681 #line 430 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 682 WriteTo(__razor_helper_writer, InternalRenderEllipsis()); 683 684 685 #line default 686 #line hidden 687 688 #line 430 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 689 690 691 692 #line default 693 #line hidden 694 695 #line 431 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 696 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, numOfPages.ToString())); 697 698 699 #line default 700 #line hidden 701 702 #line 431 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 703 704 } 705 706 707 #line default 708 #line hidden 709 }); 710 711 #line 433 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 712 } 713 #line default 714 #line hidden 715 716 717 #line 435 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 718 public RazorEngine.Templating.TemplateWriter InternalRenderPageItem(NameValueCollection queryParameters, string pageNum, string cssClass = "") 719 { 720 #line default 721 #line hidden 722 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 723 724 #line 436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 725 726 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 727 var href = Dna.UrlServices.Helpers.BuildUri(url, queryParameters); 728 729 730 731 #line default 732 #line hidden 733 WriteLiteralTo(__razor_helper_writer, " <li"); 734 735 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 17222), Tuple.Create("\"", 17239) 736 737 #line 440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 738 , Tuple.Create(Tuple.Create("", 17230), Tuple.Create<System.Object, System.Int32>(cssClass 739 740 #line default 741 #line hidden 742 , 17230), false) 743 ); 744 745 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 746 747 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17257), Tuple.Create("\"", 17282) 748 749 #line 441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 750 , Tuple.Create(Tuple.Create("", 17264), Tuple.Create<System.Object, System.Int32>(href.PathAndQuery 751 752 #line default 753 #line hidden 754 , 17264), false) 755 ); 756 757 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 758 759 WriteLiteralTo(__razor_helper_writer, " "); 760 761 762 #line 442 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 763 WriteTo(__razor_helper_writer, pageNum); 764 765 766 #line default 767 #line hidden 768 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 769 770 771 #line 445 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 772 773 774 #line default 775 #line hidden 776 }); 777 778 #line 445 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 779 } 780 #line default 781 #line hidden 782 783 784 #line 447 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 785 public RazorEngine.Templating.TemplateWriter InternalRenderPageItem(string href, string label, string cssPartialClass, IconPosition position) 786 { 787 #line default 788 #line hidden 789 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 790 791 #line 448 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 792 793 794 795 #line default 796 #line hidden 797 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 798 799 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17503), Tuple.Create("\"", 17515) 800 801 #line 450 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 802 , Tuple.Create(Tuple.Create("", 17510), Tuple.Create<System.Object, System.Int32>(href 803 804 #line default 805 #line hidden 806 , 17510), false) 807 ); 808 809 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 810 811 WriteLiteralTo(__razor_helper_writer, " "); 812 813 814 #line 451 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 815 WriteTo(__razor_helper_writer, RenderIcon(cssPartialClass, label, position)); 816 817 818 #line default 819 #line hidden 820 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 821 822 823 #line 454 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 824 825 826 #line default 827 #line hidden 828 }); 829 830 #line 454 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 831 } 832 #line default 833 #line hidden 834 835 836 #line 456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 837 public RazorEngine.Templating.TemplateWriter InternalRenderEllipsis() 838 { 839 #line default 840 #line hidden 841 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 842 843 #line 457 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 844 845 846 847 #line default 848 #line hidden 849 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <span>...</span>\r\n </li>\r\n"); 850 851 852 #line 461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 853 854 855 #line default 856 #line hidden 857 }); 858 859 #line 461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 860 } 861 #line default 862 #line hidden 863 864 865 #line 465 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 866 public RazorEngine.Templating.TemplateWriter InternalRenderLabel(FieldSettings settings) 867 { 868 #line default 869 #line hidden 870 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 871 872 #line 466 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 873 874 875 876 #line default 877 #line hidden 878 879 #line 467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 880 WriteTo(__razor_helper_writer, InternalRenderLabel(settings.Label, settings.TranslateKeyForLabel)); 881 882 883 #line default 884 #line hidden 885 886 #line 467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 887 888 889 890 #line default 891 #line hidden 892 }); 893 894 #line 468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 895 } 896 #line default 897 #line hidden 898 899 900 #line 470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 901 public RazorEngine.Templating.TemplateWriter InternalRenderLabel(string label, string translateKey = "") 902 { 903 #line default 904 #line hidden 905 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 906 907 #line 471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 908 909 910 911 #line default 912 #line hidden 913 914 #line 472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 915 WriteTo(__razor_helper_writer, translateKey.IsNotNullOrEmpty() ? Translate(translateKey) : label); 916 917 918 #line default 919 #line hidden 920 921 #line 472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 922 923 924 925 #line default 926 #line hidden 927 }); 928 929 #line 473 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 930 } 931 #line default 932 #line hidden 933 934 935 #line 475 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 936 public RazorEngine.Templating.TemplateWriter InternalRenderCheckboxField(FieldSettings settings) 937 { 938 #line default 939 #line hidden 940 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 941 942 #line 476 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 943 944 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 945 { 946 settings.Assert(FieldType.Checkbox); 947 if (settings.IsChecked && !settings.Attributes.ContainsKey("checked")) 948 { 949 settings.Attributes.Add("checked", "checked"); 950 } 951 952 953 954 #line default 955 #line hidden 956 957 #line 485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 958 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings, false)); 959 960 961 #line default 962 #line hidden 963 964 #line 485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 965 966 967 if (settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) 968 { 969 var possibleClasses = new List<string> {settings.Type.ToString().ToLower(), settings.LabelCssClass}; 970 var cssClass = string.Join(" ", possibleClasses.Where(s => s.IsNotNullOrEmpty())); 971 972 if (!settings.LabelAttributes.ContainsKey("class")) 973 { 974 settings.LabelAttributes.Add("class", cssClass); 975 } 976 else 977 { 978 settings.LabelAttributes["class"] = string.Concat(cssClass, " ", settings.LabelAttributes["class"]); 979 } 980 if (!settings.LabelAttributes.ContainsKey("for")) 981 { 982 settings.LabelAttributes.Add("for", settings.Id); 983 } 984 985 986 987 #line default 988 #line hidden 989 990 #line 505 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 991 WriteTo(__razor_helper_writer, GetHtmlElement("label", settings.LabelAttributes)); 992 993 994 #line default 995 #line hidden 996 997 #line 505 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 998 999 1000 1001 #line default 1002 #line hidden 1003 1004 #line 506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1005 WriteTo(__razor_helper_writer, settings.Control.IsNotNullOrEmpty() ? settings.Control : GetHtmlElement("input", GetAttributes(settings))); 1006 1007 1008 #line default 1009 #line hidden 1010 1011 #line 506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1012 1013 1014 1015 #line default 1016 #line hidden 1017 WriteLiteralTo(__razor_helper_writer, " <span>\r\n"); 1018 1019 WriteLiteralTo(__razor_helper_writer, " "); 1020 1021 1022 #line 508 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1023 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 1024 1025 1026 #line default 1027 #line hidden 1028 WriteLiteralTo(__razor_helper_writer, " \r\n </span>\r\n"); 1029 1030 1031 #line 510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1032 1033 1034 #line default 1035 #line hidden 1036 1037 #line 510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1038 WriteTo(__razor_helper_writer, GetHtmlElement("label", true)); 1039 1040 1041 #line default 1042 #line hidden 1043 1044 #line 510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1045 1046 } 1047 else 1048 { 1049 if (settings.Control.IsNotNullOrEmpty()) 1050 { 1051 1052 1053 #line default 1054 #line hidden 1055 1056 #line 516 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1057 WriteTo(__razor_helper_writer, settings.Control); 1058 1059 1060 #line default 1061 #line hidden 1062 1063 #line 516 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1064 1065 } 1066 else 1067 { 1068 1069 1070 #line default 1071 #line hidden 1072 1073 #line 520 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1074 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 1075 1076 1077 #line default 1078 #line hidden 1079 1080 #line 520 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1081 1082 } 1083 } 1084 1085 1086 1087 #line default 1088 #line hidden 1089 1090 #line 524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1091 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1092 1093 1094 #line default 1095 #line hidden 1096 1097 #line 524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1098 1099 } 1100 1101 1102 #line default 1103 #line hidden 1104 }); 1105 1106 #line 526 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1107 } 1108 #line default 1109 #line hidden 1110 1111 1112 #line 528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1113 public RazorEngine.Templating.TemplateWriter InternalRenderTextareaField(FieldSettings settings) 1114 { 1115 #line default 1116 #line hidden 1117 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1118 1119 #line 529 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1120 1121 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 1122 { 1123 settings.Assert(FieldType.Textarea); 1124 1125 1126 1127 #line default 1128 #line hidden 1129 1130 #line 534 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1131 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 1132 1133 1134 #line default 1135 #line hidden 1136 1137 #line 534 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1138 1139 1140 if (settings.Control.IsNotNullOrEmpty()) 1141 { 1142 1143 1144 #line default 1145 #line hidden 1146 1147 #line 538 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1148 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 1149 1150 1151 #line default 1152 #line hidden 1153 1154 #line 538 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1155 1156 } 1157 else 1158 { 1159 if (!settings.Attributes.ContainsKey("rows")) 1160 { 1161 settings.Attributes.Add("rows", "6"); 1162 } 1163 if (!settings.Attributes.ContainsKey("cols")) 1164 { 1165 settings.Attributes.Add("cols", "50"); 1166 } 1167 1168 1169 #line default 1170 #line hidden 1171 1172 #line 550 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1173 WriteTo(__razor_helper_writer, GetHtmlElement("textarea", GetAttributes(settings, false))); 1174 1175 1176 #line default 1177 #line hidden 1178 1179 #line 550 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1180 1181 1182 1183 #line default 1184 #line hidden 1185 1186 #line 551 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1187 WriteTo(__razor_helper_writer, GetHtmlElement("textarea", true)); 1188 1189 1190 #line default 1191 #line hidden 1192 1193 #line 551 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1194 1195 } 1196 1197 1198 1199 #line default 1200 #line hidden 1201 1202 #line 554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1203 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1204 1205 1206 #line default 1207 #line hidden 1208 1209 #line 554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1210 1211 } 1212 1213 1214 #line default 1215 #line hidden 1216 }); 1217 1218 #line 556 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1219 } 1220 #line default 1221 #line hidden 1222 1223 1224 #line 558 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1225 public RazorEngine.Templating.TemplateWriter InternalRenderRadioOrCheckboxListField(FieldSettings settings) 1226 { 1227 #line default 1228 #line hidden 1229 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1230 1231 #line 559 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1232 1233 if (settings.LoopOptions.Any() || settings.FieldOptionsList.Any() || settings.Control.IsNotNullOrEmpty()) 1234 { 1235 var optionCount = 0; 1236 1237 settings.Assert(FieldType.Radio); 1238 1239 1240 1241 #line default 1242 #line hidden 1243 1244 #line 566 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1245 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 1246 1247 1248 #line default 1249 #line hidden 1250 1251 #line 566 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1252 1253 1254 if (settings.LoopOptions.Any()) 1255 { 1256 settings.CssClass = settings.Type.ToString().ToLower(); 1257 foreach (var option in settings.LoopOptions) 1258 { 1259 optionCount++; 1260 if (settings.Id.IsNullOrEmpty() || settings.Id == settings.SystemName) 1261 { 1262 settings.Id = settings.SystemName + optionCount; 1263 } 1264 1265 1266 #line default 1267 #line hidden 1268 WriteLiteralTo(__razor_helper_writer, " <label"); 1269 1270 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 22105), Tuple.Create("\"", 22131) 1271 1272 #line 578 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1273 , Tuple.Create(Tuple.Create("", 22113), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1274 1275 #line default 1276 #line hidden 1277 , 22113), false) 1278 ); 1279 1280 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 22132), Tuple.Create("\"", 22150) 1281 1282 #line 578 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1283 , Tuple.Create(Tuple.Create("", 22138), Tuple.Create<System.Object, System.Int32>(settings.Id 1284 1285 #line default 1286 #line hidden 1287 , 22138), false) 1288 ); 1289 1290 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1291 1292 WriteLiteralTo(__razor_helper_writer, " "); 1293 1294 1295 #line 579 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1296 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 1297 1298 1299 #line default 1300 #line hidden 1301 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 1302 1303 1304 #line 580 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1305 WriteTo(__razor_helper_writer, option.GetString(settings.LabelLoopTag)); 1306 1307 1308 #line default 1309 #line hidden 1310 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 1311 1312 1313 #line 582 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1314 } 1315 } 1316 else if (settings.FieldOptionsList.Any()) 1317 { 1318 foreach (var option in settings.FieldOptionsList) 1319 { 1320 optionCount++; 1321 if (option.Id.IsNullOrEmpty() || option.Id == option.SystemName) 1322 { 1323 option.Id = settings.SystemName + optionCount; 1324 } 1325 option.CssClass = settings.Type.ToString().ToLower(); 1326 1327 1328 1329 #line default 1330 #line hidden 1331 WriteLiteralTo(__razor_helper_writer, " <label"); 1332 1333 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 22897), Tuple.Create("\"", 22921) 1334 1335 #line 595 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1336 , Tuple.Create(Tuple.Create("", 22905), Tuple.Create<System.Object, System.Int32>(option.CssClass 1337 1338 #line default 1339 #line hidden 1340 , 22905), false) 1341 ); 1342 1343 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 22922), Tuple.Create("\"", 22938) 1344 1345 #line 595 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1346 , Tuple.Create(Tuple.Create("", 22928), Tuple.Create<System.Object, System.Int32>(option.Id 1347 1348 #line default 1349 #line hidden 1350 , 22928), false) 1351 ); 1352 1353 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1354 1355 WriteLiteralTo(__razor_helper_writer, " "); 1356 1357 1358 #line 596 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1359 WriteTo(__razor_helper_writer, InternalRenderInputOptionField("input", option, settings.Type)); 1360 1361 1362 #line default 1363 #line hidden 1364 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 1365 1366 1367 #line 597 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1368 WriteTo(__razor_helper_writer, option.Label); 1369 1370 1371 #line default 1372 #line hidden 1373 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 1374 1375 1376 #line 599 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1377 } 1378 } 1379 else if (settings.Control.IsNotNullOrEmpty()) 1380 { 1381 1382 1383 #line default 1384 #line hidden 1385 1386 #line 603 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1387 WriteTo(__razor_helper_writer, settings.Control); 1388 1389 1390 #line default 1391 #line hidden 1392 1393 #line 603 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1394 1395 } 1396 1397 1398 1399 #line default 1400 #line hidden 1401 1402 #line 606 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1403 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1404 1405 1406 #line default 1407 #line hidden 1408 1409 #line 606 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1410 1411 } 1412 1413 1414 #line default 1415 #line hidden 1416 }); 1417 1418 #line 608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1419 } 1420 #line default 1421 #line hidden 1422 1423 1424 #line 610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1425 public RazorEngine.Templating.TemplateWriter InternalRenderInputField(FieldSettings settings) 1426 { 1427 #line default 1428 #line hidden 1429 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1430 1431 #line 611 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1432 1433 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 1434 { 1435 settings.Assert(FieldType.Text); 1436 1437 1438 1439 #line default 1440 #line hidden 1441 1442 #line 616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1443 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 1444 1445 1446 #line default 1447 #line hidden 1448 1449 #line 616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1450 1451 1452 if (settings.Control.IsNotNullOrEmpty()) 1453 { 1454 var type = settings.Type.ToString().ToLower(); 1455 if (settings.Type == FieldType.DatetimeLocal) 1456 { 1457 type = "datetime-local"; 1458 } 1459 1460 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 1461 if (settings.Type == FieldType.Password) 1462 { 1463 settings.Control = settings.Control.Replace("input ", "input autocomplete=\"off\" "); 1464 } 1465 1466 1467 #line default 1468 #line hidden 1469 1470 #line 631 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1471 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 1472 1473 1474 #line default 1475 #line hidden 1476 1477 #line 631 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1478 1479 } 1480 else 1481 { 1482 if (settings.Type == FieldType.Password && !settings.Attributes.ContainsKey("autocomplete")) 1483 { 1484 settings.Attributes.Add("autocomplete", "off"); 1485 } 1486 1487 1488 #line default 1489 #line hidden 1490 1491 #line 639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1492 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 1493 1494 1495 #line default 1496 #line hidden 1497 1498 #line 639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1499 1500 } 1501 1502 1503 1504 #line default 1505 #line hidden 1506 1507 #line 642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1508 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1509 1510 1511 #line default 1512 #line hidden 1513 1514 #line 642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1515 1516 } 1517 1518 1519 #line default 1520 #line hidden 1521 }); 1522 1523 #line 644 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1524 } 1525 #line default 1526 #line hidden 1527 1528 1529 #line 646 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1530 public RazorEngine.Templating.TemplateWriter InternalRenderDateTimeField(FieldSettings settings) 1531 { 1532 #line default 1533 #line hidden 1534 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1535 1536 #line 647 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1537 1538 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 1539 { 1540 settings.Assert(FieldType.Datetime); 1541 settings.Attributes = new Dictionary<string, string> 1542 { 1543 {"placeholder", "&#xf073;"} 1544 }; 1545 1546 1547 1548 #line default 1549 #line hidden 1550 1551 #line 656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1552 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 1553 1554 1555 #line default 1556 #line hidden 1557 1558 #line 656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1559 1560 1561 if (settings.Control.IsNotNullOrEmpty()) 1562 { 1563 var type = settings.Type.ToString().ToLower(); 1564 1565 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 1566 1567 1568 #line default 1569 #line hidden 1570 1571 #line 663 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1572 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 1573 1574 1575 #line default 1576 #line hidden 1577 1578 #line 663 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1579 1580 } 1581 else 1582 { 1583 1584 1585 #line default 1586 #line hidden 1587 1588 #line 667 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1589 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 1590 1591 1592 #line default 1593 #line hidden 1594 1595 #line 667 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1596 1597 } 1598 1599 1600 1601 #line default 1602 #line hidden 1603 1604 #line 670 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1605 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1606 1607 1608 #line default 1609 #line hidden 1610 1611 #line 670 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1612 1613 } 1614 1615 1616 #line default 1617 #line hidden 1618 }); 1619 1620 #line 672 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1621 } 1622 #line default 1623 #line hidden 1624 1625 1626 #line 674 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1627 public RazorEngine.Templating.TemplateWriter InternalRenderSelectField(FieldSettings settings) 1628 { 1629 #line default 1630 #line hidden 1631 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1632 1633 #line 675 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1634 1635 const int limit = 10; 1636 1637 settings.Assert(FieldType.Select); 1638 1639 if (settings.CssClass.ToLower().Contains("country")) 1640 { 1641 1642 1643 #line default 1644 #line hidden 1645 1646 #line 682 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1647 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, true, settings.CssClass.ToLower().Contains("highlights"))); 1648 1649 1650 #line default 1651 #line hidden 1652 1653 #line 682 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1654 1655 } 1656 else 1657 { 1658 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty() || settings.FieldOptionsList.Any() || settings.ValuesList.Any()) 1659 { 1660 1661 1662 #line default 1663 #line hidden 1664 1665 #line 688 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1666 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 1667 1668 1669 #line default 1670 #line hidden 1671 1672 #line 688 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1673 1674 1675 var optionsCount = 0; 1676 if (settings.Control.IsNotNullOrEmpty()) 1677 { 1678 optionsCount = Regex.Matches(settings.Control, "option ").Count; 1679 1680 if (optionsCount > limit || optionsCount == 0) 1681 { 1682 settings.Control = settings.Control.Replace("select ", "select data-live-search=\"true\" "); 1683 } 1684 1685 1686 #line default 1687 #line hidden 1688 1689 #line 699 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1690 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control, settings.CssClass)); 1691 1692 1693 #line default 1694 #line hidden 1695 1696 #line 699 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1697 1698 } 1699 else 1700 { 1701 optionsCount = settings.FieldOptionsList.Count + settings.ValuesList.Count; 1702 1703 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && (optionsCount > limit || optionsCount == 0)) 1704 { 1705 settings.Attributes.Add("data-live-search", "true"); 1706 } 1707 1708 1709 #line default 1710 #line hidden 1711 1712 #line 709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1713 WriteTo(__razor_helper_writer, GetHtmlElement("select", GetAttributes(settings, false))); 1714 1715 1716 #line default 1717 #line hidden 1718 1719 #line 709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1720 1721 1722 if (settings.FirstHardcodedOptionLabel.IsNotNullOrEmpty()) 1723 { 1724 1725 1726 #line default 1727 #line hidden 1728 1729 #line 713 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1730 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected))); 1731 1732 1733 #line default 1734 #line hidden 1735 1736 #line 713 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1737 1738 } 1739 1740 foreach (var option in settings.FieldOptionsList) 1741 { 1742 1743 1744 #line default 1745 #line hidden 1746 1747 #line 718 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1748 WriteTo(__razor_helper_writer, InternalRenderOption(option)); 1749 1750 1751 #line default 1752 #line hidden 1753 1754 #line 718 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1755 1756 } 1757 foreach (var option in settings.ValuesList) 1758 { 1759 1760 1761 #line default 1762 #line hidden 1763 1764 #line 722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1765 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(option, option))); 1766 1767 1768 #line default 1769 #line hidden 1770 1771 #line 722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1772 1773 } 1774 1775 1776 1777 #line default 1778 #line hidden 1779 1780 #line 725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1781 WriteTo(__razor_helper_writer, GetHtmlElement("select", false)); 1782 1783 1784 #line default 1785 #line hidden 1786 1787 #line 725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1788 1789 } 1790 1791 1792 1793 #line default 1794 #line hidden 1795 1796 #line 728 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1797 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1798 1799 1800 #line default 1801 #line hidden 1802 1803 #line 728 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1804 1805 } 1806 } 1807 1808 1809 #line default 1810 #line hidden 1811 }); 1812 1813 #line 731 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1814 } 1815 #line default 1816 #line hidden 1817 1818 1819 #line 733 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1820 public RazorEngine.Templating.TemplateWriter InternalRenderButtonField(FieldSettings settings) 1821 { 1822 #line default 1823 #line hidden 1824 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1825 1826 #line 734 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1827 1828 settings.Assert(FieldType.Button); 1829 1830 1831 1832 #line default 1833 #line hidden 1834 1835 #line 737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1836 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings, false)); 1837 1838 1839 #line default 1840 #line hidden 1841 1842 #line 737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1843 1844 1845 if (settings.Control.IsNotNullOrEmpty()) 1846 { 1847 var controlOutput = settings.Control; 1848 switch (settings.Type) 1849 { 1850 case FieldType.Submit: 1851 controlOutput = controlOutput.Replace("input ", "input class='btn btn-default'"); 1852 break; 1853 case FieldType.Reset: 1854 controlOutput = controlOutput.Replace("input ", "input class='btn btn-bg2'"); 1855 break; 1856 case FieldType.Button: 1857 case FieldType.Textarea: 1858 case FieldType.File: 1859 case FieldType.Text: 1860 case FieldType.Hidden: 1861 case FieldType.Radio: 1862 case FieldType.Checkbox: 1863 case FieldType.Select: 1864 case FieldType.Checkboxlist: 1865 case FieldType.Divider: 1866 case FieldType.Image: 1867 case FieldType.Password: 1868 case FieldType.Textstring: 1869 case FieldType.Search: 1870 case FieldType.Email: 1871 case FieldType.Url: 1872 case FieldType.Tel: 1873 case FieldType.Number: 1874 case FieldType.Range: 1875 case FieldType.Date: 1876 case FieldType.Month: 1877 case FieldType.Week: 1878 case FieldType.Time: 1879 case FieldType.Datetime: 1880 case FieldType.DatetimeLocal: 1881 case FieldType.Color: 1882 case FieldType.Unknown: 1883 default: 1884 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 1885 } 1886 1887 1888 #line default 1889 #line hidden 1890 1891 #line 780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1892 WriteTo(__razor_helper_writer, controlOutput); 1893 1894 1895 #line default 1896 #line hidden 1897 1898 #line 780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1899 1900 } 1901 else 1902 { 1903 settings.CssClass = settings.CssClass.IsNullOrEmpty() ? "btn btn-default" : "btn " + settings.CssClass; 1904 settings.Value = settings.Value.IsNotNullOrEmpty() ? settings.Value : settings.Label; 1905 if (settings.Type == FieldType.Button) 1906 { 1907 if (settings.Label.IsNullOrEmpty()) 1908 { 1909 settings.Label = Translate("Button"); 1910 } 1911 1912 1913 #line default 1914 #line hidden 1915 1916 #line 792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1917 WriteTo(__razor_helper_writer, GetHtmlElement("button", GetAttributes(settings))); 1918 1919 1920 #line default 1921 #line hidden 1922 1923 #line 792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1924 1925 1926 1927 #line default 1928 #line hidden 1929 1930 #line 793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1931 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 1932 1933 1934 #line default 1935 #line hidden 1936 1937 #line 793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1938 1939 1940 1941 #line default 1942 #line hidden 1943 1944 #line 794 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1945 WriteTo(__razor_helper_writer, GetHtmlElement("button", true)); 1946 1947 1948 #line default 1949 #line hidden 1950 1951 #line 794 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1952 1953 } 1954 else 1955 { 1956 1957 1958 #line default 1959 #line hidden 1960 1961 #line 798 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1962 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 1963 1964 1965 #line default 1966 #line hidden 1967 1968 #line 798 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1969 1970 } 1971 } 1972 1973 1974 1975 #line default 1976 #line hidden 1977 1978 #line 802 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1979 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 1980 1981 1982 #line default 1983 #line hidden 1984 1985 #line 802 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1986 1987 1988 1989 #line default 1990 #line hidden 1991 }); 1992 1993 #line 803 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 1994 } 1995 #line default 1996 #line hidden 1997 1998 1999 #line 807 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2000 public RazorEngine.Templating.TemplateWriter InternalRenderTextStringField(FieldSettings settings) 2001 { 2002 #line default 2003 #line hidden 2004 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2005 2006 #line 808 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2007 2008 settings.Assert(FieldType.Textstring); 2009 2010 if (settings.Description.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 2011 { 2012 if (settings.Control.IsNotNullOrEmpty()) 2013 { 2014 2015 2016 #line default 2017 #line hidden 2018 2019 #line 815 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2020 WriteTo(__razor_helper_writer, settings.Control); 2021 2022 2023 #line default 2024 #line hidden 2025 2026 #line 815 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2027 2028 } 2029 else 2030 { 2031 2032 2033 #line default 2034 #line hidden 2035 WriteLiteralTo(__razor_helper_writer, " <p"); 2036 2037 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 2038 2039 WriteLiteralTo(__razor_helper_writer, ">"); 2040 2041 2042 #line 819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2043 WriteTo(__razor_helper_writer, settings.Description); 2044 2045 2046 #line default 2047 #line hidden 2048 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 2049 2050 2051 #line 820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2052 } 2053 } 2054 2055 2056 #line default 2057 #line hidden 2058 }); 2059 2060 #line 822 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2061 } 2062 #line default 2063 #line hidden 2064 2065 2066 #line 824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2067 public RazorEngine.Templating.TemplateWriter InternalRenderImageField(FieldSettings settings) 2068 { 2069 #line default 2070 #line hidden 2071 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2072 2073 #line 825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2074 2075 settings.Assert(FieldType.Image); 2076 2077 if (settings.Control.IsNotNullOrEmpty()) 2078 { 2079 2080 2081 #line default 2082 #line hidden 2083 2084 #line 830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2085 WriteTo(__razor_helper_writer, settings.Control); 2086 2087 2088 #line default 2089 #line hidden 2090 2091 #line 830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2092 2093 } 2094 2095 2096 #line default 2097 #line hidden 2098 }); 2099 2100 #line 832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2101 } 2102 #line default 2103 #line hidden 2104 2105 2106 #line 834 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2107 public RazorEngine.Templating.TemplateWriter InternalRenderDividerField(FieldSettings settings) 2108 { 2109 #line default 2110 #line hidden 2111 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2112 2113 #line 835 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2114 2115 settings.Assert(FieldType.Divider); 2116 2117 2118 2119 #line default 2120 #line hidden 2121 WriteLiteralTo(__razor_helper_writer, " <hr"); 2122 2123 WriteLiteralTo(__razor_helper_writer, " class=\"divider\""); 2124 2125 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 2126 2127 2128 #line 839 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2129 2130 2131 #line default 2132 #line hidden 2133 }); 2134 2135 #line 839 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2136 } 2137 #line default 2138 #line hidden 2139 2140 2141 #line 841 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2142 public RazorEngine.Templating.TemplateWriter InternalRenderInputOptionField(string htmlElement, FieldOption optionSettings, FieldType type = FieldType.Radio) 2143 { 2144 #line default 2145 #line hidden 2146 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2147 2148 #line 842 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2149 2150 var fieldType = type == FieldType.Checkboxlist ? FieldType.Checkbox.ToString().ToLower() : type.ToString().ToLower(); 2151 var attributes = new StringBuilder(GetAttribute("type", fieldType)); 2152 attributes.Append(GetAttribute("value", optionSettings.Value)); 2153 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 2154 attributes.Append(optionSettings.Id.IsNotNullOrEmpty() ? GetAttribute("id", optionSettings.Id) : optionSettings.SystemName); 2155 attributes.Append(GetAttributes(optionSettings.Attributes)); 2156 2157 if (optionSettings.IsSelected) 2158 { 2159 attributes.Append(GetAttribute("checked", "checked")); 2160 } 2161 if (optionSettings.IsDisabled) 2162 { 2163 attributes.Append(GetAttribute("disabled", "disabled")); 2164 } 2165 2166 2167 2168 #line default 2169 #line hidden 2170 2171 #line 859 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2172 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, attributes.ToString())); 2173 2174 2175 #line default 2176 #line hidden 2177 2178 #line 859 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2179 2180 2181 2182 #line default 2183 #line hidden 2184 }); 2185 2186 #line 860 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2187 } 2188 #line default 2189 #line hidden 2190 2191 2192 #line 862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2193 public RazorEngine.Templating.TemplateWriter InternalRenderOption(FieldOption optionSettings) 2194 { 2195 #line default 2196 #line hidden 2197 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2198 2199 #line 863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2200 2201 var selected = optionSettings.IsSelected ? " selected" : string.Empty; 2202 var disabled = optionSettings.IsDisabled ? " disabled" : string.Empty; 2203 var readOnly = optionSettings.IsReadOnly ? " readonly" : string.Empty; 2204 var attributes = GetAttributes(optionSettings); 2205 2206 2207 2208 #line default 2209 #line hidden 2210 2211 #line 869 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2212 WriteTo(__razor_helper_writer, GetHtmlElement("option", attributes + selected + disabled + readOnly)); 2213 2214 2215 #line default 2216 #line hidden 2217 2218 #line 869 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2219 2220 2221 2222 #line default 2223 #line hidden 2224 2225 #line 870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2226 WriteTo(__razor_helper_writer, InternalRenderLabel(optionSettings.Label, optionSettings.TranslateKeyForLabel)); 2227 2228 2229 #line default 2230 #line hidden 2231 2232 #line 870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2233 2234 2235 2236 #line default 2237 #line hidden 2238 2239 #line 871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2240 WriteTo(__razor_helper_writer, GetHtmlElement("option", true)); 2241 2242 2243 #line default 2244 #line hidden 2245 2246 #line 871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2247 2248 2249 2250 #line default 2251 #line hidden 2252 }); 2253 2254 #line 872 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2255 } 2256 #line default 2257 #line hidden 2258 2259 2260 #line 874 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2261 public RazorEngine.Templating.TemplateWriter InternalRenderFieldHeader(FieldSettings settings, bool renderLabel = true) 2262 { 2263 #line default 2264 #line hidden 2265 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2266 2267 #line 875 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2268 2269 2270 2271 #line default 2272 #line hidden 2273 2274 #line 876 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2275 WriteTo(__razor_helper_writer, GetWrapperStart(settings.IncludeWrapper, settings.Type, settings.WrapperElement, settings.IsRequired, settings.WrapperCssClass)); 2276 2277 2278 #line default 2279 #line hidden 2280 2281 #line 876 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2282 2283 if ((settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) && renderLabel) 2284 { 2285 if (settings.Type == FieldType.Checkboxlist || settings.Type == FieldType.Radio) 2286 { 2287 2288 2289 #line default 2290 #line hidden 2291 WriteLiteralTo(__razor_helper_writer, " <label"); 2292 2293 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 34188), Tuple.Create("\"", 34230) 2294 , Tuple.Create(Tuple.Create("", 34196), Tuple.Create("form-label", 34196), true) 2295 2296 #line 881 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2297 , Tuple.Create(Tuple.Create(" ", 34206), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 2298 2299 #line default 2300 #line hidden 2301 , 34207), false) 2302 ); 2303 2304 WriteLiteralTo(__razor_helper_writer, ">"); 2305 2306 2307 #line 881 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2308 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 2309 2310 2311 #line default 2312 #line hidden 2313 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2314 2315 2316 #line 882 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2317 } 2318 else 2319 { 2320 2321 2322 #line default 2323 #line hidden 2324 WriteLiteralTo(__razor_helper_writer, " <label"); 2325 2326 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 34342), Tuple.Create("\"", 34368) 2327 2328 #line 885 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2329 , Tuple.Create(Tuple.Create("", 34348), Tuple.Create<System.Object, System.Int32>(settings.SystemName 2330 2331 #line default 2332 #line hidden 2333 , 34348), false) 2334 ); 2335 2336 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 34369), Tuple.Create("\"", 34411) 2337 , Tuple.Create(Tuple.Create("", 34377), Tuple.Create("form-label", 34377), true) 2338 2339 #line 885 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2340 , Tuple.Create(Tuple.Create(" ", 34387), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 2341 2342 #line default 2343 #line hidden 2344 , 34388), false) 2345 ); 2346 2347 WriteLiteralTo(__razor_helper_writer, ">"); 2348 2349 2350 #line 885 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2351 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 2352 2353 2354 #line default 2355 #line hidden 2356 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2357 2358 2359 #line 886 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2360 } 2361 2362 } 2363 if (settings.Prepend.IsNotNullOrEmpty()) 2364 { 2365 2366 2367 #line default 2368 #line hidden 2369 WriteLiteralTo(__razor_helper_writer, " <div"); 2370 2371 WriteLiteralTo(__razor_helper_writer, " class=\"fieldPrepend input-group-addon\""); 2372 2373 WriteLiteralTo(__razor_helper_writer, ">"); 2374 2375 2376 #line 891 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2377 WriteTo(__razor_helper_writer, settings.Prepend); 2378 2379 2380 #line default 2381 #line hidden 2382 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2383 2384 2385 #line 892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2386 } 2387 if (settings.IncludeFieldWrapper) 2388 { 2389 2390 2391 #line default 2392 #line hidden 2393 WriteLiteralTo(__razor_helper_writer, " "); 2394 2395 WriteLiteralTo(__razor_helper_writer, "<div class=\"fieldContainer hidden "); 2396 2397 2398 #line 895 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2399 WriteTo(__razor_helper_writer, settings.FieldWrapperCssClass); 2400 2401 2402 #line default 2403 #line hidden 2404 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2405 2406 2407 #line 896 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2408 } 2409 2410 2411 #line default 2412 #line hidden 2413 }); 2414 2415 #line 897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2416 } 2417 #line default 2418 #line hidden 2419 2420 2421 #line 899 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2422 public RazorEngine.Templating.TemplateWriter InternalRenderFieldFooter(FieldSettings settings) 2423 { 2424 #line default 2425 #line hidden 2426 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2427 2428 #line 900 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2429 2430 if (settings.Icon.IsNotNullOrEmpty()) 2431 { 2432 2433 2434 #line default 2435 #line hidden 2436 2437 #line 903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2438 WriteTo(__razor_helper_writer, RenderIcon(settings.Icon, settings.Tooltip, IconPosition.Left, true)); 2439 2440 2441 #line default 2442 #line hidden 2443 2444 #line 903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2445 2446 } 2447 if (settings.Append.IsNotNullOrEmpty()) 2448 { 2449 2450 2451 #line default 2452 #line hidden 2453 WriteLiteralTo(__razor_helper_writer, " <div"); 2454 2455 WriteLiteralTo(__razor_helper_writer, " class=\"fieldAppend input-group-addon\""); 2456 2457 WriteLiteralTo(__razor_helper_writer, ">"); 2458 2459 2460 #line 907 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2461 WriteTo(__razor_helper_writer, settings.Append); 2462 2463 2464 #line default 2465 #line hidden 2466 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2467 2468 2469 #line 908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2470 } 2471 if (settings.Description.IsNotNullOrEmpty()) 2472 { 2473 2474 2475 #line default 2476 #line hidden 2477 WriteLiteralTo(__razor_helper_writer, " <p"); 2478 2479 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 2480 2481 WriteLiteralTo(__razor_helper_writer, ">"); 2482 2483 2484 #line 911 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2485 WriteTo(__razor_helper_writer, settings.Description); 2486 2487 2488 #line default 2489 #line hidden 2490 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 2491 2492 2493 #line 912 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2494 } 2495 if (settings.IncludeFieldWrapper) 2496 { 2497 2498 2499 #line default 2500 #line hidden 2501 WriteLiteralTo(__razor_helper_writer, " "); 2502 2503 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2504 2505 2506 #line 916 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2507 } 2508 2509 2510 #line default 2511 #line hidden 2512 2513 #line 917 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2514 WriteTo(__razor_helper_writer, GetWrapperEnd(settings.IncludeWrapper, settings.WrapperElement)); 2515 2516 2517 #line default 2518 #line hidden 2519 2520 #line 917 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2521 2522 2523 2524 #line default 2525 #line hidden 2526 }); 2527 2528 #line 918 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2529 } 2530 #line default 2531 #line hidden 2532 2533 2534 #line 920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2535 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, int productType = 0) 2536 { 2537 #line default 2538 #line hidden 2539 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2540 2541 #line 921 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2542 2543 2544 2545 #line default 2546 #line hidden 2547 2548 #line 922 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2549 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, selectedQuantity, string.Empty, 10, false, false, productType)); 2550 2551 2552 #line default 2553 #line hidden 2554 2555 #line 922 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2556 2557 2558 2559 #line default 2560 #line hidden 2561 }); 2562 2563 #line 923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2564 } 2565 #line default 2566 #line hidden 2567 2568 2569 #line 925 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2570 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, bool variantGroupsExistList = false) 2571 { 2572 #line default 2573 #line hidden 2574 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2575 2576 #line 926 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2577 2578 2579 2580 #line default 2581 #line hidden 2582 2583 #line 927 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2584 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, selectedQuantity, string.Empty, 10, false, variantGroupsExistList)); 2585 2586 2587 #line default 2588 #line hidden 2589 2590 #line 927 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2591 2592 2593 2594 #line default 2595 #line hidden 2596 }); 2597 2598 #line 928 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2599 } 2600 #line default 2601 #line hidden 2602 2603 2604 #line 930 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2605 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, string fieldSystemName = "", int limit = 10, bool isCheckout = true, bool variantGroupsExistList = false, int productType = 0, string productId = "") 2606 { 2607 #line default 2608 #line hidden 2609 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2610 2611 #line 931 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2612 2613 // var isQuantityTextHidden = selectedQuantity < 10 && productStock > 0 || !isCheckout ? " hidden" : string.Empty; 2614 var isQuantityTextHidden = string.Empty; 2615 var isSelectDisabled = productStock <= 0 && !isCheckout; 2616 var quantityTextFieldSettings = new FieldSettings 2617 { 2618 Value = selectedQuantity.ToString(), 2619 SystemName = fieldSystemName.IsNullOrEmpty() ? "quantity" : fieldSystemName, 2620 Id = (fieldSystemName.IsNullOrEmpty() ? "quantity_" : fieldSystemName) + productId, 2621 Attributes = new Dictionary<string, string> 2622 { 2623 {"min", "1"}, 2624 {"max", "999999"}, 2625 {"autocomplete", "off"}, 2626 {"data-productStock", productStock.ToString()}, 2627 {"data-productAvailable", productAvailableAmount.ToString()}, 2628 {"data-outofstock", Translate("Out of stock")}, 2629 {"data-stocktranslate", Translate("The current stock is")}, 2630 {"data-currentValue", selectedQuantity.ToString()} 2631 } 2632 }; 2633 2634 if (productType != 1 && productType != 3) 2635 { 2636 quantityTextFieldSettings.Type = FieldType.Number; 2637 quantityTextFieldSettings.Label = Translate("Qty"); 2638 quantityTextFieldSettings.CssClass = "col-xs-4 col-sm-7 quantityInput" + isQuantityTextHidden; 2639 //quantityTextFieldSettings.LabelCssClass = productStock > 0 ? "" : "hidden"; 2640 2641 2642 2643 #line default 2644 #line hidden 2645 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 2646 2647 WriteLiteralTo(__razor_helper_writer, " class=\"quantity-container pull-left\""); 2648 2649 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2650 2651 2652 #line 961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2653 2654 2655 #line default 2656 #line hidden 2657 2658 #line 961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2659 if (isCheckout) 2660 { 2661 2662 2663 #line default 2664 #line hidden 2665 WriteLiteralTo(__razor_helper_writer, " <div"); 2666 2667 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 38026), Tuple.Create("\"", 38078) 2668 2669 #line 963 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2670 , Tuple.Create(Tuple.Create("", 38034), Tuple.Create<System.Object, System.Int32>(isQuantityTextHidden 2671 2672 #line default 2673 #line hidden 2674 , 38034), false) 2675 , Tuple.Create(Tuple.Create(" ", 38055), Tuple.Create("quantityPriceContainer", 38056), true) 2676 ); 2677 2678 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2679 2680 WriteLiteralTo(__razor_helper_writer, " "); 2681 2682 2683 #line 964 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2684 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 2685 2686 2687 #line default 2688 #line hidden 2689 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2690 2691 WriteLiteralTo(__razor_helper_writer, " "); 2692 2693 2694 #line 965 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2695 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings {IconCssClass = "fa-refresh", CssClass = "submitQuantity btnCart-blue", ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button})); 2696 2697 2698 #line default 2699 #line hidden 2700 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2701 2702 2703 #line 967 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2704 } 2705 else 2706 { 2707 2708 2709 #line default 2710 #line hidden 2711 2712 #line 970 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2713 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 2714 2715 2716 #line default 2717 #line hidden 2718 2719 #line 970 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2720 2721 } 2722 2723 #line default 2724 #line hidden 2725 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n "); 2726 2727 WriteLiteralTo(__razor_helper_writer, "\r\n </fieldset>\r\n"); 2728 2729 2730 #line 1002 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2731 } 2732 else 2733 { 2734 quantityTextFieldSettings.Type = FieldType.Hidden; 2735 2736 2737 #line default 2738 #line hidden 2739 2740 #line 1006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2741 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 2742 2743 2744 #line default 2745 #line hidden 2746 2747 #line 1006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2748 2749 } 2750 2751 2752 #line default 2753 #line hidden 2754 }); 2755 2756 #line 1008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2757 } 2758 #line default 2759 #line hidden 2760 2761 2762 #line 1011 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2763 public RazorEngine.Templating.TemplateWriter InternalRenderCountryAndRegionsJsVariables(Dynamicweb.Ecommerce.International.CountryCollection countries = null) 2764 { 2765 #line default 2766 #line hidden 2767 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2768 2769 #line 1012 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2770 2771 if (countries == null) 2772 { 2773 countries = Dynamicweb.Ecommerce.Services.Countries.GetCountries(); 2774 } 2775 2776 if (countries.Any()) 2777 { 2778 2779 2780 #line default 2781 #line hidden 2782 WriteLiteralTo(__razor_helper_writer, " "); 2783 2784 WriteLiteralTo(__razor_helper_writer, " "); 2785 2786 2787 #line 1020 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2788 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 2789 2790 2791 #line default 2792 #line hidden 2793 WriteLiteralTo(__razor_helper_writer, " var countryRegions = {}; "); 2794 2795 2796 #line 1020 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2797 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 2798 2799 2800 #line default 2801 #line hidden 2802 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2803 2804 2805 #line 1021 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2806 2807 foreach (var country in countries.OrderBy(s => s.Name)) 2808 { 2809 var regions = Dynamicweb.Ecommerce.Services.Countries.GetRegions(country.Code2); 2810 2811 if (regions.Any()) 2812 { 2813 2814 2815 #line default 2816 #line hidden 2817 WriteLiteralTo(__razor_helper_writer, " "); 2818 2819 WriteLiteralTo(__razor_helper_writer, " "); 2820 2821 2822 #line 1028 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2823 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 2824 2825 2826 #line default 2827 #line hidden 2828 WriteLiteralTo(__razor_helper_writer, " countryRegions."); 2829 2830 2831 #line 1028 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2832 WriteTo(__razor_helper_writer, country.Code2); 2833 2834 2835 #line default 2836 #line hidden 2837 WriteLiteralTo(__razor_helper_writer, " = {}; "); 2838 2839 2840 #line 1028 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2841 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 2842 2843 2844 #line default 2845 #line hidden 2846 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2847 2848 WriteLiteralTo(__razor_helper_writer, " "); 2849 2850 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2851 2852 WriteLiteralTo(__razor_helper_writer, " "); 2853 2854 2855 #line 1030 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2856 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 2857 2858 2859 #line default 2860 #line hidden 2861 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions."); 2862 2863 2864 #line 1031 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2865 WriteTo(__razor_helper_writer, country.Code2); 2866 2867 2868 #line default 2869 #line hidden 2870 WriteLiteralTo(__razor_helper_writer, ".code = [];\r\n countryRegions."); 2871 2872 2873 #line 1032 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2874 WriteTo(__razor_helper_writer, country.Code2); 2875 2876 2877 #line default 2878 #line hidden 2879 WriteLiteralTo(__razor_helper_writer, ".name = [];\r\n"); 2880 2881 WriteLiteralTo(__razor_helper_writer, " "); 2882 2883 2884 #line 1033 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2885 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 2886 2887 2888 #line default 2889 #line hidden 2890 WriteLiteralTo(__razor_helper_writer, "\r\n "); 2891 2892 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2893 2894 2895 #line 1035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2896 foreach (var region in regions.OrderBy(s => s.Name)) 2897 { 2898 2899 2900 #line default 2901 #line hidden 2902 WriteLiteralTo(__razor_helper_writer, " "); 2903 2904 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2905 2906 WriteLiteralTo(__razor_helper_writer, " "); 2907 2908 2909 #line 1038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2910 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 2911 2912 2913 #line default 2914 #line hidden 2915 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions[\""); 2916 2917 2918 #line 1039 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2919 WriteTo(__razor_helper_writer, country.Code2); 2920 2921 2922 #line default 2923 #line hidden 2924 WriteLiteralTo(__razor_helper_writer, "\"].code.push(\""); 2925 2926 2927 #line 1039 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2928 WriteTo(__razor_helper_writer, region.RegionCode); 2929 2930 2931 #line default 2932 #line hidden 2933 WriteLiteralTo(__razor_helper_writer, "\");\r\n countryRegions[\""); 2934 2935 2936 #line 1040 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2937 WriteTo(__razor_helper_writer, country.Code2); 2938 2939 2940 #line default 2941 #line hidden 2942 WriteLiteralTo(__razor_helper_writer, "\"].name.push(\""); 2943 2944 2945 #line 1040 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2946 WriteTo(__razor_helper_writer, region.Name); 2947 2948 2949 #line default 2950 #line hidden 2951 WriteLiteralTo(__razor_helper_writer, "\");\r\n"); 2952 2953 WriteLiteralTo(__razor_helper_writer, " "); 2954 2955 2956 #line 1041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2957 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 2958 2959 2960 #line default 2961 #line hidden 2962 WriteLiteralTo(__razor_helper_writer, "\r\n "); 2963 2964 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2965 2966 2967 #line 1043 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2968 } 2969 } 2970 } 2971 } 2972 2973 2974 #line default 2975 #line hidden 2976 }); 2977 2978 #line 1047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2979 } 2980 #line default 2981 #line hidden 2982 2983 2984 #line 1052 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 2985 2986 public static bool IsBillingAddressReadOnly() 2987 { 2988 return Dna.Modules.Features.FeatureManager.IsEnabled("IsBillingAddressReadOnly", "Set to 'true' if the Billing Address should be read-only."); 2989 } 2990 2991 public static bool IsBillingAddressEditable() 2992 { 2993 return Dna.Modules.Features.FeatureManager.IsEnabled("IsBillingAddressEditable", "Set to 'true' if the Billing Address should be editable."); 2994 } 2995 2996 public static bool IsShippingAddressEditable() 2997 { 2998 return Dna.Modules.Features.FeatureManager.IsEnabled("IsShippingAddressEditable", "Set to 'true' if the Shipping Address should be editable."); 2999 } 3000 3001 public static bool ShowNoErpConnectionMessage() 3002 { 3003 return Dna.Modules.Features.FeatureManager.IsEnabled("showNoErpConnectionMessage", "Set to 'true' if want to show the 'No ERP Connection Message'."); 3004 } 3005 3006 public static bool ShowStateFieldAsDropdown() 3007 { 3008 return Dna.Modules.Features.FeatureManager.IsEnabled("showStateFieldAsDropdown", "Set to 'true' if the State field should be a drop-down."); 3009 } 3010 public static bool ShowVariantsAsDropdown() 3011 { 3012 return Dna.Modules.Features.FeatureManager.IsEnabled("showVariantsAsDropdown", "Set to 'true' if the Variant field should be a drop-down."); 3013 } 3014 public static bool ShowB2BLogin() 3015 { 3016 return Dna.Modules.Features.FeatureManager.IsEnabled("showB2BLogin", "Set to 'true' if it should display a login page."); 3017 } 3018 3019 3020 #line default 3021 #line hidden 3022 3023 3024 #line 1087 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3025 3026 3027 #region Redirect Workaround 3028 3029 public static void Redirect(string url) 3030 { 3031 HttpContext.Current.Response.Redirect(url, false); 3032 HttpContext.Current.ApplicationInstance.CompleteRequest(); 3033 } 3034 3035 #endregion Redirect Workaround 3036 3037 #region Css functions 3038 3039 public static string GetPalletColorNumber(int number = 0) 3040 { 3041 switch (number) 3042 { 3043 case 1: 3044 return "#666666"; 3045 case 2: 3046 return "#333333"; 3047 default: 3048 return "#ffffff"; 3049 } 3050 } 3051 3052 public static string GetFontFamilyNumber(int number = 0) 3053 { 3054 switch (number) 3055 { 3056 case 1: 3057 return "font-family: Arial, sans-serif;"; 3058 default: 3059 return "font-family: Helvetica, Arial, sans-serif;"; 3060 } 3061 } 3062 3063 public static string GetFontSize(int fontSize = 0) 3064 { 3065 return fontSize >= 0 ? string.Concat("font-size: ", fontSize, "px;") : "font-size: 14px"; 3066 } 3067 3068 #endregion Css functions 3069 3070 #region Icon functions 3071 3072 public static string GetIcon(string cssPartialClass, string label = "", string position = "") 3073 { 3074 var icon = "<i class='fa " + cssPartialClass + "'></i>"; 3075 var spacing = string.Empty; 3076 3077 if (!label.IsNullOrEmpty()) 3078 { 3079 spacing = "&nbsp;"; 3080 } 3081 3082 if (cssPartialClass.IsNullOrEmpty()) return label; 3083 if (position == IconPosition.Left.ToString() || position.IsNullOrEmpty()) 3084 { 3085 return icon + spacing + label; 3086 } 3087 return label + spacing + icon; 3088 } 3089 3090 #endregion Icon functions 3091 3092 #region Address functions 3093 3094 public string GetAddressFormatted(User user, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 3095 { 3096 return GetAddressFormatted(user.Address, user.Address2, user.City, user.State, user.Zip, user.Country, getRegionName, getCountryName, addLineBreakBetweenAddressAndCity, splitBetweenRegionAndCountry); 3097 } 3098 3099 public string GetAddressFormatted(UserAddress userAddress, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 3100 { 3101 return GetAddressFormatted(userAddress.Address, userAddress.Address2, userAddress.City, userAddress.State, userAddress.Zip, userAddress.Country, getRegionName, getCountryName, addLineBreakBetweenAddressAndCity, splitBetweenRegionAndCountry); 3102 } 3103 3104 public string GetAddressFormatted(int addressId) 3105 { 3106 var address = UserAddress.GetUserAddressById(addressId); 3107 return GetAddressFormatted(address.Address, address.Address2, address.City, address.State, address.Zip, address.Country); 3108 } 3109 3110 public string GetAddressFormatted(AddressSource addressSource, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 3111 { 3112 switch (addressSource) 3113 { 3114 case AddressSource.UserProfile: 3115 return GetAddressFormatted( 3116 GetString("UserManagement:User.Address"), 3117 GetString("UserManagement:User.Address2"), 3118 GetString("UserManagement:User.City"), 3119 GetString("UserManagement:User.State"), 3120 GetString("UserManagement:User.Zip"), 3121 GetString("UserManagement:User.Country"), 3122 getRegionName, 3123 getCountryName, 3124 addLineBreakBetweenAddressAndCity, 3125 splitBetweenRegionAndCountry 3126 ); 3127 case AddressSource.EcomCustomer: 3128 return GetAddressFormatted( 3129 GetString("Ecom:Order.Customer.Address"), 3130 GetString("Ecom:Order.Customer.Address2"), 3131 GetString("Ecom:Order.Customer.City"), 3132 GetString("Ecom:Order.Customer.Region"), 3133 GetString("Ecom:Order.Customer.Zip"), 3134 GetString("Ecom:Order.Customer.Country"), 3135 getRegionName, 3136 getCountryName, 3137 addLineBreakBetweenAddressAndCity, 3138 splitBetweenRegionAndCountry 3139 ); 3140 case AddressSource.EcomDelivery: 3141 return GetAddressFormatted( 3142 GetString("Ecom:Order.Delivery.Address"), 3143 GetString("Ecom:Order.Delivery.Address2"), 3144 GetString("Ecom:Order.Delivery.City"), 3145 GetString("Ecom:Order.Delivery.Region"), 3146 GetString("Ecom:Order.Delivery.Zip"), 3147 GetString("Ecom:Order.Delivery.Country"), 3148 getRegionName, 3149 getCountryName, 3150 addLineBreakBetweenAddressAndCity, 3151 splitBetweenRegionAndCountry 3152 ); 3153 case AddressSource.UserAddress: 3154 throw new NotSupportedException("Unsupported address source. Use an AddressId instead"); 3155 default: 3156 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 3157 } 3158 } 3159 3160 public string GetAddressFormatted(string address, string address2, string city, string region, string zip, string country, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 3161 { 3162 3163 var formattedAddress = new StringBuilder(address); 3164 var hasCountry = country.IsNotNullOrEmpty(); 3165 var zipBeforeRegionCountries = new List<string>{"US","United States of America"}; 3166 3167 if (address2.IsNotNullOrEmpty()) 3168 { 3169 formattedAddress.Append(string.Concat(" ",address2)); 3170 } 3171 if (addLineBreakBetweenAddressAndCity && (city + region + country).IsNotNullOrEmpty()) 3172 { 3173 formattedAddress.Append("<br/>"); 3174 } 3175 if (city.IsNotNullOrEmpty()) 3176 { 3177 formattedAddress.Append(string.Concat(" ",city)); 3178 } 3179 if (region.IsNotNullOrEmpty()) 3180 { 3181 formattedAddress.Append(zip.IsNotNullOrEmpty() ? string.Empty : ","); 3182 if (getRegionName && country.IsNotNullOrEmpty()) 3183 { 3184 var getRegions = Services.Countries.GetRegions(country); 3185 if(getRegions != null) { 3186 var regionName = getRegions.First(c => c.RegionCode == region).Name; 3187 region = regionName.IsNotNullOrEmpty() ? regionName : region; 3188 } 3189 } 3190 formattedAddress.Append(string.Concat(" ",region)); 3191 } 3192 if (hasCountry && zipBeforeRegionCountries.Contains(country) && zip.IsNotNullOrEmpty()) 3193 { 3194 formattedAddress.Append(string.Concat(" ",zip)); 3195 } 3196 if (hasCountry && !zipBeforeRegionCountries.Contains(country) && zip.IsNotNullOrEmpty()) 3197 { 3198 formattedAddress.Append(string.Concat(" ",zip)); 3199 } 3200 if (!hasCountry) 3201 { 3202 return formattedAddress.ToString(); 3203 } 3204 3205 formattedAddress.Append(splitBetweenRegionAndCountry.IsNotNullOrEmpty() ? splitBetweenRegionAndCountry : " "); 3206 if (getCountryName) 3207 { 3208 var getCountry = Services.Countries.GetCountry(country); 3209 if(getCountry != null) 3210 { 3211 var countryName = getCountry.Name; 3212 country = countryName.IsNotNullOrEmpty() ? countryName : country; 3213 } 3214 } 3215 formattedAddress.Append(country); 3216 return formattedAddress.ToString(); 3217 } 3218 3219 #endregion Address functions 3220 3221 #region Field helper functions 3222 3223 const string HighlightedCountriesSplit = "----------------"; 3224 3225 internal readonly List<string> HighlightedCountries = new List<string> 3226 { 3227 "CA", 3228 "US", 3229 HighlightedCountriesSplit 3230 }; 3231 3232 #endregion Field helper functions 3233 3234 #region Generic functions 3235 3236 private static int FormatInteger(object value) 3237 { 3238 int num; 3239 if (value == null) 3240 { 3241 value = string.Empty; 3242 } 3243 return int.TryParse(value.ToString(), out num) ? num : 0; 3244 } 3245 3246 #endregion Generic functions 3247 3248 private string GetProductPrice(string productPrice = "") 3249 { 3250 var showNoErpConnectionMessage = ShowNoErpConnectionMessage(); 3251 var isWebServiceConnectionAvailable = Dna.Ecommerce.LiveIntegration.TemplatesHelper.IsWebServiceConnectionAvailable(); 3252 3253 if (!isWebServiceConnectionAvailable && showNoErpConnectionMessage) 3254 { 3255 if (productPrice.IsNullOrEmpty()) 3256 { 3257 return GetNoErpConnectionMessage(); 3258 } 3259 else 3260 { 3261 return string.Concat("<span class='noErpConnection'>", Translate("Unavailable"), "</span>"); 3262 } 3263 } 3264 return productPrice; 3265 } 3266 3267 public string GetNoErpConnectionMessage() 3268 { 3269 return string.Concat("<div class='col-xs-12 warningBox'><p>", Translate("Pricing and inventory are currently not available. Please check back soon"), "</p></div>"); 3270 } 3271 3272 #line default 3273 #line hidden 3274 3275 3276 #line 1336 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3277 public RazorEngine.Templating.TemplateWriter RenderTableHeading(string label, string sortByField = "", string listType = "Order") 3278 { 3279 #line default 3280 #line hidden 3281 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3282 3283 #line 1337 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3284 3285 if (sortByField.IsNotNullOrEmpty()) 3286 { 3287 var href = string.Empty; 3288 var icon = "fa-sort-amount-asc"; 3289 if (listType == "Order" || listType == "Rma") 3290 { 3291 href = GetCustomerCenterSortUrl(sortByField, listType); 3292 if (GetSortFieldParameter("name") == sortByField) 3293 { 3294 icon = "fa-sort-amount-" + GetSortFieldParameter("value", sortByField).ToLower(); 3295 } 3296 } 3297 3298 3299 #line default 3300 #line hidden 3301 WriteLiteralTo(__razor_helper_writer, " <a"); 3302 3303 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 53958), Tuple.Create("\"", 53970) 3304 3305 #line 1350 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3306 , Tuple.Create(Tuple.Create("", 53965), Tuple.Create<System.Object, System.Int32>(href 3307 3308 #line default 3309 #line hidden 3310 , 53965), false) 3311 ); 3312 3313 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3314 3315 WriteLiteralTo(__razor_helper_writer, " "); 3316 3317 3318 #line 1351 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3319 WriteTo(__razor_helper_writer, RenderIcon(icon, label, IconPosition.Right)); 3320 3321 3322 #line default 3323 #line hidden 3324 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3325 3326 3327 #line 1353 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3328 } 3329 else 3330 { 3331 3332 3333 #line default 3334 #line hidden 3335 3336 #line 1356 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3337 WriteTo(__razor_helper_writer, label); 3338 3339 3340 #line default 3341 #line hidden 3342 3343 #line 1356 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3344 3345 } 3346 3347 3348 #line default 3349 #line hidden 3350 }); 3351 3352 #line 1358 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3353 } 3354 #line default 3355 #line hidden 3356 3357 3358 #line 1360 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3359 public RazorEngine.Templating.TemplateWriter RenderDataListItem(string label, string value, string labelCss = "col-xs-4 text-right", string valueCss = "col-xs-8", string alternativeValue = "", bool isLabelBold = true) 3360 { 3361 #line default 3362 #line hidden 3363 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3364 3365 #line 1361 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3366 3367 if (value.IsNotNullOrEmpty() || alternativeValue.IsNotNullOrEmpty()) 3368 { 3369 var displayValue = alternativeValue.IsNullOrEmpty() ? value : alternativeValue; 3370 3371 3372 #line default 3373 #line hidden 3374 WriteLiteralTo(__razor_helper_writer, " <dt"); 3375 3376 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 54524), Tuple.Create("\"", 54541) 3377 3378 #line 1365 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3379 , Tuple.Create(Tuple.Create("", 54532), Tuple.Create<System.Object, System.Int32>(labelCss 3380 3381 #line default 3382 #line hidden 3383 , 54532), false) 3384 ); 3385 3386 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3387 3388 3389 #line 1366 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3390 3391 3392 #line default 3393 #line hidden 3394 3395 #line 1366 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3396 if (isLabelBold) 3397 { 3398 3399 3400 #line default 3401 #line hidden 3402 WriteLiteralTo(__razor_helper_writer, " "); 3403 3404 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 3405 3406 3407 #line 1369 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3408 } 3409 3410 #line default 3411 #line hidden 3412 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3413 3414 WriteLiteralTo(__razor_helper_writer, " "); 3415 3416 3417 #line 1370 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3418 WriteTo(__razor_helper_writer, label); 3419 3420 3421 #line default 3422 #line hidden 3423 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3424 3425 3426 #line 1371 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3427 3428 3429 #line default 3430 #line hidden 3431 3432 #line 1371 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3433 if (isLabelBold) 3434 { 3435 3436 3437 #line default 3438 #line hidden 3439 WriteLiteralTo(__razor_helper_writer, " "); 3440 3441 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 3442 3443 3444 #line 1374 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3445 } 3446 3447 #line default 3448 #line hidden 3449 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 3450 3451 WriteLiteralTo(__razor_helper_writer, " <dd"); 3452 3453 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 54816), Tuple.Create("\"", 54833) 3454 3455 #line 1376 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3456 , Tuple.Create(Tuple.Create("", 54824), Tuple.Create<System.Object, System.Int32>(valueCss 3457 3458 #line default 3459 #line hidden 3460 , 54824), false) 3461 ); 3462 3463 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3464 3465 WriteLiteralTo(__razor_helper_writer, " "); 3466 3467 3468 #line 1377 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3469 WriteTo(__razor_helper_writer, displayValue); 3470 3471 3472 #line default 3473 #line hidden 3474 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 3475 3476 3477 #line 1379 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3478 } 3479 3480 3481 #line default 3482 #line hidden 3483 }); 3484 3485 #line 1380 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3486 } 3487 #line default 3488 #line hidden 3489 3490 3491 #line 1382 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3492 public RazorEngine.Templating.TemplateWriter RenderTableRowSpacer(int height = 30, int colspan = 1) 3493 { 3494 #line default 3495 #line hidden 3496 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3497 3498 #line 1383 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3499 3500 if (height == 0) 3501 { 3502 height = 30; 3503 } 3504 3505 3506 3507 #line default 3508 #line hidden 3509 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n"); 3510 3511 3512 #line 1390 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3513 3514 3515 #line default 3516 #line hidden 3517 3518 #line 1390 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3519 if (colspan > 1) 3520 { 3521 3522 3523 #line default 3524 #line hidden 3525 WriteLiteralTo(__razor_helper_writer, " "); 3526 3527 WriteLiteralTo(__razor_helper_writer, " <td colspan=\""); 3528 3529 3530 #line 1392 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3531 WriteTo(__razor_helper_writer, colspan); 3532 3533 3534 #line default 3535 #line hidden 3536 WriteLiteralTo(__razor_helper_writer, "\" height=\""); 3537 3538 3539 #line 1392 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3540 WriteTo(__razor_helper_writer, height); 3541 3542 3543 #line default 3544 #line hidden 3545 WriteLiteralTo(__razor_helper_writer, "\"></td>\r\n"); 3546 3547 3548 #line 1393 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3549 } 3550 else 3551 { 3552 3553 3554 #line default 3555 #line hidden 3556 WriteLiteralTo(__razor_helper_writer, " <td"); 3557 3558 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 55259), Tuple.Create("\"", 55275) 3559 3560 #line 1396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3561 , Tuple.Create(Tuple.Create("", 55268), Tuple.Create<System.Object, System.Int32>(height 3562 3563 #line default 3564 #line hidden 3565 , 55268), false) 3566 ); 3567 3568 WriteLiteralTo(__razor_helper_writer, "></td>\r\n"); 3569 3570 3571 #line 1397 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3572 } 3573 3574 #line default 3575 #line hidden 3576 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 3577 3578 3579 #line 1399 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3580 3581 3582 #line default 3583 #line hidden 3584 }); 3585 3586 #line 1399 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3587 } 3588 #line default 3589 #line hidden 3590 3591 3592 #line 1401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3593 public RazorEngine.Templating.TemplateWriter RenderTableCellSpacer(int width = 10, int height = 10) 3594 { 3595 #line default 3596 #line hidden 3597 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3598 3599 #line 1402 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3600 3601 if (width == 0) 3602 { 3603 width = 10; 3604 } 3605 if (height == 0) 3606 { 3607 height = 10; 3608 } 3609 3610 3611 #line default 3612 #line hidden 3613 WriteLiteralTo(__razor_helper_writer, " <td"); 3614 3615 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 55559), Tuple.Create("\"", 55573) 3616 3617 #line 1411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3618 , Tuple.Create(Tuple.Create("", 55567), Tuple.Create<System.Object, System.Int32>(width 3619 3620 #line default 3621 #line hidden 3622 , 55567), false) 3623 ); 3624 3625 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 55574), Tuple.Create("\"", 55590) 3626 3627 #line 1411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3628 , Tuple.Create(Tuple.Create("", 55583), Tuple.Create<System.Object, System.Int32>(height 3629 3630 #line default 3631 #line hidden 3632 , 55583), false) 3633 ); 3634 3635 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td>\r\n"); 3636 3637 3638 #line 1412 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3639 3640 3641 #line default 3642 #line hidden 3643 }); 3644 3645 #line 1412 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3646 } 3647 #line default 3648 #line hidden 3649 3650 3651 #line 1416 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3652 public RazorEngine.Templating.TemplateWriter RenderTabContent(string tabKey, string tabLabel, string tabContent, string cssClass = "") 3653 { 3654 #line default 3655 #line hidden 3656 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3657 3658 #line 1417 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3659 3660 if (tabContent.IsNotNullOrEmpty()) 3661 { 3662 3663 3664 #line default 3665 #line hidden 3666 3667 #line 1420 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3668 WriteTo(__razor_helper_writer, InternalRenderTabHeader("#" + tabKey, tabLabel, cssClass)); 3669 3670 3671 #line default 3672 #line hidden 3673 3674 #line 1420 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3675 3676 3677 3678 #line default 3679 #line hidden 3680 WriteLiteralTo(__razor_helper_writer, " <div"); 3681 3682 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 55900), Tuple.Create("\"", 55927) 3683 , Tuple.Create(Tuple.Create("", 55908), Tuple.Create("col-xs-12", 55908), true) 3684 3685 #line 1421 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3686 , Tuple.Create(Tuple.Create(" ", 55917), Tuple.Create<System.Object, System.Int32>(cssClass 3687 3688 #line default 3689 #line hidden 3690 , 55918), false) 3691 ); 3692 3693 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 55928), Tuple.Create("\"", 55940) 3694 3695 #line 1421 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3696 , Tuple.Create(Tuple.Create("", 55933), Tuple.Create<System.Object, System.Int32>(tabKey 3697 3698 #line default 3699 #line hidden 3700 , 55933), false) 3701 ); 3702 3703 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3704 3705 WriteLiteralTo(__razor_helper_writer, " "); 3706 3707 3708 #line 1422 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3709 WriteTo(__razor_helper_writer, tabContent); 3710 3711 3712 #line default 3713 #line hidden 3714 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3715 3716 3717 #line 1424 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3718 } 3719 3720 3721 #line default 3722 #line hidden 3723 }); 3724 3725 #line 1425 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3726 } 3727 #line default 3728 #line hidden 3729 3730 3731 #line 1429 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3732 public RazorEngine.Templating.TemplateWriter RenderField(FieldSettings settings) 3733 { 3734 #line default 3735 #line hidden 3736 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3737 3738 #line 1430 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3739 3740 switch (settings.Type) 3741 { 3742 case FieldType.Button: 3743 case FieldType.Reset: 3744 case FieldType.Submit: 3745 3746 3747 #line default 3748 #line hidden 3749 3750 #line 1436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3751 WriteTo(__razor_helper_writer, InternalRenderButtonField(settings)); 3752 3753 3754 #line default 3755 #line hidden 3756 3757 #line 1436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3758 3759 break; 3760 case FieldType.Checkbox: 3761 3762 3763 #line default 3764 #line hidden 3765 3766 #line 1439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3767 WriteTo(__razor_helper_writer, InternalRenderCheckboxField(settings)); 3768 3769 3770 #line default 3771 #line hidden 3772 3773 #line 1439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3774 3775 break; 3776 case FieldType.Image: 3777 3778 3779 #line default 3780 #line hidden 3781 3782 #line 1442 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3783 WriteTo(__razor_helper_writer, InternalRenderImageField(settings)); 3784 3785 3786 #line default 3787 #line hidden 3788 3789 #line 1442 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3790 3791 break; 3792 case FieldType.Checkboxlist: 3793 case FieldType.Radio: 3794 3795 3796 #line default 3797 #line hidden 3798 3799 #line 1446 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3800 WriteTo(__razor_helper_writer, InternalRenderRadioOrCheckboxListField(settings)); 3801 3802 3803 #line default 3804 #line hidden 3805 3806 #line 1446 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3807 3808 break; 3809 case FieldType.Select: 3810 3811 3812 #line default 3813 #line hidden 3814 3815 #line 1449 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3816 WriteTo(__razor_helper_writer, InternalRenderSelectField(settings)); 3817 3818 3819 #line default 3820 #line hidden 3821 3822 #line 1449 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3823 3824 break; 3825 case FieldType.Color: 3826 case FieldType.Date: 3827 case FieldType.DatetimeLocal: 3828 case FieldType.Email: 3829 case FieldType.File: 3830 case FieldType.Hidden: 3831 case FieldType.Password: 3832 case FieldType.Month: 3833 case FieldType.Number: 3834 case FieldType.Search: 3835 case FieldType.Tel: 3836 case FieldType.Text: 3837 case FieldType.Time: 3838 case FieldType.Url: 3839 case FieldType.Week: 3840 case FieldType.Range: 3841 3842 3843 #line default 3844 #line hidden 3845 3846 #line 1467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3847 WriteTo(__razor_helper_writer, InternalRenderInputField(settings)); 3848 3849 3850 #line default 3851 #line hidden 3852 3853 #line 1467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3854 3855 break; 3856 3857 case FieldType.Textarea: 3858 3859 3860 #line default 3861 #line hidden 3862 3863 #line 1471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3864 WriteTo(__razor_helper_writer, InternalRenderTextareaField(settings)); 3865 3866 3867 #line default 3868 #line hidden 3869 3870 #line 1471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3871 3872 break; 3873 case FieldType.Textstring: 3874 3875 3876 #line default 3877 #line hidden 3878 3879 #line 1474 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3880 WriteTo(__razor_helper_writer, InternalRenderTextStringField(settings)); 3881 3882 3883 #line default 3884 #line hidden 3885 3886 #line 1474 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3887 3888 break; 3889 case FieldType.Divider: 3890 3891 3892 #line default 3893 #line hidden 3894 3895 #line 1477 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3896 WriteTo(__razor_helper_writer, InternalRenderDividerField(settings)); 3897 3898 3899 #line default 3900 #line hidden 3901 3902 #line 1477 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3903 3904 break; 3905 case FieldType.Datetime: 3906 3907 3908 #line default 3909 #line hidden 3910 3911 #line 1480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3912 WriteTo(__razor_helper_writer, InternalRenderDateTimeField(settings)); 3913 3914 3915 #line default 3916 #line hidden 3917 3918 #line 1480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3919 3920 break; 3921 case FieldType.Unknown: 3922 3923 3924 #line default 3925 #line hidden 3926 WriteLiteralTo(__razor_helper_writer, " "); 3927 3928 WriteLiteralTo(__razor_helper_writer, "<div style=\"color: #f00\">Undefined FieldType: <strong>"); 3929 3930 3931 #line 1483 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3932 WriteTo(__razor_helper_writer, settings.Type); 3933 3934 3935 #line default 3936 #line hidden 3937 WriteLiteralTo(__razor_helper_writer, "</strong></div>\r\n"); 3938 3939 3940 #line 1484 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3941 break; 3942 default: 3943 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 3944 } 3945 3946 3947 #line default 3948 #line hidden 3949 }); 3950 3951 #line 1488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3952 } 3953 #line default 3954 #line hidden 3955 3956 3957 #line 1490 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3958 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(List<string> countries, bool renderJsVariables = true, bool renderHighlightOptions = true, bool isFirstHardcodedOptionDisabled = true) 3959 { 3960 #line default 3961 #line hidden 3962 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3963 3964 #line 1491 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3965 3966 var settings = new FieldSettings 3967 { 3968 SystemName = "Country", 3969 Id = "Country", 3970 Label = Translate("Select your country:"), 3971 FirstHardcodedOptionLabel = Translate("All"), 3972 ValuesList = countries 3973 }; 3974 3975 3976 #line default 3977 #line hidden 3978 3979 #line 1500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3980 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, renderJsVariables, renderHighlightOptions, isFirstHardcodedOptionDisabled)); 3981 3982 3983 #line default 3984 #line hidden 3985 3986 #line 1500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3987 3988 3989 3990 #line default 3991 #line hidden 3992 }); 3993 3994 #line 1501 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 3995 } 3996 #line default 3997 #line hidden 3998 3999 4000 #line 1503 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4001 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(FieldSettings settings, bool renderJsVariables = true, bool renderHighlightOptions = true, bool isFirstHardcodedOptionDisabled = true) 4002 { 4003 #line default 4004 #line hidden 4005 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4006 4007 #line 1504 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4008 4009 4010 if (settings.SystemName.IsNotNullOrEmpty()) 4011 { 4012 const int limit = 10; 4013 const int numOfCountriesForHighlight = 10; 4014 var countries = EcommerceHelpers.GetEcomCountries(); 4015 var numOfCountries = settings.LoopOptions.Any() ? settings.LoopOptions.Count : settings.ValuesList.Any() ? settings.ValuesList.Count : countries.Count; 4016 4017 settings.Assert(FieldType.Select); 4018 if (settings.FirstHardcodedOptionLabel.IsNullOrEmpty()) 4019 { 4020 settings.FirstHardcodedOptionLabel = Translate("Select an option"); 4021 } 4022 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && numOfCountries > limit) 4023 { 4024 settings.Attributes.Add("data-live-search", "true"); 4025 } 4026 4027 if (renderJsVariables) 4028 { 4029 4030 4031 #line default 4032 #line hidden 4033 4034 #line 1525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4035 WriteTo(__razor_helper_writer, InternalRenderCountryAndRegionsJsVariables(countries)); 4036 4037 4038 #line default 4039 #line hidden 4040 4041 #line 1525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4042 4043 } 4044 4045 4046 4047 #line default 4048 #line hidden 4049 4050 #line 1528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4051 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 4052 4053 4054 #line default 4055 #line hidden 4056 4057 #line 1528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4058 4059 4060 4061 #line default 4062 #line hidden 4063 4064 #line 1529 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4065 WriteTo(__razor_helper_writer, GetHtmlElement("select", GetAttributes(settings))); 4066 4067 4068 #line default 4069 #line hidden 4070 4071 #line 1529 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4072 4073 4074 4075 #line default 4076 #line hidden 4077 4078 #line 1530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4079 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected, isFirstHardcodedOptionDisabled))); 4080 4081 4082 #line default 4083 #line hidden 4084 4085 #line 1530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4086 4087 4088 if (numOfCountries > numOfCountriesForHighlight) 4089 { 4090 4091 4092 #line default 4093 #line hidden 4094 4095 #line 1534 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4096 WriteTo(__razor_helper_writer, RenderSnippet("highlightedContries")); 4097 4098 4099 #line default 4100 #line hidden 4101 4102 #line 1534 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4103 4104 } 4105 4106 if (settings.LoopOptions.Any()) 4107 { 4108 4109 foreach (var country in settings.LoopOptions) 4110 { 4111 var countryName = country.GetString("Ecom:Country.Name"); 4112 var countryCode = country.GetString("Ecom:Country.Code2"); 4113 4114 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 4115 { 4116 4117 4118 #line default 4119 #line hidden 4120 4121 #line 1547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4122 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 4123 4124 4125 #line default 4126 #line hidden 4127 4128 #line 1547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4129 4130 } 4131 4132 4133 #line default 4134 #line hidden 4135 4136 #line 1549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4137 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(countryName, countryCode))); 4138 4139 4140 #line default 4141 #line hidden 4142 4143 #line 1549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4144 4145 } 4146 } 4147 else if (settings.ValuesList.Any()) 4148 { 4149 foreach (var countryCode in settings.ValuesList.OrderBy(s => s)) 4150 { 4151 var countryName = countries.Any(c => c.Code2 == countryCode) ? countries.First(c => c.Code2 == countryCode).Name : countryCode; 4152 4153 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 4154 { 4155 4156 4157 #line default 4158 #line hidden 4159 4160 #line 1560 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4161 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 4162 4163 4164 #line default 4165 #line hidden 4166 4167 #line 1560 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4168 4169 } 4170 4171 4172 #line default 4173 #line hidden 4174 4175 #line 1562 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4176 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(countryName, countryCode))); 4177 4178 4179 #line default 4180 #line hidden 4181 4182 #line 1562 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4183 4184 } 4185 } 4186 else 4187 { 4188 foreach (var country in countries.OrderBy(s => s.Name)) 4189 { 4190 var countryCode = country.Code2; 4191 4192 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 4193 { 4194 4195 4196 #line default 4197 #line hidden 4198 4199 #line 1573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4200 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(country.Name, countryCode)); 4201 4202 4203 #line default 4204 #line hidden 4205 4206 #line 1573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4207 4208 } 4209 4210 4211 #line default 4212 #line hidden 4213 4214 #line 1575 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4215 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(country.Name, countryCode))); 4216 4217 4218 #line default 4219 #line hidden 4220 4221 #line 1575 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4222 4223 } 4224 } 4225 4226 if (renderHighlightOptions && numOfCountries > numOfCountriesForHighlight && HighlightedCountries.Any(c => HighlightedCountriesSplit.Equals(c, StringComparison.CurrentCultureIgnoreCase))) 4227 { 4228 4229 4230 #line default 4231 #line hidden 4232 4233 #line 1581 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4234 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(HighlightedCountriesSplit, string.Empty, false, true)); 4235 4236 4237 #line default 4238 #line hidden 4239 4240 #line 1581 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4241 4242 } 4243 4244 4245 4246 #line default 4247 #line hidden 4248 4249 #line 1584 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4250 WriteTo(__razor_helper_writer, GetHtmlElement("select", true)); 4251 4252 4253 #line default 4254 #line hidden 4255 4256 #line 1584 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4257 4258 4259 4260 4261 #line default 4262 #line hidden 4263 4264 #line 1586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4265 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 4266 4267 4268 #line default 4269 #line hidden 4270 4271 #line 1586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4272 4273 } 4274 4275 4276 #line default 4277 #line hidden 4278 }); 4279 4280 #line 1588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4281 } 4282 #line default 4283 #line hidden 4284 4285 4286 #line 1590 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4287 public RazorEngine.Templating.TemplateWriter PopulateHighlightedCountries(string label, string value, bool isSelected = false, bool isDisabled = false) 4288 { 4289 #line default 4290 #line hidden 4291 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4292 4293 #line 1591 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4294 4295 HighlightedCountries.Remove(value); 4296 if (value.IsNullOrEmpty()) 4297 { 4298 HighlightedCountries.Remove(label); 4299 } 4300 4301 4302 #line default 4303 #line hidden 4304 4305 #line 1597 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4306 WriteTo(__razor_helper_writer, SnippetStart("highlightedContries")); 4307 4308 4309 #line default 4310 #line hidden 4311 4312 #line 1597 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4313 4314 4315 4316 #line default 4317 #line hidden 4318 4319 #line 1598 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4320 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(label, value, isSelected, isDisabled))); 4321 4322 4323 #line default 4324 #line hidden 4325 4326 #line 1598 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4327 4328 4329 4330 #line default 4331 #line hidden 4332 4333 #line 1599 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4334 WriteTo(__razor_helper_writer, SnippetEnd("highlightedContries")); 4335 4336 4337 #line default 4338 #line hidden 4339 4340 #line 1599 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4341 4342 4343 4344 #line default 4345 #line hidden 4346 }); 4347 4348 #line 1600 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4349 } 4350 #line default 4351 #line hidden 4352 4353 4354 #line 1604 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4355 public RazorEngine.Templating.TemplateWriter RenderPaging() 4356 { 4357 #line default 4358 #line hidden 4359 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4360 4361 #line 1605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4362 4363 4364 4365 #line default 4366 #line hidden 4367 4368 #line 1606 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4369 WriteTo(__razor_helper_writer, RenderPaging( 4370 GetInteger("Ecom:CustomerCenter.Paging.NumPages"), 4371 "CCPage", 4372 GetString("Ecom:CustomerCenter.Paging.Back.URL"), 4373 GetString("Ecom:CustomerCenter.Paging.Forward.URL"), 4374 GetInteger("Ecom:CustomerCenter.Paging.CurrentPage"), 4375 GetLoop("Ecom:CustomerCenter.Paging.Pages"), 4376 "Ecom:CustomerCenter.Paging.PageIndex", 4377 string.Empty, 4378 true, 4379 false 4380 )); 4381 4382 4383 #line default 4384 #line hidden 4385 4386 #line 1617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4387 4388 4389 4390 #line default 4391 #line hidden 4392 }); 4393 4394 #line 1618 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4395 } 4396 #line default 4397 #line hidden 4398 4399 4400 #line 1620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4401 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, int currentPage) 4402 { 4403 #line default 4404 #line hidden 4405 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4406 4407 #line 1621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4408 4409 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 4410 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 4411 var previousPageUrl = string.Empty; 4412 var nextPageUrl = string.Empty; 4413 4414 if (currentPage > 1) 4415 { 4416 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage - 1).ToString()); 4417 previousPageUrl = (string) Dna.UrlServices.Helpers.BuildUri(url, queryParameters).ToString(); 4418 } 4419 if (currentPage < numOfPages) 4420 { 4421 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage + 1).ToString()); 4422 nextPageUrl = (string) Dna.UrlServices.Helpers.BuildUri(url, queryParameters).ToString(); 4423 } 4424 4425 4426 4427 #line default 4428 #line hidden 4429 4430 #line 1638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4431 WriteTo(__razor_helper_writer, RenderPaging(numOfPages, pageQueryParameter, previousPageUrl, nextPageUrl, currentPage)); 4432 4433 4434 #line default 4435 #line hidden 4436 4437 #line 1638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4438 4439 4440 4441 #line default 4442 #line hidden 4443 }); 4444 4445 #line 1639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4446 } 4447 #line default 4448 #line hidden 4449 4450 4451 #line 1641 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4452 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, string previousPageUrl, string nextPageUrl, int currentPage, List<LoopItem> pagesLoop = null, string pageNumTag = "", string pageHrefTag = "", bool includeWrapper = true, bool includeFirstAndLastLabel = true) 4453 { 4454 #line default 4455 #line hidden 4456 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4457 4458 #line 1642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4459 4460 if (numOfPages > 1) 4461 { 4462 4463 4464 #line default 4465 #line hidden 4466 4467 #line 1645 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4468 4469 4470 4471 #line default 4472 #line hidden 4473 4474 #line 1651 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4475 4476 4477 var loopPageSize = 3; 4478 var startPage = 1; 4479 var endPage = numOfPages; 4480 4481 var pageQueryParameter2 = pageQueryParameter == "PageNum" || pageQueryParameter == "page" || pageQueryParameter == "DWPagingPageNum" ? string.Empty : Pageview.CurrentParagraph.ID.ToString(); 4482 var pageNumQueryParameter = pageQueryParameter + pageQueryParameter2; 4483 4484 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 4485 queryParameters.Remove(pageNumQueryParameter); 4486 queryParameters.Remove("pid"); 4487 4488 if (pageQueryParameter == "page") 4489 { 4490 queryParameters.Add("pid", Pageview.CurrentParagraph.ID.ToString()); 4491 } 4492 4493 if (pagesLoop != null) 4494 { 4495 loopPageSize = pagesLoop.Count; 4496 endPage = 1; 4497 } 4498 else 4499 { 4500 var pageOffset = Math.Floor(Convert.ToDecimal(loopPageSize / 2)); 4501 var middlePage = pageOffset + 1; 4502 4503 if (numOfPages > loopPageSize) 4504 { 4505 startPage = Convert.ToInt32(currentPage - pageOffset) < 1 ? 1 : Convert.ToInt32(currentPage - pageOffset); 4506 endPage = Convert.ToInt32(currentPage + pageOffset) > numOfPages ? numOfPages : Convert.ToInt32(currentPage + pageOffset); 4507 4508 if (currentPage < middlePage) 4509 { 4510 endPage = loopPageSize; 4511 } 4512 else if (currentPage >= middlePage) 4513 { 4514 if (numOfPages < currentPage + pageOffset) 4515 { 4516 startPage = numOfPages - loopPageSize; 4517 if (loopPageSize % 2 != 0) 4518 { 4519 startPage += 1; 4520 } 4521 } 4522 4523 if (loopPageSize % 2 == 0) 4524 { 4525 startPage += 1; 4526 } 4527 } 4528 } 4529 } 4530 4531 if (includeWrapper) 4532 { 4533 4534 4535 #line default 4536 #line hidden 4537 WriteLiteralTo(__razor_helper_writer, " "); 4538 4539 WriteLiteralTo(__razor_helper_writer, "<div class=\"col-xs-12 text-center paginationContainer\">\r\n"); 4540 4541 4542 #line 1710 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4543 } 4544 4545 4546 #line default 4547 #line hidden 4548 WriteLiteralTo(__razor_helper_writer, " <ul"); 4549 4550 WriteLiteralTo(__razor_helper_writer, " class=\"pagination\""); 4551 4552 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4553 4554 4555 #line 1712 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4556 4557 4558 #line default 4559 #line hidden 4560 4561 #line 1712 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4562 if (previousPageUrl.IsNotNullOrEmpty() && previousPageUrl != "#") 4563 { 4564 var label = includeFirstAndLastLabel ? Translate("Previous") : string.Empty; 4565 4566 4567 #line default 4568 #line hidden 4569 4570 #line 1715 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4571 WriteTo(__razor_helper_writer, InternalRenderPageItem(previousPageUrl, label, "fa-caret-left", IconPosition.Left)); 4572 4573 4574 #line default 4575 #line hidden 4576 4577 #line 1715 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4578 4579 } 4580 4581 #line default 4582 #line hidden 4583 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4584 4585 4586 #line 1717 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4587 4588 4589 #line default 4590 #line hidden 4591 4592 #line 1717 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4593 if (pagesLoop != null) 4594 { 4595 4596 4597 #line default 4598 #line hidden 4599 4600 #line 1719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4601 WriteTo(__razor_helper_writer, InternalRenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, pagesLoop[0].GetInteger(pageNumTag))); 4602 4603 4604 #line default 4605 #line hidden 4606 4607 #line 1719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4608 4609 foreach (var page in pagesLoop) 4610 { 4611 var pageItemHref = pageQueryParameter == "PageNum" || pageQueryParameter == "page" ? page.GetString(pageHrefTag) : pageQueryParameter.StartsWith("CCPage") ? string.Concat("CCPage=", page.GetString(pageHrefTag)) : string.Empty; 4612 endPage = page.GetInteger(pageNumTag); 4613 4614 queryParameters.Remove(pageNumQueryParameter); 4615 if (pageItemHref.IsNotNullOrEmpty()) 4616 { 4617 queryParameters.Add(pageNumQueryParameter, page.GetString(pageNumTag)); 4618 } 4619 4620 4621 #line default 4622 #line hidden 4623 4624 #line 1730 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4625 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, page.GetString(pageNumTag), page.GetInteger(pageNumTag) == currentPage ? "active" : string.Empty)); 4626 4627 4628 #line default 4629 #line hidden 4630 4631 #line 1730 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4632 4633 4634 } 4635 4636 4637 #line default 4638 #line hidden 4639 4640 #line 1733 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4641 WriteTo(__razor_helper_writer, InternalRenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 4642 4643 4644 #line default 4645 #line hidden 4646 4647 #line 1733 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4648 4649 } 4650 else 4651 { 4652 4653 4654 #line default 4655 #line hidden 4656 4657 #line 1737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4658 WriteTo(__razor_helper_writer, InternalRenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize)); 4659 4660 4661 #line default 4662 #line hidden 4663 4664 #line 1737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4665 4666 for (var page = startPage; page <= endPage; page++) 4667 { 4668 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, page.ToString()); 4669 4670 4671 #line default 4672 #line hidden 4673 4674 #line 1741 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4675 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, page.ToString(), page == currentPage ? "active" : string.Empty)); 4676 4677 4678 #line default 4679 #line hidden 4680 4681 #line 1741 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4682 4683 } 4684 4685 4686 #line default 4687 #line hidden 4688 4689 #line 1743 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4690 WriteTo(__razor_helper_writer, InternalRenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 4691 4692 4693 #line default 4694 #line hidden 4695 4696 #line 1743 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4697 4698 } 4699 4700 #line default 4701 #line hidden 4702 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 4703 4704 4705 #line 1746 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4706 4707 4708 #line default 4709 #line hidden 4710 4711 #line 1746 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4712 if (nextPageUrl.IsNotNullOrEmpty() && nextPageUrl != "#") 4713 { 4714 var label = includeFirstAndLastLabel ? Translate("Next") : string.Empty; 4715 4716 4717 #line default 4718 #line hidden 4719 4720 #line 1749 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4721 WriteTo(__razor_helper_writer, InternalRenderPageItem(nextPageUrl, label, "fa-caret-right", IconPosition.Right)); 4722 4723 4724 #line default 4725 #line hidden 4726 4727 #line 1749 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4728 4729 } 4730 4731 #line default 4732 #line hidden 4733 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 4734 4735 4736 #line 1752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4737 if (includeWrapper) 4738 { 4739 4740 4741 #line default 4742 #line hidden 4743 WriteLiteralTo(__razor_helper_writer, " "); 4744 4745 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 4746 4747 4748 #line 1755 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4749 } 4750 } 4751 4752 4753 #line default 4754 #line hidden 4755 }); 4756 4757 #line 1757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4758 } 4759 #line default 4760 #line hidden 4761 4762 4763 #line 1761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4764 public RazorEngine.Templating.TemplateWriter RenderIcon(string cssPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 4765 { 4766 #line default 4767 #line hidden 4768 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4769 4770 #line 1762 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4771 4772 var icon = !isLabelATooltip ? "<i class='fa " + cssPartialClass + "'></i>" : "<i class='fa " + cssPartialClass + "' data-toggle='" + label + "'></i>"; 4773 var spacing = string.Empty; 4774 4775 if (label.IsNotNullOrEmpty()) 4776 { 4777 spacing = "&nbsp;"; 4778 } 4779 if (cssPartialClass.IsNotNullOrEmpty()) 4780 { 4781 if (isLabelATooltip) 4782 { 4783 4784 4785 #line default 4786 #line hidden 4787 4788 #line 1774 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4789 WriteTo(__razor_helper_writer, icon); 4790 4791 4792 #line default 4793 #line hidden 4794 4795 #line 1774 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4796 4797 } 4798 else if (position == IconPosition.Left) 4799 { 4800 4801 4802 #line default 4803 #line hidden 4804 4805 #line 1778 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4806 WriteTo(__razor_helper_writer, icon); 4807 4808 4809 #line default 4810 #line hidden 4811 4812 #line 1778 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4813 4814 4815 4816 #line default 4817 #line hidden 4818 4819 #line 1779 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4820 WriteTo(__razor_helper_writer, spacing); 4821 4822 4823 #line default 4824 #line hidden 4825 4826 #line 1779 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4827 4828 4829 4830 #line default 4831 #line hidden 4832 4833 #line 1780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4834 WriteTo(__razor_helper_writer, label); 4835 4836 4837 #line default 4838 #line hidden 4839 4840 #line 1780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4841 4842 } 4843 else 4844 { 4845 4846 4847 #line default 4848 #line hidden 4849 4850 #line 1784 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4851 WriteTo(__razor_helper_writer, label); 4852 4853 4854 #line default 4855 #line hidden 4856 4857 #line 1784 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4858 4859 4860 4861 #line default 4862 #line hidden 4863 4864 #line 1785 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4865 WriteTo(__razor_helper_writer, spacing); 4866 4867 4868 #line default 4869 #line hidden 4870 4871 #line 1785 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4872 4873 4874 4875 #line default 4876 #line hidden 4877 4878 #line 1786 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4879 WriteTo(__razor_helper_writer, icon); 4880 4881 4882 #line default 4883 #line hidden 4884 4885 #line 1786 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4886 4887 } 4888 } 4889 else 4890 { 4891 4892 4893 #line default 4894 #line hidden 4895 4896 #line 1791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4897 WriteTo(__razor_helper_writer, label); 4898 4899 4900 #line default 4901 #line hidden 4902 4903 #line 1791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4904 4905 } 4906 4907 4908 #line default 4909 #line hidden 4910 }); 4911 4912 #line 1793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4913 } 4914 #line default 4915 #line hidden 4916 4917 4918 #line 1795 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4919 public RazorEngine.Templating.TemplateWriter RenderStackedIcons(string cssPrincipalPartialClass, string cssSecondaryPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 4920 { 4921 #line default 4922 #line hidden 4923 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4924 4925 #line 1796 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4926 4927 var spacing = string.Empty; 4928 var icon = new StringBuilder("<span class='fa-stack'>"); 4929 4930 icon.Append(!isLabelATooltip ? "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x'></i>" : "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x' data-toggle='" + label + "'></i>"); 4931 icon.Append("<i class='fa " + cssSecondaryPartialClass + " fa-stack-1x'></i>"); 4932 icon.Append("</span>"); 4933 4934 if (label.IsNotNullOrEmpty()) 4935 { 4936 spacing = "<text>&nbsp;</text>"; 4937 } 4938 if (cssPrincipalPartialClass.IsNotNullOrEmpty() && cssSecondaryPartialClass.IsNotNullOrEmpty()) 4939 { 4940 if (isLabelATooltip) 4941 { 4942 4943 4944 #line default 4945 #line hidden 4946 4947 #line 1812 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4948 WriteTo(__razor_helper_writer, icon.ToString()); 4949 4950 4951 #line default 4952 #line hidden 4953 4954 #line 1812 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4955 4956 } 4957 else if (position == IconPosition.Left) 4958 { 4959 4960 4961 #line default 4962 #line hidden 4963 4964 #line 1816 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4965 WriteTo(__razor_helper_writer, icon.ToString()); 4966 4967 4968 #line default 4969 #line hidden 4970 4971 #line 1816 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4972 4973 4974 4975 #line default 4976 #line hidden 4977 4978 #line 1817 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4979 WriteTo(__razor_helper_writer, spacing); 4980 4981 4982 #line default 4983 #line hidden 4984 4985 #line 1817 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4986 4987 4988 4989 #line default 4990 #line hidden 4991 4992 #line 1818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 4993 WriteTo(__razor_helper_writer, label); 4994 4995 4996 #line default 4997 #line hidden 4998 4999 #line 1818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5000 5001 } 5002 else 5003 { 5004 5005 5006 #line default 5007 #line hidden 5008 5009 #line 1822 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5010 WriteTo(__razor_helper_writer, label); 5011 5012 5013 #line default 5014 #line hidden 5015 5016 #line 1822 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5017 5018 5019 5020 #line default 5021 #line hidden 5022 5023 #line 1823 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5024 WriteTo(__razor_helper_writer, spacing); 5025 5026 5027 #line default 5028 #line hidden 5029 5030 #line 1823 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5031 5032 5033 5034 #line default 5035 #line hidden 5036 5037 #line 1824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5038 WriteTo(__razor_helper_writer, icon.ToString()); 5039 5040 5041 #line default 5042 #line hidden 5043 5044 #line 1824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5045 5046 } 5047 } 5048 else 5049 { 5050 5051 5052 #line default 5053 #line hidden 5054 5055 #line 1829 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5056 WriteTo(__razor_helper_writer, label); 5057 5058 5059 #line default 5060 #line hidden 5061 5062 #line 1829 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5063 5064 } 5065 5066 5067 #line default 5068 #line hidden 5069 }); 5070 5071 #line 1831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5072 } 5073 #line default 5074 #line hidden 5075 5076 5077 #line 1833 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5078 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href = "", string title = "", string onClickConfirm = "") 5079 { 5080 #line default 5081 #line hidden 5082 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5083 5084 #line 1834 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5085 5086 var attributes = new Dictionary<string, string>(); 5087 5088 if (title.IsNotNullOrEmpty()) 5089 { 5090 attributes.Add("title", title); 5091 } 5092 if (onClickConfirm.IsNotNullOrEmpty()) 5093 { 5094 attributes.Add("onclick", "return confirm('" + onClickConfirm + "');"); 5095 } 5096 if (href.IsNotNullOrEmpty()) 5097 { 5098 attributes.Add("href", href); 5099 } 5100 5101 5102 #line default 5103 #line hidden 5104 5105 #line 1849 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5106 WriteTo(__razor_helper_writer, RenderAction(action, href, attributes)); 5107 5108 5109 #line default 5110 #line hidden 5111 5112 #line 1849 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5113 5114 5115 5116 #line default 5117 #line hidden 5118 }); 5119 5120 #line 1850 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5121 } 5122 #line default 5123 #line hidden 5124 5125 5126 #line 1852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5127 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href, Dictionary<string, string> attributes) 5128 { 5129 #line default 5130 #line hidden 5131 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5132 5133 #line 1853 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5134 5135 var icon = string.Empty; 5136 var linkAttributes = string.Empty; 5137 var label = Translate(action.ToString()); 5138 5139 switch (action) 5140 { 5141 case IconAction.Add: 5142 break; 5143 case IconAction.View: 5144 icon = "fa-eye"; 5145 break; 5146 case IconAction.Edit: 5147 icon = "fa-edit"; 5148 break; 5149 case IconAction.Cancel: 5150 case IconAction.Remove: 5151 icon = "fa-times"; 5152 break; 5153 case IconAction.Delete: 5154 icon = "fa-trash"; 5155 break; 5156 case IconAction.Print: 5157 icon = "fa-print"; 5158 attributes.Add("target", "_blank"); 5159 break; 5160 case IconAction.Save: 5161 break; 5162 case IconAction.Reset: 5163 break; 5164 case IconAction.Undo: 5165 break; 5166 case IconAction.Reorder: 5167 icon = "fa-repeat"; 5168 break; 5169 case IconAction.SetDefault: 5170 icon = "fa-times"; 5171 label = string.Empty; 5172 break; 5173 case IconAction.IsDefault: 5174 icon = "fa-check"; 5175 label = string.Empty; 5176 break; 5177 default: 5178 throw new NotSupportedException("An action is needed to render this helper!"); 5179 } 5180 if (icon.IsNotNullOrEmpty()) 5181 { 5182 if (href.IsNotNullOrEmpty()) 5183 { 5184 5185 5186 #line default 5187 #line hidden 5188 5189 #line 1903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5190 WriteTo(__razor_helper_writer, GetHtmlElement("a", GetAttributes(attributes))); 5191 5192 5193 #line default 5194 #line hidden 5195 5196 #line 1903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5197 5198 5199 5200 #line default 5201 #line hidden 5202 5203 #line 1904 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5204 WriteTo(__razor_helper_writer, RenderIcon(icon, label)); 5205 5206 5207 #line default 5208 #line hidden 5209 5210 #line 1904 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5211 5212 5213 5214 #line default 5215 #line hidden 5216 5217 #line 1905 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5218 WriteTo(__razor_helper_writer, GetHtmlElement("a", true)); 5219 5220 5221 #line default 5222 #line hidden 5223 5224 #line 1905 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5225 5226 } 5227 else if (label.IsNullOrEmpty()) 5228 { 5229 5230 5231 #line default 5232 #line hidden 5233 5234 #line 1909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5235 WriteTo(__razor_helper_writer, RenderIcon(icon)); 5236 5237 5238 #line default 5239 #line hidden 5240 5241 #line 1909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5242 5243 } 5244 } 5245 5246 5247 5248 #line default 5249 #line hidden 5250 }); 5251 5252 #line 1913 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5253 } 5254 #line default 5255 #line hidden 5256 5257 5258 #line 1915 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5259 public RazorEngine.Templating.TemplateWriter RenderBootstrapButton(BootstrapButtonSettings settings) 5260 { 5261 #line default 5262 #line hidden 5263 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5264 5265 #line 1916 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5266 5267 var attributes = new StringBuilder(GetAttribute("class", "btn " + (settings.CssClass.IsNotNullOrEmpty() ? settings.CssClass : "btn-default"))); 5268 attributes.Append(GetAttribute("target", settings.Target)); 5269 attributes.Append(GetAttribute("href", settings.Href)); 5270 attributes.Append(GetAttribute("name", settings.SystemName)); 5271 attributes.Append(GetAttribute("id", settings.Id)); 5272 attributes.Append(GetAttribute("value", settings.Value)); 5273 if (settings.ButtonType == BootstrapButtonSettings.BootstrapButtonType.Button && !settings.Attributes.ContainsKey("type")) 5274 { 5275 settings.Attributes.Add("type","submit"); 5276 } 5277 5278 attributes.Append(GetAttributes(settings.Attributes)); 5279 string htmlElement; 5280 5281 switch (settings.ButtonType) 5282 { 5283 case BootstrapButtonSettings.BootstrapButtonType.Button: 5284 htmlElement = "button"; 5285 break; 5286 case BootstrapButtonSettings.BootstrapButtonType.Anchor: 5287 htmlElement = "a"; 5288 break; 5289 default: 5290 throw new NotSupportedException(string.Format("Unsupported Bootstrap Button type: {0}.", settings.ButtonType.ToString())); 5291 } 5292 5293 5294 #line default 5295 #line hidden 5296 5297 #line 1942 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5298 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, attributes.ToString())); 5299 5300 5301 #line default 5302 #line hidden 5303 5304 #line 1942 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5305 5306 5307 5308 #line default 5309 #line hidden 5310 5311 #line 1943 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5312 WriteTo(__razor_helper_writer, RenderIcon(settings.IconCssClass, settings.Label, settings.IconPosition)); 5313 5314 5315 #line default 5316 #line hidden 5317 5318 #line 1943 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5319 5320 5321 5322 #line default 5323 #line hidden 5324 5325 #line 1944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5326 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, true)); 5327 5328 5329 #line default 5330 #line hidden 5331 5332 #line 1944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5333 5334 5335 5336 #line default 5337 #line hidden 5338 }); 5339 5340 #line 1945 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5341 } 5342 #line default 5343 #line hidden 5344 5345 5346 #line 1947 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5347 public RazorEngine.Templating.TemplateWriter RenderAddToCart(string productId, string productUnitId, string productVariantId, int availableAmount = 0, bool doNotRenderHiddenFields = false) 5348 { 5349 #line default 5350 #line hidden 5351 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5352 5353 #line 1948 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5354 5355 var addToCartButtonSettings = new BootstrapButtonSettings 5356 { 5357 Label = Translate("Add to Cart"), 5358 CssClass = availableAmount <= 0 ? "btn-default addToCartSubmit disabled" : "btn-default addToCartSubmit", 5359 Href = string.Concat(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MiniCart").ID),"?productid=", productId, "&amp;variantID=", productVariantId, "&amp;cartcmd=add"), 5360 IconCssClass = "fa-shopping-cart", 5361 Attributes = new Dictionary<string, string> 5362 { 5363 {"data-add", Translate("Add to Cart")}, 5364 {"data-added", Translate("Added")}, 5365 {"data-outofstock", Translate("Out of stock")}, 5366 {"data-stock", availableAmount.ToString()} 5367 } 5368 }; 5369 5370 5371 #line default 5372 #line hidden 5373 5374 #line 1963 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5375 WriteTo(__razor_helper_writer, RenderBootstrapButton(addToCartButtonSettings)); 5376 5377 5378 #line default 5379 #line hidden 5380 5381 #line 1963 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5382 5383 if (!doNotRenderHiddenFields) 5384 { 5385 5386 5387 #line default 5388 #line hidden 5389 5390 #line 1966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5391 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("redirect", "false", "redirect" + productId))); 5392 5393 5394 #line default 5395 #line hidden 5396 5397 #line 1966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5398 5399 5400 5401 #line default 5402 #line hidden 5403 5404 #line 1967 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5405 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("cartcmd", "add", "cartcmd" + productId))); 5406 5407 5408 #line default 5409 #line hidden 5410 5411 #line 1967 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5412 5413 5414 5415 #line default 5416 #line hidden 5417 5418 #line 1968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5419 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("productid", productId, "productId" + productId))); 5420 5421 5422 #line default 5423 #line hidden 5424 5425 #line 1968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5426 5427 5428 5429 #line default 5430 #line hidden 5431 5432 #line 1969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5433 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("unitID", productUnitId, "unitID" + productId))); 5434 5435 5436 #line default 5437 #line hidden 5438 5439 #line 1969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5440 5441 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 5442 { 5443 5444 5445 #line default 5446 #line hidden 5447 5448 #line 1972 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5449 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("getproductinfo", "true", "getproductinfo" + productId))); 5450 5451 5452 #line default 5453 #line hidden 5454 5455 #line 1972 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5456 5457 } 5458 } 5459 5460 5461 #line default 5462 #line hidden 5463 5464 #line 1975 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5465 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateSubmitField(Translate("Add to Cart"), "hidden"))); 5466 5467 5468 #line default 5469 #line hidden 5470 5471 #line 1975 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5472 5473 5474 5475 #line default 5476 #line hidden 5477 }); 5478 5479 #line 1976 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5480 } 5481 #line default 5482 #line hidden 5483 5484 5485 #line 1978 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5486 public RazorEngine.Templating.TemplateWriter RenderSocialMediaShare() 5487 { 5488 #line default 5489 #line hidden 5490 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5491 5492 #line 1979 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5493 5494 5495 5496 #line default 5497 #line hidden 5498 WriteLiteralTo(__razor_helper_writer, " <div"); 5499 5500 WriteLiteralTo(__razor_helper_writer, " class=\"shareIcons\""); 5501 5502 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 5503 5504 5505 #line 1981 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5506 WriteTo(__razor_helper_writer, Translate("Share")); 5507 5508 5509 #line default 5510 #line hidden 5511 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 5512 5513 WriteLiteralTo(__razor_helper_writer, " "); 5514 5515 5516 #line 1982 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5517 WriteTo(__razor_helper_writer, RenderSocialMedia(false, true)); 5518 5519 5520 #line default 5521 #line hidden 5522 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5523 5524 5525 #line 1984 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5526 5527 5528 #line default 5529 #line hidden 5530 }); 5531 5532 #line 1984 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5533 } 5534 #line default 5535 #line hidden 5536 5537 5538 #line 1986 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5539 public RazorEngine.Templating.TemplateWriter RenderOpenGraphMeta(string type, string image, string title, string teaser = "", string imageAlt = "") 5540 { 5541 #line default 5542 #line hidden 5543 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5544 5545 #line 1987 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5546 5547 var culture = Pageview.Area.Culture.Replace("-", "_"); 5548 teaser = System.Text.RegularExpressions.Regex.Replace(teaser, "<.*?>", string.Empty); 5549 if (type.IsNullOrEmpty()) 5550 { 5551 type = "article"; 5552 } 5553 if (imageAlt.IsNullOrEmpty()) 5554 { 5555 imageAlt = title; 5556 } 5557 5558 5559 #line default 5560 #line hidden 5561 5562 #line 1998 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5563 WriteTo(__razor_helper_writer, SnippetStart("OGMeta")); 5564 5565 5566 #line default 5567 #line hidden 5568 5569 #line 1998 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5570 5571 5572 5573 #line default 5574 #line hidden 5575 WriteLiteralTo(__razor_helper_writer, " <meta"); 5576 5577 WriteLiteralTo(__razor_helper_writer, " property=\"og:title\""); 5578 5579 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80485), Tuple.Create("\"", 80525) 5580 5581 #line 1999 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5582 , Tuple.Create(Tuple.Create("", 80495), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlEncode(title) 5583 5584 #line default 5585 #line hidden 5586 , 80495), false) 5587 ); 5588 5589 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5590 5591 WriteLiteralTo(__razor_helper_writer, " <meta"); 5592 5593 WriteLiteralTo(__razor_helper_writer, " property=\"og:image\""); 5594 5595 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80563), Tuple.Create("\"", 80639) 5596 5597 #line 2000 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5598 , Tuple.Create(Tuple.Create("", 80573), Tuple.Create<System.Object, System.Int32>(string.Concat(Dna.UrlServices.Helpers.GetCurrentUrl(true), image) 5599 5600 #line default 5601 #line hidden 5602 , 80573), false) 5603 ); 5604 5605 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5606 5607 WriteLiteralTo(__razor_helper_writer, " <meta"); 5608 5609 WriteLiteralTo(__razor_helper_writer, " property=\"og:image:alt\""); 5610 5611 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80681), Tuple.Create("\"", 80700) 5612 5613 #line 2001 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5614 , Tuple.Create(Tuple.Create("", 80691), Tuple.Create<System.Object, System.Int32>(imageAlt 5615 5616 #line default 5617 #line hidden 5618 , 80691), false) 5619 ); 5620 5621 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5622 5623 WriteLiteralTo(__razor_helper_writer, " <meta"); 5624 5625 WriteLiteralTo(__razor_helper_writer, " property=\"og:site_name\""); 5626 5627 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80742), Tuple.Create("\"", 80786) 5628 5629 #line 2002 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5630 , Tuple.Create(Tuple.Create("", 80752), Tuple.Create<System.Object, System.Int32>(Pageview.Area.Item["CompanyName"] 5631 5632 #line default 5633 #line hidden 5634 , 80752), false) 5635 ); 5636 5637 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5638 5639 WriteLiteralTo(__razor_helper_writer, " <meta"); 5640 5641 WriteLiteralTo(__razor_helper_writer, " property=\"og:url\""); 5642 5643 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80822), Tuple.Create("\"", 80872) 5644 5645 #line 2003 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5646 , Tuple.Create(Tuple.Create("", 80832), Tuple.Create<System.Object, System.Int32>(Dna.UrlServices.Helpers.GetCurrentUrl() 5647 5648 #line default 5649 #line hidden 5650 , 80832), false) 5651 ); 5652 5653 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5654 5655 WriteLiteralTo(__razor_helper_writer, " <meta"); 5656 5657 WriteLiteralTo(__razor_helper_writer, " property=\"og:description\""); 5658 5659 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80916), Tuple.Create("\"", 80957) 5660 5661 #line 2004 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5662 , Tuple.Create(Tuple.Create("", 80926), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlEncode(teaser) 5663 5664 #line default 5665 #line hidden 5666 , 80926), false) 5667 ); 5668 5669 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5670 5671 WriteLiteralTo(__razor_helper_writer, " <meta"); 5672 5673 WriteLiteralTo(__razor_helper_writer, " property=\"og:type\""); 5674 5675 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 80994), Tuple.Create("\"", 81009) 5676 5677 #line 2005 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5678 , Tuple.Create(Tuple.Create("", 81004), Tuple.Create<System.Object, System.Int32>(type 5679 5680 #line default 5681 #line hidden 5682 , 81004), false) 5683 ); 5684 5685 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5686 5687 WriteLiteralTo(__razor_helper_writer, " <meta"); 5688 5689 WriteLiteralTo(__razor_helper_writer, " property=\"og:locale\""); 5690 5691 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 81048), Tuple.Create("\"", 81066) 5692 5693 #line 2006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5694 , Tuple.Create(Tuple.Create("", 81058), Tuple.Create<System.Object, System.Int32>(culture 5695 5696 #line default 5697 #line hidden 5698 , 81058), false) 5699 ); 5700 5701 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5702 5703 5704 #line 2007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5705 5706 5707 #line default 5708 #line hidden 5709 5710 #line 2007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5711 WriteTo(__razor_helper_writer, SnippetEnd("OGMeta")); 5712 5713 5714 #line default 5715 #line hidden 5716 5717 #line 2007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5718 5719 5720 5721 #line default 5722 #line hidden 5723 }); 5724 5725 #line 2008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5726 } 5727 #line default 5728 #line hidden 5729 5730 5731 #line 2010 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5732 public RazorEngine.Templating.TemplateWriter RenderSocialMedia(bool isEmailTemplate = false, bool isToShare = false) 5733 { 5734 #line default 5735 #line hidden 5736 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5737 5738 #line 2011 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5739 5740 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "GeneralSettings").ID); 5741 var generalSettings = Dynamicweb.Content.Items.Item.GetItemById(page.ItemType, page.ItemId); 5742 5743 if(generalSettings["SocialMedia"] != null) { 5744 var socialMedia = Dynamicweb.Content.Items.ItemList.GetItemListById(int.Parse(generalSettings["SocialMedia"].ToString())); 5745 5746 if(socialMedia.Relations.Any()) 5747 { 5748 if(!isEmailTemplate) 5749 { 5750 5751 5752 #line default 5753 #line hidden 5754 WriteLiteralTo(__razor_helper_writer, " "); 5755 5756 WriteLiteralTo(__razor_helper_writer, "<ul class=\"socialMedia\">\r\n"); 5757 5758 5759 #line 2023 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5760 } 5761 foreach (var r in socialMedia.Relations) 5762 { 5763 var socialNetwork = Dynamicweb.Content.Items.Item.GetItemById("SocialLinks", r.Id); 5764 var className = (socialNetwork["Icon"] ?? "").ToString(); 5765 var socialName = (socialNetwork["Name"] ?? "").ToString(); 5766 var socialLink = (socialNetwork["Link"] ?? "").ToString(); 5767 var shareLink = (socialNetwork["ShareURL"] ?? "").ToString(); 5768 5769 if (isEmailTemplate) 5770 { 5771 5772 5773 #line default 5774 #line hidden 5775 WriteLiteralTo(__razor_helper_writer, " "); 5776 5777 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 5778 5779 WriteLiteralTo(__razor_helper_writer, " <a"); 5780 5781 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 82541), Tuple.Create("\"", 82560) 5782 5783 #line 2035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5784 , Tuple.Create(Tuple.Create("", 82549), Tuple.Create<System.Object, System.Int32>(socialName 5785 5786 #line default 5787 #line hidden 5788 , 82549), false) 5789 ); 5790 5791 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 5792 5793 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 82577), Tuple.Create("\"", 82595) 5794 5795 #line 2035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5796 , Tuple.Create(Tuple.Create("", 82584), Tuple.Create<System.Object, System.Int32>(socialLink 5797 5798 #line default 5799 #line hidden 5800 , 82584), false) 5801 ); 5802 5803 WriteLiteralTo(__razor_helper_writer, ">"); 5804 5805 5806 #line 2035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5807 WriteTo(__razor_helper_writer, socialName); 5808 5809 5810 #line default 5811 #line hidden 5812 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 5813 5814 WriteLiteralTo(__razor_helper_writer, " "); 5815 5816 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 5817 5818 5819 #line 2037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5820 } 5821 else if(!isToShare || shareLink.IsNotNullOrEmpty()) 5822 { 5823 5824 5825 #line default 5826 #line hidden 5827 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 5828 5829 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 82827), Tuple.Create("\"", 82846) 5830 5831 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5832 , Tuple.Create(Tuple.Create("", 82835), Tuple.Create<System.Object, System.Int32>(socialName 5833 5834 #line default 5835 #line hidden 5836 , 82835), false) 5837 ); 5838 5839 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 82847), Tuple.Create("\"", 82868) 5840 5841 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5842 , Tuple.Create(Tuple.Create("", 82855), Tuple.Create<System.Object, System.Int32>(className 5843 5844 #line default 5845 #line hidden 5846 , 82855), false) 5847 , Tuple.Create(Tuple.Create(" ", 82865), Tuple.Create("fa", 82866), true) 5848 ); 5849 5850 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 5851 5852 WriteLiteralTo(__razor_helper_writer, " data-sharehref=\""); 5853 5854 5855 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5856 WriteTo(__razor_helper_writer, shareLink); 5857 5858 5859 #line default 5860 #line hidden 5861 5862 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5863 WriteTo(__razor_helper_writer, Dna.UrlServices.Helpers.GetCurrentUrl()); 5864 5865 5866 #line default 5867 #line hidden 5868 WriteLiteralTo(__razor_helper_writer, "\""); 5869 5870 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 82953), Tuple.Create("\"", 82971) 5871 5872 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5873 , Tuple.Create(Tuple.Create("", 82960), Tuple.Create<System.Object, System.Int32>(socialLink 5874 5875 #line default 5876 #line hidden 5877 , 82960), false) 5878 ); 5879 5880 WriteLiteralTo(__razor_helper_writer, "><span"); 5881 5882 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 5883 5884 WriteLiteralTo(__razor_helper_writer, ">"); 5885 5886 5887 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5888 WriteTo(__razor_helper_writer, socialName); 5889 5890 5891 #line default 5892 #line hidden 5893 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n </li>\r\n"); 5894 5895 5896 #line 2043 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5897 } 5898 } 5899 if(!isEmailTemplate) 5900 { 5901 5902 5903 #line default 5904 #line hidden 5905 WriteLiteralTo(__razor_helper_writer, " "); 5906 5907 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 5908 5909 5910 #line 2048 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5911 } 5912 } 5913 } 5914 5915 5916 #line default 5917 #line hidden 5918 }); 5919 5920 #line 2051 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5921 } 5922 #line default 5923 #line hidden 5924 5925 5926 #line 2053 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5927 public RazorEngine.Templating.TemplateWriter RenderNoResults(string wording, string title = "", bool hasWrapper = false, string wrapperClass = "col-xs-12 noPadding" ) 5928 { 5929 #line default 5930 #line hidden 5931 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5932 5933 #line 2054 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5934 5935 if (hasWrapper) 5936 { 5937 5938 5939 #line default 5940 #line hidden 5941 WriteLiteralTo(__razor_helper_writer, " "); 5942 5943 WriteLiteralTo(__razor_helper_writer, "<div class=\"noResultsWrapper "); 5944 5945 5946 #line 2057 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5947 WriteTo(__razor_helper_writer, wrapperClass); 5948 5949 5950 #line default 5951 #line hidden 5952 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 5953 5954 5955 #line 2058 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5956 } 5957 if (title.IsNotNullOrEmpty()) 5958 { 5959 5960 5961 #line default 5962 #line hidden 5963 WriteLiteralTo(__razor_helper_writer, " <h2>"); 5964 5965 5966 #line 2061 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5967 WriteTo(__razor_helper_writer, title); 5968 5969 5970 #line default 5971 #line hidden 5972 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 5973 5974 5975 #line 2062 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5976 } 5977 5978 5979 #line default 5980 #line hidden 5981 WriteLiteralTo(__razor_helper_writer, " <p>"); 5982 5983 5984 #line 2063 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5985 WriteTo(__razor_helper_writer, wording); 5986 5987 5988 #line default 5989 #line hidden 5990 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 5991 5992 5993 #line 2064 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 5994 if (hasWrapper) 5995 { 5996 5997 5998 #line default 5999 #line hidden 6000 WriteLiteralTo(__razor_helper_writer, " "); 6001 6002 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6003 6004 6005 #line 2067 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6006 } 6007 6008 6009 #line default 6010 #line hidden 6011 }); 6012 6013 #line 2068 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6014 } 6015 #line default 6016 #line hidden 6017 6018 6019 #line 2070 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6020 public RazorEngine.Templating.TemplateWriter RenderImage(ImageSettings imageSettings) 6021 { 6022 #line default 6023 #line hidden 6024 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6025 6026 #line 2071 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6027 6028 var imageMarkup = new StringBuilder(); 6029 var widthAndHeight = GetWidthAndHeightFromQueryString(imageSettings.Source); 6030 var widthAndHeightForMobile = GetWidthAndHeightFromQueryString(imageSettings.SourceForMobile, true); 6031 var widthAndHeightForTablet = GetWidthAndHeightFromQueryString(imageSettings.SourceForTablet, true); 6032 6033 if (!imageSettings.Attributes.ContainsKey("width") && widthAndHeight.ContainsKey("width") && widthAndHeight["width"].IsNotNullOrEmpty()) 6034 { 6035 imageSettings.Attributes.Add("width", widthAndHeight["width"]); 6036 } 6037 if (!imageSettings.Attributes.ContainsKey("height") && widthAndHeight.ContainsKey("height") && widthAndHeight["height"].IsNotNullOrEmpty()) 6038 { 6039 imageSettings.Attributes.Add("height", widthAndHeight["height"]); 6040 } 6041 if (!imageSettings.Attributes.ContainsKey("class")) 6042 { 6043 imageSettings.Attributes.Add("class", "img-responsive " + imageSettings.CssClass); 6044 } 6045 if (!imageSettings.Attributes.ContainsKey("src")) 6046 { 6047 imageSettings.Attributes.Add("src", imageSettings.Source); 6048 } 6049 if (!imageSettings.Attributes.ContainsKey("alt")) 6050 { 6051 imageSettings.Attributes.Add("alt", imageSettings.AltText); 6052 } 6053 if (!imageSettings.Attributes.ContainsKey("title")) 6054 { 6055 imageSettings.Attributes.Add("title", imageSettings.Title); 6056 } 6057 6058 if (imageSettings.IncludeWrapper) 6059 { 6060 var wrapperAttributes = new Dictionary<string, string>(); 6061 if (imageSettings.WrapperCssClass.IsNotNullOrEmpty()) 6062 { 6063 wrapperAttributes.Add("class", imageSettings.WrapperCssClass); 6064 } 6065 6066 imageMarkup.Append(GetHtmlElement(imageSettings.WrapperElement, wrapperAttributes)); 6067 } 6068 6069 if (imageSettings.Href.IsNotNullOrEmpty()) 6070 { 6071 var linkAttributes = new Dictionary<string, string> {{"href", imageSettings.Href}}; 6072 if (imageSettings.HrefCssClass.IsNotNullOrEmpty()) 6073 { 6074 linkAttributes.Add("class", imageSettings.HrefCssClass); 6075 } 6076 if (imageSettings.HrefTarget.IsNotNullOrEmpty()) 6077 { 6078 linkAttributes.Add("target", imageSettings.HrefTarget); 6079 } 6080 6081 imageMarkup.Append(GetHtmlElement("a", linkAttributes)); 6082 } 6083 6084 if (widthAndHeightForMobile.Any() || widthAndHeightForTablet.Any()) 6085 { 6086 imageMarkup.Append(GetHtmlElement("picture")); 6087 6088 imageMarkup.Append(GetHtmlElement("source")); 6089 6090 if (widthAndHeightForMobile.Any()) 6091 { 6092 imageMarkup.Append(GetHtmlElement("srcset", widthAndHeightForMobile)); 6093 } 6094 6095 if (widthAndHeightForTablet.Any()) 6096 { 6097 imageMarkup.Append(GetHtmlElement("srcset", widthAndHeightForTablet)); 6098 } 6099 6100 imageMarkup.Append(GetHtmlElement("source", true)); 6101 } 6102 6103 imageMarkup.Append(GetHtmlElement("img", imageSettings.Attributes, true)); 6104 6105 if (imageSettings.SourceForMobile.IsNotNullOrEmpty() || imageSettings.SourceForTablet.IsNotNullOrEmpty()) 6106 { 6107 imageMarkup.Append(GetHtmlElement("picture", true)); 6108 } 6109 6110 if (imageSettings.Href.IsNotNullOrEmpty()) 6111 { 6112 imageMarkup.Append(GetHtmlElement("a", true)); 6113 } 6114 6115 if (imageSettings.IncludeWrapper) 6116 { 6117 imageMarkup.Append(GetHtmlElement(imageSettings.WrapperElement, true)); 6118 } 6119 6120 6121 6122 #line default 6123 #line hidden 6124 6125 #line 2164 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6126 WriteTo(__razor_helper_writer, imageMarkup.ToString()); 6127 6128 6129 #line default 6130 #line hidden 6131 6132 #line 2164 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6133 6134 6135 6136 #line default 6137 #line hidden 6138 }); 6139 6140 #line 2165 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6141 } 6142 #line default 6143 #line hidden 6144 6145 6146 #line 2167 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6147 public RazorEngine.Templating.TemplateWriter RenderHtmlElementBetweenEachString(List<string> listOfStrings, string htmlElement = "br" ) 6148 { 6149 #line default 6150 #line hidden 6151 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6152 6153 #line 2168 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6154 6155 foreach (var str in listOfStrings) 6156 { 6157 if (str.IsNullOrEmpty()){continue;} 6158 6159 6160 #line default 6161 #line hidden 6162 6163 #line 2172 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6164 WriteTo(__razor_helper_writer, string.Concat(str, GetHtmlElement(htmlElement, true))); 6165 6166 6167 #line default 6168 #line hidden 6169 6170 #line 2172 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6171 6172 } 6173 6174 6175 #line default 6176 #line hidden 6177 }); 6178 6179 #line 2174 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6180 } 6181 #line default 6182 #line hidden 6183 6184 6185 #line 2176 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6186 public RazorEngine.Templating.TemplateWriter RenderProductPrice(string productPrice = "") 6187 { 6188 #line default 6189 #line hidden 6190 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6191 6192 #line 2177 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6193 6194 6195 6196 #line default 6197 #line hidden 6198 6199 #line 2178 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6200 WriteTo(__razor_helper_writer, GetProductPrice(productPrice)); 6201 6202 6203 #line default 6204 #line hidden 6205 6206 #line 2178 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6207 6208 6209 6210 #line default 6211 #line hidden 6212 }); 6213 6214 #line 2179 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6215 } 6216 #line default 6217 #line hidden 6218 6219 6220 #line 2181 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6221 public RazorEngine.Templating.TemplateWriter RenderNoErpConnectionMessage() 6222 { 6223 #line default 6224 #line hidden 6225 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6226 6227 #line 2182 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6228 6229 6230 6231 #line default 6232 #line hidden 6233 6234 #line 2183 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6235 WriteTo(__razor_helper_writer, GetNoErpConnectionMessage()); 6236 6237 6238 #line default 6239 #line hidden 6240 6241 #line 2183 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6242 6243 6244 6245 #line default 6246 #line hidden 6247 }); 6248 6249 #line 2184 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6250 } 6251 #line default 6252 #line hidden 6253 6254 6255 #line 2202 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6256 public RazorEngine.Templating.TemplateWriter InternalRenderGiftCardAmount(bool isGiftCard = false, string productPrice = "", string productId = "") 6257 { 6258 #line default 6259 #line hidden 6260 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6261 6262 #line 2203 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6263 6264 if (isGiftCard) 6265 { 6266 var giftCardAmountFieldSettings = new FieldSettings 6267 { 6268 Type = FieldType.Number, 6269 SystemName = "Amount", 6270 Id = "Amount" + productId, 6271 Placeholder = Translate("amount"), 6272 Value = productPrice, 6273 IncludeWrapper = true, 6274 WrapperCssClass = "pull-left giftCardAmount", 6275 Attributes = new Dictionary<string, string> 6276 { 6277 {"step", "0.01"}, 6278 {"min", "0.01"} 6279 } 6280 }; 6281 6282 6283 #line default 6284 #line hidden 6285 6286 #line 2221 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6287 WriteTo(__razor_helper_writer, RenderField(giftCardAmountFieldSettings)); 6288 6289 6290 #line default 6291 #line hidden 6292 6293 #line 2221 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6294 6295 } 6296 6297 6298 #line default 6299 #line hidden 6300 }); 6301 6302 #line 2223 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6303 } 6304 #line default 6305 #line hidden 6306 6307 6308 #line 2227 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6309 public RazorEngine.Templating.TemplateWriter RenderProductReviewsCount(int count = -1) 6310 { 6311 #line default 6312 #line hidden 6313 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6314 6315 #line 2228 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6316 6317 if (count == -1) 6318 { 6319 count = GetInteger("Comments.Count"); 6320 } 6321 6322 6323 #line default 6324 #line hidden 6325 WriteLiteralTo(__razor_helper_writer, " <span>"); 6326 6327 6328 #line 2233 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6329 WriteTo(__razor_helper_writer, string.Concat(count, " ", count == 1 ? Translate("Review") : Translate("Reviews"))); 6330 6331 6332 #line default 6333 #line hidden 6334 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 6335 6336 6337 #line 2234 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6338 6339 6340 #line default 6341 #line hidden 6342 }); 6343 6344 #line 2234 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6345 } 6346 #line default 6347 #line hidden 6348 6349 6350 #line 2235 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6351 public RazorEngine.Templating.TemplateWriter RenderRating(double rating) 6352 { 6353 #line default 6354 #line hidden 6355 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6356 6357 #line 2236 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6358 6359 6360 6361 #line default 6362 #line hidden 6363 WriteLiteralTo(__razor_helper_writer, " <ul"); 6364 6365 WriteLiteralTo(__razor_helper_writer, " class=\"rating\""); 6366 6367 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6368 6369 6370 #line 2238 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6371 6372 6373 #line default 6374 #line hidden 6375 6376 #line 2238 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6377 for (var s = 5; s > 0; s--) 6378 { 6379 var cssClass = string.Empty; 6380 var iconCssClass = "fa-star"; 6381 6382 if (Math.Abs(s - Math.Ceiling(rating)) <= 0) 6383 { 6384 cssClass = "class='star'"; 6385 iconCssClass = !(Math.Abs(rating - Math.Round(rating)) <= 0) ? "fa-star-half-o" : "fa-star"; 6386 } 6387 else if (Math.Ceiling(rating) < s) 6388 { 6389 iconCssClass = "fa-star-o"; 6390 } 6391 6392 6393 6394 #line default 6395 #line hidden 6396 WriteLiteralTo(__razor_helper_writer, " <li"); 6397 6398 WriteLiteralTo(__razor_helper_writer, " data-star=\""); 6399 6400 6401 #line 2253 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6402 WriteTo(__razor_helper_writer, s); 6403 6404 6405 #line default 6406 #line hidden 6407 WriteLiteralTo(__razor_helper_writer, "\""); 6408 6409 WriteLiteralTo(__razor_helper_writer, " "); 6410 6411 6412 #line 2253 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6413 WriteTo(__razor_helper_writer, cssClass); 6414 6415 6416 #line default 6417 #line hidden 6418 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6419 6420 WriteLiteralTo(__razor_helper_writer, " "); 6421 6422 6423 #line 2254 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6424 WriteTo(__razor_helper_writer, RenderIcon(iconCssClass)); 6425 6426 6427 #line default 6428 #line hidden 6429 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n"); 6430 6431 6432 #line 2256 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6433 } 6434 6435 #line default 6436 #line hidden 6437 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 6438 6439 6440 #line 2258 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6441 6442 6443 #line default 6444 #line hidden 6445 }); 6446 6447 #line 2258 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6448 } 6449 #line default 6450 #line hidden 6451 6452 6453 #line 2260 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6454 public RazorEngine.Templating.TemplateWriter RenderStockStatus(string stockStatus, int productType = 0) 6455 { 6456 #line default 6457 #line hidden 6458 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6459 6460 #line 2261 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6461 6462 // Only show if it's not a Service or Gift Card 6463 if (productType != 1 && productType != 3) 6464 { 6465 6466 6467 #line default 6468 #line hidden 6469 WriteLiteralTo(__razor_helper_writer, " <div"); 6470 6471 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding stockStatus\""); 6472 6473 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6474 6475 WriteLiteralTo(__razor_helper_writer, " "); 6476 6477 6478 #line 2266 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6479 WriteTo(__razor_helper_writer, RenderIcon(stockStatus, Translate("Stock"))); 6480 6481 6482 #line default 6483 #line hidden 6484 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6485 6486 6487 #line 2268 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6488 } 6489 6490 6491 #line default 6492 #line hidden 6493 }); 6494 6495 #line 2269 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6496 } 6497 #line default 6498 #line hidden 6499 6500 6501 #line 2271 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6502 public RazorEngine.Templating.TemplateWriter RenderFavorites(bool productIsFavorite, string productId, string variantId, string productLanguage, bool variantCombinations = false, bool iconOnly = false) 6503 { 6504 #line default 6505 #line hidden 6506 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6507 6508 #line 2272 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6509 6510 // Favorites 6511 var favoritesUrl = "/Default.aspx?Id=" + Pageview.Page.ID + "&amp;CC{{favoriteAction}}MyLists=" + productId + "&amp;CC{{favoriteAction}}ListVariantID=" + variantId + "&amp;CC{{favoriteAction}}ListLanguageID=" + productLanguage; 6512 var addToFavorites = favoritesUrl.Replace("{{favoriteAction}}", "AddTo"); 6513 var removeFromFavorites = favoritesUrl.Replace("{{favoriteAction}}", "RemoveFrom"); 6514 var favoriteUrl = productIsFavorite ? removeFromFavorites : addToFavorites; 6515 var iconLabel = !iconOnly ? Translate(productIsFavorite ? "Remove from list" : "Add to List") : string.Empty; 6516 if (User.IsExtranetUserLoggedIn() && 6517 Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && 6518 !variantCombinations) 6519 { 6520 6521 6522 #line default 6523 #line hidden 6524 WriteLiteralTo(__razor_helper_writer, " <a"); 6525 6526 WriteLiteralTo(__razor_helper_writer, " class=\"btn-gold-outline favorite\""); 6527 6528 WriteLiteralTo(__razor_helper_writer, " data-add=\""); 6529 6530 6531 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6532 WriteTo(__razor_helper_writer, addToFavorites); 6533 6534 6535 #line default 6536 #line hidden 6537 WriteLiteralTo(__razor_helper_writer, "\""); 6538 6539 WriteLiteralTo(__razor_helper_writer, " data-remove=\""); 6540 6541 6542 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6543 WriteTo(__razor_helper_writer, removeFromFavorites); 6544 6545 6546 #line default 6547 #line hidden 6548 WriteLiteralTo(__razor_helper_writer, "\""); 6549 6550 WriteLiteralTo(__razor_helper_writer, " data-favorite=\""); 6551 6552 6553 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6554 WriteTo(__razor_helper_writer, productIsFavorite); 6555 6556 6557 #line default 6558 #line hidden 6559 WriteLiteralTo(__razor_helper_writer, "\""); 6560 6561 WriteLiteralTo(__razor_helper_writer, " data-user=\""); 6562 6563 6564 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6565 WriteTo(__razor_helper_writer, User.IsExtranetUserLoggedIn()); 6566 6567 6568 #line default 6569 #line hidden 6570 WriteLiteralTo(__razor_helper_writer, "\""); 6571 6572 WriteLiteralTo(__razor_helper_writer, " data-addText=\'"); 6573 6574 6575 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6576 WriteTo(__razor_helper_writer, Translate("Add to List")); 6577 6578 6579 #line default 6580 #line hidden 6581 WriteLiteralTo(__razor_helper_writer, "\'"); 6582 6583 WriteLiteralTo(__razor_helper_writer, " data-removeText=\'"); 6584 6585 6586 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6587 WriteTo(__razor_helper_writer, Translate("Remove from List")); 6588 6589 6590 #line default 6591 #line hidden 6592 WriteLiteralTo(__razor_helper_writer, "\'"); 6593 6594 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 92078), Tuple.Create("\"", 92097) 6595 6596 #line 2283 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6597 , Tuple.Create(Tuple.Create("", 92085), Tuple.Create<System.Object, System.Int32>(favoriteUrl 6598 6599 #line default 6600 #line hidden 6601 , 92085), false) 6602 ); 6603 6604 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6605 6606 WriteLiteralTo(__razor_helper_writer, " "); 6607 6608 6609 #line 2284 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6610 WriteTo(__razor_helper_writer, RenderIcon(productIsFavorite ? "fa-heart" : "fa-heart-o", iconLabel)); 6611 6612 6613 #line default 6614 #line hidden 6615 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 6616 6617 6618 #line 2286 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6619 } 6620 6621 6622 #line default 6623 #line hidden 6624 }); 6625 6626 #line 2287 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6627 } 6628 #line default 6629 #line hidden 6630 6631 6632 #line 2289 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6633 public RazorEngine.Templating.TemplateWriter RenderQuantitySelector(bool variantGroupsExistList, int productStock, int productType = 0, string productId = "") 6634 { 6635 #line default 6636 #line hidden 6637 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6638 6639 #line 2290 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6640 6641 if (Pageview.Area.Item["ShowQuantityField"].ToString() == "True") 6642 { 6643 6644 6645 #line default 6646 #line hidden 6647 6648 #line 2293 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6649 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productStock, 1, string.Empty, 10, false, variantGroupsExistList, productType, productId)); 6650 6651 6652 #line default 6653 #line hidden 6654 6655 #line 2293 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6656 6657 } 6658 else 6659 { 6660 var quantityTextFieldSettings = new FieldSettings 6661 { 6662 Type = FieldType.Text, 6663 Value = "1", 6664 SystemName = "quantity", 6665 Id = "quantity" + productId, 6666 Attributes = new Dictionary<string, string> 6667 { 6668 {"maxlength", "5"}, 6669 {"data-productStock", productStock.ToString()}, 6670 {"data-outofstock", Translate("Out of stock")}, 6671 {"data-stocktranslate", Translate("The current stock is")} 6672 } 6673 }; 6674 6675 if (productType != 1 && productType != 3) 6676 { 6677 quantityTextFieldSettings.Type = FieldType.Number; 6678 quantityTextFieldSettings.Label = Translate("Qty"); 6679 quantityTextFieldSettings.CssClass = "quantityInput hidden"; 6680 quantityTextFieldSettings.Attributes.Add("autocomplete", "off"); 6681 } 6682 else 6683 { 6684 quantityTextFieldSettings.Type = FieldType.Hidden; 6685 } 6686 6687 6688 #line default 6689 #line hidden 6690 6691 #line 2323 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6692 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6693 6694 6695 #line default 6696 #line hidden 6697 6698 #line 2323 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6699 6700 } 6701 6702 6703 #line default 6704 #line hidden 6705 }); 6706 6707 #line 2325 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6708 } 6709 #line default 6710 #line hidden 6711 6712 6713 #line 2327 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6714 public RazorEngine.Templating.TemplateWriter RenderProductCompare(int productType, string productId, string variantId = "", string productLanguage = "") 6715 { 6716 #line default 6717 #line hidden 6718 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6719 6720 #line 2328 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6721 6722 var isGiftCard = productType == 3; 6723 6724 if (!isGiftCard) 6725 { 6726 var compareLink = productId; 6727 compareLink += productLanguage.IsNotNullOrEmpty() ? "$" + productLanguage : ""; 6728 compareLink += variantId.IsNotNullOrEmpty() ? "$" + variantId : ""; 6729 const int compareLimit = 3; 6730 6731 6732 6733 #line default 6734 #line hidden 6735 6736 #line 2338 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6737 WriteTo(__razor_helper_writer, RenderField(new FieldSettings 6738 { 6739 Type = FieldType.Checkbox, 6740 Label = Translate("Add to compare"), 6741 SystemName = "addToCompare_" + productId, 6742 IncludeWrapper = true, 6743 WrapperElement = "div", 6744 WrapperCssClass = "addToCompare", 6745 Attributes = new Dictionary<string, string> 6746 { 6747 {"data-link", compareLink}, 6748 {"data-maxcompare", string.Concat(Translate("Maximum to compare"), ": ", compareLimit)} 6749 } 6750 })); 6751 6752 6753 #line default 6754 #line hidden 6755 6756 #line 2351 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6757 6758 } 6759 6760 6761 #line default 6762 #line hidden 6763 }); 6764 6765 #line 2353 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6766 } 6767 #line default 6768 #line hidden 6769 6770 6771 #line 2369 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6772 public RazorEngine.Templating.TemplateWriter InternalRenderVariantCombinations(List<LoopItem> variantCombinations) 6773 { 6774 #line default 6775 #line hidden 6776 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6777 6778 #line 2370 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6779 6780 if (variantCombinations.Any()) 6781 { 6782 var variantCombinationFieldSettings = new FieldSettings 6783 { 6784 Type = FieldType.Select, 6785 SystemName = "variantID", 6786 IsRequired = true, 6787 IncludeWrapper = true, 6788 Attributes = new Dictionary<string, string> 6789 { 6790 {"data-width", "100%"} 6791 } 6792 }; 6793 6794 foreach (var variantCombination in variantCombinations.OrderBy(x => 6795 x.GetString("Ecom:VariantCombination.VariantID"))) 6796 { 6797 var isFavoriteBool = variantCombination.GetBoolean("Ecom:Product.IsProductInFavoriteList"); 6798 var variantCombinationId = variantCombination.GetString("Ecom:VariantCombination.VariantID"); 6799 var hideVariantCombination = 6800 variantCombination.GetString("Ecom:Product.DefaultVariantComboID") != 6801 variantCombination.GetString("Ecom:VariantCombination.VariantID") 6802 ? "hidden" 6803 : string.Empty; 6804 var addToList = variantCombination.GetString("Ecom:Product.AddToList"); 6805 var removeFromList = variantCombination.GetString("Ecom:Product.RemoveFromList"); 6806 var favoriteUrl = isFavoriteBool ? removeFromList : addToList; 6807 6808 variantCombinationFieldSettings.FieldOptionsList.Add(new FieldOption 6809 { 6810 Id = variantCombinationId, 6811 Value = variantCombinationId, 6812 Label = variantCombination.GetString("Ecom:VariantCombination.VariantText"), 6813 IsSelected = variantCombination.GetString("Ecom:Product.DefaultVariantComboID") == variantCombination.GetString("Ecom:VariantCombination.VariantID"), 6814 Attributes = new Dictionary<string, string> 6815 { 6816 {"data-favorite", isFavoriteBool.ToString()}, 6817 {"data-stock", variantCombination.GetString("Ecom:Product.AvailableAmount")}, 6818 {"data-price", variantCombination.GetString("Ecom:Product.Price")} 6819 } 6820 } 6821 ); 6822 } 6823 6824 6825 #line default 6826 #line hidden 6827 6828 #line 2414 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6829 WriteTo(__razor_helper_writer, RenderField(variantCombinationFieldSettings)); 6830 6831 6832 #line default 6833 #line hidden 6834 6835 #line 2414 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6836 6837 } 6838 6839 6840 #line default 6841 #line hidden 6842 }); 6843 6844 #line 2416 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6845 } 6846 #line default 6847 #line hidden 6848 6849 6850 #line 2443 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6851 6852 6853 private string GetSeeMoreSeeLess(int facetOptionsCount) 6854 { 6855 const int visibleItems = 5; 6856 return (facetOptionsCount > visibleItems) ? string.Format("<span class=\"seeMore\" data-more=\"{0}\" data-hide=\"{1}\" data-facets=\"{2}\">{3}</span>", Translate("See More"), Translate("Show Less"), visibleItems, Translate("See More")) : string.Empty; 6857 } 6858 6859 6860 #line default 6861 #line hidden 6862 6863 6864 #line 2453 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6865 public RazorEngine.Templating.TemplateWriter InternalRenderFacetField(LoopItem loopItem, string parameterType, string templateOutput) 6866 { 6867 #line default 6868 #line hidden 6869 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6870 6871 #line 2454 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6872 6873 var parameter = loopItem.GetString("Facet.QueryParameter"); 6874 var name = loopItem.GetString("Facet.Name"); 6875 var facetOptions = loopItem.GetLoop("FacetOptions"); 6876 //facetOptions = facetOptions.OrderBy(or => or.GetString("FacetOption.Count")).ThenByDescending(o => o.GetInteger("FacetOptions.LoopCounter")).ToList(); 6877 6878 if (name == "EcomGroups") 6879 { 6880 6881 6882 #line default 6883 #line hidden 6884 6885 #line 2462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6886 WriteTo(__razor_helper_writer, InternalRenderEcomNavigation()); 6887 6888 6889 #line default 6890 #line hidden 6891 6892 #line 2462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6893 6894 } 6895 else 6896 { 6897 var facetParameter = loopItem.GetString("Facet.QueryParameter"); 6898 switch (templateOutput) 6899 { 6900 case "Checkboxes": 6901 if(facetOptions.Any()) 6902 { 6903 var fieldOptions = new List<FieldOption>(); 6904 var optionCount = 1; 6905 foreach (var option in facetOptions) 6906 { 6907 var label = new StringBuilder(option.GetString("FacetOption.Label")); 6908 if (option.GetInteger("FacetOption.Count") > 0) 6909 { 6910 label.Append(string.Concat(" (", option.GetString("FacetOption.Count"),")")); 6911 } 6912 6913 var checkboxFieldOption = new FieldOption 6914 { 6915 SystemName = parameter, 6916 Id = parameter + optionCount++, 6917 Value = option.GetString("FacetOption.Value"), 6918 Label = label.ToString(), 6919 IsSelected = option.GetBoolean("FacetOption.Selected") 6920 }; 6921 fieldOptions.Add(checkboxFieldOption); 6922 } 6923 var checkboxFieldSettings = new FieldSettings 6924 { 6925 Type = FieldType.Checkboxlist, 6926 SystemName = parameter, 6927 Label = name, 6928 LabelCssClass = "filterTitle", 6929 FieldOptionsList = fieldOptions, 6930 IncludeWrapper = true, 6931 IncludeFieldWrapper = true 6932 }; 6933 6934 checkboxFieldSettings.Append = GetSeeMoreSeeLess(facetOptions.Count); 6935 6936 6937 #line default 6938 #line hidden 6939 6940 #line 2504 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6941 WriteTo(__razor_helper_writer, RenderField(checkboxFieldSettings)); 6942 6943 6944 #line default 6945 #line hidden 6946 6947 #line 2504 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6948 6949 } 6950 6951 break; 6952 case "Radio": 6953 if(facetOptions.Any()) 6954 { 6955 var fieldOptions = new List<FieldOption>(); 6956 var optionCount = 1; 6957 foreach (var option in facetOptions) 6958 { 6959 var label = new StringBuilder(option.GetString("FacetOption.Label")); 6960 if (option.GetInteger("FacetOption.Count") > 0) 6961 { 6962 label.Append(string.Concat("(", option.GetString("FacetOption.Count"),")")); 6963 } 6964 6965 var radioFieldOption = new FieldOption 6966 { 6967 SystemName = parameter, 6968 CssClass = "radio", 6969 Id = parameter + optionCount++, 6970 Value = option.GetString("FacetOption.Value"), 6971 Label = label.ToString(), 6972 IsSelected = option.GetBoolean("FacetOption.Selected") 6973 }; 6974 fieldOptions.Add(radioFieldOption); 6975 } 6976 var radioButtonSettings = new FieldSettings 6977 { 6978 Type = FieldType.Radio, 6979 SystemName = parameter, 6980 Label = name, 6981 LabelCssClass = "filterTitle", 6982 FieldOptionsList = fieldOptions, 6983 IncludeWrapper = true, 6984 IncludeFieldWrapper = true 6985 }; 6986 6987 radioButtonSettings.Append = GetSeeMoreSeeLess(facetOptions.Count); 6988 6989 6990 #line default 6991 #line hidden 6992 6993 #line 2544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 6994 WriteTo(__razor_helper_writer, RenderField(radioButtonSettings)); 6995 6996 6997 #line default 6998 #line hidden 6999 7000 #line 2544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7001 7002 7003 } 7004 break; 7005 case "Select": 7006 if (facetOptions.Any()) 7007 { 7008 var multiSelectFieldSettings = new FieldSettings 7009 { 7010 Type = FieldType.Select, 7011 SystemName = parameter, 7012 Label = name, 7013 LabelCssClass = "filterTitle", 7014 IncludeWrapper = true, 7015 IncludeFieldWrapper = true, 7016 Attributes = new Dictionary<string, string> 7017 { 7018 {"data-size", "8"}, 7019 {"multiple", "multiple"} 7020 } 7021 }; 7022 foreach (var option in facetOptions) 7023 { 7024 multiSelectFieldSettings.FieldOptionsList.Add(new FieldOption {Label = option.GetString("FacetOption.Label"), Value = option.GetString("FacetOption.Value"), IsSelected = option.GetBoolean("FacetOption.Selected")}); 7025 } 7026 7027 7028 #line default 7029 #line hidden 7030 7031 #line 2569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7032 WriteTo(__razor_helper_writer, RenderField(multiSelectFieldSettings)); 7033 7034 7035 #line default 7036 #line hidden 7037 7038 #line 2569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7039 7040 } 7041 break; 7042 case "Range": 7043 if (facetParameter.IsNotNullOrEmpty()) 7044 { 7045 var rangeParam = Sanitize.Parameter(facetParameter, ParameterType.LongText); 7046 var minVal = string.Empty; 7047 var maxVal = string.Empty; 7048 if (rangeParam.IsNotNullOrEmpty()) 7049 { 7050 var rangeValues = rangeParam.Split(','); 7051 minVal = rangeValues[0].IsNotNullOrEmpty() ? rangeValues[0] : String.Empty; 7052 maxVal = rangeValues.Length > 1 ? rangeValues[1] : String.Empty; 7053 } 7054 7055 7056 #line default 7057 #line hidden 7058 WriteLiteralTo(__razor_helper_writer, " <fieldset> \r\n " + 7059 " <label"); 7060 7061 WriteLiteralTo(__razor_helper_writer, " for=\"Width\""); 7062 7063 WriteLiteralTo(__razor_helper_writer, " class=\"form-label filterTitle\""); 7064 7065 WriteLiteralTo(__razor_helper_writer, ">"); 7066 7067 7068 #line 2585 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7069 WriteTo(__razor_helper_writer, facetParameter); 7070 7071 7072 #line default 7073 #line hidden 7074 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 7075 7076 WriteLiteralTo(__razor_helper_writer, " class=\"fieldContainer\""); 7077 7078 WriteLiteralTo(__razor_helper_writer, " style=\"display: none\""); 7079 7080 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7081 7082 7083 #line 2587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7084 7085 7086 #line default 7087 #line hidden 7088 7089 #line 2587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7090 7091 var rangeFieldSettings2 = new FieldSettings 7092 { 7093 Type = FieldType.Text, 7094 SystemName = facetParameter, 7095 Id = "minRange_" + facetParameter, 7096 Value = minVal, 7097 CssClass = "col-xs-5", 7098 IncludeWrapper = false, 7099 IncludeFieldWrapper = false 7100 }; 7101 var rangeFieldSettings3 = new FieldSettings 7102 { 7103 Type = FieldType.Text, 7104 SystemName = facetParameter, 7105 Id = "maxRange_" + facetParameter, 7106 CssClass = "col-xs-5", 7107 Value = maxVal, 7108 IncludeWrapper = false, 7109 IncludeFieldWrapper = false 7110 }; 7111 7112 7113 #line default 7114 #line hidden 7115 7116 #line 2608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7117 WriteTo(__razor_helper_writer, RenderField(rangeFieldSettings2)); 7118 7119 7120 #line default 7121 #line hidden 7122 7123 #line 2608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7124 7125 7126 7127 #line default 7128 #line hidden 7129 WriteLiteralTo(__razor_helper_writer, " <span"); 7130 7131 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 betweenLabels\""); 7132 7133 WriteLiteralTo(__razor_helper_writer, ">"); 7134 7135 7136 #line 2609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7137 WriteTo(__razor_helper_writer, Translate("to")); 7138 7139 7140 #line default 7141 #line hidden 7142 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 7143 7144 7145 #line 2610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7146 7147 7148 #line default 7149 #line hidden 7150 7151 #line 2610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7152 WriteTo(__razor_helper_writer, RenderField(rangeFieldSettings3)); 7153 7154 7155 #line default 7156 #line hidden 7157 7158 #line 2610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7159 7160 7161 7162 #line default 7163 #line hidden 7164 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </fieldset>\r\n"); 7165 7166 7167 #line 2614 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7168 } 7169 break; 7170 case "Text": 7171 7172 7173 #line default 7174 #line hidden 7175 7176 #line 2617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7177 WriteTo(__razor_helper_writer, RenderField(new FieldSettings{ Type = FieldType.Text, SystemName = parameter, Label = name, LabelCssClass = "filterTitle", IncludeWrapper = true, IncludeFieldWrapper = true})); 7178 7179 7180 #line default 7181 #line hidden 7182 7183 #line 2617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7184 7185 break; 7186 case "Number": 7187 7188 7189 #line default 7190 #line hidden 7191 7192 #line 2620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7193 WriteTo(__razor_helper_writer, RenderField(new FieldSettings{ Type = FieldType.Number, SystemName = parameter, Label = name, LabelCssClass = "filterTitle", IncludeWrapper = true, IncludeFieldWrapper = true})); 7194 7195 7196 #line default 7197 #line hidden 7198 7199 #line 2620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7200 7201 break; 7202 case "Links": 7203 7204 if (facetOptions.Any()) 7205 { 7206 var currentUrl = Helpers.GetCurrentUrl(false).Contains("?") ? Helpers.GetCurrentUrl() : Helpers.GetCurrentUrl()+"/?"; 7207 7208 7209 #line default 7210 #line hidden 7211 WriteLiteralTo(__razor_helper_writer, " <fieldset class>\r\n <label"); 7212 7213 WriteLiteralTo(__razor_helper_writer, " class=\"form-label filterTitle\""); 7214 7215 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 108302), Tuple.Create("\"", 108313) 7216 7217 #line 2628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7218 , Tuple.Create(Tuple.Create("", 108308), Tuple.Create<System.Object, System.Int32>(name 7219 7220 #line default 7221 #line hidden 7222 , 108308), false) 7223 ); 7224 7225 WriteLiteralTo(__razor_helper_writer, ">"); 7226 7227 7228 #line 2628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7229 WriteTo(__razor_helper_writer, name); 7230 7231 7232 #line default 7233 #line hidden 7234 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 7235 7236 WriteLiteralTo(__razor_helper_writer, " class=\"fieldContainer\""); 7237 7238 WriteLiteralTo(__razor_helper_writer, " style=\"display:none\""); 7239 7240 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7241 7242 7243 #line 2630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7244 7245 7246 #line default 7247 #line hidden 7248 7249 #line 2630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7250 foreach (var option in facetOptions) 7251 { 7252 7253 7254 #line default 7255 #line hidden 7256 7257 #line 2632 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7258 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 7259 { 7260 IconCssClass = "", 7261 Label = option.GetString("FacetOption.Label"), 7262 Href = currentUrl+parameter+"="+option.GetString("FacetOption.Value"), 7263 CssClass = "link" 7264 })); 7265 7266 7267 #line default 7268 #line hidden 7269 7270 #line 2638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7271 7272 } 7273 7274 #line default 7275 #line hidden 7276 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </fieldset>\r\n"); 7277 7278 7279 #line 2642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7280 } 7281 break; 7282 case "Colors": 7283 case "Tags": 7284 case "Icons": 7285 case "Images": 7286 break; 7287 default: 7288 7289 7290 #line default 7291 #line hidden 7292 7293 #line 2650 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7294 WriteTo(__razor_helper_writer, RenderField(new FieldSettings{ Type = FieldType.Textstring, SystemName = parameter, Label = name, LabelCssClass = "filterTitle", IncludeWrapper = true, IncludeFieldWrapper = true, Append = "<div style=\"color:#f00\">Unknown Render Type</div>"})); 7295 7296 7297 #line default 7298 #line hidden 7299 7300 #line 2650 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7301 7302 break; 7303 } 7304 } 7305 7306 7307 #line default 7308 #line hidden 7309 }); 7310 7311 #line 2654 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7312 } 7313 #line default 7314 #line hidden 7315 7316 7317 #line 2656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7318 public RazorEngine.Templating.TemplateWriter InternalRenderEcomNavigation(Dynamicweb.Ecommerce.Products.GroupCollection groupCollection = null) 7319 { 7320 #line default 7321 #line hidden 7322 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7323 7324 #line 2657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7325 7326 groupCollection = groupCollection ?? Dynamicweb.Ecommerce.Services.Shops.GetShop(Pageview.Area.EcomShopId).get_TopLevelGroups(Pageview.Area.EcomLanguageId); 7327 7328 foreach (var group in groupCollection) 7329 { 7330 var groupName = group.Name; 7331 var groupId = group.Id; 7332 7333 if (group.Subgroups.Any()) 7334 { 7335 var numberOfParentGroups = group.ParentGroups.Count; 7336 var hideSubgroups = numberOfParentGroups == 0 ? "hidden" : string.Empty; 7337 7338 7339 7340 #line default 7341 #line hidden 7342 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 7343 7344 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 110358), Tuple.Create("\"", 110407) 7345 , Tuple.Create(Tuple.Create("", 110366), Tuple.Create("groupFieldset", 110366), true) 7346 , Tuple.Create(Tuple.Create(" ", 110379), Tuple.Create("level_", 110380), true) 7347 7348 #line 2670 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7349 , Tuple.Create(Tuple.Create("", 110386), Tuple.Create<System.Object, System.Int32>(numberOfParentGroups 7350 7351 #line default 7352 #line hidden 7353 , 110386), false) 7354 ); 7355 7356 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 7357 7358 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 110437), Tuple.Create("\"", 110483) 7359 , Tuple.Create(Tuple.Create("", 110445), Tuple.Create("filterTitle", 110445), true) 7360 , Tuple.Create(Tuple.Create(" ", 110456), Tuple.Create("deep_", 110457), true) 7361 7362 #line 2671 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7363 , Tuple.Create(Tuple.Create("", 110462), Tuple.Create<System.Object, System.Int32>(numberOfParentGroups 7364 7365 #line default 7366 #line hidden 7367 , 110462), false) 7368 ); 7369 7370 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n "); 7371 7372 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7373 7374 7375 #line 2676 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7376 7377 7378 #line default 7379 #line hidden 7380 7381 #line 2676 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7382 if (numberOfParentGroups > 0 || (bool) Pageview.Area.Item["ParentGroupsWithCheckbox"] && numberOfParentGroups == 0) 7383 { 7384 7385 7386 #line default 7387 #line hidden 7388 WriteLiteralTo(__razor_helper_writer, " <label"); 7389 7390 WriteLiteralTo(__razor_helper_writer, " class=\"checkBoxContainer \""); 7391 7392 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7393 7394 WriteLiteralTo(__razor_helper_writer, " "); 7395 7396 7397 #line 2679 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7398 WriteTo(__razor_helper_writer, RenderField(new FieldSettings {Type = FieldType.Checkbox, SystemName = "group", Value = groupId})); 7399 7400 7401 #line default 7402 #line hidden 7403 WriteLiteralTo(__razor_helper_writer, "\r\n <span>\r\n"); 7404 7405 WriteLiteralTo(__razor_helper_writer, " "); 7406 7407 7408 #line 2681 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7409 WriteTo(__razor_helper_writer, groupName); 7410 7411 7412 #line default 7413 #line hidden 7414 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n </label>\r\n" + 7415 ""); 7416 7417 7418 #line 2684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7419 } 7420 else 7421 { 7422 7423 7424 #line default 7425 #line hidden 7426 7427 #line 2687 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7428 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("group", groupId))); 7429 7430 7431 #line default 7432 #line hidden 7433 7434 #line 2687 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7435 7436 7437 7438 #line default 7439 #line hidden 7440 7441 #line 2688 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7442 WriteTo(__razor_helper_writer, groupName); 7443 7444 7445 #line default 7446 #line hidden 7447 7448 #line 2688 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7449 7450 } 7451 7452 #line default 7453 #line hidden 7454 WriteLiteralTo(__razor_helper_writer, "\r\n </label>\r\n \r\n <div"); 7455 7456 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 111511), Tuple.Create("\"", 111586) 7457 , Tuple.Create(Tuple.Create("", 111519), Tuple.Create("filtersContainer", 111519), true) 7458 , Tuple.Create(Tuple.Create(" ", 111535), Tuple.Create("containerDeep_", 111536), true) 7459 7460 #line 2692 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7461 , Tuple.Create(Tuple.Create("", 111550), Tuple.Create<System.Object, System.Int32>(numberOfParentGroups 7462 7463 #line default 7464 #line hidden 7465 , 111550), false) 7466 7467 #line 2692 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7468 , Tuple.Create(Tuple.Create(" ", 111571), Tuple.Create<System.Object, System.Int32>(hideSubgroups 7469 7470 #line default 7471 #line hidden 7472 , 111572), false) 7473 ); 7474 7475 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7476 7477 WriteLiteralTo(__razor_helper_writer, " "); 7478 7479 7480 #line 2693 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7481 WriteTo(__razor_helper_writer, InternalRenderEcomNavigation(group.Subgroups)); 7482 7483 7484 #line default 7485 #line hidden 7486 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </fieldset>\r\n"); 7487 7488 7489 #line 2696 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7490 } 7491 else 7492 { 7493 7494 7495 #line default 7496 #line hidden 7497 WriteLiteralTo(__razor_helper_writer, " <label"); 7498 7499 WriteLiteralTo(__razor_helper_writer, " class=\"checkBoxContainer \""); 7500 7501 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7502 7503 WriteLiteralTo(__razor_helper_writer, " "); 7504 7505 7506 #line 2700 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7507 WriteTo(__razor_helper_writer, RenderField(new FieldSettings {Type = FieldType.Checkbox, SystemName = "group", Value = groupId})); 7508 7509 7510 #line default 7511 #line hidden 7512 WriteLiteralTo(__razor_helper_writer, "\r\n <span>\r\n"); 7513 7514 WriteLiteralTo(__razor_helper_writer, " "); 7515 7516 7517 #line 2702 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7518 WriteTo(__razor_helper_writer, groupName); 7519 7520 7521 #line default 7522 #line hidden 7523 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n </label>\r\n"); 7524 7525 7526 #line 2705 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7527 } 7528 } 7529 7530 7531 #line default 7532 #line hidden 7533 }); 7534 7535 #line 2707 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7536 } 7537 #line default 7538 #line hidden 7539 7540 7541 #line 2712 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7542 public RazorEngine.Templating.TemplateWriter RenderFilters(List<LoopItem> facetGroups) 7543 { 7544 #line default 7545 #line hidden 7546 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7547 7548 #line 2713 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7549 7550 var parametersList = GetLoop("Query.Parameters"); 7551 7552 7553 7554 #line default 7555 #line hidden 7556 WriteLiteralTo(__razor_helper_writer, " <div"); 7557 7558 WriteLiteralTo(__razor_helper_writer, " id=\"filtersContainer\""); 7559 7560 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-3 noPaddingLeft\""); 7561 7562 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <div"); 7563 7564 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox filtersHead col-xs-12\""); 7565 7566 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 7567 7568 7569 #line 2719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7570 WriteTo(__razor_helper_writer, Translate("Filter your results")); 7571 7572 7573 #line default 7574 #line hidden 7575 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 7576 7577 7578 #line 2721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7579 7580 7581 #line default 7582 #line hidden 7583 7584 #line 2721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7585 if(facetGroups.Any()) { 7586 7587 7588 #line default 7589 #line hidden 7590 WriteLiteralTo(__razor_helper_writer, " <form"); 7591 7592 WriteLiteralTo(__razor_helper_writer, " id=\"filtersForm\""); 7593 7594 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 7595 7596 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 112558), Tuple.Create("\"", 112645) 7597 7598 #line 2722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7599 , Tuple.Create(Tuple.Create("", 112567), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Pageview.Page.ID) 7600 7601 #line default 7602 #line hidden 7603 , 112567), false) 7604 ); 7605 7606 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7607 7608 WriteLiteralTo(__razor_helper_writer, " "); 7609 7610 7611 #line 2723 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7612 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("sortby", Sanitize.Parameter("sortby")))); 7613 7614 7615 #line default 7616 #line hidden 7617 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7618 7619 WriteLiteralTo(__razor_helper_writer, " "); 7620 7621 7622 #line 2724 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7623 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("SortOrder", Sanitize.Parameter("SortOrder")))); 7624 7625 7626 #line default 7627 #line hidden 7628 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7629 7630 WriteLiteralTo(__razor_helper_writer, " "); 7631 7632 7633 #line 2725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7634 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("PageSize", Sanitize.Parameter("PageSize", ParameterType.Number)))); 7635 7636 7637 #line default 7638 #line hidden 7639 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7640 7641 WriteLiteralTo(__razor_helper_writer, " "); 7642 7643 7644 #line 2726 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7645 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("q", Sanitize.Parameter("q", ParameterType.LongText)))); 7646 7647 7648 #line default 7649 #line hidden 7650 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 7651 7652 7653 #line 2728 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7654 7655 7656 #line default 7657 #line hidden 7658 7659 #line 2728 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7660 foreach (var facetGroup in facetGroups) 7661 { 7662 foreach (var facet in facetGroup.GetLoop("Facets")) 7663 { 7664 var parameterType = parametersList.First(x => x.GetString("Parameter.Name") == facet.GetString("Facet.QueryParameter")).GetString("Parameter.Type"); 7665 var templateOutput = facet.GetString("Facet.RenderType").IsNotNullOrEmpty() ? facet.GetString("Facet.RenderType") : "Text"; 7666 7667 7668 #line default 7669 #line hidden 7670 7671 #line 2734 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7672 WriteTo(__razor_helper_writer, InternalRenderFacetField(facet, parameterType, templateOutput)); 7673 7674 7675 #line default 7676 #line hidden 7677 7678 #line 2734 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7679 7680 } 7681 } 7682 7683 #line default 7684 #line hidden 7685 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n"); 7686 7687 7688 #line 2738 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7689 } 7690 7691 #line default 7692 #line hidden 7693 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7694 7695 7696 #line 2740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7697 7698 7699 #line default 7700 #line hidden 7701 }); 7702 7703 #line 2740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7704 } 7705 #line default 7706 #line hidden 7707 7708 7709 #line 2742 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7710 public RazorEngine.Templating.TemplateWriter RenderProductFreeTextSearch() 7711 { 7712 #line default 7713 #line hidden 7714 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7715 7716 #line 2743 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7717 7718 var qString = Sanitize.Parameter("q", ParameterType.LongText); 7719 var searchResultsPageId = GetPageIdByNavigationTag("SearchResults"); 7720 if (qString.IsNotNullOrEmpty()) 7721 { 7722 7723 7724 #line default 7725 #line hidden 7726 WriteLiteralTo(__razor_helper_writer, " <form"); 7727 7728 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 114079), Tuple.Create("\"", 114169) 7729 7730 #line 2748 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7731 , Tuple.Create(Tuple.Create("", 114088), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(searchResultsPageId) 7732 7733 #line default 7734 #line hidden 7735 , 114088), false) 7736 ); 7737 7738 WriteLiteralTo(__razor_helper_writer, " id=\"searchFormList\""); 7739 7740 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7741 7742 WriteLiteralTo(__razor_helper_writer, " "); 7743 7744 7745 #line 2749 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7746 WriteTo(__razor_helper_writer, RenderField(new FieldSettings {SystemName = "q", Type = FieldType.Search, Id = "searchSubmitList", Value = qString, IsRequired = true, IncludeWrapper = true, WrapperCssClass = "hidden-Label", Attributes = new Dictionary<string, string> {{"data-error", Translate("Search for something")}}})); 7747 7748 7749 #line default 7750 #line hidden 7751 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7752 7753 WriteLiteralTo(__razor_helper_writer, " "); 7754 7755 7756 #line 2750 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7757 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings {IconCssClass = "fa-search", ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button})); 7758 7759 7760 #line default 7761 #line hidden 7762 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n"); 7763 7764 7765 #line 2752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7766 } 7767 7768 7769 #line default 7770 #line hidden 7771 }); 7772 7773 #line 2753 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7774 } 7775 #line default 7776 #line hidden 7777 7778 7779 #line 2755 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7780 public RazorEngine.Templating.TemplateWriter RenderActiveFiltersSummary(List<LoopItem> facetGroups) 7781 { 7782 #line default 7783 #line hidden 7784 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7785 7786 #line 2756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7787 7788 7789 7790 #line default 7791 #line hidden 7792 WriteLiteralTo(__razor_helper_writer, " <div"); 7793 7794 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 removeFiltersContainer\""); 7795 7796 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n"); 7797 7798 7799 #line 2759 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7800 7801 7802 #line default 7803 #line hidden 7804 7805 #line 2759 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7806 foreach (var facetGroup in facetGroups) 7807 { 7808 foreach (var facet in facetGroup.GetLoop("Facets")) 7809 { 7810 if (facet.GetLoop("FacetOptions").Any(r => r.GetBoolean("FacetOption.Selected"))) 7811 { 7812 7813 7814 #line default 7815 #line hidden 7816 7817 #line 2765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7818 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings { Label = facet.GetString("Facet.Name"), IconCssClass = "fa-times", IconPosition = IconPosition.Right, Attributes = new Dictionary<string, string> {{"data-queryname",facet.GetString("Facet.QueryParameter")}} })); 7819 7820 7821 #line default 7822 #line hidden 7823 7824 #line 2765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7825 7826 } 7827 } 7828 } 7829 7830 #line default 7831 #line hidden 7832 WriteLiteralTo(__razor_helper_writer, "\r\n <a"); 7833 7834 WriteLiteralTo(__razor_helper_writer, " class=\"removeAll\""); 7835 7836 WriteLiteralTo(__razor_helper_writer, " href=\"#\""); 7837 7838 WriteLiteralTo(__razor_helper_writer, ">"); 7839 7840 7841 #line 2769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7842 WriteTo(__razor_helper_writer, Translate("Remove all filters")); 7843 7844 7845 #line default 7846 #line hidden 7847 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </div>\r\n"); 7848 7849 7850 #line 2771 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7851 7852 7853 #line default 7854 #line hidden 7855 }); 7856 7857 #line 2771 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7858 } 7859 #line default 7860 #line hidden 7861 7862 7863 #line 2782 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7864 7865 public static bool ShowGuestCheckout() 7866 { 7867 return Dna.Modules.Features.FeatureManager.IsEnabled("showGuestCheckout", "Set to 'true' if Checkout as guest should be displayed."); 7868 } 7869 7870 7871 #line default 7872 #line hidden 7873 7874 7875 #line 2790 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7876 public RazorEngine.Templating.TemplateWriter RenderIconPopover(string cssPartialClass, string cssWrapperClass="", string label = "", string description = "", IconPosition position = IconPosition.Left) 7877 { 7878 #line default 7879 #line hidden 7880 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7881 7882 #line 2791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7883 7884 7885 7886 #line default 7887 #line hidden 7888 7889 #line 2794 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7890 7891 var icon = "<i class='fa " + cssPartialClass + "' data-toggle='" + label + "'></i>"; 7892 var spacing = string.Empty; 7893 7894 if (label.IsNotNullOrEmpty()) 7895 { 7896 spacing = "&nbsp;"; 7897 } 7898 if (cssPartialClass.IsNotNullOrEmpty()) 7899 { 7900 7901 7902 #line default 7903 #line hidden 7904 WriteLiteralTo(__razor_helper_writer, " <div"); 7905 7906 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 116811), Tuple.Create("\"", 116835) 7907 7908 #line 2804 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7909 , Tuple.Create(Tuple.Create("", 116819), Tuple.Create<System.Object, System.Int32>(cssWrapperClass 7910 7911 #line default 7912 #line hidden 7913 , 116819), false) 7914 ); 7915 7916 WriteLiteralTo(__razor_helper_writer, " data-container=\"body\""); 7917 7918 WriteLiteralTo(__razor_helper_writer, " title=\"\""); 7919 7920 WriteLiteralTo(__razor_helper_writer, " data-content=\""); 7921 7922 7923 #line 2804 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7924 WriteTo(__razor_helper_writer, description); 7925 7926 7927 #line default 7928 #line hidden 7929 WriteLiteralTo(__razor_helper_writer, "\""); 7930 7931 WriteLiteralTo(__razor_helper_writer, " data-original-title=\""); 7932 7933 7934 #line 2804 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7935 WriteTo(__razor_helper_writer, label); 7936 7937 7938 #line default 7939 #line hidden 7940 WriteLiteralTo(__razor_helper_writer, "\""); 7941 7942 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7943 7944 WriteLiteralTo(__razor_helper_writer, " "); 7945 7946 7947 #line 2805 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7948 WriteTo(__razor_helper_writer, icon); 7949 7950 7951 #line default 7952 #line hidden 7953 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7954 7955 7956 #line 2807 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7957 7958 } 7959 7960 7961 7962 #line default 7963 #line hidden 7964 }); 7965 7966 #line 2810 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7967 } 7968 #line default 7969 #line hidden 7970 7971 7972 #line 2812 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7973 public RazorEngine.Templating.TemplateWriter RenderPageSummary(int totalItemCount, int currentPage, int itemsPerPage, string cssClass = "col-sm-2 col-xs-12 noPaddingLeft") 7974 { 7975 #line default 7976 #line hidden 7977 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7978 7979 #line 2813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7980 7981 currentPage = currentPage < 1 ? 1 : currentPage; 7982 7983 var endItemNumber = itemsPerPage * currentPage; 7984 var startItemNumber = endItemNumber - itemsPerPage + 1; 7985 var pageEndNumber = totalItemCount < endItemNumber ? totalItemCount : endItemNumber; 7986 7987 7988 7989 #line default 7990 #line hidden 7991 WriteLiteralTo(__razor_helper_writer, " <span"); 7992 7993 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 117460), Tuple.Create("\"", 117477) 7994 7995 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 7996 , Tuple.Create(Tuple.Create("", 117468), Tuple.Create<System.Object, System.Int32>(cssClass 7997 7998 #line default 7999 #line hidden 8000 , 117468), false) 8001 ); 8002 8003 WriteLiteralTo(__razor_helper_writer, ">"); 8004 8005 8006 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8007 WriteTo(__razor_helper_writer, Translate("Showing")); 8008 8009 8010 #line default 8011 #line hidden 8012 WriteLiteralTo(__razor_helper_writer, " "); 8013 8014 8015 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8016 WriteTo(__razor_helper_writer, startItemNumber); 8017 8018 8019 #line default 8020 #line hidden 8021 WriteLiteralTo(__razor_helper_writer, " "); 8022 8023 8024 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8025 WriteTo(__razor_helper_writer, Translate("to")); 8026 8027 8028 #line default 8029 #line hidden 8030 WriteLiteralTo(__razor_helper_writer, " "); 8031 8032 8033 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8034 WriteTo(__razor_helper_writer, pageEndNumber); 8035 8036 8037 #line default 8038 #line hidden 8039 WriteLiteralTo(__razor_helper_writer, " "); 8040 8041 8042 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8043 WriteTo(__razor_helper_writer, Translate("of")); 8044 8045 8046 #line default 8047 #line hidden 8048 WriteLiteralTo(__razor_helper_writer, " "); 8049 8050 8051 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8052 WriteTo(__razor_helper_writer, totalItemCount); 8053 8054 8055 #line default 8056 #line hidden 8057 WriteLiteralTo(__razor_helper_writer, " "); 8058 8059 8060 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8061 WriteTo(__razor_helper_writer, Translate(totalItemCount > 1 ? "items" : "item")); 8062 8063 8064 #line default 8065 #line hidden 8066 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 8067 8068 8069 #line 2821 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8070 8071 8072 #line default 8073 #line hidden 8074 }); 8075 8076 #line 2821 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8077 } 8078 #line default 8079 #line hidden 8080 8081 8082 #line 2824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8083 public RazorEngine.Templating.TemplateWriter RenderActionCustom(IconAction action, string href = "", string title = "", string onClickConfirm = "", string totalQty = "", string productNumber="") 8084 { 8085 #line default 8086 #line hidden 8087 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8088 8089 #line 2825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8090 8091 var attributes = new Dictionary<string, string>(); 8092 8093 if (title.IsNotNullOrEmpty()) 8094 { 8095 attributes.Add("title", title); 8096 } 8097 if (onClickConfirm.IsNotNullOrEmpty()) 8098 { 8099 attributes.Add("onclick", "return confirm('" + onClickConfirm + "');"); 8100 } 8101 if (href.IsNotNullOrEmpty()) 8102 { 8103 attributes.Add("href", href); 8104 } 8105 8106 8107 #line default 8108 #line hidden 8109 8110 #line 2840 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8111 WriteTo(__razor_helper_writer, RenderActionCustom(action, href, attributes, totalQty, productNumber)); 8112 8113 8114 #line default 8115 #line hidden 8116 8117 #line 2840 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8118 8119 8120 8121 #line default 8122 #line hidden 8123 }); 8124 8125 #line 2841 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8126 } 8127 #line default 8128 #line hidden 8129 8130 8131 #line 2843 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8132 public RazorEngine.Templating.TemplateWriter RenderActionCustom(IconAction action, string href, Dictionary<string, string> attributes, string totalQty = "", string productNumber="") 8133 { 8134 #line default 8135 #line hidden 8136 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8137 8138 #line 2844 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8139 8140 var icon = string.Empty; 8141 var linkAttributes = string.Empty; 8142 var label = string.Concat("<span class=\"actionText\">", Translate(action.ToString()), "</span>"); 8143 8144 switch (action) 8145 { 8146 case IconAction.Add: 8147 break; 8148 case IconAction.View: 8149 icon = "fa-eye"; 8150 break; 8151 case IconAction.Edit: 8152 icon = "fa-edit"; 8153 break; 8154 case IconAction.Cancel: 8155 case IconAction.Remove: 8156 icon = "fa-times"; 8157 break; 8158 case IconAction.Delete: 8159 icon = "fa-times"; 8160 break; 8161 case IconAction.Print: 8162 icon = "fa-print"; 8163 attributes.Add("target", "_blank"); 8164 break; 8165 case IconAction.Save: 8166 break; 8167 case IconAction.Reset: 8168 break; 8169 case IconAction.Undo: 8170 break; 8171 case IconAction.Reorder: 8172 icon = "fa-repeat"; 8173 attributes.Add("class", "reorderLink"); 8174 attributes.Add("data-totalqty", totalQty); 8175 attributes.Add("data-productlist", productNumber); 8176 break; 8177 case IconAction.SetDefault: 8178 icon = "fa-times"; 8179 label = string.Empty; 8180 break; 8181 case IconAction.IsDefault: 8182 icon = "fa-check-circle"; 8183 label = string.Empty; 8184 break; 8185 default: 8186 throw new NotSupportedException("An action is needed to render this helper!"); 8187 } 8188 if (icon.IsNotNullOrEmpty()) 8189 { 8190 if (href.IsNotNullOrEmpty()) 8191 { 8192 8193 8194 #line default 8195 #line hidden 8196 8197 #line 2897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8198 WriteTo(__razor_helper_writer, GetHtmlElement("a", GetAttributes(attributes))); 8199 8200 8201 #line default 8202 #line hidden 8203 8204 #line 2897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8205 8206 8207 8208 #line default 8209 #line hidden 8210 8211 #line 2898 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8212 WriteTo(__razor_helper_writer, RenderIcon(icon, label)); 8213 8214 8215 #line default 8216 #line hidden 8217 8218 #line 2898 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8219 8220 8221 8222 #line default 8223 #line hidden 8224 8225 #line 2899 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8226 WriteTo(__razor_helper_writer, GetHtmlElement("a", true)); 8227 8228 8229 #line default 8230 #line hidden 8231 8232 #line 2899 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8233 8234 } 8235 else if (label.IsNullOrEmpty()) 8236 { 8237 8238 8239 #line default 8240 #line hidden 8241 8242 #line 2903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8243 WriteTo(__razor_helper_writer, RenderIcon(icon)); 8244 8245 8246 #line default 8247 #line hidden 8248 8249 #line 2903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8250 8251 } 8252 } 8253 8254 8255 8256 #line default 8257 #line hidden 8258 }); 8259 8260 #line 2907 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8261 } 8262 #line default 8263 #line hidden 8264 8265 8266 #line 2923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8267 8268 8269 public string GetGroupImage(string groupImagePath, string groupId) 8270 { 8271 var fixedPath = groupImagePath.Contains("Files/Files") ? groupImagePath : "/Files/" + groupImagePath; 8272 return groupImagePath.IsNotNullOrEmpty() ? fixedPath : string.Format("/Files/Files/{1}/Groups/Images/{0}.png", groupId, Pageview.Area.Layout.Design.Name); 8273 } 8274 8275 8276 #line default 8277 #line hidden 8278 8279 8280 #line 2933 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8281 public RazorEngine.Templating.TemplateWriter RenderListViewProductCustom(LoopItem product) 8282 { 8283 #line default 8284 #line hidden 8285 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8286 8287 #line 2934 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8288 8289 var showQuantity = Pageview.Area.Item["ShowQuantityField"].ToString() == "True"; 8290 const int productStock = 999999999; 8291 var productType = product.GetInteger("Ecom:Product.Type"); 8292 8293 8294 #line default 8295 #line hidden 8296 8297 #line 2944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8298 8299 var productNumber = product.GetString("Ecom:Product.Number"); 8300 var modelNumber = product.GetString("Ecom:Product:Field.ModelNumber.Value.Clean"); 8301 var image = CHG.Helpers.Images.GetChgImagePath(product); 8302 var productName = product.GetString("Ecom:Product.Name"); 8303 var currentVariantId = product.GetString("Ecom:Product.VariantID"); 8304 var variantId = currentVariantId.IsNotNullOrEmpty() ? currentVariantId : product.GetString("Ecom:Product.DefaultVariantComboID"); 8305 var productId = product.GetString("Ecom:Product.ID"); 8306 var link = HttpUtility.HtmlEncode(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(product.GetString("Ecom:Product.Link.Clean"))); 8307 var productLanguage = product.GetString("Ecom:Product.LanguageID"); 8308 var productUnitId = product.GetString("Ecom:Product.DefaultUnitID"); 8309 var miniCartPageId = GetPageIdByNavigationTag("MiniCart"); 8310 var actionCart = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(miniCartPageId); 8311 var specialProductPricePage = GetSpecialItemPricingUrl(HttpUtility.UrlEncode(productName), productNumber, modelNumber); 8312 var hasTariff = product.GetBoolean("Ecom:Product:Field.TariffSurchargeable"); 8313 var quoteOrderContext = Dynamicweb.Configuration.SystemConfiguration.Instance.GetValue("/Globalsettings/CHG/Checkout/QuoteOrderContextId"); 8314 var isSpecialProduct = product.GetString("Ecom:Product:Field.CatalogClassification.Value").Equals("special", StringComparison.InvariantCultureIgnoreCase); 8315 8316 8317 8318 #line default 8319 #line hidden 8320 WriteLiteralTo(__razor_helper_writer, " <div"); 8321 8322 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding hasNoVariant\""); 8323 8324 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8325 8326 WriteLiteralTo(__razor_helper_writer, " "); 8327 8328 8329 #line 2963 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8330 WriteTo(__razor_helper_writer, RenderImage(new ImageSettings {IncludeWrapper = true, WrapperCssClass = "col-xs-2 noPadding centerVertical", Href = link, Source = Images.GetImage(image, 480, 480), AltText = productName})); 8331 8332 8333 #line default 8334 #line hidden 8335 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 8336 8337 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-10 noPadding centerVertical\""); 8338 8339 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8340 8341 WriteLiteralTo(__razor_helper_writer, " class=\"prodNumberHolder col-xs-4\""); 8342 8343 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8344 8345 8346 #line 2966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8347 8348 8349 #line default 8350 #line hidden 8351 8352 #line 2966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8353 if (productNumber.IsNotNullOrEmpty()) 8354 { 8355 8356 8357 #line default 8358 #line hidden 8359 WriteLiteralTo(__razor_helper_writer, " <a"); 8360 8361 WriteLiteralTo(__razor_helper_writer, " class=\"prodNumber\""); 8362 8363 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 123855), Tuple.Create("\"", 123867) 8364 8365 #line 2968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8366 , Tuple.Create(Tuple.Create("", 123862), Tuple.Create<System.Object, System.Int32>(link 8367 8368 #line default 8369 #line hidden 8370 , 123862), false) 8371 ); 8372 8373 WriteLiteralTo(__razor_helper_writer, " >"); 8374 8375 8376 #line 2968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8377 WriteTo(__razor_helper_writer, modelNumber); 8378 8379 8380 #line default 8381 #line hidden 8382 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 8383 8384 8385 #line 2969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8386 } 8387 8388 #line default 8389 #line hidden 8390 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8391 8392 8393 #line 2971 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8394 8395 8396 #line default 8397 #line hidden 8398 8399 #line 2971 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8400 if (!isSpecialProduct) 8401 { 8402 8403 8404 #line default 8405 #line hidden 8406 WriteLiteralTo(__razor_helper_writer, " <div"); 8407 8408 WriteLiteralTo(__razor_helper_writer, " class=\'listHide listPrice text-right\'"); 8409 8410 WriteLiteralTo(__razor_helper_writer, " id=\'tilesPrice\'"); 8411 8412 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 8413 8414 8415 #line 2974 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8416 } 8417 8418 #line default 8419 #line hidden 8420 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 8421 8422 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-5 noPaddingLeft\""); 8423 8424 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>\r\n <a"); 8425 8426 WriteLiteralTo(__razor_helper_writer, " itemprop=\"name\""); 8427 8428 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 124223), Tuple.Create("\"", 124235) 8429 8430 #line 2977 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8431 , Tuple.Create(Tuple.Create("", 124230), Tuple.Create<System.Object, System.Int32>(link 8432 8433 #line default 8434 #line hidden 8435 , 124230), false) 8436 ); 8437 8438 WriteLiteralTo(__razor_helper_writer, ">"); 8439 8440 8441 #line 2977 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8442 WriteTo(__razor_helper_writer, productName); 8443 8444 8445 #line default 8446 #line hidden 8447 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </h2>\r\n"); 8448 8449 WriteLiteralTo(__razor_helper_writer, " "); 8450 8451 8452 #line 2979 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8453 WriteTo(__razor_helper_writer, RenderProductCompareCustom(productType, productId, string.Empty, productLanguage)); 8454 8455 8456 #line default 8457 #line hidden 8458 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div "); 8459 8460 8461 #line 2981 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8462 WriteTo(__razor_helper_writer, !isSpecialProduct ? "data-liveproductinfo=" + productId : string.Empty); 8463 8464 8465 #line default 8466 #line hidden 8467 WriteLiteralTo(__razor_helper_writer, " class=\"liveProductInfo col-xs-8 noPadding text-right\">\r\n <div" + 8468 ""); 8469 8470 WriteLiteralTo(__razor_helper_writer, " class=\"addToCartWrapper\""); 8471 8472 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8473 8474 8475 #line 2983 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8476 8477 8478 #line default 8479 #line hidden 8480 8481 #line 2983 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8482 if (isSpecialProduct) 8483 { 8484 8485 8486 #line default 8487 #line hidden 8488 WriteLiteralTo(__razor_helper_writer, " <a"); 8489 8490 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 124718), Tuple.Create("\"", 124749) 8491 8492 #line 2985 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8493 , Tuple.Create(Tuple.Create("", 124725), Tuple.Create<System.Object, System.Int32>(specialProductPricePage 8494 8495 #line default 8496 #line hidden 8497 , 124725), false) 8498 ); 8499 8500 WriteLiteralTo(__razor_helper_writer, ">"); 8501 8502 8503 #line 2985 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8504 WriteTo(__razor_helper_writer, Translate("Please click here for pricing and availability")); 8505 8506 8507 #line default 8508 #line hidden 8509 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 8510 8511 8512 #line 2986 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8513 } 8514 else 8515 { 8516 8517 8518 #line default 8519 #line hidden 8520 WriteLiteralTo(__razor_helper_writer, " <div"); 8521 8522 WriteLiteralTo(__razor_helper_writer, " class=\"listPriceHolder col-xs-4 hidden\""); 8523 8524 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 8525 8526 WriteLiteralTo(__razor_helper_writer, " class=\"listPrice\""); 8527 8528 WriteLiteralTo(__razor_helper_writer, "></span>\r\n </div>\r\n"); 8529 8530 WriteLiteralTo(__razor_helper_writer, " <div"); 8531 8532 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 noPaddingRight pull-right priceContainer hidden\""); 8533 8534 WriteLiteralTo(__razor_helper_writer, ">\r\n <form"); 8535 8536 WriteLiteralTo(__razor_helper_writer, " name=\"addToCart\""); 8537 8538 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 125231), Tuple.Create("\"", 125251) 8539 8540 #line 2993 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8541 , Tuple.Create(Tuple.Create("", 125240), Tuple.Create<System.Object, System.Int32>(actionCart 8542 8543 #line default 8544 #line hidden 8545 , 125240), false) 8546 ); 8547 8548 WriteLiteralTo(__razor_helper_writer, " method=\"post\""); 8549 8550 WriteLiteralTo(__razor_helper_writer, " data-outofstock=\'"); 8551 8552 8553 #line 2993 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8554 WriteTo(__razor_helper_writer, Translate("Out of stock")); 8555 8556 8557 #line default 8558 #line hidden 8559 WriteLiteralTo(__razor_helper_writer, "\'"); 8560 8561 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8562 8563 8564 #line 2994 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8565 8566 8567 #line default 8568 #line hidden 8569 8570 #line 2994 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8571 if (!showQuantity) 8572 { 8573 var stockQuantityFieldSettings = new FieldSettings 8574 { 8575 Type = FieldType.Hidden, 8576 SystemName = "quantity", 8577 Id = "quantity" + productId, 8578 Value = "1", 8579 CssClass = "quantityInput", 8580 Attributes = new Dictionary<string, string> 8581 { 8582 {"data-outofstock", Translate("Out of stock")}, 8583 {"data-stocktranslate", Translate("The current stock is")}, 8584 {"data-available", productStock.ToString()} 8585 } 8586 }; 8587 8588 8589 #line default 8590 #line hidden 8591 8592 #line 3010 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8593 WriteTo(__razor_helper_writer, RenderField(stockQuantityFieldSettings)); 8594 8595 8596 #line default 8597 #line hidden 8598 8599 #line 3010 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8600 8601 } 8602 8603 #line default 8604 #line hidden 8605 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8606 8607 WriteLiteralTo(__razor_helper_writer, " "); 8608 8609 8610 #line 3012 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8611 WriteTo(__razor_helper_writer, RenderQuantitySelector(false, productStock, productType, productId)); 8612 8613 8614 #line default 8615 #line hidden 8616 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8617 8618 WriteLiteralTo(__razor_helper_writer, " "); 8619 8620 8621 #line 3013 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8622 WriteTo(__razor_helper_writer, RenderAddToCart(productId, productUnitId, string.Empty, productStock, false)); 8623 8624 8625 #line default 8626 #line hidden 8627 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n </div>\r\n"); 8628 8629 8630 #line 3016 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8631 } 8632 8633 #line default 8634 #line hidden 8635 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8636 8637 WriteLiteralTo(__razor_helper_writer, " "); 8638 8639 8640 #line 3018 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8641 WriteTo(__razor_helper_writer, RenderRequestQuoteButton(productId, productUnitId, variantId, quoteOrderContext)); 8642 8643 8644 #line default 8645 #line hidden 8646 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n"); 8647 8648 8649 #line 3021 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8650 8651 8652 #line default 8653 #line hidden 8654 8655 #line 3021 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8656 8657 if ( hasTariff) 8658 { 8659 var isMyCatalogPage = Pageview.Page.NavigationTag == "CompanyCatalog"; 8660 var TarrifLegend = "A"; 8661 if (isMyCatalogPage) 8662 { 8663 TarrifLegend = "B"; 8664 } 8665 8666 8667 #line default 8668 #line hidden 8669 8670 #line 3030 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8671 WriteTo(__razor_helper_writer, RenderTarrif(TarrifLegend, "tileHide col-xs-12 tariffBox")); 8672 8673 8674 #line default 8675 #line hidden 8676 8677 #line 3030 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8678 ; 8679 8680 8681 #line default 8682 #line hidden 8683 8684 #line 3031 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8685 WriteTo(__razor_helper_writer, RenderTarrif(TarrifLegend, "listHide marginTop10 col-xs-12 tariffBox")); 8686 8687 8688 #line default 8689 #line hidden 8690 8691 #line 3031 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8692 ; 8693 } 8694 8695 8696 #line default 8697 #line hidden 8698 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8699 8700 8701 #line 3035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8702 8703 8704 #line default 8705 #line hidden 8706 }); 8707 8708 #line 3035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8709 } 8710 #line default 8711 #line hidden 8712 8713 8714 #line 3036 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8715 public RazorEngine.Templating.TemplateWriter RenderProductListHeaderCustom(int prodLoopCount, int pageProdCount, int pageSize, string groupId) 8716 { 8717 #line default 8718 #line hidden 8719 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8720 8721 #line 3037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8722 8723 var isMyCatalogPage = Pageview.Page.NavigationTag == "CompanyCatalog"; 8724 var sortBy = Sanitize.Parameter("sortby"); 8725 var sortOrder = Sanitize.Parameter("SortOrder"); 8726 var sortByFieldSettings = new FieldSettings 8727 { 8728 Type = FieldType.Select, 8729 Label = Translate("Sort by"), 8730 SystemName = "sortby", 8731 Id = "sortSelect", 8732 WrapperCssClass = "col-sm-6 col-xs-5 hidden", 8733 IncludeWrapper = true 8734 }; 8735 sortByFieldSettings.FieldOptionsList.Add(new FieldOption {Label = Translate("Created"), Value = "Created", IsSelected = sortBy == "Created"}); 8736 sortByFieldSettings.FieldOptionsList.Add(new FieldOption {Label = Translate("Created"), Value = "Created", IsSelected = sortBy == "Created"}); 8737 sortByFieldSettings.FieldOptionsList.Add(new FieldOption {Label = Translate("Created"), Value = "Created", IsSelected = sortBy == "Created"}); 8738 var sortOrderFieldSettings = new FieldSettings 8739 { 8740 Type = FieldType.Select, 8741 Label = Translate("Order"), 8742 SystemName = "SortOrder", 8743 Id = "orderSelect", 8744 WrapperCssClass = "hidden", 8745 IncludeWrapper = true 8746 }; 8747 sortOrderFieldSettings.FieldOptionsList.Add(new FieldOption {Label = Translate("Asc"), Value = "ASC", IsSelected = sortOrder == "ASC"}); 8748 sortOrderFieldSettings.FieldOptionsList.Add(new FieldOption {Label = Translate("Desc"), Value = "DESC", IsSelected = sortOrder == "DESC"}); 8749 var sortOrderJoinFieldSettings = new FieldSettings 8750 { 8751 Type = FieldType.Select, 8752 Label = Translate("Sort"), 8753 SystemName = "SortOrderJoin", 8754 WrapperCssClass = "col-xs-12 pull-right wrap-sort", 8755 IncludeWrapper = true 8756 }; 8757 8758 sortOrderJoinFieldSettings.FieldOptionsList.Add(new FieldOption 8759 { 8760 Label = Translate("Product Description (A - Z)"), 8761 IsSelected = sortOrder == "ASC" && sortBy == "Name_sortable", 8762 Value = "Name_sortable|ASC" 8763 }); 8764 sortOrderJoinFieldSettings.FieldOptionsList.Add(new FieldOption 8765 { 8766 Label = Translate("Product Description (Z - A)"), 8767 IsSelected = sortOrder == "DESC" && sortBy == "Name_sortable", 8768 Value = "Name_sortable|DESC" 8769 }); 8770 8771 8772 #line default 8773 #line hidden 8774 WriteLiteralTo(__razor_helper_writer, " <!-- Model -->\r\n"); 8775 8776 8777 #line 3086 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8778 sortOrderJoinFieldSettings.FieldOptionsList.Add(new FieldOption 8779 { 8780 Label = Translate("Model # (A - Z)"), 8781 IsSelected = sortOrder == "ASC" && sortBy == "Model_sortable", 8782 Value = "Model_sortable|ASC" 8783 }); 8784 sortOrderJoinFieldSettings.FieldOptionsList.Add(new FieldOption 8785 { 8786 Label = Translate("Model # (Z - A)"), 8787 IsSelected = sortOrder == "DESC" && sortBy == "Model_sortable", 8788 Value = "Model_sortable|DESC" 8789 }); 8790 if (Sanitize.Parameter("q", ParameterType.LongText).IsNotNullOrEmpty()) 8791 { 8792 sortOrderJoinFieldSettings.FieldOptionsList.Add(new FieldOption 8793 { 8794 Label = Translate("Relevance"), 8795 IsSelected = sortOrder.IsNullOrEmpty() && sortBy.IsNullOrEmpty(), 8796 Value = string.Empty 8797 }); 8798 } 8799 var pageSizeFieldSettings = new FieldSettings 8800 { 8801 Type = FieldType.Select, 8802 Label = Translate("Page size"), 8803 SystemName = "PageSize", 8804 Id = "pageSize", 8805 IncludeWrapper = true, 8806 WrapperCssClass = "hidden" 8807 }; 8808 const int maxOf = 36; 8809 8810 const string allPages = "9999"; 8811 var multipleOf = 12; 8812 var selected = Sanitize.Parameter("PageNum").IsNotNullOrEmpty() ? Sanitize.Parameter("PageNum", ParameterType.Number) : pageSize.ToString(); 8813 while (multipleOf <= maxOf) 8814 { 8815 pageSizeFieldSettings.FieldOptionsList.Add(new FieldOption {Label = multipleOf.ToString(), Value = multipleOf.ToString(), IsSelected = selected == multipleOf.ToString()}); 8816 multipleOf = multipleOf + 12; 8817 if (multipleOf > pageProdCount) 8818 { 8819 break; 8820 } 8821 } 8822 pageSizeFieldSettings.FieldOptionsList.Add(new FieldOption {Label = Translate("All"), Value = allPages, IsSelected = selected == allPages}); 8823 8824 var formCssClass = "col-sm-5 col-xs-12 hidden-xs pull-right"; 8825 8826 if (isMyCatalogPage) 8827 { 8828 formCssClass += " noPadding"; 8829 sortOrderJoinFieldSettings.WrapperCssClass += " noPadding"; 8830 } 8831 8832 8833 #line default 8834 #line hidden 8835 WriteLiteralTo(__razor_helper_writer, " <div"); 8836 8837 WriteLiteralTo(__razor_helper_writer, " id=\"productListHeader\""); 8838 8839 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox col-xs-12\""); 8840 8841 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8842 8843 WriteLiteralTo(__razor_helper_writer, " "); 8844 8845 8846 #line 3140 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8847 WriteTo(__razor_helper_writer, RenderPageSummaryCustom(pageProdCount, "col-xs-5 noPadding")); 8848 8849 8850 #line default 8851 #line hidden 8852 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8853 8854 8855 #line 3141 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8856 8857 8858 #line default 8859 #line hidden 8860 8861 #line 3141 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8862 if (!isMyCatalogPage) 8863 { 8864 8865 8866 #line default 8867 #line hidden 8868 WriteLiteralTo(__razor_helper_writer, " <ul"); 8869 8870 WriteLiteralTo(__razor_helper_writer, " class=\"listMode hidden-xs pull-right\""); 8871 8872 WriteLiteralTo(__razor_helper_writer, ">\r\n <li"); 8873 8874 WriteLiteralTo(__razor_helper_writer, " data-list=\"list\""); 8875 8876 WriteLiteralTo(__razor_helper_writer, " class=\"active\""); 8877 8878 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8879 8880 WriteLiteralTo(__razor_helper_writer, " "); 8881 8882 8883 #line 3145 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8884 WriteTo(__razor_helper_writer, RenderIcon("fa-list-ul")); 8885 8886 8887 #line default 8888 #line hidden 8889 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n <li"); 8890 8891 WriteLiteralTo(__razor_helper_writer, " data-list=\"tile\""); 8892 8893 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8894 8895 WriteLiteralTo(__razor_helper_writer, " "); 8896 8897 8898 #line 3148 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8899 WriteTo(__razor_helper_writer, RenderIcon("fa-th-large")); 8900 8901 8902 #line default 8903 #line hidden 8904 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n </ul>\r\n"); 8905 8906 8907 #line 3151 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8908 } 8909 8910 #line default 8911 #line hidden 8912 WriteLiteralTo(__razor_helper_writer, "\r\n <form"); 8913 8914 WriteLiteralTo(__razor_helper_writer, " id=\"orderProdList\""); 8915 8916 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 133053), Tuple.Create("\"", 133074) 8917 8918 #line 3152 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8919 , Tuple.Create(Tuple.Create("", 133061), Tuple.Create<System.Object, System.Int32>(formCssClass 8920 8921 #line default 8922 #line hidden 8923 , 133061), false) 8924 ); 8925 8926 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 133075), Tuple.Create("\"", 133162) 8927 8928 #line 3152 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8929 , Tuple.Create(Tuple.Create("", 133084), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Pageview.Page.ID) 8930 8931 #line default 8932 #line hidden 8933 , 133084), false) 8934 ); 8935 8936 WriteLiteralTo(__razor_helper_writer, " name=\"ExtUserForm_Main\""); 8937 8938 WriteLiteralTo(__razor_helper_writer, " method=\"GET\""); 8939 8940 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8941 8942 WriteLiteralTo(__razor_helper_writer, " "); 8943 8944 8945 #line 3153 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8946 WriteTo(__razor_helper_writer, RenderField(sortByFieldSettings)); 8947 8948 8949 #line default 8950 #line hidden 8951 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8952 8953 WriteLiteralTo(__razor_helper_writer, " "); 8954 8955 8956 #line 3154 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8957 WriteTo(__razor_helper_writer, RenderField(sortOrderFieldSettings)); 8958 8959 8960 #line default 8961 #line hidden 8962 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8963 8964 WriteLiteralTo(__razor_helper_writer, " "); 8965 8966 8967 #line 3155 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8968 WriteTo(__razor_helper_writer, RenderField(sortOrderJoinFieldSettings)); 8969 8970 8971 #line default 8972 #line hidden 8973 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8974 8975 WriteLiteralTo(__razor_helper_writer, " "); 8976 8977 8978 #line 3156 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8979 WriteTo(__razor_helper_writer, RenderField(pageSizeFieldSettings)); 8980 8981 8982 #line default 8983 #line hidden 8984 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n </div>\r\n"); 8985 8986 8987 #line 3159 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8988 8989 8990 #line default 8991 #line hidden 8992 }); 8993 8994 #line 3159 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 8995 } 8996 #line default 8997 #line hidden 8998 8999 9000 #line 3161 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9001 public RazorEngine.Templating.TemplateWriter RenderPageSummaryCustom(int totalItemCount, string cssClass = "col-sm-2 col-xs-12 noPaddingLeft") 9002 { 9003 #line default 9004 #line hidden 9005 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9006 9007 #line 3162 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9008 9009 9010 9011 #line default 9012 #line hidden 9013 WriteLiteralTo(__razor_helper_writer, " <span"); 9014 9015 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 133600), Tuple.Create("\"", 133617) 9016 9017 #line 3163 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9018 , Tuple.Create(Tuple.Create("", 133608), Tuple.Create<System.Object, System.Int32>(cssClass 9019 9020 #line default 9021 #line hidden 9022 , 133608), false) 9023 ); 9024 9025 WriteLiteralTo(__razor_helper_writer, "> "); 9026 9027 9028 #line 3163 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9029 WriteTo(__razor_helper_writer, totalItemCount); 9030 9031 9032 #line default 9033 #line hidden 9034 WriteLiteralTo(__razor_helper_writer, " "); 9035 9036 9037 #line 3163 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9038 WriteTo(__razor_helper_writer, Translate(totalItemCount > 1 ? "products" : "product")); 9039 9040 9041 #line default 9042 #line hidden 9043 WriteLiteralTo(__razor_helper_writer, " "); 9044 9045 9046 #line 3163 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9047 WriteTo(__razor_helper_writer, Translate("found")); 9048 9049 9050 #line default 9051 #line hidden 9052 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 9053 9054 9055 #line 3164 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9056 9057 9058 #line default 9059 #line hidden 9060 }); 9061 9062 #line 3164 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9063 } 9064 #line default 9065 #line hidden 9066 9067 9068 #line 3166 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9069 public RazorEngine.Templating.TemplateWriter RenderDepartmentsAndCategories(LoopItem loopItem) 9070 { 9071 #line default 9072 #line hidden 9073 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9074 9075 #line 3167 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9076 9077 var topGroups = Services.ProductGroups.GetToplevelGroups(Pageview.Area.EcomLanguageId).Where(g => g.NavigationShowInSiteMap).ToList(); 9078 var resultSetGroupIds = loopItem.GetLoop("FacetOptions").Select(g => g.GetString("FacetOption.Value")).ToArray(); 9079 var groups = topGroups.Where(g => resultSetGroupIds.Contains(g.Id)).ToList(); 9080 9081 if (groups.Any()) 9082 { 9083 9084 9085 #line default 9086 #line hidden 9087 WriteLiteralTo(__razor_helper_writer, " <div"); 9088 9089 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox filtersHead col-xs-12\""); 9090 9091 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 9092 9093 9094 #line 3175 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9095 WriteTo(__razor_helper_writer, Translate("Categories")); 9096 9097 9098 #line default 9099 #line hidden 9100 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 9101 9102 WriteLiteralTo(__razor_helper_writer, " <ul"); 9103 9104 WriteLiteralTo(__razor_helper_writer, " class=\"catalogCategories col-xs-12\""); 9105 9106 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n"); 9107 9108 9109 #line 3179 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9110 9111 9112 #line default 9113 #line hidden 9114 9115 #line 3179 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9116 foreach (var group in groups.Where(g => resultSetGroupIds.Contains(g.Id))) 9117 { 9118 9119 9120 #line default 9121 #line hidden 9122 WriteLiteralTo(__razor_helper_writer, " <li"); 9123 9124 WriteLiteralTo(__razor_helper_writer, " data-groupid=\""); 9125 9126 9127 #line 3181 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9128 WriteTo(__razor_helper_writer, group.Id); 9129 9130 9131 #line default 9132 #line hidden 9133 WriteLiteralTo(__razor_helper_writer, "\""); 9134 9135 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); 9136 9137 WriteLiteralTo(__razor_helper_writer, " class=\"collapsed\""); 9138 9139 WriteLiteralTo(__razor_helper_writer, " data-target=\""); 9140 9141 9142 #line 3181 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9143 WriteTo(__razor_helper_writer, string.Concat("#collapse",group.Id)); 9144 9145 9146 #line default 9147 #line hidden 9148 WriteLiteralTo(__razor_helper_writer, "\""); 9149 9150 WriteLiteralTo(__razor_helper_writer, " aria-expanded=\"false\""); 9151 9152 WriteAttributeTo(__razor_helper_writer, "aria-controls", Tuple.Create(" aria-controls=\"", 134681), Tuple.Create("\"", 134732) 9153 9154 #line 3181 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9155 , Tuple.Create(Tuple.Create("", 134697), Tuple.Create<System.Object, System.Int32>(string.Concat("collapse",group.Id) 9156 9157 #line default 9158 #line hidden 9159 , 134697), false) 9160 ); 9161 9162 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 9163 9164 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0);\""); 9165 9166 WriteLiteralTo(__razor_helper_writer, ">"); 9167 9168 9169 #line 3182 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9170 WriteTo(__razor_helper_writer, group.Name); 9171 9172 9173 #line default 9174 #line hidden 9175 WriteLiteralTo(__razor_helper_writer, "</a>\r\n \r\n"); 9176 9177 9178 #line 3184 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9179 9180 9181 #line default 9182 #line hidden 9183 9184 #line 3184 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9185 9186 var subgroups = group.Subgroups.Where(g => g.NavigationShowInSiteMap && resultSetGroupIds.Contains(g.Id)).ToList(); 9187 if (subgroups.Any()) 9188 { 9189 9190 9191 #line default 9192 #line hidden 9193 WriteLiteralTo(__razor_helper_writer, " <ul"); 9194 9195 WriteLiteralTo(__razor_helper_writer, " class=\"catalogSubCategories collapse\""); 9196 9197 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 135160), Tuple.Create("\"", 135201) 9198 9199 #line 3188 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9200 , Tuple.Create(Tuple.Create("", 135165), Tuple.Create<System.Object, System.Int32>(string.Concat("collapse", group.Id) 9201 9202 #line default 9203 #line hidden 9204 , 135165), false) 9205 ); 9206 9207 WriteLiteralTo(__razor_helper_writer, " aria-expanded=\"false\""); 9208 9209 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9210 9211 9212 #line 3189 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9213 9214 9215 #line default 9216 #line hidden 9217 9218 #line 3189 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9219 foreach (var subgroup in subgroups) 9220 { 9221 9222 9223 #line default 9224 #line hidden 9225 WriteLiteralTo(__razor_helper_writer, " <li"); 9226 9227 WriteLiteralTo(__razor_helper_writer, " data-groupid=\""); 9228 9229 9230 #line 3191 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9231 WriteTo(__razor_helper_writer, subgroup.Id); 9232 9233 9234 #line default 9235 #line hidden 9236 WriteLiteralTo(__razor_helper_writer, "\""); 9237 9238 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); 9239 9240 WriteLiteralTo(__razor_helper_writer, " class=\"collapsed\""); 9241 9242 WriteLiteralTo(__razor_helper_writer, " data-target=\""); 9243 9244 9245 #line 3191 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9246 WriteTo(__razor_helper_writer, string.Concat("#collapse", subgroup.Id)); 9247 9248 9249 #line default 9250 #line hidden 9251 WriteLiteralTo(__razor_helper_writer, "\""); 9252 9253 WriteLiteralTo(__razor_helper_writer, " aria-expanded=\"false\""); 9254 9255 WriteAttributeTo(__razor_helper_writer, "aria-controls", Tuple.Create(" aria-controls=\"", 135532), Tuple.Create("\"", 135587) 9256 9257 #line 3191 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9258 , Tuple.Create(Tuple.Create("", 135548), Tuple.Create<System.Object, System.Int32>(string.Concat("collapse", subgroup.Id) 9259 9260 #line default 9261 #line hidden 9262 , 135548), false) 9263 ); 9264 9265 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 9266 9267 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0);\""); 9268 9269 WriteLiteralTo(__razor_helper_writer, ">"); 9270 9271 9272 #line 3192 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9273 WriteTo(__razor_helper_writer, subgroup.Name); 9274 9275 9276 #line default 9277 #line hidden 9278 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 9279 9280 9281 #line 3194 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9282 } 9283 9284 #line default 9285 #line hidden 9286 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 9287 9288 9289 #line 3196 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9290 } 9291 9292 9293 #line default 9294 #line hidden 9295 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n"); 9296 9297 9298 #line 3199 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9299 } 9300 9301 #line default 9302 #line hidden 9303 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 9304 9305 9306 #line 3201 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9307 } 9308 9309 9310 #line default 9311 #line hidden 9312 }); 9313 9314 #line 3202 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9315 } 9316 #line default 9317 #line hidden 9318 9319 9320 #line 3204 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9321 public RazorEngine.Templating.TemplateWriter RenderSpellSuggest() 9322 { 9323 #line default 9324 #line hidden 9325 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9326 9327 #line 3205 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9328 9329 if (GetString("DwSpellSuggest").IsNotNullOrEmpty()) 9330 { 9331 9332 9333 #line default 9334 #line hidden 9335 WriteLiteralTo(__razor_helper_writer, " <div"); 9336 9337 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 9338 9339 WriteLiteralTo(__razor_helper_writer, ">"); 9340 9341 9342 #line 3208 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9343 WriteTo(__razor_helper_writer, Translate("Did you mean: ")); 9344 9345 9346 #line default 9347 #line hidden 9348 WriteLiteralTo(__razor_helper_writer, " <a"); 9349 9350 WriteLiteralTo(__razor_helper_writer, " class=\"wrapSpellSuggest\""); 9351 9352 WriteLiteralTo(__razor_helper_writer, ">"); 9353 9354 9355 #line 3208 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9356 WriteTo(__razor_helper_writer, GetString("DwSpellSuggest.Html")); 9357 9358 9359 #line default 9360 #line hidden 9361 WriteLiteralTo(__razor_helper_writer, "</a></div>\r\n"); 9362 9363 9364 #line 3209 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9365 } 9366 9367 9368 #line default 9369 #line hidden 9370 }); 9371 9372 #line 3210 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9373 } 9374 #line default 9375 #line hidden 9376 9377 9378 #line 3212 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9379 public RazorEngine.Templating.TemplateWriter RenderRefineSearch() 9380 { 9381 #line default 9382 #line hidden 9383 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9384 9385 #line 3213 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9386 9387 9388 9389 #line default 9390 #line hidden 9391 WriteLiteralTo(__razor_helper_writer, " <div"); 9392 9393 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox filtersHead\""); 9394 9395 WriteLiteralTo(__razor_helper_writer, ">"); 9396 9397 9398 #line 3214 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9399 WriteTo(__razor_helper_writer, Translate("Smart Filters")); 9400 9401 9402 #line default 9403 #line hidden 9404 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 9405 9406 WriteLiteralTo(__razor_helper_writer, " <form"); 9407 9408 WriteLiteralTo(__razor_helper_writer, " class=\"fake\""); 9409 9410 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n"); 9411 9412 WriteLiteralTo(__razor_helper_writer, " "); 9413 9414 9415 #line 3217 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9416 WriteTo(__razor_helper_writer, RenderField(new FieldSettings 9417 { 9418 Type = FieldType.Checkbox, 9419 IncludeWrapper = true, 9420 IsChecked = Convert.ToBoolean(Sanitize.Parameter("PreviouslyBoughtProducts")), 9421 SystemName = "PreviouslyBoughtProducts_base", 9422 Label = Translate("Only show previously bought products") 9423 })); 9424 9425 9426 #line default 9427 #line hidden 9428 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n"); 9429 9430 9431 #line 3226 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9432 // Previously Bought Products 9433 //Proprietary Products 9434 9435 9436 #line default 9437 #line hidden 9438 }); 9439 9440 #line 3228 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9441 } 9442 #line default 9443 #line hidden 9444 9445 9446 #line 3230 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9447 public RazorEngine.Templating.TemplateWriter RenderFiltersCustom(List<LoopItem> facetGroups, List<LoopItem> groups) 9448 { 9449 #line default 9450 #line hidden 9451 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9452 9453 #line 3231 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9454 9455 var parametersList = GetLoop("Query.Parameters"); 9456 var categoriesFacetGroups = facetGroups.Where(fgs => fgs.GetString("FacetGroup.Name").Equals("Departments and Categories")).ToList(); 9457 var allFiltersFacetGroups = facetGroups.Where(fgs => !fgs.GetString("FacetGroup.Name").Equals("Departments and Categories")).ToList(); 9458 9459 9460 9461 #line default 9462 #line hidden 9463 WriteLiteralTo(__razor_helper_writer, " <div"); 9464 9465 WriteLiteralTo(__razor_helper_writer, " id=\"filtersContainer\""); 9466 9467 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-md-3 noPaddingLeft\""); 9468 9469 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n"); 9470 9471 9472 #line 3238 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9473 9474 9475 #line default 9476 #line hidden 9477 9478 #line 3238 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9479 if ((Sanitize.Parameter("q", ParameterType.LongText).IsNotNullOrEmpty() || Pageview.Page.NavigationTag == "CompanyCatalog") && facetGroups.Any()) 9480 { 9481 foreach (var facetGroup in categoriesFacetGroups) 9482 { 9483 foreach (var facet in facetGroup.GetLoop("Facets").Where(fo => fo.GetInteger("Facet.OptionWithResultCount") > 0 && fo.GetString("Facet.Field").Equals("ParentGroupIDs"))) 9484 { 9485 9486 9487 #line default 9488 #line hidden 9489 9490 #line 3244 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9491 WriteTo(__razor_helper_writer, RenderDepartmentsAndCategories(facet)); 9492 9493 9494 #line default 9495 #line hidden 9496 9497 #line 3244 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9498 9499 } 9500 } 9501 9502 9503 #line default 9504 #line hidden 9505 WriteLiteralTo(__razor_helper_writer, " <div"); 9506 9507 WriteLiteralTo(__razor_helper_writer, " class=\"white row\""); 9508 9509 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 9510 9511 9512 #line 3248 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9513 } 9514 9515 #line default 9516 #line hidden 9517 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 9518 9519 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox filtersHead col-xs-12\""); 9520 9521 WriteLiteralTo(__razor_helper_writer, " id=\"expandSearchWrapper\""); 9522 9523 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 9524 9525 9526 #line 3250 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9527 WriteTo(__razor_helper_writer, Translate("Refine Search")); 9528 9529 9530 #line default 9531 #line hidden 9532 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <a"); 9533 9534 WriteLiteralTo(__razor_helper_writer, " id=\"expandSearch\""); 9535 9536 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right collapsed\""); 9537 9538 WriteLiteralTo(__razor_helper_writer, " aria-expanded=\"false\""); 9539 9540 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); 9541 9542 WriteLiteralTo(__razor_helper_writer, " data-translate=\'"); 9543 9544 9545 #line 3251 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9546 WriteTo(__razor_helper_writer, Translate("Collapse")); 9547 9548 9549 #line default 9550 #line hidden 9551 WriteLiteralTo(__razor_helper_writer, "\'"); 9552 9553 WriteLiteralTo(__razor_helper_writer, " data-target=\"#searchWrapper\""); 9554 9555 WriteLiteralTo(__razor_helper_writer, " onclick=\"toggleExpandButton()\""); 9556 9557 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0)\""); 9558 9559 WriteLiteralTo(__razor_helper_writer, ">"); 9560 9561 9562 #line 3251 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9563 WriteTo(__razor_helper_writer, RenderIcon("fa-caret-down", Translate("expand"), IconPosition.Right)); 9564 9565 9566 #line default 9567 #line hidden 9568 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </div>\r\n <div"); 9569 9570 WriteLiteralTo(__razor_helper_writer, " id=\"searchWrapper\""); 9571 9572 WriteLiteralTo(__razor_helper_writer, " class=\"searchWrapper-collapse collapse\""); 9573 9574 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9575 9576 9577 #line 3254 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9578 9579 9580 #line default 9581 #line hidden 9582 9583 #line 3254 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9584 if (Pageview.Page.NavigationTag == "CompanyCatalog") 9585 { 9586 9587 9588 #line default 9589 #line hidden 9590 9591 #line 3256 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9592 WriteTo(__razor_helper_writer, RenderRefineSearch()); 9593 9594 9595 #line default 9596 #line hidden 9597 9598 #line 3256 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9599 9600 } 9601 9602 #line default 9603 #line hidden 9604 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9605 9606 9607 #line 3258 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9608 9609 9610 #line default 9611 #line hidden 9612 9613 #line 3258 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9614 if (allFiltersFacetGroups.Any()) 9615 { 9616 9617 9618 #line default 9619 #line hidden 9620 WriteLiteralTo(__razor_helper_writer, " <div"); 9621 9622 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox filtersHead col-xs-12\""); 9623 9624 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9625 9626 WriteLiteralTo(__razor_helper_writer, " "); 9627 9628 9629 #line 3261 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9630 WriteTo(__razor_helper_writer, Translate("Filter your results")); 9631 9632 9633 #line default 9634 #line hidden 9635 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9636 9637 WriteLiteralTo(__razor_helper_writer, " <form"); 9638 9639 WriteLiteralTo(__razor_helper_writer, " id=\"filtersForm\""); 9640 9641 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 9642 9643 WriteLiteralTo(__razor_helper_writer, " action=\"/Default.aspx#productListHeader\""); 9644 9645 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9646 9647 WriteLiteralTo(__razor_helper_writer, " "); 9648 9649 9650 #line 3264 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9651 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("id", Pageview.Page.ID.ToString()))); 9652 9653 9654 #line default 9655 #line hidden 9656 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9657 9658 WriteLiteralTo(__razor_helper_writer, " "); 9659 9660 9661 #line 3265 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9662 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("ParentGroupID", Sanitize.Parameter("ParentGroupID")))); 9663 9664 9665 #line default 9666 #line hidden 9667 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9668 9669 WriteLiteralTo(__razor_helper_writer, " "); 9670 9671 9672 #line 3266 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9673 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("GroupID", Sanitize.Parameter("GroupID")))); 9674 9675 9676 #line default 9677 #line hidden 9678 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9679 9680 WriteLiteralTo(__razor_helper_writer, " "); 9681 9682 9683 #line 3267 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9684 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("sortby", Sanitize.Parameter("sortby")))); 9685 9686 9687 #line default 9688 #line hidden 9689 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9690 9691 WriteLiteralTo(__razor_helper_writer, " "); 9692 9693 9694 #line 3268 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9695 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("SortOrder", Sanitize.Parameter("SortOrder")))); 9696 9697 9698 #line default 9699 #line hidden 9700 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9701 9702 WriteLiteralTo(__razor_helper_writer, " "); 9703 9704 9705 #line 3269 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9706 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("PageSize", Sanitize.Parameter("PageSize", ParameterType.Number)))); 9707 9708 9709 #line default 9710 #line hidden 9711 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9712 9713 WriteLiteralTo(__razor_helper_writer, " "); 9714 9715 9716 #line 3270 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9717 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("q", Sanitize.Parameter("q", ParameterType.LongText)))); 9718 9719 9720 #line default 9721 #line hidden 9722 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9723 9724 WriteLiteralTo(__razor_helper_writer, " "); 9725 9726 9727 #line 3271 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9728 WriteTo(__razor_helper_writer, RenderField(new FieldSettings {Type = FieldType.Hidden, SystemName = "ProprietaryCodes", Value = "123", Attributes = new Dictionary<string, string> {{"disabled", "disabled"}}})); 9729 9730 9731 #line default 9732 #line hidden 9733 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9734 9735 WriteLiteralTo(__razor_helper_writer, " "); 9736 9737 9738 #line 3272 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9739 WriteTo(__razor_helper_writer, RenderField(new FieldSettings {Type = FieldType.Hidden, SystemName = "PreviouslyOrderedIds", Value = "123", Attributes = new Dictionary<string, string> {{"disabled", "disabled"}}})); 9740 9741 9742 #line default 9743 #line hidden 9744 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9745 9746 WriteLiteralTo(__razor_helper_writer, " "); 9747 9748 9749 #line 3273 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9750 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("PreviouslyBoughtProducts", Sanitize.Parameter("PreviouslyBoughtProducts", ParameterType.Boolean)))); 9751 9752 9753 #line default 9754 #line hidden 9755 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9756 9757 WriteLiteralTo(__razor_helper_writer, " "); 9758 9759 9760 #line 3274 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9761 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("ProprietaryProducts", Sanitize.Parameter("ProprietaryProducts", ParameterType.Boolean)))); 9762 9763 9764 #line default 9765 #line hidden 9766 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 9767 9768 9769 #line 3276 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9770 9771 9772 #line default 9773 #line hidden 9774 9775 #line 3276 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9776 foreach (var facetGroup in allFiltersFacetGroups) 9777 { 9778 foreach (var facet in facetGroup.GetLoop("Facets").Where(fo => fo.GetInteger("Facet.OptionWithResultCount") > 0)) 9779 { 9780 var parameterType = parametersList.FirstOrDefault(x => x.GetString("Parameter.Name") == facet.GetString("Facet.QueryParameter")); 9781 var templateOutput = facet.GetString("Facet.RenderType").IsNotNullOrEmpty() ? facet.GetString("Facet.RenderType") : "Text"; 9782 if (parameterType == null) 9783 { 9784 continue; 9785 } 9786 9787 9788 #line default 9789 #line hidden 9790 9791 #line 3286 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9792 WriteTo(__razor_helper_writer, InternalRenderFacetField(facet, parameterType.GetString("Parameter.Type"), templateOutput)); 9793 9794 9795 #line default 9796 #line hidden 9797 9798 #line 3286 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9799 9800 } 9801 } 9802 9803 #line default 9804 #line hidden 9805 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n"); 9806 9807 9808 #line 3290 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9809 } 9810 9811 #line default 9812 #line hidden 9813 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n"); 9814 9815 9816 #line 3293 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9817 9818 9819 #line default 9820 #line hidden 9821 }); 9822 9823 #line 3293 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9824 } 9825 #line default 9826 #line hidden 9827 9828 9829 #line 3295 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9830 public RazorEngine.Templating.TemplateWriter RenderFirstLevelGroups(List<LoopItem> groups, object listMatchingGroups = null, string title = "", int min = 0, int max = 999) 9831 { 9832 #line default 9833 #line hidden 9834 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9835 9836 #line 3296 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9837 9838 if (groups != null && groups.Any()) 9839 { 9840 if (title.IsNotNullOrEmpty()) 9841 { 9842 9843 9844 #line default 9845 #line hidden 9846 WriteLiteralTo(__razor_helper_writer, " <h2>"); 9847 9848 9849 #line 3301 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9850 WriteTo(__razor_helper_writer, title); 9851 9852 9853 #line default 9854 #line hidden 9855 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 9856 9857 9858 #line 3302 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9859 } 9860 9861 9862 #line default 9863 #line hidden 9864 WriteLiteralTo(__razor_helper_writer, " <ul"); 9865 9866 WriteLiteralTo(__razor_helper_writer, " class=\"row groupListView\""); 9867 9868 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9869 9870 9871 #line 3304 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9872 9873 9874 #line default 9875 #line hidden 9876 9877 #line 3304 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9878 foreach (var group in groups.Where(g => g.GetBoolean("Ecom:Group.ShowInSiteMap")).Take(max)) 9879 { 9880 var imageSource = GetGroupImage(group.GetString("Ecom:Group.SmallImage"), group.GetString("Ecom:Group.ID")); 9881 var groupDescription = group.GetString("Ecom:Group.Description"); 9882 var imageSettings = new ImageSettings 9883 { 9884 IncludeWrapper = true, 9885 WrapperCssClass = "col-xs-6 col-sm-3 noPaddingLeft", 9886 Source = Images.GetImage(imageSource, 320, 320), 9887 AltText = group.GetString("Ecom:Group.Name") 9888 }; 9889 9890 9891 #line default 9892 #line hidden 9893 WriteLiteralTo(__razor_helper_writer, " <li"); 9894 9895 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-6\""); 9896 9897 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 9898 9899 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 frame\""); 9900 9901 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 142925), Tuple.Create("\"", 142973) 9902 9903 #line 3316 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9904 , Tuple.Create(Tuple.Create("", 142932), Tuple.Create<System.Object, System.Int32>(group.GetString("Ecom:Group.Link.Clean") 9905 9906 #line default 9907 #line hidden 9908 , 142932), false) 9909 ); 9910 9911 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9912 9913 WriteLiteralTo(__razor_helper_writer, " "); 9914 9915 9916 #line 3317 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9917 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 9918 9919 9920 #line default 9921 #line hidden 9922 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9923 9924 9925 #line 3318 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9926 9927 9928 #line default 9929 #line hidden 9930 9931 #line 3318 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9932 if (groupDescription.IsNotNullOrEmpty()) 9933 { 9934 9935 9936 #line default 9937 #line hidden 9938 WriteLiteralTo(__razor_helper_writer, " <div"); 9939 9940 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 noPaddingLeft\""); 9941 9942 WriteLiteralTo(__razor_helper_writer, ">\r\n <h3>"); 9943 9944 9945 #line 3321 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9946 WriteTo(__razor_helper_writer, group.GetString("Ecom:Group.Name")); 9947 9948 9949 #line default 9950 #line hidden 9951 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n <p>"); 9952 9953 9954 #line 3322 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9955 WriteTo(__razor_helper_writer, groupDescription); 9956 9957 9958 #line default 9959 #line hidden 9960 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n"); 9961 9962 9963 #line 3324 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9964 } 9965 9966 #line default 9967 #line hidden 9968 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 9969 9970 9971 #line 3327 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9972 } 9973 9974 #line default 9975 #line hidden 9976 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n </ul>\r\n"); 9977 9978 9979 #line 3330 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9980 } 9981 9982 9983 #line default 9984 #line hidden 9985 }); 9986 9987 #line 3331 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9988 } 9989 #line default 9990 #line hidden 9991 9992 9993 #line 3333 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 9994 public RazorEngine.Templating.TemplateWriter RenderSecondLevelGroups(List<LoopItem> groups) 9995 { 9996 #line default 9997 #line hidden 9998 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9999 10000 #line 3334 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10001 10002 if (groups != null && groups.Any()) 10003 { 10004 var buttonSettings = new BootstrapButtonSettings 10005 { 10006 Label = Translate("List"), 10007 CssClass = "btnToggleView", 10008 ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button, 10009 }; 10010 buttonSettings.Attributes.Add("data-list", "list"); 10011 10012 10013 10014 #line default 10015 #line hidden 10016 WriteLiteralTo(__razor_helper_writer, " <h1>"); 10017 10018 10019 #line 3345 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10020 WriteTo(__razor_helper_writer, GetString("Ecom:Group.Name")); 10021 10022 10023 #line default 10024 #line hidden 10025 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n"); 10026 10027 WriteLiteralTo(__razor_helper_writer, " <div"); 10028 10029 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 10030 10031 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10032 10033 WriteLiteralTo(__razor_helper_writer, " "); 10034 10035 10036 #line 3347 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10037 WriteTo(__razor_helper_writer, GetString("Ecom:Group.Description")); 10038 10039 10040 #line default 10041 #line hidden 10042 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 10043 10044 10045 #line 3349 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10046 10047 10048 #line default 10049 #line hidden 10050 10051 #line 3349 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10052 WriteTo(__razor_helper_writer, RenderEcomGroupImageLarge()); 10053 10054 10055 #line default 10056 #line hidden 10057 10058 #line 3349 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10059 ; 10060 10061 10062 #line default 10063 #line hidden 10064 WriteLiteralTo(__razor_helper_writer, " <div"); 10065 10066 WriteLiteralTo(__razor_helper_writer, " class=\"mdAlignRight clear btnViewContainer\""); 10067 10068 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10069 10070 WriteLiteralTo(__razor_helper_writer, " "); 10071 10072 10073 #line 3351 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10074 WriteTo(__razor_helper_writer, RenderBootstrapButton(buttonSettings)); 10075 10076 10077 #line default 10078 #line hidden 10079 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10080 10081 10082 #line 3352 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10083 10084 10085 #line default 10086 #line hidden 10087 10088 #line 3352 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10089 10090 buttonSettings.Label = Translate("Grid"); 10091 buttonSettings.CssClass += " active"; 10092 buttonSettings.Attributes["data-list"] = "grid"; 10093 10094 10095 #line default 10096 #line hidden 10097 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10098 10099 WriteLiteralTo(__razor_helper_writer, " "); 10100 10101 10102 #line 3357 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10103 WriteTo(__razor_helper_writer, RenderBootstrapButton(buttonSettings)); 10104 10105 10106 #line default 10107 #line hidden 10108 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 10109 10110 WriteLiteralTo(__razor_helper_writer, " <ul"); 10111 10112 WriteLiteralTo(__razor_helper_writer, " class=\"row categoryView\""); 10113 10114 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10115 10116 10117 #line 3360 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10118 10119 10120 #line default 10121 #line hidden 10122 10123 #line 3360 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10124 foreach (var subGroup in groups.Where(sg => sg.GetBoolean("Ecom:Group.ShowInSiteMap"))) 10125 { 10126 var imageSource = GetGroupImage(subGroup.GetString("Ecom:Group.SmallImage"), subGroup.GetString("Ecom:Group.ID")); 10127 10128 10129 #line default 10130 #line hidden 10131 WriteLiteralTo(__razor_helper_writer, " <li"); 10132 10133 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-3\""); 10134 10135 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 10136 10137 WriteLiteralTo(__razor_helper_writer, " class=\"frame\""); 10138 10139 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 145024), Tuple.Create("\"", 145075) 10140 10141 #line 3364 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10142 , Tuple.Create(Tuple.Create("", 145031), Tuple.Create<System.Object, System.Int32>(subGroup.GetString("Ecom:Group.Link.Clean") 10143 10144 #line default 10145 #line hidden 10146 , 145031), false) 10147 ); 10148 10149 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10150 10151 10152 #line 3365 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10153 10154 10155 #line default 10156 #line hidden 10157 10158 #line 3365 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10159 10160 var imageSettings = new ImageSettings 10161 { 10162 IncludeWrapper = true, 10163 Source = Images.GetImage(imageSource, 320, 320), 10164 AltText = subGroup.GetString("Ecom:Group.Name"), 10165 }; 10166 10167 10168 #line default 10169 #line hidden 10170 10171 #line 3372 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10172 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 10173 10174 10175 #line default 10176 #line hidden 10177 10178 #line 3372 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10179 10180 10181 10182 #line default 10183 #line hidden 10184 WriteLiteralTo(__razor_helper_writer, "\r\n <h3>\r\n"); 10185 10186 WriteLiteralTo(__razor_helper_writer, " "); 10187 10188 10189 #line 3375 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10190 WriteTo(__razor_helper_writer, subGroup.GetString("Ecom:Group.Name")); 10191 10192 10193 #line default 10194 #line hidden 10195 WriteLiteralTo(__razor_helper_writer, "\r\n </h3>\r\n </a>\r\n " + 10196 " </li>\r\n"); 10197 10198 10199 #line 3379 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10200 } 10201 10202 #line default 10203 #line hidden 10204 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10205 10206 10207 #line 3381 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10208 } 10209 10210 10211 #line default 10212 #line hidden 10213 }); 10214 10215 #line 3382 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10216 } 10217 #line default 10218 #line hidden 10219 10220 10221 #line 3384 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10222 public RazorEngine.Templating.TemplateWriter RenderEcomGroupImageLarge() 10223 { 10224 #line default 10225 #line hidden 10226 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10227 10228 #line 3385 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10229 10230 var imgSource = GetString("Ecom:Group.LargeImage"); 10231 if (imgSource.IsNotNullOrEmpty()) 10232 { 10233 10234 10235 #line default 10236 #line hidden 10237 10238 #line 3389 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10239 WriteTo(__razor_helper_writer, RenderImage(new ImageSettings {IncludeWrapper = true, WrapperCssClass = "col-xs-12 noPadding centerText large-image-group", Href = "", Source = Images.GetImage(new ImageProcessorSettings {Width = 1200, ImageUrl = imgSource}), AltText = GetString("Ecom:Group.Name")})); 10240 10241 10242 #line default 10243 #line hidden 10244 10245 #line 3389 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10246 10247 } 10248 10249 10250 #line default 10251 #line hidden 10252 }); 10253 10254 #line 3391 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10255 } 10256 #line default 10257 #line hidden 10258 10259 10260 #line 3393 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10261 public RazorEngine.Templating.TemplateWriter RenderSecondLevelGroupsFacets(List<LoopItem> groups) 10262 { 10263 #line default 10264 #line hidden 10265 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10266 10267 #line 3394 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10268 10269 if (groups != null && groups.Any()) 10270 { 10271 10272 10273 #line default 10274 #line hidden 10275 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <h3>"); 10276 10277 10278 #line 3398 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10279 WriteTo(__razor_helper_writer, GetString("Ecom:Group.Name")); 10280 10281 10282 #line default 10283 #line hidden 10284 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n </div>\r\n"); 10285 10286 WriteLiteralTo(__razor_helper_writer, " <ul"); 10287 10288 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 10289 10290 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10291 10292 10293 #line 3401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10294 10295 10296 #line default 10297 #line hidden 10298 10299 #line 3401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10300 foreach (var subGroup in groups.Where(sg => sg.GetBoolean("Ecom:Group.ShowInSiteMap"))) 10301 { 10302 10303 10304 #line default 10305 #line hidden 10306 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 10307 10308 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 146730), Tuple.Create("\"", 146781) 10309 10310 #line 3404 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10311 , Tuple.Create(Tuple.Create("", 146737), Tuple.Create<System.Object, System.Int32>(subGroup.GetString("Ecom:Group.Link.Clean") 10312 10313 #line default 10314 #line hidden 10315 , 146737), false) 10316 ); 10317 10318 WriteLiteralTo(__razor_helper_writer, ">"); 10319 10320 10321 #line 3404 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10322 WriteTo(__razor_helper_writer, subGroup.GetString("Ecom:Group.Name")); 10323 10324 10325 #line default 10326 #line hidden 10327 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 10328 10329 10330 #line 3406 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10331 } 10332 10333 #line default 10334 #line hidden 10335 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10336 10337 10338 #line 3408 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10339 } 10340 10341 10342 #line default 10343 #line hidden 10344 }); 10345 10346 #line 3409 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10347 } 10348 #line default 10349 #line hidden 10350 10351 10352 #line 3411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10353 public RazorEngine.Templating.TemplateWriter RenderFirstLevelFeaturedGroupsHomepage(List<LoopItem> groups) 10354 { 10355 #line default 10356 #line hidden 10357 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10358 10359 #line 3412 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10360 10361 10362 10363 #line default 10364 #line hidden 10365 WriteLiteralTo(__razor_helper_writer, " <ul"); 10366 10367 WriteLiteralTo(__razor_helper_writer, " class=\"row groupsRow\""); 10368 10369 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10370 10371 10372 #line 3414 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10373 10374 10375 #line default 10376 #line hidden 10377 10378 #line 3414 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10379 foreach (var group in groups.Where(g => g.GetBoolean("Ecom:Group.ShowInSiteMap"))) 10380 { 10381 var imageSource = GetGroupImage(group.GetString("Ecom:Group.SmallImage"), group.GetString("Ecom:Group.ID")); 10382 var imagePath = Images.GetImage(imageSource, 95, 0); 10383 var imageSettings = new ImageSettings 10384 { 10385 IncludeWrapper = true, 10386 WrapperCssClass = "col-xs-6 col-sm-5 noPaddingLeft", 10387 Source = imagePath, 10388 AltText = group.GetString("Ecom:Group.Name") 10389 }; 10390 10391 10392 #line default 10393 #line hidden 10394 WriteLiteralTo(__razor_helper_writer, " <li"); 10395 10396 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-4 col-md-3 productListHome\""); 10397 10398 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 10399 10400 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 10401 10402 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 147770), Tuple.Create("\"", 147818) 10403 10404 #line 3426 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10405 , Tuple.Create(Tuple.Create("", 147777), Tuple.Create<System.Object, System.Int32>(group.GetString("Ecom:Group.Link.Clean") 10406 10407 #line default 10408 #line hidden 10409 , 147777), false) 10410 ); 10411 10412 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10413 10414 WriteLiteralTo(__razor_helper_writer, " "); 10415 10416 10417 #line 3427 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10418 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 10419 10420 10421 #line default 10422 #line hidden 10423 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 10424 10425 10426 #line 3428 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10427 WriteTo(__razor_helper_writer, group.GetString("Ecom:Group.Name")); 10428 10429 10430 #line default 10431 #line hidden 10432 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </a>\r\n </li>\r\n"); 10433 10434 10435 #line 3431 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10436 } 10437 10438 #line default 10439 #line hidden 10440 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10441 10442 10443 #line 3433 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10444 10445 10446 #line default 10447 #line hidden 10448 }); 10449 10450 #line 3433 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10451 } 10452 #line default 10453 #line hidden 10454 10455 10456 #line 3435 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10457 public RazorEngine.Templating.TemplateWriter RenderFirstLevelGroupsHomepage(List<LoopItem> groups) 10458 { 10459 #line default 10460 #line hidden 10461 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10462 10463 #line 3436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10464 10465 10466 10467 #line default 10468 #line hidden 10469 WriteLiteralTo(__razor_helper_writer, " <ul"); 10470 10471 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 10472 10473 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10474 10475 10476 #line 3438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10477 10478 10479 #line default 10480 #line hidden 10481 10482 #line 3438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10483 foreach (var group in groups.Where(g => g.GetBoolean("Ecom:Group.ShowInSiteMap"))) 10484 { 10485 var imageSource = GetGroupImage(group.GetString("Ecom:Group.SmallImage"), group.GetString("Ecom:Group.ID")); 10486 var imagePath = Images.GetImage(imageSource, 95, 95); 10487 var imageSettings = new ImageSettings 10488 { 10489 IncludeWrapper = true, 10490 WrapperCssClass = "col-md-4 noPaddingLeft", 10491 Href = group.GetString("Ecom:Group.Link.Clean"), 10492 Source = imagePath, 10493 AltText = group.GetString("Ecom:Group.Name") 10494 }; 10495 10496 10497 10498 #line default 10499 #line hidden 10500 WriteLiteralTo(__razor_helper_writer, " <li"); 10501 10502 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-3\""); 10503 10504 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10505 10506 WriteLiteralTo(__razor_helper_writer, " "); 10507 10508 10509 #line 3452 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10510 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 10511 10512 10513 #line default 10514 #line hidden 10515 WriteLiteralTo(__razor_helper_writer, "\r\n <h2>\r\n <a"); 10516 10517 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 148986), Tuple.Create("\"", 149034) 10518 10519 #line 3454 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10520 , Tuple.Create(Tuple.Create("", 148993), Tuple.Create<System.Object, System.Int32>(group.GetString("Ecom:Group.Link.Clean") 10521 10522 #line default 10523 #line hidden 10524 , 148993), false) 10525 ); 10526 10527 WriteLiteralTo(__razor_helper_writer, ">"); 10528 10529 10530 #line 3454 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10531 WriteTo(__razor_helper_writer, group.GetString("Ecom:Group.Name")); 10532 10533 10534 #line default 10535 #line hidden 10536 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </h2>\r\n </li>\r\n"); 10537 10538 10539 #line 3457 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10540 } 10541 10542 #line default 10543 #line hidden 10544 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10545 10546 10547 #line 3459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10548 10549 10550 #line default 10551 #line hidden 10552 }); 10553 10554 #line 3459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10555 } 10556 #line default 10557 #line hidden 10558 10559 10560 #line 3461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10561 public RazorEngine.Templating.TemplateWriter RenderBrandsDescription() 10562 { 10563 #line default 10564 #line hidden 10565 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10566 10567 #line 3462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10568 10569 var itemLoop = GetLoop("Vendor"); 10570 foreach (var item in itemLoop) 10571 { 10572 10573 10574 #line default 10575 #line hidden 10576 WriteLiteralTo(__razor_helper_writer, " <p>"); 10577 10578 10579 #line 3466 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10580 WriteTo(__razor_helper_writer, GetString("Item.Short_Description.Value")); 10581 10582 10583 #line default 10584 #line hidden 10585 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 10586 10587 10588 #line 3467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10589 } 10590 10591 10592 #line default 10593 #line hidden 10594 }); 10595 10596 #line 3468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10597 } 10598 #line default 10599 #line hidden 10600 10601 10602 #line 3470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10603 public RazorEngine.Templating.TemplateWriter RenderFirstLevelGroupsBrandsPage(List<LoopItem> groups) 10604 { 10605 #line default 10606 #line hidden 10607 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10608 10609 #line 3471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10610 10611 10612 10613 #line default 10614 #line hidden 10615 10616 #line 3472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10617 WriteTo(__razor_helper_writer, RenderBrandsDescription()); 10618 10619 10620 #line default 10621 #line hidden 10622 10623 #line 3472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10624 10625 10626 10627 #line default 10628 #line hidden 10629 WriteLiteralTo(__razor_helper_writer, " <ul"); 10630 10631 WriteLiteralTo(__razor_helper_writer, " class=\"row brandsCategories\""); 10632 10633 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10634 10635 10636 #line 3474 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10637 10638 10639 #line default 10640 #line hidden 10641 10642 #line 3474 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10643 foreach (var group in groups.Where(g => g.GetBoolean("Ecom:Group.ShowInSiteMap"))) 10644 { 10645 var groupDescription = group.GetString("Ecom:Group.Description"); 10646 var imageSource = GetGroupImage(group.GetString("Ecom:Group.SmallImage"), group.GetString("Ecom:Group.ID")); 10647 var imageSettings = new ImageSettings 10648 { 10649 IncludeWrapper = true, 10650 WrapperCssClass = "col-xs-6 col-sm-3 noPaddingLeft", 10651 Source = Images.GetImage(imageSource, 150, 0, 95, 0, 95, 0, new ImageProcessorSettings {ImageUrl = imageSource}), 10652 AltText = group.GetString("Ecom:Group.Name") 10653 }; 10654 10655 10656 10657 #line default 10658 #line hidden 10659 WriteLiteralTo(__razor_helper_writer, " <li"); 10660 10661 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-6\""); 10662 10663 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 10664 10665 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 frame\""); 10666 10667 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 150387), Tuple.Create("\"", 150435) 10668 10669 #line 3487 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10670 , Tuple.Create(Tuple.Create("", 150394), Tuple.Create<System.Object, System.Int32>(group.GetString("Ecom:Group.Link.Clean") 10671 10672 #line default 10673 #line hidden 10674 , 150394), false) 10675 ); 10676 10677 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10678 10679 WriteLiteralTo(__razor_helper_writer, " "); 10680 10681 10682 #line 3488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10683 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 10684 10685 10686 #line default 10687 #line hidden 10688 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10689 10690 10691 #line 3489 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10692 10693 10694 #line default 10695 #line hidden 10696 10697 #line 3489 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10698 if (groupDescription.IsNotNullOrEmpty()) 10699 { 10700 10701 10702 #line default 10703 #line hidden 10704 WriteLiteralTo(__razor_helper_writer, " <div"); 10705 10706 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 noPaddingLeft\""); 10707 10708 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 10709 10710 10711 #line 3492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10712 WriteTo(__razor_helper_writer, group.GetString("Ecom:Group.Name")); 10713 10714 10715 #line default 10716 #line hidden 10717 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <p>"); 10718 10719 10720 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10721 WriteTo(__razor_helper_writer, groupDescription); 10722 10723 10724 #line default 10725 #line hidden 10726 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n"); 10727 10728 10729 #line 3495 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10730 } 10731 10732 #line default 10733 #line hidden 10734 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 10735 10736 10737 #line 3498 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10738 } 10739 10740 #line default 10741 #line hidden 10742 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10743 10744 10745 #line 3500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10746 10747 10748 #line default 10749 #line hidden 10750 }); 10751 10752 #line 3500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10753 } 10754 #line default 10755 #line hidden 10756 10757 10758 #line 3502 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10759 public RazorEngine.Templating.TemplateWriter RenderSecondLevelGroupsHomepage(List<LoopItem> groups) 10760 { 10761 #line default 10762 #line hidden 10763 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10764 10765 #line 3503 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10766 10767 10768 10769 #line default 10770 #line hidden 10771 WriteLiteralTo(__razor_helper_writer, " <div"); 10772 10773 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-3\""); 10774 10775 WriteLiteralTo(__razor_helper_writer, ">\r\n <h1>"); 10776 10777 10778 #line 3505 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10779 WriteTo(__razor_helper_writer, GetString("Ecom:Group.Name")); 10780 10781 10782 #line default 10783 #line hidden 10784 WriteLiteralTo(__razor_helper_writer, "</h1>\r\n <p>\r\n"); 10785 10786 WriteLiteralTo(__razor_helper_writer, " "); 10787 10788 10789 #line 3507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10790 WriteTo(__razor_helper_writer, GetString("Ecom:Group.Description")); 10791 10792 10793 #line default 10794 #line hidden 10795 WriteLiteralTo(__razor_helper_writer, "\r\n </p>\r\n </div>\r\n"); 10796 10797 WriteLiteralTo(__razor_helper_writer, " <ul"); 10798 10799 WriteLiteralTo(__razor_helper_writer, " class=\"row categoryView\""); 10800 10801 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10802 10803 10804 #line 3511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10805 10806 10807 #line default 10808 #line hidden 10809 10810 #line 3511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10811 foreach (var subGroup in groups.Where(sg => sg.GetBoolean("Ecom:Group.ShowInSiteMap"))) 10812 { 10813 var imageSource = GetGroupImage(subGroup.GetString("Ecom:Group.SmallImage"), subGroup.GetString("Ecom:Group.ID")); 10814 var imageSettings = new ImageSettings 10815 { 10816 IncludeWrapper = true, 10817 WrapperCssClass = "generalMarginBottom thumbnail", 10818 Href = subGroup.GetString("Ecom:Group.Link.Clean"), 10819 Source = Images.GetImage(imageSource, 640, 640), 10820 AltText = subGroup.GetString("Ecom:Group.Name") 10821 }; 10822 10823 10824 #line default 10825 #line hidden 10826 WriteLiteralTo(__razor_helper_writer, " <li"); 10827 10828 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-3\""); 10829 10830 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10831 10832 WriteLiteralTo(__razor_helper_writer, " "); 10833 10834 10835 #line 3523 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10836 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 10837 10838 10839 #line default 10840 #line hidden 10841 WriteLiteralTo(__razor_helper_writer, "\r\n <h2>\r\n <a"); 10842 10843 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 152081), Tuple.Create("\"", 152132) 10844 10845 #line 3525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10846 , Tuple.Create(Tuple.Create("", 152088), Tuple.Create<System.Object, System.Int32>(subGroup.GetString("Ecom:Group.Link.Clean") 10847 10848 #line default 10849 #line hidden 10850 , 152088), false) 10851 ); 10852 10853 WriteLiteralTo(__razor_helper_writer, ">"); 10854 10855 10856 #line 3525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10857 WriteTo(__razor_helper_writer, subGroup.GetString("Ecom:Group.Name")); 10858 10859 10860 #line default 10861 #line hidden 10862 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </h2>\r\n </li>\r\n"); 10863 10864 10865 #line 3528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10866 } 10867 10868 #line default 10869 #line hidden 10870 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10871 10872 10873 #line 3530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10874 10875 10876 #line default 10877 #line hidden 10878 }); 10879 10880 #line 3530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10881 } 10882 #line default 10883 #line hidden 10884 10885 10886 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10887 public RazorEngine.Templating.TemplateWriter RenderBrandPageFeaturedProducts(List<LoopItem> prodLoop) 10888 { 10889 #line default 10890 #line hidden 10891 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10892 10893 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10894 10895 10896 10897 #line default 10898 #line hidden 10899 WriteLiteralTo(__razor_helper_writer, " <ul"); 10900 10901 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-6 col-md-4 featuredBrandsProd\""); 10902 10903 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10904 10905 10906 #line 3535 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10907 10908 10909 #line default 10910 #line hidden 10911 10912 #line 3535 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10913 foreach (var product in prodLoop) 10914 { 10915 var productId = product.GetString("Ecom:Product.ID").FirstOrDefault(); 10916 var productName = product.GetString("Ecom:Product.Name"); 10917 var productShortDescriptionRaw = product.GetString("Ecom:Product.ShortDescription"); 10918 var productShortDescription = !string.IsNullOrEmpty(productShortDescriptionRaw) ? productShortDescriptionRaw : Translate("Missing Description"); 10919 var productImage = CHG.Helpers.Images.GetChgImagePath(product); 10920 var imageUrl = Images.GetImage(productImage, 300, 200); 10921 var productUrl = "/Default.aspx?Id=" + Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "Products").ID + "&amp;GroupID=" + product.GetString("Ecom:Product.PrimaryOrFirstGroupID") + "&amp;ProductID=" + productId; 10922 var figureClass = "text-center col-xs-12 noPadding"; 10923 var imageSettings = new ImageSettings 10924 { 10925 Source = imageUrl, 10926 AltText = productName, 10927 IncludeWrapper = true, 10928 WrapperElement = "figure", 10929 WrapperCssClass = figureClass 10930 }; 10931 10932 10933 #line default 10934 #line hidden 10935 WriteLiteralTo(__razor_helper_writer, " <li"); 10936 10937 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-4 col-md-3\""); 10938 10939 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 10940 10941 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 10942 10943 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 153797), Tuple.Create("\"", 153815) 10944 10945 #line 3554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10946 , Tuple.Create(Tuple.Create("", 153804), Tuple.Create<System.Object, System.Int32>(productUrl 10947 10948 #line default 10949 #line hidden 10950 , 153804), false) 10951 ); 10952 10953 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10954 10955 WriteLiteralTo(__razor_helper_writer, " "); 10956 10957 10958 #line 3555 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10959 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 10960 10961 10962 #line default 10963 #line hidden 10964 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 10965 10966 10967 #line 3556 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10968 WriteTo(__razor_helper_writer, productName); 10969 10970 10971 #line default 10972 #line hidden 10973 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </a>\r\n </li>\r\n"); 10974 10975 10976 #line 3559 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10977 } 10978 10979 #line default 10980 #line hidden 10981 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 10982 10983 10984 #line 3561 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10985 10986 10987 #line default 10988 #line hidden 10989 }); 10990 10991 #line 3561 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10992 } 10993 #line default 10994 #line hidden 10995 10996 10997 #line 3570 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 10998 10999 public string GetSpecialItemPricingUrl(string productName, string productNumber, string modelNumber) 11000 { 11001 return string.Concat("/Default.aspx?Id=", GetPageIdByNavigationTag("SpecialProductPrice"), "&00Nf400000O1e59=", productName, "&00Nf400000O1e4u=", productNumber, "&00Nf400000O1dXC=", modelNumber); 11002 } 11003 11004 #line default 11005 #line hidden 11006 11007 11008 #line 3577 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11009 public RazorEngine.Templating.TemplateWriter RenderMagic360Legend(bool hasImageCustom) 11010 { 11011 #line default 11012 #line hidden 11013 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11014 11015 #line 3578 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11016 11017 if (hasImageCustom) 11018 { 11019 11020 11021 #line default 11022 #line hidden 11023 WriteLiteralTo(__razor_helper_writer, " <div"); 11024 11025 WriteLiteralTo(__razor_helper_writer, " id=\"zoom-legend\""); 11026 11027 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 11028 11029 WriteLiteralTo(__razor_helper_writer, " id=\"zoom-link\""); 11030 11031 WriteLiteralTo(__razor_helper_writer, ">"); 11032 11033 11034 #line 3582 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11035 WriteTo(__razor_helper_writer, RenderIcon("fa-refresh", Translate("360ª View"))); 11036 11037 11038 #line default 11039 #line hidden 11040 WriteLiteralTo(__razor_helper_writer, "</a> <span> "); 11041 11042 11043 #line 3582 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11044 WriteTo(__razor_helper_writer, Translate("Drag the image to spin. Click to Zoom.")); 11045 11046 11047 #line default 11048 #line hidden 11049 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 11050 11051 11052 #line 3584 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11053 } 11054 11055 11056 11057 #line default 11058 #line hidden 11059 }); 11060 11061 #line 3586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11062 } 11063 #line default 11064 #line hidden 11065 11066 11067 #line 3587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11068 public RazorEngine.Templating.TemplateWriter RenderProductCompareCustom(int productType, string productId, string variantId = "", string productLanguage = "") 11069 { 11070 #line default 11071 #line hidden 11072 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11073 11074 #line 3588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11075 11076 var isGiftCard = productType == 3; 11077 11078 if (!isGiftCard) 11079 { 11080 var compareLink = productId; 11081 compareLink += productLanguage.IsNotNullOrEmpty() ? "$" + productLanguage : ""; 11082 compareLink += variantId.IsNotNullOrEmpty() ? "$" + variantId : ""; 11083 const int compareLimit = 10; 11084 11085 11086 #line default 11087 #line hidden 11088 11089 #line 3597 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11090 WriteTo(__razor_helper_writer, RenderField(new FieldSettings 11091 { 11092 Type = FieldType.Checkbox, 11093 Label = Translate("Compare"), 11094 SystemName = "addToCompare_" + productId, 11095 IncludeWrapper = true, 11096 WrapperElement = "div", 11097 WrapperCssClass = "addToCompare", 11098 Attributes = new Dictionary<string, string> 11099 { 11100 {"data-link", compareLink}, 11101 {"data-maxcompare", string.Concat(Translate("Maximum to compare"), ": ", compareLimit)} 11102 } 11103 })); 11104 11105 11106 #line default 11107 #line hidden 11108 11109 #line 3610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11110 11111 } 11112 11113 11114 #line default 11115 #line hidden 11116 }); 11117 11118 #line 3612 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11119 } 11120 #line default 11121 #line hidden 11122 11123 11124 #line 3613 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11125 public RazorEngine.Templating.TemplateWriter RenderRequestQuoteButton(string productId, string productUnitId, string variantId, string orderContextId) 11126 { 11127 #line default 11128 #line hidden 11129 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11130 11131 #line 3614 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11132 11133 11134 11135 #line default 11136 #line hidden 11137 WriteLiteralTo(__razor_helper_writer, " <form"); 11138 11139 WriteLiteralTo(__razor_helper_writer, " name=\"quoteCart\""); 11140 11141 WriteLiteralTo(__razor_helper_writer, " class=\"floatRight\""); 11142 11143 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 156178), Tuple.Create("\"", 156289) 11144 11145 #line 3615 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11146 , Tuple.Create(Tuple.Create("", 156187), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("RequestQuote")) 11147 11148 #line default 11149 #line hidden 11150 , 156187), false) 11151 ); 11152 11153 WriteLiteralTo(__razor_helper_writer, " method=\"post\""); 11154 11155 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11156 11157 WriteLiteralTo(__razor_helper_writer, " "); 11158 11159 11160 #line 3616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11161 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("redirect", "false", "quoteRedirect" + productId))); 11162 11163 11164 #line default 11165 #line hidden 11166 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11167 11168 WriteLiteralTo(__razor_helper_writer, " "); 11169 11170 11171 #line 3617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11172 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("cartcmd", "add", "quoteCartcmd" + productId))); 11173 11174 11175 #line default 11176 #line hidden 11177 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11178 11179 WriteLiteralTo(__razor_helper_writer, " "); 11180 11181 11182 #line 3618 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11183 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("productid", productId, "quoteProductId" + productId))); 11184 11185 11186 #line default 11187 #line hidden 11188 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11189 11190 WriteLiteralTo(__razor_helper_writer, " "); 11191 11192 11193 #line 3619 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11194 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("unitID", productUnitId, "quoteUnitID" + productId))); 11195 11196 11197 #line default 11198 #line hidden 11199 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11200 11201 WriteLiteralTo(__razor_helper_writer, " "); 11202 11203 11204 #line 3620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11205 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("OrderContext", orderContextId, "orderContext" + productId))); 11206 11207 11208 #line default 11209 #line hidden 11210 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11211 11212 WriteLiteralTo(__razor_helper_writer, " "); 11213 11214 11215 #line 3621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11216 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 11217 { 11218 Label = Translate("Add to Quote"), 11219 CssClass = "btn-primary btn-outline btn-link request-quote", 11220 IconCssClass = "fa-shopping-bag", 11221 ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button, 11222 Href = string.Concat(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "RequestQuote").ID),"?productid=", productId, "&amp;variantID=", variantId, "&amp;orderContext=", orderContextId, "&amp;cartcmd=add") 11223 })); 11224 11225 11226 #line default 11227 #line hidden 11228 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n"); 11229 11230 11231 #line 3630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11232 11233 11234 #line default 11235 #line hidden 11236 }); 11237 11238 #line 3630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11239 } 11240 #line default 11241 #line hidden 11242 11243 11244 #line 3633 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11245 11246 public string GetProductCrossReference(string productNumber) 11247 { 11248 if (!Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 11249 { 11250 return string.Empty; 11251 } 11252 return GetProductCrossReference(productNumber, Pageview.User.ExternalID); 11253 } 11254 11255 public string GetProductCrossReference(string productNumber, string customerId) 11256 { 11257 var columnValue = Dynamicweb.Data.Database.ExecuteScalar(string.Format("SELECT ReferenceCode FROM _CrossReferences WHERE Type='Customer' and TypeNo='{0}' AND ItemNo='{1}'", customerId, productNumber)); 11258 11259 if (columnValue == null) 11260 { 11261 return string.Empty; 11262 } 11263 11264 return columnValue.ToString(); 11265 } 11266 11267 #line default 11268 #line hidden 11269 11270 11271 #line 3658 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11272 11273 11274 public string GetUnitIdLabel(string productUnitId, string productLanguage) 11275 { 11276 var variantService = new Dynamicweb.Ecommerce.VariantOptionService(); 11277 var defaultUnit = variantService.GetVariantOption(productUnitId,productLanguage); 11278 11279 return defaultUnit==null ? string.Empty : defaultUnit.Name; 11280 } 11281 11282 11283 #line default 11284 #line hidden 11285 11286 11287 #line 3670 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11288 public RazorEngine.Templating.TemplateWriter RenderUnitSales(string productUnitId, string productLanguage, string qtyBaseUnitMeasurePerUnits, string salesUnitOfMeasure, bool showLabelYP = false, string cssClass="product-price-holder col-sm-6 noPadding") 11289 { 11290 #line default 11291 #line hidden 11292 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11293 11294 #line 3671 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11295 11296 var unitIdName = GetUnitIdLabel(productUnitId, productLanguage); 11297 if (unitIdName.IsNullOrEmpty()) 11298 { 11299 return; 11300 } 11301 11302 var amountPerUnit = string.Empty; 11303 if (qtyBaseUnitMeasurePerUnits.IsNotNullOrEmpty() && salesUnitOfMeasure.IsNotNullOrEmpty() /*&& salesUnitOfMeasure != "ea"*/) 11304 { 11305 amountPerUnit = qtyBaseUnitMeasurePerUnits=="1" && salesUnitOfMeasure == "ea" ? Translate("Each") : qtyBaseUnitMeasurePerUnits=="1" && salesUnitOfMeasure != "ea" ? unitIdName : string.Format(" {0} {1} {2} ", unitIdName, Translate("of"), qtyBaseUnitMeasurePerUnits); 11306 } 11307 11308 11309 #line default 11310 #line hidden 11311 WriteLiteralTo(__razor_helper_writer, " <div"); 11312 11313 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 159652), Tuple.Create("\"", 159669) 11314 11315 #line 3683 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11316 , Tuple.Create(Tuple.Create("", 159660), Tuple.Create<System.Object, System.Int32>(cssClass 11317 11318 #line default 11319 #line hidden 11320 , 159660), false) 11321 ); 11322 11323 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11324 11325 11326 #line 3684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11327 11328 11329 #line default 11330 #line hidden 11331 11332 #line 3684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11333 if(showLabelYP && amountPerUnit.IsNotNullOrEmpty()) 11334 { 11335 11336 11337 #line default 11338 #line hidden 11339 WriteLiteralTo(__razor_helper_writer, " <div"); 11340 11341 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 159771), Tuple.Create("\"", 159810) 11342 , Tuple.Create(Tuple.Create("", 159779), Tuple.Create("unitMeasure", 159779), true) 11343 11344 #line 3686 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11345 , Tuple.Create(Tuple.Create(" ", 159790), Tuple.Create<System.Object, System.Int32>(salesUnitOfMeasure 11346 11347 #line default 11348 #line hidden 11349 , 159791), false) 11350 ); 11351 11352 WriteLiteralTo(__razor_helper_writer, "><strong>"); 11353 11354 11355 #line 3686 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11356 WriteTo(__razor_helper_writer, GetPriceLabel()); 11357 11358 11359 #line default 11360 #line hidden 11361 WriteLiteralTo(__razor_helper_writer, "</strong> <span>"); 11362 11363 11364 #line 3686 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11365 WriteTo(__razor_helper_writer, amountPerUnit); 11366 11367 11368 #line default 11369 #line hidden 11370 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n"); 11371 11372 11373 #line 3687 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11374 } 11375 else 11376 { 11377 11378 11379 #line default 11380 #line hidden 11381 11382 #line 3690 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11383 WriteTo(__razor_helper_writer, amountPerUnit); 11384 11385 11386 #line default 11387 #line hidden 11388 11389 #line 3690 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11390 11391 } 11392 11393 #line default 11394 #line hidden 11395 WriteLiteralTo(__razor_helper_writer, "\r\n <strong"); 11396 11397 WriteLiteralTo(__razor_helper_writer, " class=\"product-price\""); 11398 11399 WriteLiteralTo(__razor_helper_writer, "></strong>\r\n </div>\r\n"); 11400 11401 11402 #line 3694 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11403 11404 11405 #line default 11406 #line hidden 11407 }); 11408 11409 #line 3694 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11410 } 11411 #line default 11412 #line hidden 11413 11414 11415 #line 3696 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11416 public RazorEngine.Templating.TemplateWriter RenderTarrif(string insertType = "", string cssClass = "col-xs-12 row") 11417 { 11418 #line default 11419 #line hidden 11420 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11421 11422 #line 3697 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11423 11424 11425 var outputTarrif = string.Empty; 11426 switch (insertType) 11427 { 11428 case "B" : 11429 outputTarrif = "Price does not include any tariff surcharge that your Company has agreed to. Tariff surcharge will appear on final invoice."; 11430 break; 11431 case "C" : 11432 outputTarrif = "Above prices do not include any applicable tariff surcharges that your Company has agreed to. Tariff surcharges will appear on final invoice."; 11433 break; 11434 case "D": 11435 outputTarrif = "Prices do not include any applicable tariff surcharges that your Company has agreed to."; 11436 break; 11437 case "E": 11438 outputTarrif = "Prices do not include any applicable tariff surcharges that your Company has agreed to. Tariff surcharges will appear on final invoice."; 11439 break; 11440 case "A" : 11441 default: 11442 outputTarrif = "Price does not include any tariff surcharge that your Company has agreed to."; 11443 break; 11444 } 11445 11446 11447 #line default 11448 #line hidden 11449 WriteLiteralTo(__razor_helper_writer, " <div"); 11450 11451 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 161261), Tuple.Create("\"", 161278) 11452 11453 #line 3719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11454 , Tuple.Create(Tuple.Create("", 161269), Tuple.Create<System.Object, System.Int32>(cssClass 11455 11456 #line default 11457 #line hidden 11458 , 161269), false) 11459 ); 11460 11461 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11462 11463 WriteLiteralTo(__razor_helper_writer, " "); 11464 11465 11466 #line 3720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11467 WriteTo(__razor_helper_writer, Translate(outputTarrif)); 11468 11469 11470 #line default 11471 #line hidden 11472 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n"); 11473 11474 11475 #line 3722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11476 11477 11478 #line default 11479 #line hidden 11480 }); 11481 11482 #line 3722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11483 } 11484 #line default 11485 #line hidden 11486 11487 11488 public RazorEngine_503d2b6205cb44ba9db1f68aa264bf42() { 11489 } 11490 11491 public override void Execute() { 11492 11493 #line 396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11494 11495 11496 11497 11498 #line default 11499 #line hidden 11500 11501 #line 398 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11502 11503 11504 11505 #line default 11506 #line hidden 11507 11508 #line 406 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11509 11510 11511 11512 11513 11514 #line default 11515 #line hidden 11516 11517 #line 409 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11518 11519 11520 11521 #line default 11522 #line hidden 11523 11524 #line 423 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11525 11526 11527 11528 11529 #line default 11530 #line hidden 11531 11532 #line 433 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11533 11534 11535 11536 11537 #line default 11538 #line hidden 11539 11540 #line 445 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11541 11542 11543 11544 11545 #line default 11546 #line hidden 11547 11548 #line 454 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11549 11550 11551 11552 11553 #line default 11554 #line hidden 11555 11556 #line 461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11557 11558 11559 11560 11561 11562 #line default 11563 #line hidden 11564 11565 #line 464 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11566 11567 11568 11569 #line default 11570 #line hidden 11571 11572 #line 468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11573 11574 11575 11576 11577 #line default 11578 #line hidden 11579 11580 #line 473 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11581 11582 11583 11584 11585 #line default 11586 #line hidden 11587 11588 #line 526 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11589 11590 11591 11592 11593 #line default 11594 #line hidden 11595 11596 #line 556 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11597 11598 11599 11600 11601 #line default 11602 #line hidden 11603 11604 #line 608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11605 11606 11607 11608 11609 #line default 11610 #line hidden 11611 11612 #line 644 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11613 11614 11615 11616 11617 #line default 11618 #line hidden 11619 11620 #line 672 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11621 11622 11623 11624 11625 #line default 11626 #line hidden 11627 11628 #line 731 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11629 11630 11631 11632 11633 #line default 11634 #line hidden 11635 11636 #line 803 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11637 11638 11639 11640 11641 11642 #line default 11643 #line hidden 11644 11645 #line 806 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11646 11647 11648 11649 #line default 11650 #line hidden 11651 11652 #line 822 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11653 11654 11655 11656 11657 #line default 11658 #line hidden 11659 11660 #line 832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11661 11662 11663 11664 11665 #line default 11666 #line hidden 11667 11668 #line 839 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11669 11670 11671 11672 11673 #line default 11674 #line hidden 11675 11676 #line 860 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11677 11678 11679 11680 11681 #line default 11682 #line hidden 11683 11684 #line 872 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11685 11686 11687 11688 11689 #line default 11690 #line hidden 11691 11692 #line 897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11693 11694 11695 11696 11697 #line default 11698 #line hidden 11699 11700 #line 918 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11701 11702 11703 11704 11705 #line default 11706 #line hidden 11707 11708 #line 923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11709 11710 11711 11712 11713 #line default 11714 #line hidden 11715 11716 #line 928 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11717 11718 11719 11720 11721 #line default 11722 #line hidden 11723 11724 #line 1008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11725 11726 11727 11728 11729 #line default 11730 #line hidden 11731 11732 #line 1010 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11733 11734 11735 11736 #line default 11737 #line hidden 11738 11739 #line 1047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11740 11741 11742 11743 11744 #line default 11745 #line hidden 11746 11747 #line 1334 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11748 11749 11750 11751 #line default 11752 #line hidden 11753 11754 #line 1335 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11755 11756 11757 11758 #line default 11759 #line hidden 11760 11761 #line 1358 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11762 11763 11764 11765 11766 #line default 11767 #line hidden 11768 11769 #line 1380 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11770 11771 11772 11773 11774 #line default 11775 #line hidden 11776 11777 #line 1399 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11778 11779 11780 11781 11782 #line default 11783 #line hidden 11784 11785 #line 1412 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11786 11787 11788 11789 11790 11791 #line default 11792 #line hidden 11793 11794 #line 1415 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11795 11796 11797 11798 #line default 11799 #line hidden 11800 11801 #line 1425 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11802 11803 11804 11805 11806 11807 #line default 11808 #line hidden 11809 11810 #line 1428 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11811 11812 11813 11814 #line default 11815 #line hidden 11816 11817 #line 1488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11818 11819 11820 11821 11822 #line default 11823 #line hidden 11824 11825 #line 1501 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11826 11827 11828 11829 11830 #line default 11831 #line hidden 11832 11833 #line 1588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11834 11835 11836 11837 11838 #line default 11839 #line hidden 11840 11841 #line 1600 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11842 11843 11844 11845 11846 11847 #line default 11848 #line hidden 11849 11850 #line 1603 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11851 11852 11853 11854 #line default 11855 #line hidden 11856 11857 #line 1618 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11858 11859 11860 11861 11862 #line default 11863 #line hidden 11864 11865 #line 1639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11866 11867 11868 11869 11870 #line default 11871 #line hidden 11872 11873 #line 1757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11874 11875 11876 11877 11878 11879 #line default 11880 #line hidden 11881 11882 #line 1760 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11883 11884 11885 11886 #line default 11887 #line hidden 11888 11889 #line 1793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11890 11891 11892 11893 11894 #line default 11895 #line hidden 11896 11897 #line 1831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11898 11899 11900 11901 11902 #line default 11903 #line hidden 11904 11905 #line 1850 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11906 11907 11908 11909 11910 #line default 11911 #line hidden 11912 11913 #line 1913 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11914 11915 11916 11917 11918 #line default 11919 #line hidden 11920 11921 #line 1945 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11922 11923 11924 11925 11926 #line default 11927 #line hidden 11928 11929 #line 1976 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11930 11931 11932 11933 11934 #line default 11935 #line hidden 11936 11937 #line 1984 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11938 11939 11940 11941 11942 #line default 11943 #line hidden 11944 11945 #line 2008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11946 11947 11948 11949 11950 #line default 11951 #line hidden 11952 11953 #line 2051 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11954 11955 11956 11957 11958 #line default 11959 #line hidden 11960 11961 #line 2068 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11962 11963 11964 11965 11966 #line default 11967 #line hidden 11968 11969 #line 2165 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11970 11971 11972 11973 11974 #line default 11975 #line hidden 11976 11977 #line 2174 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11978 11979 11980 11981 11982 #line default 11983 #line hidden 11984 11985 #line 2179 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11986 11987 11988 11989 11990 #line default 11991 #line hidden 11992 11993 #line 2184 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 11994 11995 11996 11997 #line default 11998 #line hidden 11999 WriteLiteral("\r\n"); 12000 12001 12002 #line 2200 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12003 12004 12005 12006 12007 #line default 12008 #line hidden 12009 12010 #line 2223 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12011 12012 12013 12014 12015 #line default 12016 #line hidden 12017 WriteLiteral("\r\n"); 12018 12019 12020 #line 2226 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12021 12022 12023 12024 #line default 12025 #line hidden 12026 12027 #line 2234 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12028 12029 12030 12031 #line default 12032 #line hidden 12033 12034 #line 2258 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12035 12036 12037 12038 12039 #line default 12040 #line hidden 12041 12042 #line 2269 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12043 12044 12045 12046 12047 #line default 12048 #line hidden 12049 12050 #line 2287 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12051 12052 12053 12054 12055 #line default 12056 #line hidden 12057 12058 #line 2325 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12059 12060 12061 12062 12063 #line default 12064 #line hidden 12065 12066 #line 2353 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12067 12068 12069 12070 #line default 12071 #line hidden 12072 12073 #line 2367 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12074 12075 12076 12077 12078 #line default 12079 #line hidden 12080 12081 #line 2416 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12082 12083 12084 12085 12086 #line default 12087 #line hidden 12088 12089 #line 2452 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12090 12091 12092 12093 #line default 12094 #line hidden 12095 12096 #line 2654 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12097 12098 12099 12100 12101 #line default 12102 #line hidden 12103 12104 #line 2707 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12105 12106 12107 12108 12109 #line default 12110 #line hidden 12111 WriteLiteral("\r\n"); 12112 12113 12114 #line 2710 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12115 12116 12117 12118 12119 #line default 12120 #line hidden 12121 12122 #line 2740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12123 12124 12125 12126 12127 #line default 12128 #line hidden 12129 12130 #line 2753 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12131 12132 12133 12134 12135 #line default 12136 #line hidden 12137 12138 #line 2771 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12139 12140 12141 12142 #line default 12143 #line hidden 12144 WriteLiteral("\r\n"); 12145 12146 12147 #line 2789 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12148 12149 12150 12151 #line default 12152 #line hidden 12153 12154 #line 2810 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12155 12156 12157 12158 12159 #line default 12160 #line hidden 12161 12162 #line 2821 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12163 12164 12165 12166 #line default 12167 #line hidden 12168 WriteLiteral("\r\n\r\n"); 12169 12170 WriteLiteral("\r\n"); 12171 12172 WriteLiteral("\r\n"); 12173 12174 12175 #line 2932 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12176 12177 12178 12179 #line default 12180 #line hidden 12181 12182 #line 3035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12183 12184 12185 12186 #line default 12187 #line hidden 12188 12189 #line 3159 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12190 12191 12192 12193 12194 #line default 12195 #line hidden 12196 12197 #line 3164 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12198 12199 12200 12201 12202 #line default 12203 #line hidden 12204 12205 #line 3202 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12206 12207 12208 12209 12210 #line default 12211 #line hidden 12212 12213 #line 3210 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12214 12215 12216 12217 12218 #line default 12219 #line hidden 12220 12221 #line 3228 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12222 12223 12224 12225 12226 #line default 12227 #line hidden 12228 12229 #line 3293 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12230 12231 12232 12233 12234 #line default 12235 #line hidden 12236 12237 #line 3331 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12238 12239 12240 12241 12242 #line default 12243 #line hidden 12244 12245 #line 3382 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12246 12247 12248 12249 12250 #line default 12251 #line hidden 12252 12253 #line 3391 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12254 12255 12256 12257 12258 #line default 12259 #line hidden 12260 12261 #line 3409 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12262 12263 12264 12265 12266 #line default 12267 #line hidden 12268 12269 #line 3433 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12270 12271 12272 12273 12274 #line default 12275 #line hidden 12276 12277 #line 3459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12278 12279 12280 12281 12282 #line default 12283 #line hidden 12284 12285 #line 3468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12286 12287 12288 12289 12290 #line default 12291 #line hidden 12292 12293 #line 3500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12294 12295 12296 12297 12298 #line default 12299 #line hidden 12300 12301 #line 3530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12302 12303 12304 12305 12306 #line default 12307 #line hidden 12308 12309 #line 3561 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12310 12311 12312 12313 #line default 12314 #line hidden 12315 12316 #line 3576 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12317 12318 12319 12320 #line default 12321 #line hidden 12322 12323 #line 3586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12324 12325 12326 12327 #line default 12328 #line hidden 12329 12330 #line 3612 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12331 12332 12333 12334 #line default 12335 #line hidden 12336 12337 #line 3630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12338 12339 12340 12341 #line default 12342 #line hidden 12343 WriteLiteral("\r\n"); 12344 12345 12346 #line 3669 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12347 12348 12349 12350 #line default 12351 #line hidden 12352 12353 #line 3694 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12354 12355 12356 12357 12358 #line default 12359 #line hidden 12360 12361 #line 3722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12362 12363 12364 12365 #line default 12366 #line hidden 12367 WriteLiteral("\r\n\r\n"); 12368 12369 12370 #line 3725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12371 12372 var groupsIds = Sanitize.Parameter("groupid"); 12373 var productGroups = GetLoop("ProductGroups"); 12374 if (groupsIds.IsNullOrEmpty() && productGroups.Any()) 12375 { 12376 12377 12378 #line default 12379 #line hidden 12380 12381 #line 3730 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12382 Write(RenderFirstLevelGroupsBrandsPage(productGroups)); 12383 12384 12385 #line default 12386 #line hidden 12387 12388 #line 3730 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12389 12390 12391 12392 #line default 12393 #line hidden 12394 12395 #line 3731 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12396 Write(SnippetStart("jsOnLoad")); 12397 12398 12399 #line default 12400 #line hidden 12401 12402 #line 3731 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12403 12404 12405 12406 #line default 12407 #line hidden 12408 WriteLiteral(" "); 12409 12410 WriteLiteral("onLoadProductDepartmentList();\r\n"); 12411 12412 12413 #line 3733 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12414 12415 12416 #line default 12417 #line hidden 12418 12419 #line 3733 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12420 Write(SnippetEnd("jsOnLoad")); 12421 12422 12423 #line default 12424 #line hidden 12425 12426 #line 3733 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12427 12428 } 12429 else 12430 { 12431 12432 12433 #line default 12434 #line hidden 12435 12436 #line 3737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12437 Write(RenderNoResults(Translate("Please add the featured groups"), Translate("No groups found"), true, "col-xs-12")); 12438 12439 12440 #line default 12441 #line hidden 12442 12443 #line 3737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12444 12445 12446 12447 #line default 12448 #line hidden 12449 12450 #line 3738 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12451 Write(SnippetStart("jsOnLoad")); 12452 12453 12454 #line default 12455 #line hidden 12456 12457 #line 3738 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12458 12459 12460 12461 #line default 12462 #line hidden 12463 WriteLiteral(" "); 12464 12465 WriteLiteral("onLoadProductList(\"0\", \"0\", \"0,0\", \""); 12466 12467 12468 #line 3739 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12469 Write(groupsIds); 12470 12471 12472 #line default 12473 #line hidden 12474 WriteLiteral("\");\r\n"); 12475 12476 12477 #line 3740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12478 12479 12480 #line default 12481 #line hidden 12482 12483 #line 3740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12484 Write(SnippetEnd("jsOnLoad")); 12485 12486 12487 #line default 12488 #line hidden 12489 12490 #line 3740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Productlist\GroupsFeaturedOnBrandDetailPage.cshtml" 12491 12492 } 12493 12494 12495 #line default 12496 #line hidden 12497 WriteLiteral("\r\n\r\n"); 12498 12499 } 12500 } 12501 } 12502

1 @using System.Collections.Generic 2 @using System.Linq 3 @using Dna.Frontend.UI 4 @using Dna.Validation 5 @using Dynamicweb.Core 6 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 7 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 8 @using System 9 @using System.Linq 10 @using System.Text 11 @using System.Web 12 @using System.Collections.Generic 13 @using Dna.Frontend 14 @using Dna.Frontend.UI 15 @using Dna.Frontend.Forms 16 @using Dna.UrlServices 17 @using Dynamicweb.Core 18 @using Dynamicweb.Forms 19 @using Dynamicweb.Content 20 @using Dynamicweb.Ecommerce 21 @using Dynamicweb.Rendering 22 @using Dynamicweb.Security.UserManagement 23 @using SF.Snowball 24 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 25 @using System 26 @using System.IO 27 @using System.Web 28 @using System.Linq 29 @using System.Text 30 @using System.Text.RegularExpressions 31 @using System.Collections.Generic 32 @using System.Collections.Specialized 33 @using Dna.Frontend 34 @using Dna.Validation 35 @using Dna.Frontend.UI 36 @using Dna.UrlServices 37 @using Dna.Frontend.Forms 38 @using Dynamicweb.Core 39 @using Dynamicweb.Forms 40 @using Dynamicweb.Rendering 41 @functions{ 42 43 #region Url functions 44 45 public string GetCustomerCenterSortUrl(string field, string listType = "Order") 46 { 47 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 48 var sortDirectionParameter = "CCSort" + listType + paragraphId; 49 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 50 var sortDirection = Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 51 52 if (field.IsNotNullOrEmpty()) 53 { 54 return "/Default.aspx?Id=" + Pageview.Page.ID + "&" + sortFieldParameter + "=" + field + "&" + sortDirectionParameter + "=" + sortDirection; 55 } 56 57 return string.Empty; 58 } 59 60 public string GetSortFieldParameter(string key, string field = "", string listType = "Order") 61 { 62 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 63 if (key.IsNullOrEmpty()) throw new NotSupportedException("'key' is a required field"); 64 65 switch (key) 66 { 67 case "name": 68 var parameter = "CC" + listType + "ByField" + paragraphId; 69 return Sanitize.Parameter(parameter); 70 case "value": 71 if (field.IsNullOrEmpty()) return "asc"; 72 var sortDirectionParameter = "CCSort" + listType + paragraphId; 73 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 74 return Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 75 default: 76 throw new NotSupportedException(string.Format("The key '{0}' in not supported", key)); 77 } 78 } 79 80 #endregion Url functions 81 82 #region Generic functions 83 84 public static string GetAttributes(Dictionary<string, string> attributes) 85 { 86 if (attributes == null || !attributes.Any()) 87 { 88 return string.Empty; 89 } 90 91 var attributesConcat = attributes.Aggregate(string.Empty, (current, attribute) => current + GetAttribute(attribute.Key, attribute.Value)); 92 93 return attributesConcat; 94 } 95 96 public static string GetAttribute(string attributeName, string attributeValue) 97 { 98 if (attributeValue.IsNullOrEmpty() && !attributeName.Equals("value", StringComparison.InvariantCultureIgnoreCase)) return string.Empty; 99 return " " + attributeName + "=\"" + attributeValue + "\""; 100 } 101 102 #endregion Generic functions 103 104 #region Files functions 105 106 const string ImagesListTitleKey = "title"; 107 const string ImagesListImageKey = "image"; 108 109 /// <summary> 110 /// Gets the list of files from a folder. 111 /// </summary> 112 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType.</return> 113 public static List<Tuple<string,string,FileType>> GetFilesInFolder(string defaultFile, string searchPattern, string fileTitle = "", bool addDefaultFile = true) 114 { 115 var files = new List<Tuple<string,string,FileType>>(); 116 var mapPath = HttpContext.Current.Server.MapPath(defaultFile); 117 var folderServerPath = Path.GetDirectoryName(mapPath); 118 119 if (!Directory.Exists(folderServerPath)) return files; 120 121 // Get Images from folder 122 const string temp = @"\"; 123 const string metafield = "title"; 124 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(defaultFile); 125 var title = metadata != null && metadata.GetValue(metafield).IsNotNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 126 var folderWebPath = defaultFile.Contains("/") ? defaultFile.Substring(0, defaultFile.LastIndexOf("/")) : defaultFile; 127 128 var dctImage = new Dictionary<string, string>(); 129 130 if (addDefaultFile && File.Exists(mapPath)) 131 { 132 files.Add(new Tuple<string, string, FileType>(defaultFile, title, defaultFile.GetFileType())); 133 } 134 135 foreach (var file in Directory.GetFiles(folderServerPath, searchPattern)) 136 { 137 var filePath = folderWebPath + "/" + file.Substring(file.LastIndexOf(temp, StringComparison.Ordinal) + 1, file.Length - file.LastIndexOf(temp, StringComparison.Ordinal) - 1); 138 metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(filePath); 139 title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 140 141 files.Add(new Tuple<string, string, FileType>(filePath, title, file.GetFileType())); 142 } 143 144 return files; 145 } 146 /// <summary> 147 /// Gets the list of image or HTML5 video files from a folder. 148 /// </summary> 149 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType (Image, Video).</return> 150 public static List<Tuple<string,string,FileType>> GetMediaFilesInFolder(string defaulMedia, string searchPattern, string defaultName = "", bool addDefaultMedia = true) 151 { 152 return GetFilesInFolder(defaulMedia, searchPattern, defaultName, addDefaultMedia).Where(f => f.Item3 == FileType.Image || f.Item3 == FileType.Video).ToList(); 153 } 154 155 #endregion Files functions 156 157 #region Image functions 158 159 public static Dictionary<string, string> GetWidthAndHeightFromQueryString(string imageSource, bool addSource = false) 160 { 161 var widthAndHeight = new Dictionary<string, string>(); 162 163 if(imageSource.Contains("?")){ 164 var querySubstring = imageSource.Substring(imageSource.LastIndexOf('?') + 1); 165 var queryParams = HttpUtility.HtmlDecode(querySubstring).Split('&'); 166 167 if (!queryParams.Any()) 168 return widthAndHeight; 169 170 foreach (var param in queryParams.Where(k => k.StartsWith("width") || k.StartsWith("height"))) 171 { 172 var keyValuePair = param.Split('='); 173 174 if (keyValuePair[1].IsNotNullOrEmpty()) 175 { 176 widthAndHeight.Add(keyValuePair[0].ToLower(), keyValuePair[1]); 177 } 178 } 179 } 180 else if(imageSource.Contains("width") || imageSource.Contains("height")) 181 { 182 var queryParams = imageSource.Split('/'); 183 var imgParam = string.Empty; 184 185 foreach (var param in queryParams) 186 { 187 switch (imgParam) 188 { 189 case "width": 190 widthAndHeight.Add("width", param); 191 break; 192 case "height": 193 widthAndHeight.Add("height", param); 194 break; 195 } 196 197 switch (param) 198 { 199 case "width": 200 imgParam = "width"; 201 break; 202 case "height": 203 imgParam = "height"; 204 break; 205 default: 206 imgParam = string.Empty; 207 break; 208 } 209 } 210 } 211 212 if (addSource && imageSource.IsNotNullOrEmpty()) 213 { 214 widthAndHeight.Add("srcset", imageSource); 215 } 216 217 return widthAndHeight; 218 } 219 220 #endregion Image functions 221 222 #region Form Field functions 223 224 public string GetWrapperStart(bool includeWrapper, FieldType fieldType, string htmlElement, bool isRequired = false, string fieldClass = "") 225 { 226 if (!includeWrapper || htmlElement.IsNullOrEmpty()) return string.Empty; 227 var cssClass = new List<string> {fieldType.ToString().ToLower(), fieldClass}; 228 if (isRequired) 229 { 230 cssClass.Add("mandatory"); 231 } 232 var attributes = new Dictionary<string, string>() 233 { 234 {"class", string.Join(" ", cssClass.ToArray())} 235 }; 236 return GetHtmlElement(htmlElement, attributes); 237 } 238 239 public string GetWrapperEnd(bool includeWrapper, string htmlElement) 240 { 241 return !includeWrapper ? string.Empty : GetHtmlElement(htmlElement, true); 242 } 243 244 public string GetControlWithRequiredClass(bool isRequired, string control, string cssClass = "") 245 { 246 if (!isRequired) return control; 247 var regex = new Regex(Regex.Escape(" ")); 248 return regex.Replace(control, " required class=\"mandatory "+cssClass+"\"", 1); 249 } 250 251 public static string GetAttributes(FieldSettings settings, bool returnFieldType = true) 252 { 253 var attributes = new StringBuilder(); 254 if (returnFieldType) 255 { 256 var fieldType = string.Empty; 257 switch (settings.Type) 258 { 259 case FieldType.Select: 260 break; 261 case FieldType.Checkboxlist: 262 fieldType = FieldType.Checkbox.ToString().ToLower(); 263 break; 264 case FieldType.DatetimeLocal: 265 fieldType = "datetime-local"; 266 break; 267 case FieldType.Textarea: 268 case FieldType.File: 269 case FieldType.Text: 270 case FieldType.Hidden: 271 case FieldType.Submit: 272 case FieldType.Reset: 273 case FieldType.Radio: 274 case FieldType.Checkbox: 275 case FieldType.Divider: 276 case FieldType.Image: 277 case FieldType.Password: 278 case FieldType.Textstring: 279 case FieldType.Button: 280 case FieldType.Search: 281 case FieldType.Email: 282 case FieldType.Url: 283 case FieldType.Tel: 284 case FieldType.Number: 285 case FieldType.Range: 286 case FieldType.Date: 287 case FieldType.Month: 288 case FieldType.Week: 289 case FieldType.Time: 290 case FieldType.Datetime: 291 case FieldType.Color: 292 case FieldType.Unknown: 293 default: 294 fieldType = settings.Type.ToString().ToLower(); 295 break; 296 } 297 if (!settings.Attributes.ContainsKey("type")) 298 { 299 attributes.Append(GetAttribute("type", fieldType)); 300 } 301 } 302 attributes.Append(GetAttribute("class", settings.CssClass)); 303 attributes.Append(GetAttribute("id", settings.Id)); 304 attributes.Append(GetAttribute("name", settings.SystemName)); 305 attributes.Append(GetAttribute("value", settings.Value)); 306 if (settings.Type == FieldType.Email || settings.Type == FieldType.Password || settings.Type == FieldType.Search || settings.Type == FieldType.Tel || settings.Type == FieldType.Text || settings.Type == FieldType.Url || settings.Type == FieldType.Textarea) 307 { 308 // Only works wit these types 309 attributes.Append(GetAttribute("placeholder", settings.Placeholder)); 310 } 311 if (settings.Type == FieldType.Datetime) 312 { 313 attributes.Append(GetAttribute("placeholder", "&#x1f4c5;")); 314 } 315 if (settings.Type != FieldType.Checkboxlist) 316 { 317 attributes.Append(GetAttribute("required", settings.IsRequired)); 318 } 319 attributes.Append(GetAttributes(settings.Attributes)); 320 return attributes.ToString(); 321 } 322 323 public static string GetAttributes(FieldOption optionSettings, FieldType fieldType = FieldType.Select) 324 { 325 var attributes = new StringBuilder(); 326 if (fieldType != FieldType.Select) 327 { 328 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 329 } 330 attributes.Append(GetAttribute("value", optionSettings.Value)); 331 attributes.Append(GetAttributes(optionSettings.Attributes)); 332 return attributes.ToString(); 333 } 334 335 public static string GetAttribute(string attributeName, bool attributeValue) 336 { 337 if (!attributeValue) return string.Empty; 338 return " " + attributeName + "=\"" + attributeName + "\""; 339 } 340 341 #endregion 342 343 #region Dynamicweb Template Engine Workaround 344 345 public static string GetHtmlElement(string element, bool isClosingElement = false) 346 { 347 return GetHtmlElementForDw(element, null, string.Empty, isClosingElement); 348 } 349 350 public static string GetHtmlElement(string element, Dictionary<string, string> attributes, bool isClosingElement = false) 351 { 352 return GetHtmlElementForDw(element, attributes, string.Empty, isClosingElement); 353 } 354 355 public static string GetHtmlElement(string element, string processedAttributes, bool isClosingElement = false) 356 { 357 return GetHtmlElementForDw(element, null, processedAttributes, isClosingElement); 358 } 359 360 private static string GetHtmlElementForDw(string element, Dictionary<string, string> attributes = null, string processedAttributes = "", bool isClosingElement = false) 361 { 362 var result = new StringBuilder("<"); 363 364 if (attributes != null || processedAttributes.IsNotNullOrEmpty()) 365 { 366 result.Append(element); 367 if (attributes != null) 368 { 369 result.Append(GetAttributes(attributes)); 370 } 371 else if (processedAttributes.IsNotNullOrEmpty()) 372 { 373 result.Append(processedAttributes); 374 } 375 if (isClosingElement) 376 { 377 result.Append("/"); 378 } 379 } 380 else 381 { 382 if (isClosingElement) 383 { 384 result.Append("/"); 385 } 386 result.Append(element); 387 } 388 389 result.Append(">"); 390 391 return result.ToString(); 392 } 393 394 #endregion Dynamicweb Template Engine Workaround 395 } 396 @{ 397 398 @* Tab helpers *@ 399 @helper InternalRenderTabHeader(string key, string label, string cssClass = "") 400 { 401 @SnippetStart("tabHeaders") 402 <li class="@cssClass"> 403 <a href="@key">@label</a> 404 </li> 405 @SnippetEnd("tabHeaders") 406 } 407 408 409 @* Paging helpers *@ 410 @helper InternalRenderGoToFirstPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int currentPageNum = 0) 411 { 412 if (currentPageNum == 0) 413 { 414 currentPageNum = currentPage; 415 } 416 417 if (currentPage > 2 && numOfPages > loopPageSize && currentPageNum != 1) 418 { 419 queryParameters.Remove(pageNumQueryParameter); 420 @InternalRenderPageItem(queryParameters, "1") 421 @InternalRenderEllipsis() 422 } 423 } 424 425 @helper InternalRenderGoToLastPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int endPage) 426 { 427 if (currentPage < numOfPages - 1 && numOfPages > loopPageSize && endPage != numOfPages) 428 { 429 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, numOfPages.ToString()); 430 @InternalRenderEllipsis() 431 @InternalRenderPageItem(queryParameters, numOfPages.ToString()) 432 } 433 } 434 435 @helper InternalRenderPageItem(NameValueCollection queryParameters, string pageNum, string cssClass = "") 436 { 437 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 438 var href = Dna.UrlServices.Helpers.BuildUri(url, queryParameters); 439 440 <li class="@cssClass"> 441 <a href="@href.PathAndQuery"> 442 @pageNum 443 </a> 444 </li> 445 } 446 447 @helper InternalRenderPageItem(string href, string label, string cssPartialClass, IconPosition position) 448 { 449 <li> 450 <a href="@href"> 451 @RenderIcon(cssPartialClass, label, position) 452 </a> 453 </li> 454 } 455 456 @helper InternalRenderEllipsis() 457 { 458 <li> 459 <span>...</span> 460 </li> 461 } 462 463 464 @* Form field helpers *@ 465 @helper InternalRenderLabel(FieldSettings settings) 466 { 467 @InternalRenderLabel(settings.Label, settings.TranslateKeyForLabel) 468 } 469 470 @helper InternalRenderLabel(string label, string translateKey = "") 471 { 472 @( translateKey.IsNotNullOrEmpty() ? Translate(translateKey) : label) 473 } 474 475 @helper InternalRenderCheckboxField(FieldSettings settings) 476 { 477 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 478 { 479 settings.Assert(FieldType.Checkbox); 480 if (settings.IsChecked && !settings.Attributes.ContainsKey("checked")) 481 { 482 settings.Attributes.Add("checked", "checked"); 483 } 484 485 @InternalRenderFieldHeader(settings, false) 486 487 if (settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) 488 { 489 var possibleClasses = new List<string> {settings.Type.ToString().ToLower(), settings.LabelCssClass}; 490 var cssClass = string.Join(" ", possibleClasses.Where(s => s.IsNotNullOrEmpty())); 491 492 if (!settings.LabelAttributes.ContainsKey("class")) 493 { 494 settings.LabelAttributes.Add("class", cssClass); 495 } 496 else 497 { 498 settings.LabelAttributes["class"] = string.Concat(cssClass, " ", settings.LabelAttributes["class"]); 499 } 500 if (!settings.LabelAttributes.ContainsKey("for")) 501 { 502 settings.LabelAttributes.Add("for", settings.Id); 503 } 504 505 @GetHtmlElement("label", settings.LabelAttributes) 506 @( settings.Control.IsNotNullOrEmpty() ? settings.Control : GetHtmlElement("input", GetAttributes(settings))) 507 <span> 508 @InternalRenderLabel(settings) 509 </span> 510 @GetHtmlElement("label", true) 511 } 512 else 513 { 514 if (settings.Control.IsNotNullOrEmpty()) 515 { 516 @settings.Control 517 } 518 else 519 { 520 @GetHtmlElement("input", GetAttributes(settings), true) 521 } 522 } 523 524 @InternalRenderFieldFooter(settings) 525 } 526 } 527 528 @helper InternalRenderTextareaField(FieldSettings settings) 529 { 530 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 531 { 532 settings.Assert(FieldType.Textarea); 533 534 @InternalRenderFieldHeader(settings) 535 536 if (settings.Control.IsNotNullOrEmpty()) 537 { 538 @GetControlWithRequiredClass(settings.IsRequired, settings.Control) 539 } 540 else 541 { 542 if (!settings.Attributes.ContainsKey("rows")) 543 { 544 settings.Attributes.Add("rows", "6"); 545 } 546 if (!settings.Attributes.ContainsKey("cols")) 547 { 548 settings.Attributes.Add("cols", "50"); 549 } 550 @GetHtmlElement("textarea", GetAttributes(settings, false)) 551 @GetHtmlElement("textarea", true) 552 } 553 554 @InternalRenderFieldFooter(settings) 555 } 556 } 557 558 @helper InternalRenderRadioOrCheckboxListField(FieldSettings settings) 559 { 560 if (settings.LoopOptions.Any() || settings.FieldOptionsList.Any() || settings.Control.IsNotNullOrEmpty()) 561 { 562 var optionCount = 0; 563 564 settings.Assert(FieldType.Radio); 565 566 @InternalRenderFieldHeader(settings) 567 568 if (settings.LoopOptions.Any()) 569 { 570 settings.CssClass = settings.Type.ToString().ToLower(); 571 foreach (var option in settings.LoopOptions) 572 { 573 optionCount++; 574 if (settings.Id.IsNullOrEmpty() || settings.Id == settings.SystemName) 575 { 576 settings.Id = settings.SystemName + optionCount; 577 } 578 <label class="@settings.CssClass" for="@settings.Id"> 579 @GetHtmlElement("input", GetAttributes(settings), true) 580 <span>@option.GetString(settings.LabelLoopTag)</span> 581 </label> 582 } 583 } 584 else if (settings.FieldOptionsList.Any()) 585 { 586 foreach (var option in settings.FieldOptionsList) 587 { 588 optionCount++; 589 if (option.Id.IsNullOrEmpty() || option.Id == option.SystemName) 590 { 591 option.Id = settings.SystemName + optionCount; 592 } 593 option.CssClass = settings.Type.ToString().ToLower(); 594 595 <label class="@option.CssClass" for="@option.Id"> 596 @InternalRenderInputOptionField("input", option, settings.Type) 597 <span>@option.Label</span> 598 </label> 599 } 600 } 601 else if (settings.Control.IsNotNullOrEmpty()) 602 { 603 @settings.Control 604 } 605 606 @InternalRenderFieldFooter(settings) 607 } 608 } 609 610 @helper InternalRenderInputField(FieldSettings settings) 611 { 612 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 613 { 614 settings.Assert(FieldType.Text); 615 616