Error compiling template "Designs/Dwsimple/_parsed/ProductGalleryPage.parsed.cshtml"
Line 7084: A local or parameter named 'TitleSize' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
Line 7086: A local or parameter named 'TitleColor' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
Line 7733: A local variable or function named 'TitleFont' is already defined in this scope
Line 2666: The variable 'openmodal' is assigned but its value is never used
Line 2667: The variable 'openmodala' is assigned but its value is never used
Line 2668: The variable 'modalstyle' is assigned but its value is never used
Line 2669: The variable 'modalstylea' is assigned but its value is never used

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 2 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 11 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 22 using System.Web; 23 24 #line default 25 #line hidden 26 27 #line 4 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 28 using Dynamicweb.Security.UserManagement; 29 30 #line default 31 #line hidden 32 33 #line 5 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 34 using Dynamicweb.Security.UserManagement.Common.CustomFields; 35 36 #line default 37 #line hidden 38 39 #line 6 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 40 using Dynamicweb.Rendering; 41 42 #line default 43 #line hidden 44 45 #line 7 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 46 using Dynamicweb.Environment; 47 48 #line default 49 #line hidden 50 51 #line 10 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 52 using System.Text.RegularExpressions; 53 54 #line default 55 #line hidden 56 57 #line 9 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 58 using User = Dynamicweb.Security.UserManagement.User; 59 60 #line default 61 #line hidden 62 63 #line 1105 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 64 using System.Drawing; 65 66 #line default 67 #line hidden 68 69 #line 1106 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 70 using System.Net; 71 72 #line default 73 #line hidden 74 75 76 public class RazorEngine_8bb80cb95ec84a1cb022fabc08c07aee : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 77 78 #line hidden 79 80 #line 14 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 81 82 public class WrapMethods 83 { 84 //Gets the contrasting color 85 public static string getContrastYIQ(string hexcolor) 86 { 87 if (hexcolor != "") 88 { 89 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 90 91 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 92 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 93 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 94 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 95 96 if (yiq >= 128) 97 { 98 return "black"; 99 } 100 else 101 { 102 return "white"; 103 } 104 } 105 else 106 { 107 return "black"; 108 } 109 } 110 111 112 //Truncate text 113 public static string Truncate (string value, int count, bool strip=true) 114 { 115 if (strip == true){ 116 value = StripHtmlTagByCharArray(value); 117 } 118 119 if (value.Length > count) 120 { 121 value = value.Substring(0, count - 1) + "..."; 122 } 123 124 return value; 125 } 126 127 128 //Strip text from HTML 129 public static string StripHtmlTagByCharArray(string htmlString) 130 { 131 char[] array = new char[htmlString.Length]; 132 int arrayIndex = 0; 133 bool inside = false; 134 135 for (int i = 0; i < htmlString.Length; i++) 136 { 137 char let = htmlString[i]; 138 if (let == '<') 139 { 140 inside = true; 141 continue; 142 } 143 if (let == '>') 144 { 145 inside = false; 146 continue; 147 } 148 if (!inside) 149 { 150 array[arrayIndex] = let; 151 arrayIndex++; 152 } 153 } 154 return new string(array, 0, arrayIndex); 155 } 156 157 //Make the correct count of columns 158 public static string ColumnMaker(int Col, string ScreenSize) 159 { 160 string Columns = ""; 161 162 switch (Col) 163 { 164 case 1: 165 Columns = "col-"+ScreenSize+"-12"; 166 break; 167 168 case 2: 169 Columns = "col-"+ScreenSize+"-6"; 170 break; 171 172 case 3: 173 Columns = "col-"+ScreenSize+"-4"; 174 break; 175 176 case 4: 177 Columns = "col-"+ScreenSize+"-3"; 178 break; 179 180 default: 181 Columns = "col-"+ScreenSize+"-3"; 182 break; 183 } 184 185 return Columns; 186 } 187 188 189 private string Custom(string firstoption, string secondoption) 190 { 191 if (firstoption == "custom") 192 { 193 return secondoption; 194 } 195 else 196 { 197 return firstoption; 198 } 199 } 200 } 201 202 #line default 203 #line hidden 204 205 206 #line 142 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 207 public RazorEngine.Templating.TemplateWriter MiniCart() 208 { 209 #line default 210 #line hidden 211 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 212 213 #line 143 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 214 215 216 217 #line default 218 #line hidden 219 WriteLiteralTo(__razor_helper_writer, " <div"); 220 221 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-cart\""); 222 223 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 224 225 WriteLiteralTo(__razor_helper_writer, " id=\"full-cart\""); 226 227 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 228 229 WriteLiteralTo(__razor_helper_writer, " class=\"col-md-12 col-sm-12 col-xs-12\""); 230 231 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 232 233 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 234 235 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-content\""); 236 237 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 238 239 WriteLiteralTo(__razor_helper_writer, " class=\"cart-items\""); 240 241 WriteLiteralTo(__razor_helper_writer, ">"); 242 243 244 #line 148 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 245 WriteTo(__razor_helper_writer, Translate("You have", "You have")); 246 247 248 #line default 249 #line hidden 250 WriteLiteralTo(__razor_helper_writer, " <span"); 251 252 WriteLiteralTo(__razor_helper_writer, " id=\"mincart-total-items\""); 253 254 WriteLiteralTo(__razor_helper_writer, "></span> "); 255 256 257 #line 148 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 258 WriteTo(__razor_helper_writer, Translate("items in your cart", "items in your cart")); 259 260 261 #line default 262 #line hidden 263 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <table"); 264 265 WriteLiteralTo(__razor_helper_writer, " class=\"table table-cart\""); 266 267 WriteLiteralTo(__razor_helper_writer, ">\r\n <thead>\r\n <tr>\r\n " + 268 " <th></th>\r\n <th>"); 269 270 271 #line 153 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 272 WriteTo(__razor_helper_writer, Translate("Product", "Product")); 273 274 275 #line default 276 #line hidden 277 WriteLiteralTo(__razor_helper_writer, "</th>\r\n <th"); 278 279 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 280 281 WriteLiteralTo(__razor_helper_writer, ">"); 282 283 284 #line 154 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 285 WriteTo(__razor_helper_writer, Translate("Qty", "Qty")); 286 287 288 #line default 289 #line hidden 290 WriteLiteralTo(__razor_helper_writer, "</th>\r\n <th"); 291 292 WriteLiteralTo(__razor_helper_writer, " class=\"text-right\""); 293 294 WriteLiteralTo(__razor_helper_writer, ">"); 295 296 297 #line 155 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 298 WriteTo(__razor_helper_writer, Translate("Total", "Total")); 299 300 301 #line default 302 #line hidden 303 WriteLiteralTo(__razor_helper_writer, "</th>\r\n </tr>\r\n </thead>\r\n " + 304 " <tbody>\r\n\r\n "); 305 306 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n </tbody>\r\n <tfoot>\r\n " + 307 " <tr>\r\n <td"); 308 309 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 310 311 WriteLiteralTo(__razor_helper_writer, "><i"); 312 313 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-credit-card\""); 314 315 WriteLiteralTo(__razor_helper_writer, "></i></td>\r\n <td"); 316 317 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-payment\""); 318 319 WriteLiteralTo(__razor_helper_writer, "></td>\r\n <td"); 320 321 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 322 323 WriteLiteralTo(__razor_helper_writer, "></td>\r\n <td"); 324 325 WriteLiteralTo(__razor_helper_writer, " class=\"text-right\""); 326 327 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-paymentfee\""); 328 329 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n <tr>\r\n " + 330 " <td"); 331 332 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 333 334 WriteLiteralTo(__razor_helper_writer, "><i"); 335 336 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-truck\""); 337 338 WriteLiteralTo(__razor_helper_writer, "></i></td>\r\n <td"); 339 340 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-shipping\""); 341 342 WriteLiteralTo(__razor_helper_writer, "></td>\r\n <td"); 343 344 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 345 346 WriteLiteralTo(__razor_helper_writer, "></td>\r\n <td"); 347 348 WriteLiteralTo(__razor_helper_writer, " class=\"text-right\""); 349 350 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-shippingfee\""); 351 352 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n <tr>\r\n " + 353 " <td></td>\r\n <td><stro" + 354 "ng>"); 355 356 357 #line 178 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 358 WriteTo(__razor_helper_writer, Translate("Total", "Total")); 359 360 361 #line default 362 #line hidden 363 WriteLiteralTo(__razor_helper_writer, "</strong></td>\r\n <td"); 364 365 WriteLiteralTo(__razor_helper_writer, " class=\"text-center\""); 366 367 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-total\""); 368 369 WriteLiteralTo(__razor_helper_writer, "></td>\r\n <td"); 370 371 WriteLiteralTo(__razor_helper_writer, " class=\"text-right\""); 372 373 WriteLiteralTo(__razor_helper_writer, " id=\"minicart-totalprice\""); 374 375 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n </tfoot>\r\n " + 376 " </table>\r\n </div>\r\n </div>\r\n " + 377 " <div"); 378 379 WriteLiteralTo(__razor_helper_writer, " class=\"col-md-12 col-sm-12 col-xs-12\""); 380 381 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 382 383 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 384 385 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 386 387 WriteLiteralTo(__razor_helper_writer, " class=\"col-md-8\""); 388 389 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 390 391 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-xs btn-secondary pull-left\""); 392 393 WriteLiteralTo(__razor_helper_writer, " onclick=\"EmptyCart();\""); 394 395 WriteLiteralTo(__razor_helper_writer, ">"); 396 397 398 #line 189 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 399 WriteTo(__razor_helper_writer, Translate("Empty cart", "Empty cart")); 400 401 402 #line default 403 #line hidden 404 WriteLiteralTo(__razor_helper_writer, "</button>\r\n </div>\r\n <div"); 405 406 WriteLiteralTo(__razor_helper_writer, " class=\"col-md-4\""); 407 408 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 409 410 411 #line 192 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 412 413 414 #line default 415 #line hidden 416 417 #line 192 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 418 419 var cartid = GetValue("DwAreaCartPageID"); 420 421 422 #line default 423 #line hidden 424 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <a"); 425 426 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6682), Tuple.Create("\"", 6712) 427 , Tuple.Create(Tuple.Create("", 6689), Tuple.Create("Default.aspx?ID=", 6689), true) 428 429 #line 196 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 430 , Tuple.Create(Tuple.Create("", 6705), Tuple.Create<System.Object, System.Int32>(cartid 431 432 #line default 433 #line hidden 434 , 6705), false) 435 ); 436 437 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-xs btn-primary pull-right\""); 438 439 WriteLiteralTo(__razor_helper_writer, ">"); 440 441 442 #line 196 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 443 WriteTo(__razor_helper_writer, Translate("Proceed to checkout", "Proceed to checkout")); 444 445 446 #line default 447 #line hidden 448 WriteLiteralTo(__razor_helper_writer, "</a>\r\n <span"); 449 450 WriteLiteralTo(__razor_helper_writer, " class=\"clearfix\""); 451 452 WriteLiteralTo(__razor_helper_writer, "></span>\r\n </div>\r\n </div>\r\n <di" + 453 "v"); 454 455 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 456 457 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</div>\r\n </div>\r\n </div>\r\n <span"); 458 459 WriteLiteralTo(__razor_helper_writer, " class=\"cart-items\""); 460 461 WriteLiteralTo(__razor_helper_writer, " id=\"empty-cart\""); 462 463 WriteLiteralTo(__razor_helper_writer, ">"); 464 465 466 #line 203 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 467 WriteTo(__razor_helper_writer, Translate("Your shopping cart is empty", "Your shopping cart is empty")); 468 469 470 #line default 471 #line hidden 472 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 473 474 475 #line 205 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 476 477 478 #line default 479 #line hidden 480 }); 481 482 #line 205 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 483 } 484 #line default 485 #line hidden 486 487 488 #line 333 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 489 490 public class FontSettings 491 { 492 public class Logo 493 { 494 public static string FontFamily { get; set; } 495 public static string FontSize { get; set; } 496 public static string FontWeight { get; set; } 497 public static string Color { get; set; } 498 public static string LineHeight { get; set; } 499 public static string Casing { get; set; } 500 public static string LetterSpacing { get; set; } 501 } 502 503 public class Slogan 504 { 505 public static string FontFamily { get; set; } 506 public static string FontSize { get; set; } 507 public static string FontWeight { get; set; } 508 public static string Color { get; set; } 509 public static string LineHeight { get; set; } 510 public static string Casing { get; set; } 511 public static string LetterSpacing { get; set; } 512 } 513 514 public class H1 515 { 516 public static string FontFamily { get; set; } 517 public static string FontSize { get; set; } 518 public static string FontWeight { get; set; } 519 public static string Color { get; set; } 520 public static string LineHeight { get; set; } 521 public static string Casing { get; set; } 522 public static string LetterSpacing { get; set; } 523 } 524 525 public class H2 526 { 527 public static string FontFamily { get; set; } 528 public static string FontSize { get; set; } 529 public static string FontWeight { get; set; } 530 public static string Color { get; set; } 531 public static string LineHeight { get; set; } 532 public static string Casing { get; set; } 533 public static string LetterSpacing { get; set; } 534 } 535 public class H3 536 { 537 public static string FontFamily { get; set; } 538 public static string FontSize { get; set; } 539 public static string FontWeight { get; set; } 540 public static string Color { get; set; } 541 public static string LineHeight { get; set; } 542 public static string Casing { get; set; } 543 public static string LetterSpacing { get; set; } 544 } 545 public class H4 546 { 547 public static string FontFamily { get; set; } 548 public static string FontSize { get; set; } 549 public static string FontWeight { get; set; } 550 public static string Color { get; set; } 551 public static string LineHeight { get; set; } 552 public static string Casing { get; set; } 553 public static string LetterSpacing { get; set; } 554 } 555 public class H5 556 { 557 public static string FontFamily { get; set; } 558 public static string FontSize { get; set; } 559 public static string FontWeight { get; set; } 560 public static string Color { get; set; } 561 public static string LineHeight { get; set; } 562 public static string Casing { get; set; } 563 public static string LetterSpacing { get; set; } 564 } 565 public class Body 566 { 567 public static string FontFamily { get; set; } 568 public static string FontSize { get; set; } 569 public static string FontWeight { get; set; } 570 public static string Color { get; set; } 571 public static string LineHeight { get; set; } 572 public static string Casing { get; set; } 573 public static string LetterSpacing { get; set; } 574 } 575 } 576 577 private void InitFontSettings() 578 { 579 //LOGO 580 FontSettings.Logo.FontFamily = CustomFont(GetString("Item.Area.LogoFont.Font"), GetString("Item.Area.LogoFont.CustomFont")); 581 FontSettings.Logo.FontSize = GetString("Item.Area.LogoFont.Size")+"px"; 582 FontSettings.Logo.FontWeight = CheckExistence(GetString("Item.Area.LogoFont.Weight"), "normal"); 583 FontSettings.Logo.LineHeight = CheckExistence(GetString("Item.Area.LogoFont.LineHeight"), "1"); 584 FontSettings.Logo.LetterSpacing = GetString("Item.Area.LogoFont.LetterSpacing") + "px"; 585 FontSettings.Logo.Casing = GetString("Item.Area.LogoFont.Casing"); 586 FontSettings.Logo.Color = GetString("Item.Area.LogoFont.Color.Color"); 587 588 589 //SLOGAN 590 FontSettings.Slogan.FontFamily = CustomFont(GetString("Item.Area.LogoSloganFont.Font"), GetString("Item.Area.LogoSloganFont.CustomFont")); 591 FontSettings.Slogan.FontSize = GetString("Item.Area.LogoSloganFont.Size")+"px"; 592 FontSettings.Slogan.FontWeight = CheckExistence(GetString("Item.Area.LogoSloganFont.Weight"), "normal"); 593 FontSettings.Slogan.LineHeight = CheckExistence(GetString("Item.Area.LogoSloganFont.LineHeight"), "1"); 594 FontSettings.Slogan.LetterSpacing = GetString("Item.Area.LogoSloganFont.LetterSpacing") + "px"; 595 FontSettings.Slogan.Casing = GetString("Item.Area.LogoSloganFont.Casing"); 596 FontSettings.Slogan.Color = GetString("Item.Area.LogoSloganFont.Color.Color"); 597 598 599 //HEADINGS 600 FontSettings.H1.FontFamily = CustomFont(GetString("Item.Area.HeadingsH1.Font"), GetString("Item.Area.HeadingsH1.CustomFont")); 601 FontSettings.H1.FontSize = GetString("Item.Area.HeadingsH1.Size")+"px"; 602 FontSettings.H1.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH1.Weight"), "normal"); 603 FontSettings.H1.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH1.LineHeight"), "1"); 604 FontSettings.H1.LetterSpacing = GetString("Item.Area.HeadingsH1.LetterSpacing") + "px"; 605 FontSettings.H1.Casing = GetString("Item.Area.HeadingsH1.Casing"); 606 FontSettings.H1.Color = GetString("Item.Area.HeadingsH1.Color.Color"); 607 608 FontSettings.H2.FontFamily = CustomFont(GetString("Item.Area.HeadingsH2.Font"), GetString("Item.Area.HeadingsH2.CustomFont")); 609 FontSettings.H2.FontSize = GetString("Item.Area.HeadingsH2.Size")+"px"; 610 FontSettings.H2.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH2.Weight"), "normal"); 611 FontSettings.H2.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH2.LineHeight"), "1"); 612 FontSettings.H2.LetterSpacing = GetString("Item.Area.HeadingsH2.LetterSpacing") + "px"; 613 FontSettings.H2.Casing = GetString("Item.Area.HeadingsH2.Casing"); 614 FontSettings.H2.Color = GetString("Item.Area.HeadingsH2.Color.Color"); 615 616 FontSettings.H3.FontFamily = CustomFont(GetString("Item.Area.HeadingsH3.Font"), GetString("Item.Area.HeadingsH3.CustomFont")); 617 FontSettings.H3.FontSize = GetString("Item.Area.HeadingsH3.Size") + "px"; 618 FontSettings.H3.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH3.Weight"), "normal"); 619 FontSettings.H3.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH3.LineHeight"), "1"); 620 FontSettings.H3.LetterSpacing = GetString("Item.Area.HeadingsH3.LetterSpacing") + "px"; 621 FontSettings.H3.Casing = GetString("Item.Area.HeadingsH3.Casing"); 622 FontSettings.H3.Color = GetString("Item.Area.HeadingsH3.Color.Color"); 623 624 FontSettings.H4.FontFamily = CustomFont(GetString("Item.Area.HeadingsH4.Font"), GetString("Item.Area.HeadingsH4.CustomFont")); 625 FontSettings.H4.FontSize = GetString("Item.Area.HeadingsH4.Size") + "px"; 626 FontSettings.H4.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH4.Weight"), "normal"); 627 FontSettings.H4.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH4.LineHeight"), "1"); 628 FontSettings.H4.LetterSpacing = GetString("Item.Area.HeadingsH4.LetterSpacing") + "px"; 629 FontSettings.H4.Casing = GetString("Item.Area.HeadingsH4.Casing"); 630 FontSettings.H4.Color = GetString("Item.Area.HeadingsH4.Color.Color"); 631 632 FontSettings.H5.FontFamily = CustomFont(GetString("Item.Area.HeadingsH5.Font"), GetString("Item.Area.HeadingsH5.CustomFont")); 633 FontSettings.H5.FontSize = GetString("Item.Area.HeadingsH5.Size") + "px"; 634 FontSettings.H5.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH5.Weight"), "normal"); 635 FontSettings.H5.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH5.LineHeight"), "1"); 636 FontSettings.H5.LetterSpacing = GetString("Item.Area.HeadingsH5.LetterSpacing") + "px"; 637 FontSettings.H5.Casing = GetString("Item.Area.HeadingsH5.Casing"); 638 FontSettings.H5.Color = GetString("Item.Area.HeadingsH5.Color.Color"); 639 640 641 //BODY 642 FontSettings.Body.FontFamily = CustomFont(GetString("Item.Area.BodyFont.Font"), GetString("Item.Area.BodyFont.CustomFont")); 643 FontSettings.Body.FontSize = GetString("Item.Area.BodyFont.Size") + "px"; 644 FontSettings.Body.FontWeight = CheckExistence(GetString("Item.Area.BodyFont.Weight"), "normal"); 645 FontSettings.Body.LineHeight = CheckExistence(GetString("Item.Area.BodyFont.LineHeight"), "1"); 646 FontSettings.Body.LetterSpacing = GetString("Item.Area.BodyFont.LetterSpacing") + "px"; 647 FontSettings.Body.Casing = GetString("Item.Area.BodyFont.Casing"); 648 FontSettings.Body.Color = GetString("Item.Area.BodyFont.Color.Color"); 649 650 651 gfonts.Add(FontSettings.Logo.FontFamily, ""); 652 653 if (!gfonts.ContainsKey(FontSettings.Slogan.FontFamily)) 654 { 655 gfonts.Add(FontSettings.Slogan.FontFamily, ""); 656 } 657 if (!gfonts.ContainsKey(FontSettings.H1.FontFamily)) 658 { 659 gfonts.Add(FontSettings.H1.FontFamily, ""); 660 } 661 if (!gfonts.ContainsKey(FontSettings.H2.FontFamily)) 662 { 663 gfonts.Add(FontSettings.H2.FontFamily, ""); 664 } 665 if (!gfonts.ContainsKey(FontSettings.H3.FontFamily)) 666 { 667 gfonts.Add(FontSettings.H3.FontFamily, ""); 668 } 669 if (!gfonts.ContainsKey(FontSettings.H4.FontFamily)) 670 { 671 gfonts.Add(FontSettings.H4.FontFamily, ""); 672 } 673 if (!gfonts.ContainsKey(FontSettings.H5.FontFamily)) 674 { 675 gfonts.Add(FontSettings.H5.FontFamily, ""); 676 } 677 if (!gfonts.ContainsKey(FontSettings.Body.FontFamily)) 678 { 679 gfonts.Add(FontSettings.Body.FontFamily, ""); 680 } 681 682 } 683 684 private string CustomFont (string firstfont, string secondfont) 685 { 686 if (firstfont == "custom") 687 { 688 return secondfont; 689 } 690 else 691 { 692 return firstfont; 693 } 694 } 695 696 private string CheckExistence (string stringitem, string defaultvalue) 697 { 698 if (!string.IsNullOrWhiteSpace(stringitem)) { 699 return stringitem; 700 } else { 701 return defaultvalue; 702 } 703 } 704 705 private System.Collections.Generic.Dictionary<string, object> gfonts = new System.Collections.Generic.Dictionary<string, object>(); 706 707 #line default 708 #line hidden 709 710 711 #line 556 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 712 public RazorEngine.Templating.TemplateWriter GoogleFonts() 713 { 714 #line default 715 #line hidden 716 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 717 718 #line 557 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 719 720 if (gfonts != null) 721 { 722 foreach (var item in gfonts) 723 { 724 string fontName = item.Key.Replace(" ", "+"); 725 if (fontName.Contains("Century")) 726 { 727 728 729 #line default 730 #line hidden 731 WriteLiteralTo(__razor_helper_writer, " <link"); 732 733 WriteLiteralTo(__razor_helper_writer, " rel=\"stylesheet\""); 734 735 WriteLiteralTo(__razor_helper_writer, " href=\"/Files/Templates/Designs/Dwsimple/css/CenturyGothic.css\""); 736 737 WriteLiteralTo(__razor_helper_writer, " type=\"text/css\""); 738 739 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 740 741 742 #line 566 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 743 } 744 else if (fontName.Contains("HeveticaLT") || fontName.Contains("ColfaxWebRegular") || fontName.Contains("HelveticaLT")) 745 { 746 747 } 748 749 750 else 751 { 752 753 754 755 #line default 756 #line hidden 757 WriteLiteralTo(__razor_helper_writer, " <link"); 758 759 WriteLiteralTo(__razor_helper_writer, " rel=\"stylesheet\""); 760 761 WriteLiteralTo(__razor_helper_writer, " type=\"text/css\""); 762 763 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 23007), Tuple.Create("\"", 23093) 764 , Tuple.Create(Tuple.Create("", 23014), Tuple.Create("//fonts.googleapis.com/css?family=", 23014), true) 765 766 #line 576 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 767 , Tuple.Create(Tuple.Create("", 23048), Tuple.Create<System.Object, System.Int32>(fontName 768 769 #line default 770 #line hidden 771 , 23048), false) 772 , Tuple.Create(Tuple.Create("", 23057), Tuple.Create(":100,200,300,400,500,600,700,800,900", 23057), true) 773 ); 774 775 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 776 777 778 #line 577 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 779 } 780 781 } 782 } 783 784 785 #line default 786 #line hidden 787 }); 788 789 #line 581 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 790 } 791 #line default 792 #line hidden 793 794 795 #line 583 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 796 797 public string FontStylesCSS() 798 { 799 string CssString = @" 800 .dw-logotext { 801 font-family: " + FontSettings.Logo.FontFamily + @"; 802 font-size: " + FontSettings.Logo.FontSize + @"; 803 font-weight: " + FontSettings.Logo.FontWeight + @"; 804 line-height: " + FontSettings.Logo.LineHeight + @" !important; 805 letter-spacing: " + FontSettings.Logo.LetterSpacing + @"; 806 text-transform: " + FontSettings.Logo.Casing + @"; 807 color: " + FontSettings.Logo.Color + @"; 808 } 809 810 .dw-slogantext { 811 font-family: " + FontSettings.Slogan.FontFamily + @"; 812 font-size: " + FontSettings.Slogan.FontSize + @"; 813 font-weight: " + FontSettings.Slogan.FontWeight + @"; 814 line-height: " + FontSettings.Slogan.LineHeight + @" !important; 815 letter-spacing: " + FontSettings.Slogan.LetterSpacing + @"; 816 text-transform: " + FontSettings.Slogan.Casing + @"; 817 color: " + FontSettings.Slogan.Color + @"; 818 } 819 820 h1 { 821 font-family: " + FontSettings.H1.FontFamily + @"; 822 font-size: " + FontSettings.H1.FontSize + @"; 823 color: " + FontSettings.H1.Color + @"; 824 line-height: " + FontSettings.H1.LineHeight + @" !important; 825 text-transform: " + FontSettings.H1.Casing + @"; 826 font-weight: " + FontSettings.H1.FontWeight + @"; 827 letter-spacing: " + FontSettings.H1.LetterSpacing + @" !important; 828 } 829 830 831 h2{ 832 margin-top: 0.7em; 833 margin-bottom: 0.7em; 834 835 font-family: " + FontSettings.H2.FontFamily + @"; 836 font-size: " + FontSettings.H2.FontSize + @"; 837 color: " + FontSettings.H2.Color + @"; 838 line-height: " + FontSettings.H2.LineHeight + @"; 839 text-transform: " + FontSettings.H2.Casing + @" !important; 840 font-weight: " + FontSettings.H2.FontWeight + @" !important; 841 letter-spacing: " + FontSettings.H2.LetterSpacing + @" !important; 842 } 843 h3{ 844 margin-top: 0.7em; 845 margin-bottom: 0.7em; 846 847 font-family: " + FontSettings.H3.FontFamily + @"; 848 font-size: " + FontSettings.H3.FontSize + @"; 849 color: " + FontSettings.H3.Color + @"; 850 line-height: " + FontSettings.H3.LineHeight + @"; 851 text-transform: " + FontSettings.H3.Casing + @" !important; 852 font-weight: " + FontSettings.H3.FontWeight + @" !important; 853 letter-spacing: " + FontSettings.H3.LetterSpacing + @" !important; 854 } 855 h4{ 856 margin-top: 0.7em; 857 margin-bottom: 0.7em; 858 859 font-family: " + FontSettings.H4.FontFamily + @"; 860 font-size: " + FontSettings.H4.FontSize + @"; 861 color: " + FontSettings.H4.Color + @"; 862 line-height: " + FontSettings.H4.LineHeight + @"; 863 text-transform: " + FontSettings.H4.Casing + @" !important; 864 font-weight: " + FontSettings.H4.FontWeight + @" !important; 865 letter-spacing: " + FontSettings.H4.LetterSpacing + @" !important; 866 } 867 footer h4{ 868 font-size: " + FontSettings.H4.FontSize + @" !important; 869 } 870 h5{ 871 margin-top: 0.7em; 872 margin-bottom: 0.7em; 873 874 font-family: " + FontSettings.H5.FontFamily + @"; 875 font-size: " + FontSettings.H5.FontSize + @"; 876 color: " + FontSettings.H5.Color + @"; 877 line-height: " + FontSettings.H5.LineHeight + @"; 878 text-transform: " + FontSettings.H5.Casing + @" !important; 879 font-weight: " + FontSettings.H5.FontWeight + @" !important; 880 letter-spacing: " + FontSettings.H5.LetterSpacing + @" !important; 881 } 882 body { 883 font-family: " + FontSettings.Body.FontFamily + @" !important; 884 font-size: " + FontSettings.Body.FontSize + @"; 885 color: " + FontSettings.Body.Color + @"; 886 line-height: " + FontSettings.Body.LineHeight + @" !important; 887 text-transform: " + FontSettings.Body.Casing + @"; 888 font-weight: " + FontSettings.Body.FontWeight + @"; 889 letter-spacing: " + FontSettings.Body.LetterSpacing + @" !important; 890 } 891 892 .navbar-wp .navbar-nav > li > a { 893 font-family: " + FontSettings.Body.FontFamily + @" !important; 894 } 895 896 .section-title { 897 margin-top: 0; 898 margin-bottom: 0.7em; 899 } 900 "; 901 return CssString; 902 } 903 904 905 906 #line default 907 #line hidden 908 909 910 #line 696 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 911 912 public class ColorSettings 913 { 914 public class Color 915 { 916 public static string Primary { get; set; } 917 public static string Secondary { get; set; } 918 public static string NavbarFont { get; set; } 919 public static string NavigationBackground { get; set; } 920 public static string TopNavigationText { get; set; } 921 public static string Footer { get; set; } 922 public static string FooterFont { get; set; } 923 924 public static string Sticker { get; set; } 925 public static string Price { get; set; } 926 public static string Cart { get; set; } 927 } 928 } 929 930 931 932 private void InitColorSettings() 933 { 934 ColorSettings.Color.Primary = GetString("Item.Area.ColorsPrimary.Color"); 935 ColorSettings.Color.Secondary = GetString("Item.Area.ColorsSecondary.Color"); 936 ColorSettings.Color.NavigationBackground = GetString("Item.Area.Navigation_Background.Color"); 937 ColorSettings.Color.TopNavigationText = GetString("Item.Area.TopNavigationColorText.Color"); 938 939 ColorSettings.Color.NavbarFont = GetString("Item.Area.NavbarFontColor"); 940 941 if (string.IsNullOrWhiteSpace(ColorSettings.Color.NavbarFont)) 942 { 943 ColorSettings.Color.NavbarFont = WrapMethods.getContrastYIQ(ColorSettings.Color.Secondary); 944 } 945 946 ColorSettings.Color.Footer = GetString("Item.Area.ColorsFooterColor.Color"); 947 ColorSettings.Color.FooterFont = GetString("Item.Area.FooterFontColor.Color"); 948 949 ColorSettings.Color.Price = GetString("Item.Area.EcommercePriceColor.Color"); 950 ColorSettings.Color.Sticker = GetString("Item.Area.EcommerceDiscountStickerColor.Color"); 951 ColorSettings.Color.Cart = GetString("Item.Area.EcommerceCartButtonColor.Color"); 952 } 953 954 public string GetColorSettings() 955 { 956 string CssString = @" 957 a:hover, a:focus, a:active { 958 color: @Primary; 959 } 960 961 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 962 color: @NavbarFont; 963 } 964 965 .navbar-wp .navbar-nav > .active > a, .navbar-wp .navbar-nav > .active > a:hover, .navbar-wp .navbar-nav > .active > a:focus { 966 color: @TopNavigationText; 967 } 968 969 .navbar-wp .navbar-nav > li > a:hover, .navbar-wp .navbar-nav > li > a:focus { 970 border-top: 0px solid @Secondary; 971 color: @TopNavigationText; 972 } 973 974 .navbar-wp .navbar-nav > li > a span:after { 975 background-color: @TopNavigationText; 976 } 977 978 .navbar-wp .megamenu > li:hover > a { 979 color: @TopNavigationText !important; 980 } 981 982 .btn-dw-primary { 983 color: #FFF; 984 background-color: @Primary; 985 border-color: @Primary; 986 } 987 988 .btn-dw-secondary { 989 color: @NavbarFont; 990 background-color: @Secondary; 991 border-color: @Secondary; 992 } 993 994 .btn-dw-cart { 995 color: #FFF; 996 background-color: @Cart; 997 border-color: @Cart; 998 } 999 1000 .dw-section-title { 1001 border-color: @Secondary; 1002 } 1003 1004 .dw-minicart-update { 1005 color: #FFF !important; 1006 background-color: @Primary; 1007 transition: all 0.3s ease-in-out 0s; 1008 } 1009 1010 .pagination > li > a, .pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > a:active { 1011 color: @Primary; 1012 } 1013 1014 .form-control:hover, .form-control:focus, .form-control:active { 1015 border-color: @Primary !important; 1016 } 1017 1018 .bg-2 { 1019 background: @Primary !important; 1020 } 1021 1022 .blockquote-1:hover { 1023 border-color: @Primary !important; 1024 } 1025 1026 .navbar-wp .navbar-nav > li > a.dropdown-form-toggle, .navbar-wp .navbar-nav > li > a.dropdown-form-toggle:hover, .navbar-wp .navbar-nav > li > a.dropdown-form-toggle:focus { 1027 color: @Primary; 1028 } 1029 1030 .navbar-wp .navbar-nav > .open > a.dropdown-form-toggle, .navbar-wp .navbar-nav > .open > a.dropdown-form-toggle:hover, .navbar-wp .navbar-nav > .open > a.dropdown-form-toggle:focus { 1031 color: @Primary; 1032 } 1033 1034 .navbar-wp .navbar-nav > li > a:hover, .navbar-wp .navbar-nav > li > a:focus { 1035 border: 0px solid @Primary; 1036 } 1037 1038 .navbar-wp .navbar-toggle:hover, .navbar-wp .navbar-toggle:focus { 1039 background-color: @Primary !important; 1040 border-color: @Primary !important; 1041 } 1042 1043 .navbar-wp .dropdown-menu, .dropdown-megamenu .container { 1044 border-top: none; 1045 border-bottom: none !important; 1046 } 1047 1048 .navbar-wp .dropdown-menu > li > a:hover { 1049 background: none !important; 1050 color: @NavigationBackground; 1051 } 1052 1053 .navbar-wp .dropdown-menu .active { 1054 background: none !important; 1055 color: @NavigationBackground; 1056 } 1057 .top-header .top-header-menu > ul.top-menu.quickButtonsMenu li a { 1058 color: @TopNavigationText; 1059 } 1060 .navbar-wp.navbar-contrasted .dropdown-menu > li > a:hover { 1061 background: @Primary !important; 1062 } 1063 1064 .nav > ul > li > a:hover { 1065 color: @Primary; 1066 } 1067 1068 .lw .w-box.w-box-inverse .thmb-img i { 1069 color: @Primary !important; 1070 } 1071 1072 .w-box.w-box-inverse .thmb-img:hover i { 1073 background: @Primary !important; 1074 } 1075 1076 .c-box { 1077 border: 1px solid @Primary !important; 1078 } 1079 1080 .c-box .c-box-header { 1081 background: @Primary !important; 1082 } 1083 1084 .w-section .aside-feature:hover .icon-feature, .w-section .aside-feature:hover h4 { 1085 color: @Primary !important; 1086 } 1087 1088 .layer-slider-wrapper .title.title-base { 1089 background: @Primary !important; 1090 } 1091 1092 .layer-slider-wrapper .subtitle { 1093 color: @Primary !important; 1094 } 1095 1096 .layer-slider-wrapper .list-item { 1097 color: @Primary !important; 1098 } 1099 1100 .box-element.box-element-bordered { 1101 border: 1px solid @Primary !important; 1102 } 1103 1104 .carousel-2 .carousel-indicators .active { 1105 background-color: @Primary !important; 1106 } 1107 1108 .carousel-2 .carousel-nav a { 1109 color: @Primary !important; 1110 } 1111 1112 .carousel-2 .carousel-nav a:hover { 1113 background: @Primary !important; 1114 } 1115 1116 .carousel-3 .carousel-nav a { 1117 color: @Primary !important; 1118 } 1119 1120 .carousel-3 .carousel-nav a:hover { 1121 background: @Primary !important; 1122 } 1123 1124 .like-button .button.liked i { 1125 color: @Primary !important; 1126 } 1127 1128 ul.list-listings li.featured { 1129 border-color: @Primary !important; 1130 } 1131 1132 ul.list-check li i { 1133 color: @Primary !important; 1134 } 1135 1136 ul.dw-categories li a:hover, ul.dw-categories a:focus, ul.dw-categories a:active{ 1137 color: @NavbarFont; 1138 background-color: @Primary; 1139 border-color: @Primary; 1140 } 1141 1142 ul.categories li a:hover, ul.categories a:focus, ul.categories a:active{ 1143 color: @NavbarFont; 1144 background-color: @Primary; 1145 border-color: @Primary; 1146 } 1147 1148 .timeline .event:nth-child(2n):before { 1149 background-color: @Primary !important; 1150 } 1151 1152 .timeline .event:nth-child(2n-1):before { 1153 background-color: @Primary !important; 1154 } 1155 1156 #toTopHover { 1157 background-color: @Primary !important; 1158 } 1159 1160 .tags-list li { 1161 border: 1px solid @Primary !important; 1162 color: @Primary !important; 1163 } 1164 1165 .tags-list li:hover, 1166 a.open-panel { 1167 background-color: @Primary !important; 1168 } 1169 1170 .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus, 1171 .panel-group .panel-heading a i, 1172 .tags-list li a { 1173 color: @NavbarFont !important; 1174 } 1175 1176 .nav-pills > li > a:hover, .nav-pills > li > a:focus { 1177 color: @NavbarFont !important; 1178 background: none repeat scroll 0% 0% @Secondary !important; 1179 } 1180 1181 footer { 1182 background: @Footer !important; 1183 } 1184 1185 footer h4 { 1186 color: @FooterFont !important; 1187 } 1188 1189 footer a { 1190 color: @FooterFont !important; 1191 } 1192 1193 footer a:hover, footer a:focus, footer a:active { 1194 color: @Secondary !important; 1195 } 1196 1197 footer p { 1198 color: @FooterFont !important; 1199 } 1200 1201 footer ul > li { 1202 color: @FooterFont !important; 1203 } 1204 1205 footer hr { 1206 border-color: @FooterFont 1207 } 1208 1209 1210 /* Button colors */ 1211 .btn-base { 1212 color: @NavbarFont !important; 1213 background-color: @Secondary !important; 1214 border: 1px solid @Secondary !important; 1215 } 1216 1217 .btn-base:before { 1218 background-color: @Secondary !important; 1219 } 1220 1221 .btn-base:hover:before, .btn-base:focus:before, .btn-base:active:before { 1222 color: @NavbarFont !important; 1223 background-color: @Primary !important; 1224 border-color: @Primary !important; 1225 } 1226 1227 .btn-icon:before { 1228 transition: none !important; 1229 } 1230 1231 .btn-base:hover, .btn-base:focus, .btn-base:active, .btn-base.active, .open .dropdown-toggle.btn-base { 1232 color: @NavbarFont !important; 1233 background-color: @Primary !important; 1234 border-color: @Primary !important; 1235 } 1236 1237 .btn-primary { 1238 background-color: @Primary !important; 1239 border-color: @Primary !important; 1240 } 1241 1242 .open .dropdown-toggle.btn-primary { 1243 background-color: @Primary !important; 1244 border-color: @Primary !important; 1245 } 1246 1247 /* Dropdown-menu */ 1248 1249 1250 /* Ecom settings */ 1251 .ribbon.base, .ball { 1252 background: @Sticker !important; 1253 color: #fff; 1254 border-right: 5px solid @Sticker !important; 1255 } 1256 1257 .ribbon.base:before { 1258 border-top: 27px solid @Sticker !important; 1259 } 1260 1261 .ribbon.base:after { 1262 border-bottom: 27px solid @Sticker !important; 1263 } 1264 1265 .price { 1266 color: @Price !important; 1267 } 1268 1269 .discount-sticker { 1270 background-color: @Sticker !important; 1271 } 1272 1273 .bs-callout-primary { 1274 border-left-color: @Primary !important; 1275 } 1276 1277 .ratings .fa-star { 1278 color: @Secondary !important; 1279 } 1280 1281 .feature-label { 1282 color: @Secondary !important; 1283 }"; 1284 1285 return ParseCSSToString(CssString); 1286 } 1287 1288 private string ParseCSSToString(string TheString) 1289 { 1290 TheString = TheString.Replace("@Primary", ColorSettings.Color.Primary); 1291 TheString = TheString.Replace("@Secondary", ColorSettings.Color.Secondary); 1292 TheString = TheString.Replace("@NavbarFont", ColorSettings.Color.NavbarFont); 1293 TheString = TheString.Replace("@NavigationBackground", ColorSettings.Color.NavigationBackground); 1294 TheString = TheString.Replace("@TopNavigationText", ColorSettings.Color.TopNavigationText); 1295 TheString = TheString.Replace("@FooterFont", ColorSettings.Color.FooterFont); 1296 TheString = TheString.Replace("@Footer", ColorSettings.Color.Footer); 1297 1298 TheString = TheString.Replace("@Sticker", ColorSettings.Color.Sticker); 1299 TheString = TheString.Replace("@Price", ColorSettings.Color.Price); 1300 TheString = TheString.Replace("@Cart", ColorSettings.Color.Cart); 1301 1302 1303 System.Text.StringBuilder sb = new System.Text.StringBuilder(); 1304 1305 foreach(var item in TheString.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries)) 1306 { 1307 sb.AppendLine(item); 1308 } 1309 1310 return sb.ToString(); 1311 } 1312 1313 #line default 1314 #line hidden 1315 1316 1317 #line 1109 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 1318 1319 public class GeneralSettings 1320 { 1321 1322 public class Header 1323 { 1324 public static string Mode { get; set; } 1325 public static string Classes { get; set; } 1326 public static bool Show { get; set; } 1327 public static string Background { get; set; } 1328 public static bool ShowFrontpageImage { get; set; } 1329 } 1330 1331 public class Logo 1332 { 1333 public static string Image { get; set; } 1334 public static string ContrastImage { get; set; } 1335 public static string Text { get; set; } 1336 public static string Slogan { get; set; } 1337 public static string SecondaryColor { get; set; } 1338 } 1339 1340 public class Navigation 1341 { 1342 public static string Position { get; set; } 1343 public static bool IsMegamenu { get; set; } 1344 public static string InvertedPosition { get; set; } 1345 public static string StickyMenu { get; set; } 1346 public static string SelectionMode { get; set; } 1347 public static string SelectionStyle { get; set; } 1348 public static int SelectionWeight { get; set; } 1349 public static bool Case { get; set; } 1350 1351 public static string BreadcrumbMode { get; set; } 1352 public static string BreadcrumbAlign { get; set; } 1353 1354 public static string LeftmenuMode { get; set; } 1355 1356 public static string ButtonDesign { get; set; } 1357 } 1358 1359 public class Headings 1360 { 1361 public static string Mode { get; set; } 1362 } 1363 1364 public class Background 1365 { 1366 public static string Color { get; set; } 1367 public static string Image { get; set; } 1368 public static string CustomImage { get; set; } 1369 public static bool GradientColor { get; set; } 1370 public static string GradientPercentage { get; set; } 1371 public static string Style { get; set; } 1372 public static string Position { get; set; } 1373 } 1374 1375 public class Site 1376 { 1377 public static bool Shadow { get; set; } 1378 public static string LayoutMode { get; set; } 1379 } 1380 1381 public class Images 1382 { 1383 public static bool RoundCorners { get; set; } 1384 } 1385 1386 public class Ecommerce 1387 { 1388 public static string EcomListDesign { get; set; } 1389 public static string EcomCardDesign { get; set; } 1390 } 1391 } 1392 1393 private void InitGeneralSettings() 1394 { 1395 //Header settings 1396 GeneralSettings.Header.Mode = GetString("Item.Area.HeaderLayoutMode"); 1397 GeneralSettings.Header.Show = GetBoolean("Item.Area.HeaderShow"); 1398 GeneralSettings.Header.Background = GetString("Item.Area.NavigationNavbarBackground"); 1399 GeneralSettings.Header.ShowFrontpageImage = GetBoolean("Item.Area.HeaderFrontpageImage"); 1400 1401 if (GeneralSettings.Header.Mode == "solid"){ 1402 GeneralSettings.Header.Classes = ""; 1403 } 1404 1405 if (GeneralSettings.Header.Mode == "cover" || GeneralSettings.Header.Mode == "mobile"){ 1406 GeneralSettings.Header.Classes = "header-alpha header-cover"; 1407 } 1408 1409 1410 //Logo settings 1411 GeneralSettings.Logo.Image = GetString("Item.Area.GeneralLogo"); 1412 GeneralSettings.Logo.Text = GetString("Item.Area.GeneralLogoText"); 1413 GeneralSettings.Logo.Slogan = GetString("Item.Area.LogoSlogan"); 1414 GeneralSettings.Logo.SecondaryColor = GetString("Item.Area.LogoSecondColor.Color"); 1415 1416 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoContrastImage"))) { 1417 GeneralSettings.Logo.ContrastImage = GetString("Item.Area.LogoContrastImage"); 1418 } else { 1419 GeneralSettings.Logo.ContrastImage = GetString("Item.Area.GeneralLogo"); 1420 } 1421 1422 1423 //Navigation settings 1424 GeneralSettings.Navigation.Position = GetString("Item.Area.NavigationPosition"); 1425 GeneralSettings.Navigation.StickyMenu = "off"; 1426 GeneralSettings.Navigation.IsMegamenu = GetBoolean("Item.Area.IsMegamenu"); 1427 1428 if (GetBoolean("Item.Area.NavigationSticky")) { 1429 if (GeneralSettings.Header.Show) 1430 { 1431 if (GeneralSettings.Header.Mode == "cover") 1432 { 1433 GeneralSettings.Navigation.StickyMenu = "44"; //"data-spy=\"affix\" data-offset-top=\"44\" data-offset-bottom=\"300\""; 1434 } 1435 else 1436 { 1437 int offset = ImageHeight()+28; 1438 1439 GeneralSettings.Navigation.StickyMenu = offset.ToString(); // "data-spy=\"affix\" data-offset-top=\"" + offset.ToString() + "\" data-offset-bottom=\"300\""; 1440 } 1441 } 1442 else 1443 { 1444 GeneralSettings.Navigation.StickyMenu = "5"; // "data-spy=\"affix\" data-offset-top=\"5\" data-offset-bottom=\"300\""; 1445 } 1446 } 1447 1448 if (GeneralSettings.Navigation.Position == "left") { 1449 GeneralSettings.Navigation.InvertedPosition = "right"; 1450 } 1451 else 1452 { 1453 GeneralSettings.Navigation.InvertedPosition = "left"; 1454 } 1455 1456 GeneralSettings.Navigation.SelectionMode = GetString("Item.Area.NavigationSelectionMode"); 1457 GeneralSettings.Navigation.SelectionStyle = ""; 1458 GeneralSettings.Navigation.SelectionWeight = GetInteger("Item.Area.SelectionWeight"); 1459 1460 if (GeneralSettings.Navigation.SelectionMode == "arrow") { 1461 GeneralSettings.Navigation.SelectionStyle = "navbar-arrow"; 1462 } 1463 1464 GeneralSettings.Navigation.Case = GetBoolean("Item.Area.NavigationUppercase"); 1465 1466 GeneralSettings.Navigation.BreadcrumbMode = GetString("Item.Area.NavigationBreadcrumbLayout"); 1467 GeneralSettings.Navigation.BreadcrumbAlign = GetString("Item.Area.NavigationBreadcrumbAlign"); 1468 1469 GeneralSettings.Navigation.LeftmenuMode = GetString("Item.Area.NavigationLeftNavigationMode"); 1470 1471 GeneralSettings.Navigation.ButtonDesign = GetString("Item.Area.NavigationButtonDesign"); 1472 1473 1474 //Background settings 1475 GeneralSettings.Background.Image = GetString("Item.Area.BackgroundImage.Image.Image"); 1476 GeneralSettings.Background.CustomImage = GetString("Item.Area.BackgroundImage.Image.CustomImage"); 1477 GeneralSettings.Background.Color = GetString("Item.Area.BackgroundImage.Color.Color"); 1478 GeneralSettings.Background.GradientColor = GetBoolean("Item.Area.BackroundGradientColor"); 1479 GeneralSettings.Background.GradientPercentage = GetString("Item.Area.GradientPercentage"); 1480 1481 1482 if (@GetString("Item.Area.BackgroundFixed") == "True") 1483 { 1484 GeneralSettings.Background.Position = "fixed"; 1485 } 1486 else 1487 { 1488 GeneralSettings.Background.Position = ""; 1489 } 1490 1491 1492 if (GeneralSettings.Background.Image == "none") 1493 { 1494 GeneralSettings.Background.Style = ""; 1495 } 1496 else if (GeneralSettings.Background.Image == "custom") 1497 { 1498 if (!string.IsNullOrWhiteSpace(GeneralSettings.Background.CustomImage)) 1499 { 1500 GeneralSettings.Background.Style = "background: url('/Admin/Public/GetImage.ashx?width=1920&amp;Crop=1&amp;Compression=75&amp;image=" + GeneralSettings.Background.CustomImage + "') " + GeneralSettings.Background.Position + " !important; "; 1501 } 1502 } 1503 else 1504 { 1505 GeneralSettings.Background.Style = "background: url('/Admin/Public/GetImage.ashx?width=1920&amp;Crop=1&amp;Compression=75&amp;image=/Files/Templates/Designs/Dwsimple/images/background/" + GeneralSettings.Background.Image + "') " + GeneralSettings.Background.Position + " !important; "; 1506 } 1507 1508 1509 //Headings settings 1510 GeneralSettings.Headings.Mode = GetString("Item.Area.AdvHeadingsMode"); 1511 1512 1513 //Site settings 1514 GeneralSettings.Site.Shadow = GetBoolean("Item.Area.BackgroundSiteShadow"); 1515 GeneralSettings.Site.LayoutMode = GetString("Item.Area.LayoutMode"); 1516 1517 if (GeneralSettings.Site.LayoutMode == "boxed"){ 1518 GeneralSettings.Site.LayoutMode = "body-" + GeneralSettings.Site.LayoutMode; 1519 GeneralSettings.Header.Classes += " header-boxed"; 1520 } 1521 1522 1523 //Image settings 1524 GeneralSettings.Images.RoundCorners = GetBoolean("Item.Area.LayoutRoundCorners"); 1525 1526 //Ecommerce settings 1527 GeneralSettings.Ecommerce.EcomListDesign = GetString("Item.Area.EcommerceProductCardDesign"); 1528 GeneralSettings.Ecommerce.EcomCardDesign = GetString("Item.Area.EcommerceProductCardDesign"); 1529 } 1530 1531 public string GetGeneralCSS() 1532 { 1533 string CssString = ""; 1534 int SelectionWeight = GeneralSettings.Navigation.SelectionWeight; 1535 1536 //Site settings 1537 if (GetString("Item.Area.LogoFont.Color.Color") == "#FFF" || GetString("Item.Area.LogoFont.Color.Color") == "#FFFFFF") 1538 { 1539 int offset = ImageHeight()+28; 1540 1541 CssString += @" 1542 .dw-offsetmenu-logo { 1543 color: #333 !important; 1544 }"; 1545 } 1546 1547 if (!string.IsNullOrWhiteSpace(GeneralSettings.Background.Color)) 1548 { 1549 CssString += @" 1550 body { 1551 background-color: " + GeneralSettings.Background.Color + @"; 1552 background-size: cover; 1553 }"; 1554 } 1555 1556 if (GeneralSettings.Background.GradientColor) 1557 { 1558 CssString += @" 1559 body { 1560 background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1561 background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1562 background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1563 background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1564 background: linear-gradient(to top, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1565 background-attachment: fixed; 1566 background-color: " + GeneralSettings.Background.Color + @" !important; 1567 }"; 1568 } 1569 1570 if (GeneralSettings.Site.Shadow) 1571 { 1572 CssString += @" 1573 .shad { 1574 -webkit-box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1575 -moz-box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1576 box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1577 }"; 1578 } 1579 1580 //Image settings 1581 if (GeneralSettings.Images.RoundCorners) 1582 { 1583 CssString += @" 1584 .content-image { 1585 border-radius: 6px; 1586 -webkit-border-radius: 6px; 1587 -moz-border-radius: 6px; 1588 }"; 1589 } 1590 1591 //Navbar and header custom settings 1592 if (GeneralSettings.Header.Mode == "cover") 1593 { 1594 CssString += @" 1595 .navbar-wp { 1596 background-color: none !important; 1597 }"; 1598 1599 if (!GeneralSettings.Header.Show || GeneralSettings.Header.Mode == "mobile") 1600 { 1601 CssString += @" 1602 .header-cover .navbar-wp { 1603 top: 0px !important; 1604 }"; 1605 } 1606 } 1607 else 1608 { 1609 if (GeneralSettings.Header.Show) 1610 { 1611 CssString += @" 1612 .navbar-wp.affix .navbar-nav > li > a { 1613 padding: 16px 16px !important; 1614 }"; 1615 } 1616 } 1617 1618 if (GeneralSettings.Header.Background == "colorline") 1619 { 1620 CssString += @" 1621 .navbar-wp, .navbar-wp.affix { 1622 border-bottom: 4px solid " + ColorSettings.Color.Primary + @" !important; 1623 } 1624 1625 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1626 background-color: #FFF; 1627 color: #333; 1628 } 1629 1630 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1631 color: " + ColorSettings.Color.NavbarFont + @"; 1632 } 1633 1634 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1635 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1636 }"; 1637 } else if (GeneralSettings.Header.Background == "neutral") 1638 { 1639 CssString += @" 1640 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 1641 background-color: #f1f1f1; 1642 } 1643 1644 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1645 color: #333; 1646 } 1647 1648 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1649 color: " + ColorSettings.Color.NavbarFont + @"; 1650 } 1651 1652 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1653 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1654 }"; 1655 } 1656 else if (GeneralSettings.Header.Background == "transparent") 1657 { 1658 CssString += @" 1659 .navbar-wp, .navbar-wp.affix { 1660 background-color: #FFF; 1661 opacity: 0.9; 1662 filter: alpha(opacity=90); /* For IE8 and earlier */ 1663 } 1664 1665 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1666 color: #333; 1667 } 1668 1669 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1670 color: " + ColorSettings.Color.NavbarFont + @"; 1671 } 1672 1673 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1674 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1675 }"; 1676 } 1677 else 1678 { 1679 CssString += @" 1680 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 1681 background-color: " + ColorSettings.Color.NavigationBackground + @"; 1682 color: " + ColorSettings.Color.TopNavigationText + @"; 1683 } 1684 1685 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1686 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1687 }"; 1688 } 1689 1690 if (GeneralSettings.Navigation.SelectionMode == "background" || GeneralSettings.Navigation.SelectionMode == "arrow"){ 1691 CssString += NavbarPosition(false, SelectionWeight); 1692 1693 CssString += @" 1694 .dw-navbar-button > a { 1695 background-color: transparent !important; 1696 } 1697 1698 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1699 background-color: " + ColorSettings.Color.TopNavigationText + @" !important; 1700 }"; 1701 } 1702 1703 if (GeneralSettings.Navigation.SelectionMode == "underline"){ 1704 CssString += NavbarPosition(true); 1705 1706 CssString += ClearBackground(); 1707 1708 CssString += @" 1709 .dw-navbar-button > a span:after { 1710 position: absolute; 1711 content: ''; 1712 left: 0px; 1713 bottom: 0px; 1714 height: " + SelectionWeight + @"px; 1715 width: 100%; 1716 transform: scaleX(0); 1717 transition: all 0.3s ease-in-out 0s; 1718 } 1719 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1720 color: " + ColorSettings.Color.TopNavigationText + @" !important; 1721 } 1722 1723 .dw-navbar-button > a:hover span:after, dw-navbar-button > a:active span:after, dw-navbar-button > a:focus span:after, .active > a span:after { 1724 color: " + ColorSettings.Color.Primary + @" !important; 1725 transform: scaleX(1); 1726 transition: all 0.3s ease-in-out 0s; 1727 }"; 1728 } 1729 1730 if (GeneralSettings.Navigation.SelectionMode == "boxed"){ 1731 CssString += NavbarPosition(true, SelectionWeight); 1732 1733 CssString += @" 1734 .dw-navbar-button > a { 1735 background-color: transparent !important; 1736 } 1737 1738 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1739 background-color: " + ColorSettings.Color.Primary + @" !important; 1740 transition: all 0.3s ease-in-out 0s; 1741 }"; 1742 } 1743 1744 if (GeneralSettings.Navigation.SelectionMode == "border"){ 1745 CssString += NavbarPosition(true, 6, SelectionWeight); 1746 1747 CssString += ClearBackground(); 1748 1749 CssString += @" 1750 .dw-navbar-button > a { 1751 border: " + SelectionWeight + @"px solid transparent !important; transition: None !important; 1752 } 1753 1754 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1755 border-width: " + SelectionWeight + @"px !important; 1756 border-color: " + ColorSettings.Color.Primary + @" !important; 1757 transition: all 0.3s ease-in-out 0s; 1758 }"; 1759 } 1760 1761 if (GeneralSettings.Navigation.SelectionMode == "font"){ 1762 CssString += NavbarPosition(); 1763 1764 CssString += ClearBackground(); 1765 1766 SelectionWeight = (SelectionWeight*100); 1767 1768 CssString += @" 1769 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1770 color: " + ColorSettings.Color.Primary + @" !important; 1771 font-weight: " + SelectionWeight + @" !important; 1772 transition: all 0.3s ease-in-out 0s; 1773 }"; 1774 } 1775 1776 if (GeneralSettings.Navigation.Case){ 1777 CssString += @" 1778 .dw-navbar-button > a { 1779 text-transform: uppercase !important; 1780 }"; 1781 } 1782 else 1783 { 1784 CssString += @" 1785 .dw-navbar-button > a { 1786 text-transform: none !important; 1787 }"; 1788 } 1789 1790 1791 //Breadcrumb custom settings 1792 if (GeneralSettings.Navigation.BreadcrumbMode == "light") 1793 { 1794 CssString += @" 1795 .pg-opt { 1796 border-bottom: 0px; 1797 background: none repeat scroll 0% 0% #FFF; 1798 } 1799 1800 .dw-breadcrumb-title { 1801 font-size: 14px !important; 1802 padding: 5px 0px 5px 0px !important; 1803 } 1804 1805 .dw-breadcrumb { 1806 padding: 16px 15px 16px 0 !important; 1807 }"; 1808 } 1809 1810 if (GeneralSettings.Navigation.BreadcrumbMode == "normal") 1811 { 1812 CssString += @" 1813 .dw-breadcrumb-title { 1814 font-size: 14px !important; 1815 padding: 5px 0px 5px 0px !important; 1816 } 1817 1818 .dw-breadcrumb a, .pg-opt .breadcrumb { 1819 padding: 5px !important; 1820 }"; 1821 } 1822 1823 if (GeneralSettings.Navigation.BreadcrumbMode == "large") 1824 { 1825 CssString += @" 1826 .dw-breadcrumb-title { 1827 font-size: 22px !important; 1828 padding: 15px 0px 15px 0px !important; 1829 } 1830 1831 .dw-breadcrumb { 1832 padding: 15px !important; 1833 }"; 1834 } 1835 1836 1837 if (GeneralSettings.Navigation.BreadcrumbAlign == "right") 1838 { 1839 CssString += @" 1840 .dw-breadcrumb { 1841 float: right !important; 1842 }"; 1843 } 1844 else 1845 { 1846 CssString += @" 1847 .dw-breadcrumb { 1848 float: left !important; 1849 }"; 1850 } 1851 1852 1853 //Left menu custom settings 1854 if (GeneralSettings.Navigation.LeftmenuMode == "light" || GeneralSettings.Navigation.LeftmenuMode == "light-color") 1855 { 1856 CssString += @" 1857 ul.dw-categories, ul.dw-categories > li, ul.dw-categories > li > ul > li { 1858 border: 0px solid #EEE; 1859 } 1860 1861 ul.dw-categories > li > ul { 1862 background: none repeat scroll 0% 0% #FFF; 1863 } 1864 1865 ul.dw-categories li a:hover, ul.dw-categories li a:focus, ul.dw-categories li a:active { 1866 background-color: #FFF !important; 1867 color: " + ColorSettings.Color.Primary + @" !important; 1868 } 1869 1870 .list-active, .list-active > a { 1871 background-color: #FFF; 1872 color: " + ColorSettings.Color.Primary + @" !important; 1873 } 1874 1875 .list-open-active { 1876 background-color: #FFF; 1877 color: " + ColorSettings.Color.Primary + @" !important; 1878 }"; 1879 } 1880 1881 if (GeneralSettings.Navigation.LeftmenuMode == "lines") 1882 { 1883 CssString += @" 1884 ul.dw-categories > li { 1885 border-bottom: 1px solid #EEE; 1886 } 1887 1888 ul.dw-categories { 1889 border: 0px solid #EEE; 1890 } 1891 1892 ul.dw-categories > li > ul { 1893 background: none repeat scroll 0% 0% #FFF; 1894 } 1895 1896 ul.dw-categories li a:hover, a:focus, a:active { 1897 background-color: #FFF !important; 1898 color: " + ColorSettings.Color.Primary + @" !important; 1899 } 1900 1901 .list-active, .list-active > a { 1902 background-color: #FFF; 1903 color: " + ColorSettings.Color.Primary + @" !important; 1904 } 1905 1906 .list-open-active { 1907 background-color: #FFF; 1908 color: " + ColorSettings.Color.Primary + @" !important; 1909 }"; 1910 } 1911 1912 if (GeneralSettings.Navigation.LeftmenuMode == "boxed") 1913 { 1914 CssString += @" 1915 ul.dw-categories, ul.dw-categories > li, ul.dw-categories > li > ul > li { 1916 border: 0px solid #EEE; 1917 } 1918 1919 .list-active, .list-active > a { 1920 background-color: " + ColorSettings.Color.Primary + @" !important; 1921 color: #FFF; 1922 }"; 1923 } 1924 1925 if (GeneralSettings.Navigation.LeftmenuMode == "border") 1926 { 1927 CssString += @" 1928 ul.dw-categories > li { 1929 border: 1px solid #EEE; 1930 } 1931 1932 ul.dw-categories > li > ul > li { 1933 border-top: 1px solid #EEE; 1934 } 1935 1936 .list-active, .list-active > a { 1937 background-color: " + ColorSettings.Color.Primary + @" !important; 1938 color: #FFF; 1939 }"; 1940 } 1941 1942 if (GeneralSettings.Navigation.LeftmenuMode == "light-color") 1943 { 1944 CssString += @" 1945 ul.dw-categories li a:hover, ul.dw-categories a:focus, ul.dw-categories a:active { 1946 border-left: 6px solid " + ColorSettings.Color.Primary + @"; 1947 } 1948 1949 ul.dw-categories .M2 > li > a:hover, ul.dw-categories .M2 > li > a:focus, ul.dw-categories .M2 > li > a:active, ul.dw-categories .M2 > .list-active > a { 1950 padding-left: 20px; 1951 } 1952 1953 ul.dw-categories .M3 > li > a:hover, ul.dw-categories .M3 > li > a:focus, ul.dw-categories .M3 > li > a:active, ul.dw-categories .M3 > .list-active > a { 1954 padding-left: 30px; 1955 } 1956 1957 ul.dw-categories .M4 > li > a:hover, ul.dw-categories .M4 > li > a:focus, ul.dw-categories .M4 > li > a:active, ul.dw-categories .M4 > .list-active > a { 1958 padding-left: 40px; 1959 } 1960 1961 ul.dw-categories .M5 > li > a:hover, ul.dw-categories .M5 > li > a:focus, ul.dw-categories .M5 > li > a:active, ul.dw-categories .M5 > .list-active > a { 1962 padding-left: 50px; 1963 } 1964 1965 ul.dw-categories .M6 > li > a:hover, ul.dw-categories .M6 > li > a:focus, ul.dw-categories .M6 > li > a:active, ul.dw-categories .M6 > .list-active > a { 1966 padding-left: 50px; 1967 } 1968 1969 ul.dw-categories .M7 > li > a:hover, ul.dw-categories .M7 > li > a:focus, ul.dw-categories .M7 > li > a:active, ul.dw-categories .M7 > .list-active > a { 1970 padding-left: 50px; 1971 } 1972 1973 ul.dw-categories .M8 > li > a:hover, ul.dw-categories .M8 > li > a:focus, ul.dw-categories .M8 > li > a:active, ul.dw-categories .M8 > .list-active > a { 1974 padding-left: 50px; 1975 } 1976 1977 ul.dw-categories .list-active > a { 1978 border-left: 6px solid " + ColorSettings.Color.Primary + @"; 1979 } 1980 1981 .btn-dw:hover, .btn-dw:focus, .btn-dw:active { 1982 1983 }"; 1984 } 1985 1986 1987 //Buttons custom designs 1988 if (GeneralSettings.Navigation.ButtonDesign == "light-rounded") 1989 { 1990 CssString += @" 1991 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1992 border-width: 0px; 1993 } 1994 1995 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1996 background-color: " + ColorSettings.Color.Secondary + @"; 1997 color: #FFF; 1998 border-width: 0px; 1999 } 2000 2001 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 2002 background-color: " + ColorSettings.Color.Primary + @"; 2003 color: #FFF; 2004 border-width: 0px; 2005 } 2006 2007 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2008 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2009 color: #FFF; 2010 border-width: 0px; 2011 }"; 2012 } 2013 2014 if (GeneralSettings.Navigation.ButtonDesign == "corners") 2015 { 2016 CssString += @" 2017 .btn-dw-primary, .btn-dw-secondary, btn-dw-cart , .btn-dw-cart { 2018 border-radius: 0px !important; 2019 border-width: 0px; 2020 } 2021 2022 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 2023 background-color: " + ColorSettings.Color.Secondary + @"; 2024 color: #FFF; 2025 border-width: 0px; 2026 } 2027 2028 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 2029 background-color: " + ColorSettings.Color.Primary + @"; 2030 color: #FFF; 2031 border-width: 0px; 2032 } 2033 2034 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2035 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2036 color: #FFF; 2037 border-width: 0px; 2038 }"; 2039 } 2040 2041 if (GeneralSettings.Navigation.ButtonDesign == "round") 2042 { 2043 CssString += @" 2044 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 2045 padding: 5px 15px; 2046 border-radius: 200px !important; 2047 border-width: 0px !important; 2048 } 2049 2050 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 2051 background-color: " + ColorSettings.Color.Secondary + @"; 2052 color: #FFF; 2053 border-width: 0px !important; 2054 } 2055 2056 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 2057 background-color: " + ColorSettings.Color.Primary + @"; 2058 color: #FFF; 2059 border-width: 0px !important; 2060 } 2061 2062 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2063 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2064 color: #FFF; 2065 border-width: 0px !important; 2066 }"; 2067 } 2068 2069 if (GeneralSettings.Navigation.ButtonDesign == "border") 2070 { 2071 CssString += @" 2072 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 2073 background-color: transparent; 2074 } 2075 2076 .btn-dw-primary { 2077 border-width: 4px; 2078 padding: 3px 10px; 2079 color: " + ColorSettings.Color.Primary + @"; 2080 } 2081 2082 .btn-dw-secondary { 2083 border-width: 2px; 2084 color: " + ColorSettings.Color.Secondary + @"; 2085 } 2086 2087 .btn-dw-cart { 2088 border-width: 4px; 2089 padding: 3px 10px; 2090 color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2091 } 2092 2093 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 2094 background-color: " + ColorSettings.Color.Primary + @"; 2095 border-width: 4px; 2096 padding: 3px 10px; 2097 border-color: " + ColorSettings.Color.Primary + @"; 2098 color: #FFF; 2099 } 2100 2101 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 2102 background-color: " + ColorSettings.Color.Primary + @"; 2103 border-width: 2px; 2104 color: #FFF; 2105 border-color: #FFF; 2106 } 2107 2108 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2109 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2110 border-width: 4px; 2111 padding: 3px 10px; 2112 border-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2113 color: #FFF; 2114 }"; 2115 } 2116 2117 if (GeneralSettings.Navigation.ButtonDesign == "border-sharp" || GeneralSettings.Navigation.ButtonDesign == "border-round") 2118 { 2119 CssString += @" 2120 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 2121 background-color: transparent; 2122 } 2123 2124 .btn-dw-primary { 2125 border-width: 4px; 2126 padding: 3px 15px; 2127 color: " + ColorSettings.Color.Primary + @"; 2128 } 2129 2130 .btn-dw-secondary { 2131 border-width: 2px; 2132 padding: 5px 15px; 2133 color: " + ColorSettings.Color.Secondary + @"; 2134 } 2135 2136 .btn-dw-cart { 2137 border-width: 4px; 2138 padding: 3px 15px; 2139 color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2140 } 2141 2142 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 2143 background-color: " + ColorSettings.Color.Primary + @"; 2144 border-width: 4px; 2145 color: #FFF; 2146 padding: 3px 15px; 2147 border-color: " + ColorSettings.Color.Primary + @"; 2148 } 2149 2150 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 2151 background-color: " + ColorSettings.Color.Primary + @"; 2152 border-width: 2px; 2153 color: #FFF; 2154 padding: 5px 15px; 2155 border-color: #FFF; 2156 } 2157 2158 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2159 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2160 border-width: 4px; 2161 color: #FFF; 2162 padding: 3px 15px; 2163 border-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 2164 }"; 2165 } 2166 2167 if (GeneralSettings.Navigation.ButtonDesign == "border-sharp") 2168 { 2169 CssString += @" 2170 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart, .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active, .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active, .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2171 border-radius: 0px !important; 2172 }"; 2173 } 2174 2175 if (GeneralSettings.Navigation.ButtonDesign == "border-round") 2176 { 2177 CssString += @" 2178 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart, .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active, .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active, .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 2179 border-radius: 200px !important; 2180 }"; 2181 } 2182 2183 2184 //Headings custom settings 2185 if (GeneralSettings.Headings.Mode == "underline") 2186 { 2187 CssString += @" 2188 .dw-section-title { 2189 border-bottom: 2px solid; 2190 margin-bottom: 15px; 2191 }"; 2192 } 2193 2194 if (GeneralSettings.Headings.Mode == "boxed" || GeneralSettings.Headings.Mode == "boxed-line") 2195 { 2196 CssString += @" 2197 .dw-section-title span { 2198 background-color: " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 2199 display: inline-block; 2200 padding: 8px 16px; 2201 color: #FFF; 2202 }"; 2203 2204 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 2205 { 2206 CssString += @" 2207 .dw-section-title { 2208 background-color: " + ColorSettings.Color.Primary + @"; 2209 }"; 2210 } 2211 } 2212 2213 if (GeneralSettings.Headings.Mode == "boxed-line") 2214 { 2215 CssString += @" 2216 .dw-section-title span { 2217 margin-bottom: 2px; 2218 } 2219 2220 .dw-section-title { 2221 border-bottom: 2px solid " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 2222 margin-bottom: 10px; 2223 }"; 2224 2225 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 2226 { 2227 CssString += @" 2228 .dw-section-title { 2229 border-bottom: 2px solid " + ColorSettings.Color.Primary + @"; 2230 }"; 2231 } 2232 } 2233 2234 if (GeneralSettings.Headings.Mode == "outline") 2235 { 2236 CssString += @" 2237 .dw-section-title { 2238 color: #FFF; 2239 text-shadow: 2240 -1px -1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 2241 1px -1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 2242 -1px 1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 2243 1px 1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 2244 }"; 2245 2246 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 2247 { 2248 CssString += @" 2249 .dw-section-title { 2250 text-shadow: 2251 -1px -1px 0 #1A1A1A, 2252 1px -1px 0 #1A1A1A, 2253 -1px 1px 0 #1A1A1A, 2254 1px 1px 0 #1A1A1A; 2255 }"; 2256 } 2257 } 2258 2259 if (GeneralSettings.Headings.Mode == "backline") 2260 { 2261 CssString += @" 2262 .dw-section-title { 2263 margin-bottom: 30px; 2264 } 2265 2266 .dw-section-title span::after { 2267 border-bottom: 5px solid #003A6F; 2268 width: 160px; 2269 content: ''; 2270 display: block; 2271 position: relative; 2272 margin-top: 10px; 2273 }"; 2274 } 2275 2276 if (GeneralSettings.Headings.Mode == "topbottomline") 2277 { 2278 CssString += @" 2279 H1.dw-section-title, 2280 H2.dw-section-title, 2281 H3.dw-section-title, 2282 H4.dw-section-title, 2283 H5.dw-section-title { 2284 border-top: 2px solid; 2285 border-bottom: 2px solid; 2286 padding: 10px 0; 2287 height: auto; 2288 }"; 2289 } 2290 2291 if (GeneralSettings.Ecommerce.EcomCardDesign == "one") 2292 { 2293 2294 } 2295 2296 if (GeneralSettings.Ecommerce.EcomCardDesign == "two") 2297 { 2298 CssString += @" 2299 .product { 2300 border: 1px solid #E5E5E5; 2301 }"; 2302 } 2303 2304 return CssString; 2305 } 2306 2307 private string ClearBackground() { 2308 string CssString = ""; 2309 2310 CssString += @" 2311 .dw-navbar-button > a { 2312 background-color: rgba(0, 0, 0, 0.0) !important; 2313 } 2314 2315 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 2316 background-color: rgba(0, 0, 0, 0.0) !important; 2317 }"; 2318 2319 return CssString; 2320 } 2321 2322 private string NavbarPosition(bool margin=false, int specialpadding=6, int extramargin=0) { 2323 int LogoHeight = 0; 2324 string CssString = ""; 2325 int Centerpos = 0; 2326 2327 if (GeneralSettings.Header.Mode != "solid"){ 2328 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2329 { 2330 LogoHeight = ImageHeight(); 2331 } 2332 else 2333 { 2334 LogoHeight = GetInteger("Item.Area.LogoFont.Size"); 2335 } 2336 } 2337 else 2338 { 2339 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2340 { 2341 LogoHeight = 18; 2342 } 2343 else 2344 { 2345 LogoHeight = GetInteger("Item.Area.LogoFont.Size")-10; 2346 } 2347 } 2348 2349 if (margin == false) 2350 { 2351 Centerpos = (LogoHeight/2) + 6; 2352 2353 CssString += @" 2354 .dw-navbar-button > a, .navbar-wp.affix .navbar-nav > li > a { 2355 padding: " + Centerpos + @"px " + (specialpadding+4) + @"px " + Centerpos + @"px " + (specialpadding+4) + @"px !important; 2356 margin: " + extramargin + @"px " + extramargin + @"px !important; 2357 }"; 2358 } 2359 else 2360 { 2361 Centerpos = ((LogoHeight/2)+6)-(specialpadding+extramargin); 2362 2363 CssString += @" 2364 .dw-navbar-button > a, .navbar-wp.affix .navbar-nav > li > a { 2365 padding: " + specialpadding + @"px " + (specialpadding+4) + @"px " + specialpadding + @"px " + (specialpadding+4) + @"px !important; 2366 margin: " + Centerpos + @"px 4px 0px 4px !important; 2367 }"; 2368 } 2369 2370 return CssString; 2371 } 2372 2373 private int ImageHeight () 2374 { 2375 int LogoHeight = 0; 2376 2377 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GeneralLogo"))) 2378 { 2379 string imageUrl = "http://" + HttpContext.Current.Request.Url.Authority + GetString("Item.Area.GeneralLogo"); 2380 2381 WebRequest request = WebRequest.Create(imageUrl); 2382 using (WebResponse response = request.GetResponse()) 2383 using (Image image = Image.FromStream(response.GetResponseStream())) 2384 { 2385 LogoHeight = image.Height; 2386 } 2387 } 2388 else 2389 { 2390 LogoHeight = 38; 2391 } 2392 2393 return LogoHeight; 2394 } 2395 2396 #line default 2397 #line hidden 2398 2399 2400 #line 2203 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2401 2402 public static string RemoveWhiteSpaceFromStylesheets(string body) 2403 { 2404 body = Regex.Replace(body, @"[a-zA-Z]+#", "#"); 2405 body = Regex.Replace(body, @"[\n\r]+\s*", string.Empty); 2406 body = Regex.Replace(body, @"\s+", " "); 2407 body = Regex.Replace(body, @"\s?([:,;{}])\s?", "$1"); 2408 body = body.Replace(";}", "}"); 2409 body = Regex.Replace(body, @"([\s:]0)(px|pt|%|em)", "$1"); 2410 // Remove comments from CSS 2411 body = Regex.Replace(body, @"/\*[\d\D]*?\*/", string.Empty); 2412 return body; 2413 } 2414 2415 #line default 2416 #line hidden 2417 2418 2419 public RazorEngine_8bb80cb95ec84a1cb022fabc08c07aee() { 2420 } 2421 2422 public override void Execute() { 2423 WriteLiteral("\r\n\r\n"); 2424 2425 WriteLiteral("\r\n\r\n\r\n\r\n\r\n"); 2426 2427 WriteLiteral("\r\n<!DOCTYPE html>\r\n<html"); 2428 2429 WriteLiteral(" lang=\"en\""); 2430 2431 WriteLiteral(">\r\n<head>\r\n <meta"); 2432 2433 WriteLiteral(" charset=\"utf-8\""); 2434 2435 WriteLiteral(">\r\n <title>"); 2436 2437 2438 #line 211 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2439 Write(GetValue("Title")); 2440 2441 2442 #line default 2443 #line hidden 2444 WriteLiteral("</title>\r\n"); 2445 2446 2447 #line 212 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2448 Write(GetValue("MetaTags")); 2449 2450 2451 #line default 2452 #line hidden 2453 WriteLiteral("\r\n"); 2454 2455 2456 #line 213 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2457 Write(GetValue("CopyRightNotice")); 2458 2459 2460 #line default 2461 #line hidden 2462 WriteLiteral("\r\n\r\n \r\n <meta"); 2463 2464 WriteLiteral(" name=\"viewport\""); 2465 2466 WriteLiteral(" content=\"width=device-width, initial-scale=1.0, maximum-scale=1\""); 2467 2468 WriteLiteral(">\r\n \r\n \r\n\t<meta"); 2469 2470 WriteLiteral(" name=\"owner\""); 2471 2472 WriteLiteral(" content=\" GooGhywoiu9839t543j0s7543uw1 - pls add r.weaver@enotriacoe.com to GA a" + 2473 "ccount 9345790 with ‘Manage Users and Edit’ permissions - date 8 June 2021.\""); 2474 2475 WriteLiteral("> \r\n"); 2476 2477 2478 #line 220 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2479 2480 2481 #line default 2482 #line hidden 2483 2484 #line 220 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2485 2486 string MetaDescription = GetString("Meta.Description"); 2487 string MetaKeywords = GetString("Meta.Keywords"); 2488 2489 2490 #line default 2491 #line hidden 2492 WriteLiteral(@" 2493 2494 2495 2496 2497 <!-- Google Tag Manager --> 2498 <script> 2499 (function (w, d, s, l, i) { 2500 w[l] = w[l] || []; w[l].push({ 2501 'gtm.start': 2502 new Date().getTime(), event: 'gtm.js' 2503 }); var f = d.getElementsByTagName(s)[0], 2504 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 2505 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 2506 })(window, document, 'script', 'dataLayer', 'GTM-N4PBTH2');</script> 2507 <!-- End Google Tag Manager --> 2508 2509 2510 <!-- Facebook Admin --> 2511 "); 2512 2513 2514 #line 242 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2515 2516 2517 #line default 2518 #line hidden 2519 2520 #line 242 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2521 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FacebookCommendAdmin"))) 2522 { 2523 string fbadmin = GetString("Item.Area.FacebookCommendAdmin"); 2524 2525 2526 #line default 2527 #line hidden 2528 WriteLiteral(" <meta"); 2529 2530 WriteLiteral(" property=\"fb:admins\""); 2531 2532 WriteAttribute("content", Tuple.Create(" content=\"", 8572), Tuple.Create("\"", 8590) 2533 2534 #line 245 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2535 , Tuple.Create(Tuple.Create("", 8582), Tuple.Create<System.Object, System.Int32>(fbadmin 2536 2537 #line default 2538 #line hidden 2539 , 8582), false) 2540 ); 2541 2542 WriteLiteral(">\r\n"); 2543 2544 2545 #line 246 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2546 } 2547 2548 2549 #line default 2550 #line hidden 2551 WriteLiteral("\r\n <!-- Essential styles -->\r\n <link"); 2552 2553 WriteLiteral(" rel=\"stylesheet\""); 2554 2555 WriteLiteral(" href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css\""); 2556 2557 WriteLiteral(" type=\"text/css\""); 2558 2559 WriteLiteral(">\r\n <link"); 2560 2561 WriteLiteral(" rel=\"stylesheet\""); 2562 2563 WriteLiteral(" href=\"//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\""); 2564 2565 WriteLiteral(" type=\"text/css\""); 2566 2567 WriteLiteral(">\r\n \r\n <link"); 2568 2569 WriteLiteral(" href=\"https://fonts.googleapis.com/css?family=Lato\""); 2570 2571 WriteLiteral(" rel=\"stylesheet\""); 2572 2573 WriteLiteral(">\r\n <link"); 2574 2575 WriteLiteral(" href=\"https://fonts.googleapis.com/css?family=Montserrat\""); 2576 2577 WriteLiteral(" rel=\"stylesheet\""); 2578 2579 WriteLiteral(">\r\n\r\n\r\n\r\n <!-- Mobile menu styles -->\r\n <link"); 2580 2581 WriteLiteral(" href=\"//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/css/jasny-bootstrap" + 2582 ".min.css\""); 2583 2584 WriteLiteral(" rel=\"stylesheet\""); 2585 2586 WriteLiteral(" type=\"text/css\""); 2587 2588 WriteLiteral(" media=\"screen\""); 2589 2590 WriteLiteral(">\r\n\r\n <!-- Favicon -->\r\n"); 2591 2592 2593 #line 261 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2594 2595 2596 #line default 2597 #line hidden 2598 2599 #line 261 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2600 2601 var favicon = @GetString("Item.Area.Favicon"); 2602 2603 2604 #line default 2605 #line hidden 2606 WriteLiteral("\r\n <link"); 2607 2608 WriteAttribute("href", Tuple.Create(" href=\"", 9339), Tuple.Create("\"", 9354) 2609 2610 #line 264 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2611 , Tuple.Create(Tuple.Create("", 9346), Tuple.Create<System.Object, System.Int32>(favicon 2612 2613 #line default 2614 #line hidden 2615 , 9346), false) 2616 ); 2617 2618 WriteLiteral(" rel=\"icon\""); 2619 2620 WriteLiteral(" type=\"image/png\""); 2621 2622 WriteLiteral(">\r\n\r\n <!-- Variables -->\r\n"); 2623 2624 2625 #line 267 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2626 2627 2628 #line default 2629 #line hidden 2630 2631 #line 267 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2632 2633 var attrValue = ""; 2634 string currentpageid = GetString("DwPageID"); 2635 string firstpageid = GetString("DwAreaFirstActivePageID"); 2636 string productsPageId = GetString("Item.Area.ProductsPageId"); 2637 string productsJsonID = GetString("Item.Area.Portfolio_JSON_PageID"); 2638 var primaryColor = GetString("Item.Area.ColorsPrimary.Color.Value"); 2639 string searchplaceholder = Translate("Search our wines", "Search our wines..."); 2640 string wishlistid = GetString("Item.Area.WishListPage"); 2641 string signUpPageId = GetString("Item.Area.SignUpPageId"); 2642 string wishlistloaderid = GetString("Item.Area.WinelistLoaderPageId"); 2643 string impersonationList = GetString("Item.Area.ImpersonationPage"); 2644 string createuser = GetString("Item.Area.AddNewUserPageId"); 2645 var cartid = GetValue("DwAreaCartPageID"); 2646 string searchPageID = GetString("Item.Area.SearchPageId"); 2647 string myaccount = GetString("Item.Area.YourAccount"); 2648 //DateTime areaUpdated = (DateTime)Pageview.Area.get_Value("AreaUpdatedDate"); 2649 DateTime areaUpdated = DateTime.Now; 2650 string cssPath = HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.min.css"); 2651 DateTime lastWriteTime = System.IO.File.GetLastWriteTime(cssPath); 2652 bool writeCss = false; 2653 string css = String.Empty; 2654 int currentUserID = Convert.ToInt32(GetGlobalValue("Global:Extranet.UserID")); 2655 string isLoggedIn = GetGlobalValue("Global:Extranet.UserName"); 2656 var listid = ""; 2657 2658 if (HttpContext.Current.Request.Cookies["selected_list_id"] != null) 2659 { 2660 2661 listid = HttpContext.Current.Request.Cookies["selected_list_id"].Value; 2662 2663 } 2664 2665 2666 var openmodal = ""; 2667 var openmodala = ""; 2668 var modalstyle = ""; 2669 var modalstylea = ""; 2670 var backgroundmodal = "modal-backdrop fade hide"; 2671 var bodyclass = ""; 2672 2673 var cartPageId = GetString("Item.Area.JSONFeedForCart"); 2674 if (isLoggedIn == "") 2675 { 2676 cartid = GetString("Item.Area.Quote_JSON_FeedForCart"); 2677 cartPageId = GetString("Item.Area.Quote_Cart_JSON_PageID"); 2678 } 2679 else 2680 { 2681 bodyclass = "modal-open"; 2682 } 2683 2684 2685 2686 //if (areaUpdated > lastWriteTime) 2687 //{ 2688 // writeCss = true; 2689 //} 2690 2691 if (areaUpdated > lastWriteTime.AddMinutes(5)) 2692 { 2693 writeCss = true; 2694 } 2695 2696 2697 #line default 2698 #line hidden 2699 WriteLiteral("\r\n\r\n <!--FONT SETTINGS-->\r\n"); 2700 2701 2702 #line 333 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2703 2704 2705 #line default 2706 #line hidden 2707 WriteLiteral("\r\n"); 2708 2709 2710 #line 552 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2711 2712 InitFontSettings(); 2713 2714 2715 #line default 2716 #line hidden 2717 WriteLiteral("\r\n\r\n"); 2718 2719 WriteLiteral("\r\n"); 2720 2721 WriteLiteral(" "); 2722 2723 2724 #line 693 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2725 Write(GoogleFonts()); 2726 2727 2728 #line default 2729 #line hidden 2730 WriteLiteral("\r\n\r\n <!-- GENERAL/COLOR SETTINGS -->\r\n"); 2731 2732 2733 #line 696 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2734 2735 2736 #line default 2737 #line hidden 2738 WriteLiteral("\r\n"); 2739 2740 2741 #line 1099 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2742 2743 InitColorSettings(); 2744 2745 2746 #line default 2747 #line hidden 2748 WriteLiteral("\r\n\r\n\r\n\t\r\n"); 2749 2750 2751 #line 1105 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2752 2753 2754 #line default 2755 #line hidden 2756 WriteLiteral("\r\n\r\n"); 2757 2758 WriteLiteral("\r\n\r\n\r\n"); 2759 2760 2761 #line 2190 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2762 2763 InitGeneralSettings(); 2764 2765 2766 #line default 2767 #line hidden 2768 WriteLiteral("\r\n\r\n\r\n"); 2769 2770 2771 #line 2195 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2772 2773 2774 #line default 2775 #line hidden 2776 2777 #line 2195 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2778 if (writeCss) 2779 { 2780 css += FontStylesCSS() + "/*Colors*/" + Environment.NewLine + GetColorSettings() + Environment.NewLine + "/*General*/" + Environment.NewLine + GetGeneralCSS(); 2781 Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(css, HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.css"), false); 2782 Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(RemoveWhiteSpaceFromStylesheets(Dynamicweb.Core.Helpers.TextFileHelper.ReadTextFile(HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.css"))), HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.min.css"), false); 2783 Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(RemoveWhiteSpaceFromStylesheets(css), cssPath, false); 2784 } 2785 2786 2787 #line default 2788 #line hidden 2789 WriteLiteral("\r\n"); 2790 2791 2792 #line 2203 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2793 2794 2795 #line default 2796 #line hidden 2797 WriteLiteral("\r\n <!-- Template styles -->\r\n <link"); 2798 2799 WriteLiteral(" id=\"dwStylesheet\""); 2800 2801 WriteLiteral(" type=\"text/css\""); 2802 2803 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.min.css\""); 2804 2805 WriteLiteral(" rel=\"stylesheet\""); 2806 2807 WriteLiteral(" media=\"screen\""); 2808 2809 WriteLiteral(">\r\n <!--<link rel=\"stylesheet\" type=\"text/css\" href=\"css/print.css\" media=\"pri" + 2810 "nt\">-->\r\n <link"); 2811 2812 WriteLiteral(" rel=\"stylesheet\""); 2813 2814 WriteLiteral(" type=\"text/css\""); 2815 2816 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/app.min.css\""); 2817 2818 WriteLiteral(">\r\n <link"); 2819 2820 WriteLiteral(" rel=\"stylesheet\""); 2821 2822 WriteLiteral(" type=\"text/css\""); 2823 2824 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/style.css\""); 2825 2826 WriteLiteral(">\r\n <link"); 2827 2828 WriteLiteral(" rel=\"stylesheet\""); 2829 2830 WriteLiteral(" type=\"text/css\""); 2831 2832 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/styles.css\""); 2833 2834 WriteLiteral(">\r\n <link"); 2835 2836 WriteLiteral(" rel=\"stylesheet\""); 2837 2838 WriteLiteral(" type=\"text/css\""); 2839 2840 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/product.css\""); 2841 2842 WriteLiteral(">\r\n <link"); 2843 2844 WriteLiteral(" rel=\"stylesheet\""); 2845 2846 WriteLiteral(" type=\"text/css\""); 2847 2848 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/header.css\""); 2849 2850 WriteLiteral(">\r\n"); 2851 2852 2853 #line 2226 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2854 2855 2856 #line default 2857 #line hidden 2858 2859 #line 2226 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2860 string cssAutoPath = "/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.min.css?t=@areaUpdated.Ticks"; 2861 2862 #line default 2863 #line hidden 2864 WriteLiteral("\r\n\r\n <link"); 2865 2866 WriteLiteral(" type=\"text/css\""); 2867 2868 WriteAttribute("href", Tuple.Create(" href=\"", 78080), Tuple.Create("\"", 78099) 2869 2870 #line 2228 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2871 , Tuple.Create(Tuple.Create("", 78087), Tuple.Create<System.Object, System.Int32>(cssAutoPath 2872 2873 #line default 2874 #line hidden 2875 , 78087), false) 2876 ); 2877 2878 WriteLiteral(" rel=\"stylesheet\""); 2879 2880 WriteLiteral(">\r\n\r\n <!-- Analytics code -->\r\n"); 2881 2882 WriteLiteral(" "); 2883 2884 2885 #line 2231 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2886 Write(GetValue("Item.Area.OtherAnalyticsCode")); 2887 2888 2889 #line default 2890 #line hidden 2891 WriteLiteral("\r\n\r\n <script"); 2892 2893 WriteLiteral(" src=\"//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\""); 2894 2895 WriteLiteral("></script>\r\n\r\n"); 2896 2897 2898 #line 2235 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2899 2900 2901 #line default 2902 #line hidden 2903 2904 #line 2235 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2905 if (GeneralSettings.Navigation.IsMegamenu) 2906 { 2907 2908 2909 #line default 2910 #line hidden 2911 WriteLiteral(" <link"); 2912 2913 WriteLiteral(" rel=\"stylesheet\""); 2914 2915 WriteLiteral(" type=\"text/css\""); 2916 2917 WriteLiteral(" href=\"/Files/Templates/Designs/Dwsimple/css/megamenu.css\""); 2918 2919 WriteLiteral(">\r\n"); 2920 2921 2922 #line 2238 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2923 } 2924 2925 2926 #line default 2927 #line hidden 2928 WriteLiteral(" <style"); 2929 2930 WriteLiteral(" type=\"text/css\""); 2931 2932 WriteLiteral(">\r\n"); 2933 2934 WriteLiteral(" "); 2935 2936 2937 #line 2240 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2938 Write(RenderSnippet("producersStyles")); 2939 2940 2941 #line default 2942 #line hidden 2943 WriteLiteral("\r\n"); 2944 2945 WriteLiteral(" "); 2946 2947 2948 #line 2241 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2949 Write(RenderSnippet("styleNewsRow")); 2950 2951 2952 #line default 2953 #line hidden 2954 WriteLiteral("\r\n"); 2955 2956 WriteLiteral(" "); 2957 2958 2959 #line 2242 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2960 Write(RenderSnippet("styleFocusElement")); 2961 2962 2963 #line default 2964 #line hidden 2965 WriteLiteral("\r\n"); 2966 2967 WriteLiteral(" "); 2968 2969 2970 #line 2243 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2971 Write(RenderSnippet("styleCarousel")); 2972 2973 2974 #line default 2975 #line hidden 2976 WriteLiteral("\r\n"); 2977 2978 WriteLiteral(" "); 2979 2980 2981 #line 2244 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2982 Write(RenderSnippet("subMenu")); 2983 2984 2985 #line default 2986 #line hidden 2987 WriteLiteral("\r\n"); 2988 2989 WriteLiteral(" "); 2990 2991 2992 #line 2245 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 2993 Write(RenderSnippet("imagePosition")); 2994 2995 2996 #line default 2997 #line hidden 2998 WriteLiteral("\r\n"); 2999 3000 WriteLiteral(" "); 3001 3002 3003 #line 2246 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3004 Write(RenderSnippet("backgroundColor")); 3005 3006 3007 #line default 3008 #line hidden 3009 WriteLiteral("\r\n"); 3010 3011 WriteLiteral(" "); 3012 3013 3014 #line 2247 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3015 Write(RenderSnippet("styleDescription")); 3016 3017 3018 #line default 3019 #line hidden 3020 WriteLiteral("\r\n"); 3021 3022 WriteLiteral(" "); 3023 3024 3025 #line 2248 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3026 Write(RenderSnippet("styleThreeBoxes")); 3027 3028 3029 #line default 3030 #line hidden 3031 WriteLiteral("\r\n </style>\r\n <script>\r\n\r\n var currentUserId = \""); 3032 3033 3034 #line 2252 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3035 Write(GetGlobalValue("Global:Extranet.UserID")); 3036 3037 3038 #line default 3039 #line hidden 3040 WriteLiteral("\";\r\n </script>\r\n"); 3041 3042 3043 #line 2254 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3044 3045 3046 #line default 3047 #line hidden 3048 3049 #line 2254 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3050 3051 var currentUser = UserAddress.GetUserAddresses(currentUserID); 3052 3053 3054 #line default 3055 #line hidden 3056 WriteLiteral("\r\n"); 3057 3058 3059 #line 2257 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3060 3061 3062 #line default 3063 #line hidden 3064 3065 #line 2257 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3066 3067 var currentUserDefaultAddress = UserAddress.GetUserDefaultUserAddressesCustomFields(currentUserID); 3068 3069 3070 #line default 3071 #line hidden 3072 WriteLiteral("\r\n\r\n"); 3073 3074 3075 #line 2261 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3076 Write(GetValue("Stylesheets")); 3077 3078 3079 #line default 3080 #line hidden 3081 WriteLiteral("\r\n"); 3082 3083 3084 #line 2262 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3085 Write(GetValue("Javascripts")); 3086 3087 3088 #line default 3089 #line hidden 3090 WriteLiteral("\r\n</head>\r\n<body"); 3091 3092 WriteAttribute("style", Tuple.Create(" style=\"", 79262), Tuple.Create("\"", 79303) 3093 3094 #line 2264 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3095 , Tuple.Create(Tuple.Create("", 79270), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Background.Style 3096 3097 #line default 3098 #line hidden 3099 , 79270), false) 3100 ); 3101 3102 WriteLiteral(" id=\"sitecontent\""); 3103 3104 WriteAttribute("class", Tuple.Create(" class=\"", 79321), Tuple.Create("\"", 79339) 3105 3106 #line 2264 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3107 , Tuple.Create(Tuple.Create("", 79329), Tuple.Create<System.Object, System.Int32>(bodyclass 3108 3109 #line default 3110 #line hidden 3111 , 79329), false) 3112 ); 3113 3114 WriteLiteral(">\r\n\r\n <!-- Google Tag Manager (noscript) -->\r\n <noscript>\r\n <iframe"); 3115 3116 WriteLiteral(" src=\"https://www.googletagmanager.com/ns.html?id=GTM-N4PBTH2\""); 3117 3118 WriteLiteral(" height=\"0\""); 3119 3120 WriteLiteral(" width=\"0\""); 3121 3122 WriteLiteral(" style=\"display:none;visibility:hidden\""); 3123 3124 WriteLiteral("></iframe>\r\n </noscript>\r\n <!-- End Google Tag Manager (noscript) -->\r\n\r\n\r\n" + 3125 " <div"); 3126 3127 WriteLiteral(" id=\"fb-root\""); 3128 3129 WriteLiteral(@"></div> 3130 <script> 3131 (function (d, s, id) { 3132 var js, fjs = d.getElementsByTagName(s)[0]; 3133 if (d.getElementById(id)) return; 3134 js = d.createElement(s); js.id = id; 3135 js.src = ""//connect.facebook.net/da_DK/sdk.js#xfbml=1&version=v2.5""; 3136 fjs.parentNode.insertBefore(js, fjs); 3137 }(document, 'script', 'facebook-jssdk')); 3138 </script> 3139 3140 <!-- MODALS --> 3141 "); 3142 3143 3144 #line 2285 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3145 3146 3147 #line default 3148 #line hidden 3149 3150 #line 2285 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3151 3152 string firstPageId = GetString("DwAreaFirstPageID"); 3153 3154 3155 3156 #line default 3157 #line hidden 3158 WriteLiteral(" \r\n\r\n\r\n<div"); 3159 3160 WriteLiteral(" class=\"modal fade\""); 3161 3162 WriteLiteral(" id=\"login\""); 3163 3164 WriteLiteral(" tabindex=\"-1\""); 3165 3166 WriteLiteral(" role=\"dialog\""); 3167 3168 WriteLiteral(" aria-labelledby=\"loginModalLabel\""); 3169 3170 WriteLiteral(" aria-hidden=\"true\""); 3171 3172 WriteLiteral(">\r\n <div"); 3173 3174 WriteLiteral(" class=\"modal-dialog modal-sm\""); 3175 3176 WriteLiteral(">\r\n <div"); 3177 3178 WriteLiteral(" class=\"modal-content\""); 3179 3180 WriteLiteral(">\r\n <div"); 3181 3182 WriteLiteral(" class=\"modal-header\""); 3183 3184 WriteLiteral(">\r\n <h4"); 3185 3186 WriteLiteral(" class=\"modal-title\""); 3187 3188 WriteLiteral(" id=\"loginModalLabel\""); 3189 3190 WriteLiteral(">"); 3191 3192 3193 #line 2295 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3194 Write(Translate("Login", "Login")); 3195 3196 3197 #line default 3198 #line hidden 3199 WriteLiteral("</h4>\r\n"); 3200 3201 3202 #line 2296 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3203 3204 3205 #line default 3206 #line hidden 3207 3208 #line 2296 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3209 if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_error_uk"))) 3210 { 3211 3212 3213 3214 #line default 3215 #line hidden 3216 WriteLiteral(" <p"); 3217 3218 WriteLiteral(" class=\"bg-danger\""); 3219 3220 WriteLiteral(">"); 3221 3222 3223 #line 2299 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3224 Write(GetValue("DW_extranet_error_uk")); 3225 3226 3227 #line default 3228 #line hidden 3229 WriteLiteral("</p>\r\n"); 3230 3231 3232 #line 2300 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3233 } 3234 3235 3236 #line default 3237 #line hidden 3238 WriteLiteral("\r\n </div>\r\n \r\n <form"); 3239 3240 WriteLiteral(" name=\"form\""); 3241 3242 WriteAttribute("action", Tuple.Create(" action=\"", 80837), Tuple.Create("\"", 80875) 3243 , Tuple.Create(Tuple.Create("", 80846), Tuple.Create("/Default.aspx?ID=", 80846), true) 3244 3245 #line 2304 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3246 , Tuple.Create(Tuple.Create("", 80863), Tuple.Create<System.Object, System.Int32>(firstPageId 3247 3248 #line default 3249 #line hidden 3250 , 80863), false) 3251 ); 3252 3253 WriteLiteral(" id=\"loginform\""); 3254 3255 WriteLiteral(" method=\"post\""); 3256 3257 WriteLiteral(">\r\n <div"); 3258 3259 WriteLiteral(" class=\"modal-body\""); 3260 3261 WriteLiteral(">\r\n \r\n <input"); 3262 3263 WriteLiteral(" type=\"hidden\""); 3264 3265 WriteLiteral(" name=\"ID\""); 3266 3267 WriteAttribute("value", Tuple.Create(" value=\"", 81034), Tuple.Create("\"", 81054) 3268 3269 #line 2307 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3270 , Tuple.Create(Tuple.Create("", 81042), Tuple.Create<System.Object, System.Int32>(Pageview.ID 3271 3272 #line default 3273 #line hidden 3274 , 81042), false) 3275 ); 3276 3277 WriteLiteral(">\r\n <input"); 3278 3279 WriteLiteral(" type=\"hidden\""); 3280 3281 WriteLiteral(" name=\"DWExtranetUsernameRemember\""); 3282 3283 WriteLiteral(" value=\"True\""); 3284 3285 WriteLiteral(">\r\n <input"); 3286 3287 WriteLiteral(" type=\"hidden\""); 3288 3289 WriteLiteral(" name=\"DWExtranetPasswordRemember\""); 3290 3291 WriteLiteral(" value=\"True\""); 3292 3293 WriteLiteral(">\r\n <div"); 3294 3295 WriteLiteral(" class=\"form-group\""); 3296 3297 WriteLiteral(">\r\n"); 3298 3299 3300 #line 2311 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3301 3302 3303 #line default 3304 #line hidden 3305 3306 #line 2311 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3307 attrValue = Translate("Enter email", "Enter email"); 3308 var username2 = @GetValue("DWExtranetUsername"); 3309 3310 3311 #line default 3312 #line hidden 3313 WriteLiteral("\r\n\r\n <label"); 3314 3315 WriteLiteral(" for=\"username\""); 3316 3317 WriteLiteral(">"); 3318 3319 3320 #line 2315 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3321 Write(Translate("Email", "Email")); 3322 3323 3324 #line default 3325 #line hidden 3326 WriteLiteral("</label>\r\n <input"); 3327 3328 WriteLiteral(" type=\"text\""); 3329 3330 WriteLiteral(" class=\"form-control\""); 3331 3332 WriteLiteral(" name=\"username\""); 3333 3334 WriteLiteral(" id=\"username\""); 3335 3336 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 81681), Tuple.Create("\"", 81705) 3337 3338 #line 2316 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3339 , Tuple.Create(Tuple.Create("", 81695), Tuple.Create<System.Object, System.Int32>(attrValue 3340 3341 #line default 3342 #line hidden 3343 , 81695), false) 3344 ); 3345 3346 WriteAttribute("value", Tuple.Create(" value=\"", 81706), Tuple.Create("\"", 81724) 3347 3348 #line 2316 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3349 , Tuple.Create(Tuple.Create("", 81714), Tuple.Create<System.Object, System.Int32>(username2 3350 3351 #line default 3352 #line hidden 3353 , 81714), false) 3354 ); 3355 3356 WriteLiteral(" required=\"\""); 3357 3358 WriteLiteral(">\r\n </div>\r\n <div"); 3359 3360 WriteLiteral(" class=\"form-group\""); 3361 3362 WriteLiteral(">\r\n"); 3363 3364 3365 #line 2319 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3366 3367 3368 #line default 3369 #line hidden 3370 3371 #line 2319 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3372 attrValue = Translate("Enter password", "Enter password"); 3373 3374 3375 #line default 3376 #line hidden 3377 WriteLiteral("\r\n\r\n <label"); 3378 3379 WriteLiteral(" for=\"password\""); 3380 3381 WriteLiteral(">"); 3382 3383 3384 #line 2322 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3385 Write(Translate("Password", "Password")); 3386 3387 3388 #line default 3389 #line hidden 3390 WriteLiteral("</label>\r\n <input"); 3391 3392 WriteLiteral(" type=\"password\""); 3393 3394 WriteLiteral(" class=\"form-control\""); 3395 3396 WriteLiteral(" name=\"password\""); 3397 3398 WriteLiteral(" id=\"password\""); 3399 3400 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 82141), Tuple.Create("\"", 82165) 3401 3402 #line 2323 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3403 , Tuple.Create(Tuple.Create("", 82155), Tuple.Create<System.Object, System.Int32>(attrValue 3404 3405 #line default 3406 #line hidden 3407 , 82155), false) 3408 ); 3409 3410 WriteLiteral(" required=\"\""); 3411 3412 WriteLiteral(">\r\n <p>&nbsp;</p>\r\n <a"); 3413 3414 WriteLiteral(" class=\"pull-left\""); 3415 3416 WriteAttribute("href", Tuple.Create(" href=\'", 82272), Tuple.Create("\'", 82352) 3417 , Tuple.Create(Tuple.Create("", 82279), Tuple.Create("/Default.aspx?ID=", 82279), true) 3418 3419 #line 2325 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3420 , Tuple.Create(Tuple.Create("", 82296), Tuple.Create<System.Object, System.Int32>(Pageview.Area.Item["SignInPageId"] 3421 3422 #line default 3423 #line hidden 3424 , 82296), false) 3425 , Tuple.Create(Tuple.Create("", 82331), Tuple.Create("&LoginAction=Recovery", 82331), true) 3426 ); 3427 3428 WriteLiteral(">"); 3429 3430 3431 #line 2325 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3432 Write(Translate("Forgot your password?", "Forgot your password?")); 3433 3434 3435 #line default 3436 #line hidden 3437 WriteLiteral("</a>\r\n &nbsp;\r\n </div>\r\n " + 3438 " </div>\r\n <div"); 3439 3440 WriteLiteral(" class=\"modal-footer\""); 3441 3442 WriteLiteral(">\r\n <div"); 3443 3444 WriteLiteral(" class=\"row\""); 3445 3446 WriteLiteral(">\r\n <div"); 3447 3448 WriteLiteral(" class=\"col-md-12\""); 3449 3450 WriteLiteral(">\r\n <div"); 3451 3452 WriteLiteral(" class=\"checkbox pull-left\""); 3453 3454 WriteLiteral(">\r\n <label>\r\n " + 3455 " <input"); 3456 3457 WriteLiteral(" type=\"checkbox\""); 3458 3459 WriteLiteral(" name=\"Autologin\""); 3460 3461 WriteLiteral(" checked=\"checked\""); 3462 3463 WriteLiteral(" value=\"True\""); 3464 3465 WriteLiteral("> "); 3466 3467 3468 #line 2334 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3469 Write(Translate("Remember me", "Remember me")); 3470 3471 3472 #line default 3473 #line hidden 3474 WriteLiteral("\r\n </label>\r\n <" + 3475 "/div>\r\n <button"); 3476 3477 WriteLiteral(" type=\"submit\""); 3478 3479 WriteLiteral(" class=\"btn btn-xs btn-base pull-right\""); 3480 3481 WriteLiteral(">"); 3482 3483 3484 #line 2337 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3485 Write(Translate("Sign in", "Sign in")); 3486 3487 3488 #line default 3489 #line hidden 3490 WriteLiteral("</button>\r\n </div>\r\n </div>\r\n " + 3491 " </div> \r\n </form>\r\n " + 3492 "</div>\r\n </div>\r\n </div>\r\n \r\n<div"); 3493 3494 WriteLiteral(" class=\"modal fade\""); 3495 3496 WriteLiteral(" id=\"address\""); 3497 3498 WriteLiteral(" tabindex=\"-1\""); 3499 3500 WriteLiteral(" role=\"dialog\""); 3501 3502 WriteLiteral(" aria-labelledby=\"myModalLabel\""); 3503 3504 WriteLiteral(" aria-hidden=\"true\""); 3505 3506 WriteLiteral(">\r\n <div"); 3507 3508 WriteLiteral(" class=\"modal-dialog modal-md\""); 3509 3510 WriteLiteral(">\r\n <div"); 3511 3512 WriteLiteral(" class=\"modal-content\""); 3513 3514 WriteLiteral(">\r\n <div"); 3515 3516 WriteLiteral(" class=\"modal-header\""); 3517 3518 WriteLiteral(">\r\n <h4"); 3519 3520 WriteLiteral(" class=\"modal-title\""); 3521 3522 WriteLiteral(" id=\"myModalLabel\""); 3523 3524 WriteLiteral(">"); 3525 3526 3527 #line 2350 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3528 Write(Translate("Addresses list", "Addresses list")); 3529 3530 3531 #line default 3532 #line hidden 3533 WriteLiteral("</h4>\r\n </div>\r\n <div"); 3534 3535 WriteLiteral(" class=\"modal-body\""); 3536 3537 WriteLiteral(">\r\n"); 3538 3539 3540 #line 2353 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3541 3542 3543 #line default 3544 #line hidden 3545 3546 #line 2353 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3547 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 3548 { 3549 var numberOfAddresses = currentUser.Count<UserAddress>(); 3550 3551 3552 #line default 3553 #line hidden 3554 WriteLiteral(" <form"); 3555 3556 WriteLiteral(" class=\"form\""); 3557 3558 WriteLiteral(" name=\"modalAddress\""); 3559 3560 WriteLiteral(" method=\"post\""); 3561 3562 WriteLiteral(">\r\n <div"); 3563 3564 WriteLiteral(" class=\"form-group\""); 3565 3566 WriteLiteral(">\r\n <label"); 3567 3568 WriteLiteral(" for=\"selectaddress\""); 3569 3570 WriteLiteral(">"); 3571 3572 3573 #line 2358 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3574 Write(Translate("Select address", "Select address")); 3575 3576 3577 #line default 3578 #line hidden 3579 WriteLiteral("</label>\r\n <select"); 3580 3581 WriteLiteral(" name=\"EcomOrderDeliveryAddress2\""); 3582 3583 WriteLiteral(" id=\"selectaddress\""); 3584 3585 WriteLiteral(" class=\"form-control\""); 3586 3587 WriteLiteral(">\r\n"); 3588 3589 3590 #line 2360 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3591 3592 3593 #line default 3594 #line hidden 3595 3596 #line 2360 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3597 3598 var userID = GetInteger("Ecom:Order.Customer.AccessUserID"); 3599 3600 3601 #line default 3602 #line hidden 3603 WriteLiteral("\r\n\r\n"); 3604 3605 3606 #line 2364 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3607 3608 3609 #line default 3610 #line hidden 3611 3612 #line 2364 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3613 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Order.Customer.Address"))) 3614 { 3615 var navListId = ""; 3616 foreach (var def in currentUserDefaultAddress) 3617 { 3618 if (def.CustomField.SystemName == "AccessUserAddress_AccessUserWineListID") 3619 { 3620 3621 navListId = def.Value.ToString(); 3622 } 3623 } 3624 var dic = DynamicwebSoftware.Enotria.CustomSolution.ActiveListIdMacro.GetFavoriteListIds(navListId); 3625 var listId = ""; 3626 if (dic.ContainsKey(navListId)) 3627 { 3628 listId = dic[navListId]; 3629 } 3630 3631 } 3632 3633 3634 #line default 3635 #line hidden 3636 WriteLiteral("\r\n"); 3637 3638 3639 #line 2384 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3640 3641 3642 #line default 3643 #line hidden 3644 3645 #line 2384 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3646 foreach (var add in currentUser) 3647 { 3648 string name = add.Name; 3649 string address = add.Address; 3650 var navListId = ""; 3651 int addressid = add.ID; 3652 bool defaultAdd = add.IsDefault; 3653 foreach (Dynamicweb.Security.UserManagement.Common.CustomFields.CustomFieldValue val in add.CustomFieldValues) 3654 { 3655 //<script>alert("@val.CustomField.SystemName")</script> 3656 if (val.CustomField.SystemName == "AccessUserAddress_AccessUserWineListID") 3657 { 3658 3659 navListId = val.Value.ToString(); 3660 //<script>alert("@navListId")</script> 3661 } 3662 } 3663 3664 var dic = DynamicwebSoftware.Enotria.CustomSolution.ActiveListIdMacro.GetFavoriteListIds(navListId); 3665 //<script>alert("@dic.Count()")</script> 3666 var listId = ""; 3667 foreach(string test in dic.Keys) 3668 { 3669 3670 3671 #line default 3672 #line hidden 3673 WriteLiteral(" "); 3674 3675 3676 #line 2407 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3677 Write(test); 3678 3679 3680 #line default 3681 #line hidden 3682 WriteLiteral("\r\n"); 3683 3684 3685 #line 2408 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3686 } 3687 if (dic.ContainsKey(navListId)) 3688 { 3689 listId = dic[navListId]; 3690 //<script>alert("@listId")</script> 3691 } 3692 else 3693 { 3694 // <script>alert("Fail")</script> 3695 } 3696 3697 3698 var addAddress2Text = ""; 3699 var addZipText = ""; 3700 var output = ""; 3701 3702 if (!string.IsNullOrWhiteSpace(add.Company)) 3703 { 3704 addAddress2Text = WrapMethods.Truncate(add.Company, 80); 3705 addZipText = add.Zip; 3706 output = addAddress2Text + ", " + addZipText; 3707 3708 } 3709 else 3710 { 3711 addAddress2Text = WrapMethods.Truncate(add.Address, 80); 3712 addZipText = add.Zip; 3713 output = addAddress2Text + ", " + addZipText; 3714 3715 } 3716 3717 if (!defaultAdd) 3718 { 3719 3720 3721 #line default 3722 #line hidden 3723 WriteLiteral(" <option"); 3724 3725 WriteAttribute("value", Tuple.Create(" value=\"", 88764), Tuple.Create("\"", 88782) 3726 3727 #line 2441 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3728 , Tuple.Create(Tuple.Create("", 88772), Tuple.Create<System.Object, System.Int32>(addressid 3729 3730 #line default 3731 #line hidden 3732 , 88772), false) 3733 ); 3734 3735 WriteLiteral(" data-listid=\""); 3736 3737 3738 #line 2441 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3739 Write(listId); 3740 3741 3742 #line default 3743 #line hidden 3744 WriteLiteral("\""); 3745 3746 WriteLiteral(" data-default=\"\""); 3747 3748 WriteLiteral(">\r\n \r\n"); 3749 3750 WriteLiteral(" "); 3751 3752 3753 #line 2443 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3754 Write(output); 3755 3756 3757 #line default 3758 #line hidden 3759 WriteLiteral("\r\n </option>\r\n"); 3760 3761 3762 #line 2445 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3763 } 3764 else 3765 { 3766 if (numberOfAddresses <= 1) 3767 { 3768 3769 3770 #line default 3771 #line hidden 3772 WriteLiteral(" <option"); 3773 3774 WriteAttribute("value", Tuple.Create(" value=\"", 89346), Tuple.Create("\"", 89364) 3775 3776 #line 2450 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3777 , Tuple.Create(Tuple.Create("", 89354), Tuple.Create<System.Object, System.Int32>(addressid 3778 3779 #line default 3780 #line hidden 3781 , 89354), false) 3782 ); 3783 3784 WriteLiteral(" data-listid=\""); 3785 3786 3787 #line 2450 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3788 Write(listId); 3789 3790 3791 #line default 3792 #line hidden 3793 WriteLiteral("\""); 3794 3795 WriteLiteral(" data-default=\"\""); 3796 3797 WriteLiteral(">\r\n"); 3798 3799 WriteLiteral(" "); 3800 3801 3802 #line 2451 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3803 Write(output); 3804 3805 3806 #line default 3807 #line hidden 3808 WriteLiteral(" \r\n </option>\r\n"); 3809 3810 3811 #line 2453 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3812 } 3813 3814 } 3815 } 3816 3817 3818 #line default 3819 #line hidden 3820 WriteLiteral(" </select>\r\n </div>\r\n " + 3821 " <div"); 3822 3823 WriteLiteral(" class=\"row\""); 3824 3825 WriteLiteral(">&nbsp;</div>\r\n <div"); 3826 3827 WriteLiteral(" class=\"form-group text-right\""); 3828 3829 WriteLiteral(">\r\n <button"); 3830 3831 WriteLiteral(" type=\"submit\""); 3832 3833 WriteLiteral(" class=\"btn btn-dw-primary\""); 3834 3835 WriteLiteral(" id=\"get-address\""); 3836 3837 WriteLiteral(">"); 3838 3839 3840 #line 2461 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3841 Write(Translate("Save", "Save")); 3842 3843 3844 #line default 3845 #line hidden 3846 WriteLiteral("</button>\r\n </div>\r\n </form>\r\n"); 3847 3848 3849 #line 2464 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3850 } 3851 3852 3853 #line default 3854 #line hidden 3855 WriteLiteral(" </div>\r\n <div"); 3856 3857 WriteLiteral(" class=\"modal-footer\""); 3858 3859 WriteLiteral(">\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n</div>\r\n\r\n <!-- MOBILE " + 3860 "MENU -->\r\n"); 3861 3862 3863 #line 2475 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3864 3865 3866 #line default 3867 #line hidden 3868 3869 #line 2475 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3870 3871 var offsetmenuplace = "right"; 3872 3873 3874 #line default 3875 #line hidden 3876 WriteLiteral("\r\n"); 3877 3878 3879 #line 2478 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3880 if (GeneralSettings.Header.Mode == "mobile") 3881 { 3882 offsetmenuplace = GeneralSettings.Navigation.Position; 3883 } 3884 3885 3886 #line default 3887 #line hidden 3888 WriteLiteral("\r\n<div"); 3889 3890 WriteLiteral(" id=\"myNavmenu\""); 3891 3892 WriteAttribute("class", Tuple.Create(" class=\"", 90477), Tuple.Create("\"", 90568) 3893 , Tuple.Create(Tuple.Create("", 90485), Tuple.Create("navmenu", 90485), true) 3894 , Tuple.Create(Tuple.Create(" ", 90492), Tuple.Create("navmenu-default", 90493), true) 3895 , Tuple.Create(Tuple.Create(" ", 90508), Tuple.Create("navmenu-fixed-", 90509), true) 3896 3897 #line 2483 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3898 , Tuple.Create(Tuple.Create("", 90523), Tuple.Create<System.Object, System.Int32>(offsetmenuplace 3899 3900 #line default 3901 #line hidden 3902 , 90523), false) 3903 , Tuple.Create(Tuple.Create(" ", 90539), Tuple.Create("offcanvas", 90540), true) 3904 , Tuple.Create(Tuple.Create(" ", 90549), Tuple.Create("off-canvas-wrapper", 90550), true) 3905 ); 3906 3907 WriteLiteral(">\r\n <div"); 3908 3909 WriteLiteral(" class=\"mobile-menu-wrapper clearfix\""); 3910 3911 WriteLiteral(">\r\n\r\n <div"); 3912 3913 WriteLiteral(" class=\"col-sm-12 col-xs-12 offcanvas-col\""); 3914 3915 WriteLiteral(">\r\n <div"); 3916 3917 WriteLiteral(" class=\"row offcanvas-row\""); 3918 3919 WriteLiteral(">\r\n &nbsp;\r\n </div>\r\n <div"); 3920 3921 WriteLiteral(" class=\"offcanvas-row pull-right\""); 3922 3923 WriteLiteral(">\r\n <a"); 3924 3925 WriteLiteral(" href=\"javascript:void(0);\""); 3926 3927 WriteLiteral(" class=\" close-menu\""); 3928 3929 WriteLiteral(" data-toggle=\"offcanvas\""); 3930 3931 WriteLiteral(" data-target=\"#myNavmenu\""); 3932 3933 WriteLiteral(" data-canvas=\"body\""); 3934 3935 WriteLiteral(">\r\n <i"); 3936 3937 WriteLiteral(" class=\"fa fa-times\""); 3938 3939 WriteLiteral("></i>\r\n </a>\r\n </div>\r\n "); 3940 3941 WriteLiteral("\r\n </div>\r\n\r\n\r\n\r\n\r\n <div"); 3942 3943 WriteLiteral(" class=\"row offcanvas-row\""); 3944 3945 WriteLiteral(">\r\n <div"); 3946 3947 WriteLiteral(" class=\"col-sm-12 col-xs-12 offcanvas-col\""); 3948 3949 WriteLiteral(">\r\n"); 3950 3951 WriteLiteral(" "); 3952 3953 3954 #line 2527 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3955 Write(GetValue("DwNavigation(drawernavigation)")); 3956 3957 3958 #line default 3959 #line hidden 3960 WriteLiteral("\r\n </div>\r\n </div>\r\n <div"); 3961 3962 WriteLiteral(" class=\"col-sm-12 col-xs-12 offcanvas-col\""); 3963 3964 WriteLiteral(">\r\n"); 3965 3966 3967 #line 2531 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3968 3969 3970 #line default 3971 #line hidden 3972 3973 #line 2531 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3974 if (GetBoolean("Item.Area.EcomEnabled")) 3975 { 3976 3977 3978 #line default 3979 #line hidden 3980 WriteLiteral(" <hr"); 3981 3982 WriteLiteral(" class=\"nav-line-hr\""); 3983 3984 WriteLiteral(">\r\n"); 3985 3986 WriteLiteral(" <div"); 3987 3988 WriteLiteral(" class=\"row offcanvas-row\""); 3989 3990 WriteLiteral(">\r\n <div"); 3991 3992 WriteLiteral(" class=\"col-sm-12 col-xs-12 offcanvas-col\""); 3993 3994 WriteLiteral(">\r\n"); 3995 3996 3997 #line 2536 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 3998 3999 4000 #line default 4001 #line hidden 4002 4003 #line 2536 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4004 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 4005 { 4006 4007 4008 #line default 4009 #line hidden 4010 WriteLiteral(" <div"); 4011 4012 WriteLiteral(" class=\"col-md-6 myIcons pull-left\""); 4013 4014 WriteLiteral(">\r\n"); 4015 4016 4017 #line 2539 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4018 4019 4020 #line default 4021 #line hidden 4022 4023 #line 2539 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4024 4025 var parameter = ""; 4026 4027 4028 #line default 4029 #line hidden 4030 WriteLiteral("\r\n"); 4031 4032 4033 #line 2542 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4034 4035 4036 #line default 4037 #line hidden 4038 4039 #line 2542 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4040 if (!string.IsNullOrWhiteSpace(listid)) 4041 { 4042 parameter = "&ListID=" + listid; 4043 } 4044 4045 4046 #line default 4047 #line hidden 4048 WriteLiteral(" <a"); 4049 4050 WriteAttribute("href", Tuple.Create(" href=\'", 93559), Tuple.Create("\'", 93618) 4051 , Tuple.Create(Tuple.Create("", 93566), Tuple.Create("Default.aspx?ID=", 93566), true) 4052 4053 #line 2546 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4054 , Tuple.Create(Tuple.Create("", 93582), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.WishListPage") 4055 4056 #line default 4057 #line hidden 4058 , 93582), false) 4059 ); 4060 4061 WriteLiteral(">\r\n <i"); 4062 4063 WriteLiteral(" class=\"fa fa-list\""); 4064 4065 WriteLiteral(" aria-hidden=\"true\""); 4066 4067 WriteLiteral("></i><span>"); 4068 4069 4070 #line 2547 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4071 Write(Translate("My List", "My List")); 4072 4073 4074 #line default 4075 #line hidden 4076 WriteLiteral("</span>\r\n </a>\r\n </div>" + 4077 "\r\n"); 4078 4079 WriteLiteral(" <div"); 4080 4081 WriteLiteral(" class=\"col-md-6 myIcons pull-right\""); 4082 4083 WriteLiteral(">\r\n <span"); 4084 4085 WriteLiteral(" class=\"menu-quantity\""); 4086 4087 WriteLiteral(">"); 4088 4089 4090 #line 2551 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4091 Write(GetInteger("Ecom:Order.OrderLines.TotalProductQuantity")); 4092 4093 4094 #line default 4095 #line hidden 4096 WriteLiteral("</span>\r\n <a"); 4097 4098 WriteAttribute("href", Tuple.Create(" href=\'", 94055), Tuple.Create("\'", 94085) 4099 , Tuple.Create(Tuple.Create("", 94062), Tuple.Create("Default.aspx?ID=", 94062), true) 4100 4101 #line 2552 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4102 , Tuple.Create(Tuple.Create("", 94078), Tuple.Create<System.Object, System.Int32>(cartid 4103 4104 #line default 4105 #line hidden 4106 , 94078), false) 4107 ); 4108 4109 WriteLiteral(">\r\n <i"); 4110 4111 WriteLiteral(" class=\"fa fa-shopping-cart\""); 4112 4113 WriteLiteral(" aria-hidden=\"true\""); 4114 4115 WriteLiteral("></i><span>"); 4116 4117 4118 #line 2553 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4119 Write(Translate("My Cart", "My Cart")); 4120 4121 4122 #line default 4123 #line hidden 4124 WriteLiteral("</span>\r\n </a>\r\n </div>" + 4125 "\r\n"); 4126 4127 WriteLiteral(" <div"); 4128 4129 WriteLiteral(" class=\"clearfix\""); 4130 4131 WriteLiteral("></div>\r\n"); 4132 4133 WriteLiteral(" <hr"); 4134 4135 WriteLiteral(" class=\"nav-line-hr\""); 4136 4137 WriteLiteral(">\r\n"); 4138 4139 WriteLiteral(" <div"); 4140 4141 WriteLiteral(" class=\"col-md-6 myIcons pull-left\""); 4142 4143 WriteLiteral(">\r\n <a"); 4144 4145 WriteAttribute("href", Tuple.Create(" href=\'", 94532), Tuple.Create("\'", 94565) 4146 , Tuple.Create(Tuple.Create("", 94539), Tuple.Create("Default.aspx?ID=", 94539), true) 4147 4148 #line 2559 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4149 , Tuple.Create(Tuple.Create("", 94555), Tuple.Create<System.Object, System.Int32>(myaccount 4150 4151 #line default 4152 #line hidden 4153 , 94555), false) 4154 ); 4155 4156 WriteLiteral(">\r\n <i"); 4157 4158 WriteLiteral(" class=\"fa fa-user\""); 4159 4160 WriteLiteral(" aria-hidden=\"true\""); 4161 4162 WriteLiteral("></i><span>"); 4163 4164 4165 #line 2560 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4166 Write(Translate("My Account", "My Account")); 4167 4168 4169 #line default 4170 #line hidden 4171 WriteLiteral("</span>\r\n </a>\r\n " + 4172 " </div>\r\n"); 4173 4174 WriteLiteral(" <div"); 4175 4176 WriteLiteral(" class=\"col-md-6 myIcons pull-right\""); 4177 4178 WriteLiteral(">\r\n <a"); 4179 4180 WriteAttribute("href", Tuple.Create(" href=\'", 94922), Tuple.Create("\'", 94978) 4181 , Tuple.Create(Tuple.Create("", 94929), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 94929), true) 4182 4183 #line 2564 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4184 , Tuple.Create(Tuple.Create("", 94966), Tuple.Create<System.Object, System.Int32>(Pageview.ID 4185 4186 #line default 4187 #line hidden 4188 , 94966), false) 4189 ); 4190 4191 WriteLiteral(">\r\n <i"); 4192 4193 WriteLiteral(" class=\"fa fa-sign-out\""); 4194 4195 WriteLiteral(" aria-hidden=\"true\""); 4196 4197 WriteLiteral("></i><span>"); 4198 4199 4200 #line 2565 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4201 Write(Translate("Sign out", "Sign out")); 4202 4203 4204 #line default 4205 #line hidden 4206 WriteLiteral("</span>\r\n </a>\r\n " + 4207 " </div>\r\n"); 4208 4209 4210 #line 2568 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4211 } 4212 else 4213 { 4214 4215 4216 #line default 4217 #line hidden 4218 WriteLiteral(" <div"); 4219 4220 WriteLiteral(" class=\"col-md-6 myIcons pull-left\""); 4221 4222 WriteLiteral(">\r\n <a"); 4223 4224 WriteLiteral(" href=\"javascript:void(0);\""); 4225 4226 WriteLiteral(" id=\"yourid\""); 4227 4228 WriteLiteral(">\r\n <i"); 4229 4230 WriteLiteral(" class=\"fa fa-sign-in\""); 4231 4232 WriteLiteral(" aria-hidden=\"true\""); 4233 4234 WriteLiteral("></i><span>"); 4235 4236 4237 #line 2573 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4238 Write(Translate("Login", "Login")); 4239 4240 4241 #line default 4242 #line hidden 4243 WriteLiteral("</span>\r\n </a>\r\n " + 4244 " </div>\r\n"); 4245 4246 WriteLiteral(" <div"); 4247 4248 WriteLiteral(" class=\"col-md-6 myIcons pull-right\""); 4249 4250 WriteLiteral(">\r\n <a"); 4251 4252 WriteAttribute("href", Tuple.Create(" href=\'", 95870), Tuple.Create("\'", 95900) 4253 , Tuple.Create(Tuple.Create("", 95877), Tuple.Create("Default.aspx?ID=", 95877), true) 4254 4255 #line 2577 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4256 , Tuple.Create(Tuple.Create("", 95893), Tuple.Create<System.Object, System.Int32>(cartid 4257 4258 #line default 4259 #line hidden 4260 , 95893), false) 4261 ); 4262 4263 WriteLiteral(">\r\n <i"); 4264 4265 WriteLiteral(" class=\"fa fa-shopping-cart\""); 4266 4267 WriteLiteral(" aria-hidden=\"true\""); 4268 4269 WriteLiteral("></i><span>"); 4270 4271 4272 #line 2578 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4273 Write(Translate("Pricequote", "Pricequote")); 4274 4275 4276 #line default 4277 #line hidden 4278 WriteLiteral("</span>\r\n </a>\r\n " + 4279 " </div>\r\n"); 4280 4281 4282 #line 2581 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4283 } 4284 4285 4286 #line default 4287 #line hidden 4288 WriteLiteral(" "); 4289 4290 4291 #line 2582 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4292 if (GetLoop("DWExtranetSecondaryUsers").Count > 0 || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 4293 { 4294 4295 4296 #line default 4297 #line hidden 4298 WriteLiteral(" <p>&nbsp;</p>\r\n"); 4299 4300 WriteLiteral(" <form"); 4301 4302 WriteLiteral(" method=\"post\""); 4303 4304 WriteLiteral(">\r\n <div"); 4305 4306 WriteLiteral(" class=\"pull-left\""); 4307 4308 WriteLiteral(">\r\n"); 4309 4310 4311 #line 2587 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4312 4313 4314 #line default 4315 #line hidden 4316 4317 #line 2587 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4318 if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 4319 { 4320 4321 4322 #line default 4323 #line hidden 4324 WriteLiteral(" <select"); 4325 4326 WriteLiteral(" id=\"DWExtranetSecondaryUserSelector\""); 4327 4328 WriteLiteral(" name=\"DWExtranetSecondaryUserSelector\""); 4329 4330 WriteLiteral(" title=\"Impersonate selected user\""); 4331 4332 WriteLiteral(">\r\n"); 4333 4334 4335 #line 2590 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4336 4337 4338 #line default 4339 #line hidden 4340 4341 #line 2590 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4342 foreach (var user in GetLoop("DWExtranetSecondaryUsers")) 4343 { 4344 4345 4346 #line default 4347 #line hidden 4348 WriteLiteral(" <option"); 4349 4350 WriteAttribute("value", Tuple.Create(" value=\'", 97066), Tuple.Create("\'", 97098) 4351 4352 #line 2592 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4353 , Tuple.Create(Tuple.Create("", 97074), Tuple.Create<System.Object, System.Int32>(user.GetValue("UserID") 4354 4355 #line default 4356 #line hidden 4357 , 97074), false) 4358 ); 4359 4360 WriteLiteral(">"); 4361 4362 4363 #line 2592 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4364 Write(user.GetValue("UserName")); 4365 4366 4367 #line default 4368 #line hidden 4369 WriteLiteral("</option>\r\n"); 4370 4371 4372 #line 2593 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4373 } 4374 4375 4376 #line default 4377 #line hidden 4378 WriteLiteral(" </select>\r\n"); 4379 4380 WriteLiteral(" <input"); 4381 4382 WriteLiteral(" type=\"submit\""); 4383 4384 WriteLiteral(" class=\"btn btn-xs\""); 4385 4386 WriteLiteral(" tabindex=\"3\""); 4387 4388 WriteLiteral(" value=\"OK\""); 4389 4390 WriteLiteral(">\r\n"); 4391 4392 4393 #line 2596 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4394 } 4395 else 4396 { 4397 string impersonateUser = @GetGlobalValue("Global:Extranet.SecondaryUser.UserName") + " is impersonated by " + @Pageview.User.UserName; 4398 4399 4400 #line default 4401 #line hidden 4402 WriteLiteral("<span"); 4403 4404 WriteAttribute("title", Tuple.Create(" title=\"", 97682), Tuple.Create("\"", 97706) 4405 4406 #line 2600 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4407 , Tuple.Create(Tuple.Create("", 97690), Tuple.Create<System.Object, System.Int32>(impersonateUser 4408 4409 #line default 4410 #line hidden 4411 , 97690), false) 4412 ); 4413 4414 WriteLiteral(" class=\"btn btn-xs impersonation-btn\""); 4415 4416 WriteLiteral("><i"); 4417 4418 WriteLiteral(" class=\"fa fa-user-secret\""); 4419 4420 WriteLiteral("></i> "); 4421 4422 4423 #line 2600 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4424 Write(GetGlobalValue("Global:Extranet.SecondaryUser.UserName")); 4425 4426 4427 #line default 4428 #line hidden 4429 WriteLiteral("</span>\r\n"); 4430 4431 WriteLiteral(" <input"); 4432 4433 WriteLiteral(" type=\"submit\""); 4434 4435 WriteLiteral(" class=\"btn btn-xs\""); 4436 4437 WriteLiteral(" name=\"DwExtranetRemoveSecondaryUser\""); 4438 4439 WriteLiteral(" id=\"DwExtranetRemoveSecondaryUser\""); 4440 4441 WriteLiteral(" value=\"Stop impersonation\""); 4442 4443 WriteLiteral(">\r\n"); 4444 4445 4446 #line 2602 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4447 } 4448 4449 4450 #line default 4451 #line hidden 4452 WriteLiteral(" </div>\r\n </form>\r\n"); 4453 4454 4455 #line 2605 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4456 } 4457 4458 4459 #line default 4460 #line hidden 4461 WriteLiteral(" </div>\r\n </div>\r\n"); 4462 4463 WriteLiteral(" <div"); 4464 4465 WriteLiteral(" class=\"row offcanvas-row\""); 4466 4467 WriteLiteral(">&nbsp;</div>\r\n"); 4468 4469 4470 #line 2609 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4471 } 4472 4473 4474 #line default 4475 #line hidden 4476 WriteLiteral(" </div>\r\n\r\n </div>\r\n</div>\r\n\r\n\r\n <!-- HEADER AND CONTENT-->\r\n\r\n <" + 4477 "div"); 4478 4479 WriteAttribute("class", Tuple.Create(" class=\"", 98406), Tuple.Create("\"", 98461) 4480 , Tuple.Create(Tuple.Create("", 98414), Tuple.Create("body-wrap", 98414), true) 4481 , Tuple.Create(Tuple.Create(" ", 98423), Tuple.Create("shad", 98424), true) 4482 4483 #line 2618 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4484 , Tuple.Create(Tuple.Create(" ", 98428), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Site.LayoutMode 4485 4486 #line default 4487 #line hidden 4488 , 98429), false) 4489 ); 4490 4491 WriteLiteral(">\r\n\r\n <!-- HEADER -->\r\n\r\n <div"); 4492 4493 WriteLiteral(" id=\"divHeaderWrapper\""); 4494 4495 WriteLiteral(">\r\n <header"); 4496 4497 WriteAttribute("class", Tuple.Create(" class=\"", 98550), Tuple.Create("\"", 98589) 4498 4499 #line 2623 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4500 , Tuple.Create(Tuple.Create("", 98558), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Header.Classes 4501 4502 #line default 4503 #line hidden 4504 , 98558), false) 4505 ); 4506 4507 WriteLiteral(">\r\n\r\n <!-- TOP HEADER -->\r\n <!-- MAIN NAV -->\r\n"); 4508 4509 4510 #line 2627 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4511 4512 4513 #line default 4514 #line hidden 4515 4516 #line 2627 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4517 4518 var sticky = GeneralSettings.Navigation.StickyMenu; 4519 var stickyTrigger = "affix"; 4520 var navbarpos = GeneralSettings.Navigation.Position; 4521 var selectionstyle = GeneralSettings.Navigation.SelectionStyle; 4522 4523 if (sticky == "off") 4524 { 4525 stickyTrigger = ""; 4526 } 4527 4528 4529 #line default 4530 #line hidden 4531 WriteLiteral("\r\n\r\n"); 4532 4533 4534 #line 2639 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4535 4536 4537 #line default 4538 #line hidden 4539 4540 #line 2639 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4541 if (GeneralSettings.Header.Show) 4542 { 4543 4544 4545 4546 #line default 4547 #line hidden 4548 WriteLiteral(" <div"); 4549 4550 WriteAttribute("class", Tuple.Create(" class=\"", 99221), Tuple.Create("\"", 99295) 4551 , Tuple.Create(Tuple.Create("", 99229), Tuple.Create("top-header", 99229), true) 4552 , Tuple.Create(Tuple.Create(" ", 99239), Tuple.Create("navbar", 99240), true) 4553 , Tuple.Create(Tuple.Create(" ", 99246), Tuple.Create("navbar-wp", 99247), true) 4554 4555 #line 2642 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4556 , Tuple.Create(Tuple.Create(" ", 99256), Tuple.Create<System.Object, System.Int32>(selectionstyle 4557 4558 #line default 4559 #line hidden 4560 , 99257), false) 4561 , Tuple.Create(Tuple.Create(" ", 99272), Tuple.Create("navbar-fixed", 99273), true) 4562 , Tuple.Create(Tuple.Create(" ", 99285), Tuple.Create("affix-top", 99286), true) 4563 ); 4564 4565 WriteLiteral(" role=\"navigation\""); 4566 4567 WriteLiteral(" data-spy=\""); 4568 4569 4570 #line 2642 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4571 Write(stickyTrigger); 4572 4573 4574 #line default 4575 #line hidden 4576 WriteLiteral("\""); 4577 4578 WriteLiteral(" data-offset-top=\""); 4579 4580 4581 #line 2642 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4582 Write(sticky); 4583 4584 4585 #line default 4586 #line hidden 4587 WriteLiteral("\""); 4588 4589 WriteLiteral(">\r\n <div"); 4590 4591 WriteLiteral(" class=\"container-expanded\""); 4592 4593 WriteLiteral(">\r\n <div"); 4594 4595 WriteLiteral(" class=\"row clearfix\""); 4596 4597 WriteLiteral(">\r\n <div"); 4598 4599 WriteLiteral(" class=\"col-md-3 col-sm-4 col-xs-5 logobox\""); 4600 4601 WriteLiteral(">\r\n"); 4602 4603 4604 #line 2646 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4605 4606 4607 #line default 4608 #line hidden 4609 4610 #line 2646 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4611 if (GeneralSettings.Header.Mode == "solid") 4612 { 4613 4614 4615 #line default 4616 #line hidden 4617 WriteLiteral(" <a"); 4618 4619 WriteAttribute("href", Tuple.Create(" href=\"", 99728), Tuple.Create("\"", 99764) 4620 , Tuple.Create(Tuple.Create("", 99735), Tuple.Create("/Default.aspx?ID=", 99735), true) 4621 4622 #line 2648 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4623 , Tuple.Create(Tuple.Create("", 99752), Tuple.Create<System.Object, System.Int32>(firstpageid 4624 4625 #line default 4626 #line hidden 4627 , 99752), false) 4628 ); 4629 4630 WriteLiteral(" class=\"brand\""); 4631 4632 WriteLiteral(">\r\n"); 4633 4634 4635 #line 2649 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4636 4637 4638 #line default 4639 #line hidden 4640 4641 #line 2649 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4642 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 4643 { 4644 4645 4646 #line default 4647 #line hidden 4648 WriteLiteral(" <img"); 4649 4650 WriteLiteral(" class=\"img-responsive dw-logoimage pull-left\""); 4651 4652 WriteAttribute("src", Tuple.Create(" src=\"", 100033), Tuple.Create("\"", 100066) 4653 4654 #line 2651 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4655 , Tuple.Create(Tuple.Create("", 100039), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Logo.Image 4656 4657 #line default 4658 #line hidden 4659 , 100039), false) 4660 ); 4661 4662 WriteLiteral(" alt=\"Logo\""); 4663 4664 WriteLiteral(">\r\n"); 4665 4666 4667 #line 2652 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4668 } 4669 4670 4671 #line default 4672 #line hidden 4673 WriteLiteral("\r\n"); 4674 4675 4676 #line 2654 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4677 4678 4679 #line default 4680 #line hidden 4681 4682 #line 2654 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4683 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 4684 { 4685 4686 4687 #line default 4688 #line hidden 4689 WriteLiteral(" <div"); 4690 4691 WriteLiteral(" class=\"dw-logotext pull-left\""); 4692 4693 WriteLiteral(">"); 4694 4695 4696 #line 2656 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4697 Write(GeneralSettings.Logo.Text); 4698 4699 4700 #line default 4701 #line hidden 4702 WriteLiteral("</div>\r\n"); 4703 4704 4705 #line 2657 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4706 } 4707 4708 4709 #line default 4710 #line hidden 4711 WriteLiteral(" </a>\r\n"); 4712 4713 4714 #line 2659 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4715 4716 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Slogan)) 4717 { 4718 4719 4720 #line default 4721 #line hidden 4722 WriteLiteral(" <div"); 4723 4724 WriteLiteral(" class=\"dw-slogantext pull-left\""); 4725 4726 WriteLiteral(">"); 4727 4728 4729 #line 2662 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4730 Write(GeneralSettings.Logo.Slogan); 4731 4732 4733 #line default 4734 #line hidden 4735 WriteLiteral("</div>\r\n"); 4736 4737 4738 #line 2663 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4739 } 4740 } 4741 4742 4743 #line default 4744 #line hidden 4745 WriteLiteral(" </div>\r\n\r\n <div"); 4746 4747 WriteLiteral(" class=\"col-lg-9 col-md-9 col-sm-8 col-xs-7 logobox\""); 4748 4749 WriteLiteral(">\r\n <nav"); 4750 4751 WriteLiteral(" class=\"top-header-menu\""); 4752 4753 WriteLiteral(">\r\n <ul"); 4754 4755 WriteLiteral(" class=\"top-menu quickButtonsMenu\""); 4756 4757 WriteLiteral(">\r\n <!-- Ecommerce user menu -->\r\n"); 4758 4759 4760 #line 2671 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4761 4762 4763 #line default 4764 #line hidden 4765 4766 #line 2671 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4767 if (GetBoolean("Item.Area.EcomEnabled")) 4768 { 4769 if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 4770 { 4771 4772 4773 #line default 4774 #line hidden 4775 WriteLiteral(" "); 4776 4777 WriteLiteral("\r\n\r\n <li"); 4778 4779 WriteLiteral(" class=\"login hidden-xs hidden-sm\""); 4780 4781 WriteLiteral("><a"); 4782 4783 WriteLiteral(" data-toggle=\"modal\""); 4784 4785 WriteLiteral(" data-target=\"#login\""); 4786 4787 WriteLiteral("><i"); 4788 4789 WriteLiteral(" class=\"fa fa-user\""); 4790 4791 WriteLiteral(" aria-hidden=\"true\""); 4792 4793 WriteLiteral("></i><span"); 4794 4795 WriteLiteral(" class=\"hidden-xs\""); 4796 4797 WriteLiteral(">"); 4798 4799 4800 #line 2677 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4801 Write(Translate("Login", "Login")); 4802 4803 4804 #line default 4805 #line hidden 4806 WriteLiteral("</span></a></li>\r\n\r\n\r\n "); 4807 4808 WriteLiteral("\r\n"); 4809 4810 4811 #line 2681 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4812 } 4813 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 4814 { 4815 4816 4817 #line default 4818 #line hidden 4819 WriteLiteral(" "); 4820 4821 WriteLiteral("\r\n <li"); 4822 4823 WriteLiteral(" class=\"hidden-xs hidden-sm\""); 4824 4825 WriteLiteral(">\r\n <a"); 4826 4827 WriteAttribute("href", Tuple.Create(" href=\'", 102340), Tuple.Create("\'", 102373) 4828 , Tuple.Create(Tuple.Create("", 102347), Tuple.Create("Default.aspx?ID=", 102347), true) 4829 4830 #line 2686 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4831 , Tuple.Create(Tuple.Create("", 102363), Tuple.Create<System.Object, System.Int32>(myaccount 4832 4833 #line default 4834 #line hidden 4835 , 102363), false) 4836 ); 4837 4838 WriteLiteral(">\r\n <i"); 4839 4840 WriteLiteral(" class=\"fa fa-user\""); 4841 4842 WriteLiteral(" aria-hidden=\"true\""); 4843 4844 WriteLiteral("></i><span"); 4845 4846 WriteLiteral(" class=\"hidden-xs\""); 4847 4848 WriteLiteral(">"); 4849 4850 4851 #line 2687 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4852 Write(Translate("My account", "My account")); 4853 4854 4855 #line default 4856 #line hidden 4857 WriteLiteral("</span>\r\n </a>\r\n " + 4858 " </li>\r\n " + 4859 " <li"); 4860 4861 WriteLiteral(" class=\"hidden-xs hidden-sm\""); 4862 4863 WriteLiteral(">\r\n"); 4864 4865 4866 #line 2691 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4867 4868 4869 #line default 4870 #line hidden 4871 4872 #line 2691 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4873 4874 var parameter = ""; 4875 4876 4877 #line default 4878 #line hidden 4879 WriteLiteral("\r\n"); 4880 4881 4882 #line 2694 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4883 4884 4885 #line default 4886 #line hidden 4887 4888 #line 2694 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4889 if (!string.IsNullOrWhiteSpace(listid)) 4890 { 4891 parameter = "&ListID=" + listid; 4892 } 4893 4894 4895 #line default 4896 #line hidden 4897 WriteLiteral(" <a"); 4898 4899 WriteAttribute("href", Tuple.Create(" href=\'", 103376), Tuple.Create("\'", 103435) 4900 , Tuple.Create(Tuple.Create("", 103383), Tuple.Create("Default.aspx?ID=", 103383), true) 4901 4902 #line 2698 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4903 , Tuple.Create(Tuple.Create("", 103399), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.WishListPage") 4904 4905 #line default 4906 #line hidden 4907 , 103399), false) 4908 ); 4909 4910 WriteLiteral(" id=\"linkwishlist\""); 4911 4912 WriteLiteral(">\r\n <i"); 4913 4914 WriteLiteral(" class=\"fa fa-list\""); 4915 4916 WriteLiteral(" aria-hidden=\"true\""); 4917 4918 WriteLiteral("></i><span"); 4919 4920 WriteLiteral(" class=\"hidden-xs\""); 4921 4922 WriteLiteral(">"); 4923 4924 4925 #line 2699 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4926 Write(Translate("My List", "My List")); 4927 4928 4929 #line default 4930 #line hidden 4931 WriteLiteral("</span>\r\n </a>\r\n " + 4932 " </li>\r\n " + 4933 " "); 4934 4935 WriteLiteral("\r\n"); 4936 4937 4938 #line 2703 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4939 } 4940 } 4941 4942 4943 #line default 4944 #line hidden 4945 WriteLiteral("\r\n <!-- Ecommerce Cart -->\r\n"); 4946 4947 4948 #line 2707 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4949 4950 4951 #line default 4952 #line hidden 4953 4954 #line 2707 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4955 if (GetBoolean("Item.Area.EcomEnabled")) 4956 { 4957 var cartJSONRealID = GetString("Item.Area.Quote_Cart_JSON_PageID"); 4958 4959 4960 #line default 4961 #line hidden 4962 WriteLiteral(" <li"); 4963 4964 WriteLiteral(" class=\"menu__item hidden-xs hidden-sm\""); 4965 4966 WriteLiteral(">\r\n <div"); 4967 4968 WriteLiteral(" class=\"mini-cart\""); 4969 4970 WriteLiteral(">\r\n <a"); 4971 4972 WriteAttribute("href", Tuple.Create(" href=\"", 104509), Tuple.Create("\"", 104540) 4973 , Tuple.Create(Tuple.Create("", 104516), Tuple.Create("/Default.aspx?ID=", 104516), true) 4974 4975 #line 2712 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4976 , Tuple.Create(Tuple.Create("", 104533), Tuple.Create<System.Object, System.Int32>(cartid 4977 4978 #line default 4979 #line hidden 4980 , 104533), false) 4981 ); 4982 4983 WriteLiteral(" class=\"menu-tools__link menu__link--condensed dw-mod js-mini-cart-button\""); 4984 4985 WriteAttribute("onmouseover", Tuple.Create(" onmouseover=\"", 104615), Tuple.Create("\"", 104747) 4986 , Tuple.Create(Tuple.Create("", 104629), Tuple.Create("Dynamo.UpdateContent(\'miniCart\',", 104629), true) 4987 , Tuple.Create(Tuple.Create(" ", 104661), Tuple.Create("\'/Default.aspx?ID=", 104662), true) 4988 4989 #line 2712 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 4990 , Tuple.Create(Tuple.Create("", 104680), Tuple.Create<System.Object, System.Int32>(cartJSONRealID 4991 4992 #line default 4993 #line hidden 4994 , 104680), false) 4995 , Tuple.Create(Tuple.Create("", 104695), Tuple.Create("&LayoutTemplate=Json.cshtml&DisableStatistics=True\')", 104695), true) 4996 ); 4997 4998 WriteLiteral(" data-init-onload=\"false\""); 4999 5000 WriteLiteral(">\r\n <i"); 5001 5002 WriteLiteral(" class=\"fa fa-shopping-cart\""); 5003 5004 WriteLiteral(" style=\"margin-right:6px;\""); 5005 5006 WriteLiteral("></i>\r\n"); 5007 5008 5009 #line 2714 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5010 5011 5012 #line default 5013 #line hidden 5014 5015 #line 2714 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5016 if (isLoggedIn == "") 5017 { 5018 5019 5020 #line default 5021 #line hidden 5022 WriteLiteral(" <span"); 5023 5024 WriteLiteral(" class=\"hidden-xs\""); 5025 5026 WriteLiteral(">"); 5027 5028 5029 #line 2716 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5030 Write(Translate("Pricequote", "Pricequote")); 5031 5032 5033 #line default 5034 #line hidden 5035 WriteLiteral("</span>\r\n"); 5036 5037 5038 #line 2717 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5039 } 5040 else 5041 { 5042 5043 5044 #line default 5045 #line hidden 5046 WriteLiteral(" <span"); 5047 5048 WriteLiteral(" class=\"hidden-xs\""); 5049 5050 WriteLiteral(">"); 5051 5052 5053 #line 2720 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5054 Write(Translate("My cart", "My cart")); 5055 5056 5057 #line default 5058 #line hidden 5059 WriteLiteral("</span>\r\n"); 5060 5061 5062 #line 2721 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5063 } 5064 5065 5066 #line default 5067 #line hidden 5068 WriteLiteral(" </a>\r\n"); 5069 5070 5071 #line 2723 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5072 5073 5074 #line default 5075 #line hidden 5076 5077 #line 2723 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5078 if(currentpageid != cartPageId) { 5079 5080 5081 #line default 5082 #line hidden 5083 WriteLiteral(" <div"); 5084 5085 WriteLiteral(" id=\"minicartQuantity\""); 5086 5087 WriteLiteral(" class=\"js-ajax-container\""); 5088 5089 WriteLiteral(" data-template=\"MiniCartQuantity\""); 5090 5091 WriteLiteral(" data-cart-id=\""); 5092 5093 5094 #line 2724 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5095 Write(cartPageId); 5096 5097 5098 #line default 5099 #line hidden 5100 WriteLiteral("\""); 5101 5102 WriteLiteral(" data-json-feed=\"/Default.aspx?ID="); 5103 5104 5105 #line 2724 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5106 Write(cartPageId); 5107 5108 5109 #line default 5110 #line hidden 5111 WriteLiteral("&LayoutTemplate=Json.cshtml&DisableStatistics=True\""); 5112 5113 WriteLiteral(" data-preloader=\"false\""); 5114 5115 WriteLiteral("></div>\r\n"); 5116 5117 WriteLiteral(" <div"); 5118 5119 WriteLiteral(" class=\"mini-cart-dropdown js-ajax-container js-mini-cart\""); 5120 5121 WriteLiteral(" id=\"miniCart\""); 5122 5123 WriteLiteral(" data-template=\"MiniCartContent\""); 5124 5125 WriteLiteral(" data-cart-id=\""); 5126 5127 5128 #line 2725 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5129 Write(cartPageId); 5130 5131 5132 #line default 5133 #line hidden 5134 WriteLiteral("\""); 5135 5136 WriteLiteral(" data-json-feed=\"/Default.aspx?ID="); 5137 5138 5139 #line 2725 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5140 Write(cartPageId); 5141 5142 5143 #line default 5144 #line hidden 5145 WriteLiteral("&LayoutTemplate=Json.cshtml&DisableStatistics=True\""); 5146 5147 WriteLiteral(" data-preloader=\"false\""); 5148 5149 WriteLiteral(" data-init-onload=\"false\""); 5150 5151 WriteLiteral("></div>\r\n"); 5152 5153 5154 #line 2726 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5155 5156 5157 5158 #line default 5159 #line hidden 5160 WriteLiteral(" <script"); 5161 5162 WriteLiteral(" id=\"MiniCartQuantity\""); 5163 5164 WriteLiteral(" type=\"x-template\""); 5165 5166 WriteLiteral(">\r\n <span class=\"mini-" + 5167 "quantity data.isempty\">data.numberofproducts</span>\r\n " + 5168 " </script>\r\n"); 5169 5170 5171 #line 2730 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5172 5173 5174 5175 #line default 5176 #line hidden 5177 WriteLiteral(" <div"); 5178 5179 WriteLiteral(" class=\"mini-cart-dropdown js-ajax-container js-mini-cart\""); 5180 5181 WriteLiteral(" id=\"miniCart\""); 5182 5183 WriteLiteral(" data-template=\"MiniCartContent\""); 5184 5185 WriteLiteral(" data-cart-id=\""); 5186 5187 5188 #line 2731 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5189 Write(cartJSONRealID); 5190 5191 5192 #line default 5193 #line hidden 5194 WriteLiteral("\""); 5195 5196 WriteLiteral(" data-json-feed=\"/Default.aspx?ID="); 5197 5198 5199 #line 2731 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5200 Write(cartJSONRealID); 5201 5202 5203 #line default 5204 #line hidden 5205 WriteLiteral("&LayoutTemplate=Json.cshtml&DisableStatistics=True\""); 5206 5207 WriteLiteral(" data-preloader=\"false\""); 5208 5209 WriteLiteral(" data-init-onload=\"false\""); 5210 5211 WriteLiteral("></div>\r\n"); 5212 5213 5214 #line 2732 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5215 5216 5217 5218 5219 #line default 5220 #line hidden 5221 WriteLiteral(" <script"); 5222 5223 WriteLiteral(" id=\"MiniCartContent\""); 5224 5225 WriteLiteral(" type=\"text/x-template\""); 5226 5227 WriteLiteral(">\r\n <div class=\"hidden" + 5228 " mini-new-quantity\">data.numberofproducts</div>\r\n " + 5229 " <div class=\"mini-cart-dropdown__inner data.isempty\"" + 5230 ">\r\n"); 5231 5232 5233 #line 2737 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5234 5235 5236 #line default 5237 #line hidden 5238 5239 #line 2737 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5240 if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 5241 { 5242 5243 5244 #line default 5245 #line hidden 5246 WriteLiteral(" <table"); 5247 5248 WriteLiteral(" class=\"table mini-cart-table\""); 5249 5250 WriteLiteral(@"> 5251 <thead> 5252 <tr> 5253 <td>&nbsp;</td> 5254 <td>"); 5255 5256 5257 #line 2743 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5258 Write(Translate("Product")); 5259 5260 5261 #line default 5262 #line hidden 5263 WriteLiteral("</td>\r\n " + 5264 " </tr>\r\n " + 5265 " </thead>\r\n\r\n " + 5266 " <tbody"); 5267 5268 WriteLiteral(" id=\"OrderLines\""); 5269 5270 WriteLiteral(" data-template=\"OrderlinesTemplate\""); 5271 5272 WriteLiteral("></tbody>\r\n " + 5273 " <tr"); 5274 5275 WriteLiteral(" class=\"mini-cart-orderlines__footer\""); 5276 5277 WriteLiteral(">\r\n <t" + 5278 "d"); 5279 5280 WriteLiteral(" colspan=\"2\""); 5281 5282 WriteLiteral("><button"); 5283 5284 WriteLiteral(" type=\"button\""); 5285 5286 WriteLiteral(" class=\"btn pull-left btn-dw-primary emptyCartBtn\""); 5287 5288 WriteLiteral(" onclick=\"Cart.EmptyCart(event)\""); 5289 5290 WriteLiteral(">"); 5291 5292 5293 #line 2749 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5294 Write(Translate("Empty cart")); 5295 5296 5297 #line default 5298 #line hidden 5299 WriteLiteral("</button></td>\r\n " + 5300 " <td"); 5301 5302 WriteLiteral(" colspan=\"2\""); 5303 5304 WriteLiteral(" class=\"text-right\""); 5305 5306 WriteLiteral("><a"); 5307 5308 WriteAttribute("href", Tuple.Create(" href=\"", 108844), Tuple.Create("\"", 108875) 5309 , Tuple.Create(Tuple.Create("", 108851), Tuple.Create("/Default.aspx?ID=", 108851), true) 5310 5311 #line 2750 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5312 , Tuple.Create(Tuple.Create("", 108868), Tuple.Create<System.Object, System.Int32>(cartid 5313 5314 #line default 5315 #line hidden 5316 , 108868), false) 5317 ); 5318 5319 WriteLiteral(" class=\"btn pull-right btn-dw-primary cartProceedBtn\""); 5320 5321 WriteLiteral(">"); 5322 5323 5324 #line 2750 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5325 Write(Translate("Proceed to checkout")); 5326 5327 5328 #line default 5329 #line hidden 5330 WriteLiteral("</a></td>\r\n " + 5331 " </tr>\r\n </t" + 5332 "able>\r\n"); 5333 5334 5335 #line 2753 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5336 } 5337 else 5338 { 5339 5340 5341 #line default 5342 #line hidden 5343 WriteLiteral(" <table"); 5344 5345 WriteLiteral(" class=\"table mini-cart-table\""); 5346 5347 WriteLiteral(@"> 5348 <thead> 5349 <tr> 5350 <td>&nbsp;</td> 5351 <td>"); 5352 5353 5354 #line 2760 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5355 Write(Translate("Product")); 5356 5357 5358 #line default 5359 #line hidden 5360 WriteLiteral("</td>\r\n " + 5361 " <td"); 5362 5363 WriteLiteral(" class=\"text-right\""); 5364 5365 WriteLiteral(">"); 5366 5367 5368 #line 2761 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5369 Write(Translate("Qty")); 5370 5371 5372 #line default 5373 #line hidden 5374 WriteLiteral("</td>\r\n " + 5375 " <td"); 5376 5377 WriteLiteral(" class=\"text-right\""); 5378 5379 WriteLiteral(">"); 5380 5381 5382 #line 2762 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5383 Write(Translate("Price")); 5384 5385 5386 #line default 5387 #line hidden 5388 WriteLiteral("</td>\r\n " + 5389 " </tr>\r\n " + 5390 " </thead>\r\n\r\n " + 5391 " <tbody"); 5392 5393 WriteLiteral(" id=\"OrderLines\""); 5394 5395 WriteLiteral(" data-template=\"OrderlinesTemplate\""); 5396 5397 WriteLiteral("></tbody>\r\n\r\n " + 5398 " <tr"); 5399 5400 WriteLiteral(" class=\"mini-cart-totals\""); 5401 5402 WriteLiteral(">\r\n <t" + 5403 "d"); 5404 5405 WriteLiteral(" colspan=\"2\""); 5406 5407 WriteLiteral(">"); 5408 5409 5410 #line 2769 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5411 Write(Translate("Total")); 5412 5413 5414 #line default 5415 #line hidden 5416 WriteLiteral("</td>\r\n " + 5417 " <td"); 5418 5419 WriteLiteral(" class=\"text-right\""); 5420 5421 WriteLiteral(">data.numberofproducts</td>\r\n " + 5422 " <td"); 5423 5424 WriteLiteral(" class=\"text-right\""); 5425 5426 WriteLiteral(">data.totalprice</td>\r\n " + 5427 " </tr>\r\n " + 5428 " <tr"); 5429 5430 WriteLiteral(" class=\"mini-cart-orderlines__footer\""); 5431 5432 WriteLiteral(">\r\n <t" + 5433 "d"); 5434 5435 WriteLiteral(" colspan=\"2\""); 5436 5437 WriteLiteral("><button"); 5438 5439 WriteLiteral(" type=\"button\""); 5440 5441 WriteLiteral(" class=\"btn pull-left btn-dw-primary emptyCartBtn\""); 5442 5443 WriteLiteral(" onclick=\"Cart.EmptyCart(event)\""); 5444 5445 WriteLiteral(">"); 5446 5447 5448 #line 2774 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5449 Write(Translate("Empty cart")); 5450 5451 5452 #line default 5453 #line hidden 5454 WriteLiteral("</button></td>\r\n " + 5455 " <td"); 5456 5457 WriteLiteral(" colspan=\"2\""); 5458 5459 WriteLiteral(" class=\"text-right\""); 5460 5461 WriteLiteral("><a"); 5462 5463 WriteAttribute("href", Tuple.Create(" href=\"", 111391), Tuple.Create("\"", 111422) 5464 , Tuple.Create(Tuple.Create("", 111398), Tuple.Create("/Default.aspx?ID=", 111398), true) 5465 5466 #line 2775 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5467 , Tuple.Create(Tuple.Create("", 111415), Tuple.Create<System.Object, System.Int32>(cartid 5468 5469 #line default 5470 #line hidden 5471 , 111415), false) 5472 ); 5473 5474 WriteLiteral(" class=\"btn pull-right btn-dw-primary cartProceedBtn\""); 5475 5476 WriteLiteral(">"); 5477 5478 5479 #line 2775 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5480 Write(Translate("Proceed to checkout")); 5481 5482 5483 #line default 5484 #line hidden 5485 WriteLiteral("</a></td>\r\n " + 5486 " </tr>\r\n </t" + 5487 "able>\r\n"); 5488 5489 5490 #line 2778 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5491 } 5492 5493 5494 #line default 5495 #line hidden 5496 WriteLiteral("\r\n </div>\r\n " + 5497 " </script>\r\n"); 5498 5499 5500 #line 2782 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5501 if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 5502 { 5503 5504 5505 #line default 5506 #line hidden 5507 WriteLiteral(" <script"); 5508 5509 WriteLiteral(" id=\"OrderlinesTemplate\""); 5510 5511 WriteLiteral(" type=\"text/x-template\""); 5512 5513 WriteLiteral(@"> 5514 <tr class=""data.isempty""> 5515 <td><div class=""data.hideimage""><img src=""data.image""></div></td> 5516 <td colspan=""2""><a href=""data.link"">data.name data.variantname</a></td> 5517 </tr> 5518 </script> 5519 "); 5520 5521 5522 #line 2790 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5523 } 5524 else 5525 { 5526 5527 5528 #line default 5529 #line hidden 5530 WriteLiteral(" <script"); 5531 5532 WriteLiteral(" id=\"OrderlinesTemplate\""); 5533 5534 WriteLiteral(" type=\"text/x-template\""); 5535 5536 WriteLiteral(@"> 5537 <tr class=""data.isempty""> 5538 <td><div class=""data.hideimage""><img src=""data.image""></div></td> 5539 <td><a href=""data.link"" class=""mini-cart-orderlines__name"">data.name data.variantname</a></td> 5540 <td class=""text-right""><div class=""data.hideimage"">data.quantity</div></td> 5541 "); 5542 5543 5544 #line 2798 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5545 5546 5547 #line default 5548 #line hidden 5549 5550 #line 2798 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5551 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 5552 { 5553 5554 5555 #line default 5556 #line hidden 5557 WriteLiteral(" <td"); 5558 5559 WriteLiteral(" class=\"text-right\""); 5560 5561 WriteLiteral(">data.totalprice</td>\r\n"); 5562 5563 5564 #line 2801 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5565 } 5566 5567 5568 #line default 5569 #line hidden 5570 WriteLiteral(" </tr>\r\n " + 5571 " </script>\r\n"); 5572 5573 5574 #line 2804 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5575 } 5576 } 5577 5578 5579 #line default 5580 #line hidden 5581 WriteLiteral(" </div>\r\n " + 5582 " </li>\r\n"); 5583 5584 5585 #line 2808 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5586 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 5587 { 5588 5589 5590 #line default 5591 #line hidden 5592 WriteLiteral(" <li"); 5593 5594 WriteLiteral(" class=\"logout hidden-xs hidden-sm\""); 5595 5596 WriteLiteral(">\r\n <a"); 5597 5598 WriteAttribute("href", Tuple.Create(" href=\'", 114667), Tuple.Create("\'", 114723) 5599 , Tuple.Create(Tuple.Create("", 114674), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 114674), true) 5600 5601 #line 2811 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5602 , Tuple.Create(Tuple.Create("", 114711), Tuple.Create<System.Object, System.Int32>(firstpageid 5603 5604 #line default 5605 #line hidden 5606 , 114711), false) 5607 ); 5608 5609 WriteAttribute("title", Tuple.Create(" title=\'", 114724), Tuple.Create("\'", 114766) 5610 5611 #line 2811 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5612 , Tuple.Create(Tuple.Create("", 114732), Tuple.Create<System.Object, System.Int32>(Translate("Sign out", "Sign out") 5613 5614 #line default 5615 #line hidden 5616 , 114732), false) 5617 ); 5618 5619 WriteLiteral("><i"); 5620 5621 WriteLiteral(" class=\"fa fa-sign-out\""); 5622 5623 WriteLiteral(" aria-hidden=\"true\""); 5624 5625 WriteLiteral("></i>"); 5626 5627 5628 #line 2811 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5629 Write(Translate("Sign Out")); 5630 5631 5632 #line default 5633 #line hidden 5634 WriteLiteral("</a>\r\n </li>\r\n"); 5635 5636 5637 #line 2813 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5638 } 5639 } 5640 5641 #line default 5642 #line hidden 5643 WriteLiteral(" "); 5644 5645 5646 #line 2814 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5647 if (GeneralSettings.Header.Mode != "mobile") 5648 { 5649 5650 5651 #line default 5652 #line hidden 5653 WriteLiteral(" <li"); 5654 5655 WriteLiteral(" class=\"hidden-lg hidden-md\""); 5656 5657 WriteLiteral(">\r\n <a"); 5658 5659 WriteLiteral(" data-toggle=\"offcanvas\""); 5660 5661 WriteLiteral(" data-target=\"#myNavmenu\""); 5662 5663 WriteLiteral(" data-canvas=\"body\""); 5664 5665 WriteLiteral("> <i"); 5666 5667 WriteLiteral(" class=\"fa fa-bars barsLink\""); 5668 5669 WriteLiteral("></i></a>\r\n </li>\r\n"); 5670 5671 5672 #line 2819 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5673 } 5674 5675 5676 #line default 5677 #line hidden 5678 WriteLiteral(" </ul>\r\n\r\n\r\n\r\n " + 5679 " </nav>\r\n"); 5680 5681 5682 #line 2825 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5683 5684 5685 #line default 5686 #line hidden 5687 5688 #line 2825 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5689 5690 var deviceType = Dynamicweb.Frontend.PageView.Current().Device.ToString(); 5691 5692 5693 #line default 5694 #line hidden 5695 WriteLiteral("\r\n\r\n </div>\r\n\r\n </div>\r" + 5696 "\n </div>\r\n </div>\r\n"); 5697 5698 5699 #line 2834 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5700 } 5701 5702 5703 #line default 5704 #line hidden 5705 WriteLiteral(" <div"); 5706 5707 WriteLiteral(" class=\"dropdown-megamenu Manufacturer hidden-xs hidden-sm navbar-fixed affix\""); 5708 5709 WriteLiteral(" role=\"navigation\""); 5710 5711 WriteLiteral(" data-spy=\""); 5712 5713 5714 #line 2835 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5715 Write(stickyTrigger); 5716 5717 5718 #line default 5719 #line hidden 5720 WriteLiteral("\""); 5721 5722 WriteLiteral(" data-offset-top=\""); 5723 5724 5725 #line 2835 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5726 Write(sticky); 5727 5728 5729 #line default 5730 #line hidden 5731 WriteLiteral("\""); 5732 5733 WriteLiteral(">\r\n\r\n"); 5734 5735 WriteLiteral(" "); 5736 5737 5738 #line 2837 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5739 Write(RenderItemList(new { ItemType = "Manufacturer", ListSourceType = "Area", ListSourceArea = 1, ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/navigation.cshtml", ListPageSize = 100 })); 5740 5741 5742 #line default 5743 #line hidden 5744 WriteLiteral("\r\n\r\n </div>\r\n\r\n <div"); 5745 5746 WriteLiteral(" id=\"navOne\""); 5747 5748 WriteAttribute("class", Tuple.Create(" class=\"", 116366), Tuple.Create("\"", 116442) 5749 , Tuple.Create(Tuple.Create("", 116374), Tuple.Create("navbar-wp", 116374), true) 5750 5751 #line 2841 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5752 , Tuple.Create(Tuple.Create(" ", 116383), Tuple.Create<System.Object, System.Int32>(selectionstyle 5753 5754 #line default 5755 #line hidden 5756 , 116384), false) 5757 , Tuple.Create(Tuple.Create(" ", 116399), Tuple.Create("navbar-fixed", 116400), true) 5758 , Tuple.Create(Tuple.Create(" ", 116412), Tuple.Create("affix-top", 116413), true) 5759 , Tuple.Create(Tuple.Create(" ", 116422), Tuple.Create("hidden-sm", 116423), true) 5760 , Tuple.Create(Tuple.Create(" ", 116432), Tuple.Create("hidden-xs", 116433), true) 5761 ); 5762 5763 WriteLiteral(" role=\"navigation\""); 5764 5765 WriteLiteral(" data-spy=\""); 5766 5767 5768 #line 2841 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5769 Write(stickyTrigger); 5770 5771 5772 #line default 5773 #line hidden 5774 WriteLiteral("\""); 5775 5776 WriteLiteral(" data-offset-top=\""); 5777 5778 5779 #line 2841 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5780 Write(sticky); 5781 5782 5783 #line default 5784 #line hidden 5785 WriteLiteral("\""); 5786 5787 WriteLiteral(">\r\n <div"); 5788 5789 WriteLiteral(" class=\"container\""); 5790 5791 WriteLiteral(">\r\n"); 5792 5793 5794 #line 2843 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5795 5796 5797 #line default 5798 #line hidden 5799 5800 #line 2843 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5801 if (GeneralSettings.Header.Mode != "solid" || !GeneralSettings.Header.Show) 5802 { 5803 5804 5805 #line default 5806 #line hidden 5807 WriteLiteral(" <div"); 5808 5809 WriteAttribute("class", Tuple.Create(" class=\"", 116722), Tuple.Create("\"", 116793) 5810 , Tuple.Create(Tuple.Create("", 116730), Tuple.Create("navbar-header", 116730), true) 5811 , Tuple.Create(Tuple.Create(" ", 116743), Tuple.Create("pull-", 116744), true) 5812 5813 #line 2845 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5814 , Tuple.Create(Tuple.Create("", 116749), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Navigation.InvertedPosition 5815 5816 #line default 5817 #line hidden 5818 , 116749), false) 5819 ); 5820 5821 WriteLiteral(">\r\n <div"); 5822 5823 WriteLiteral(" class=\"hidden-sm hidden-xs\""); 5824 5825 WriteLiteral(">\r\n <a"); 5826 5827 WriteAttribute("href", Tuple.Create(" href=\"", 116902), Tuple.Create("\"", 116938) 5828 , Tuple.Create(Tuple.Create("", 116909), Tuple.Create("/Default.aspx?ID=", 116909), true) 5829 5830 #line 2847 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5831 , Tuple.Create(Tuple.Create("", 116926), Tuple.Create<System.Object, System.Int32>(firstpageid 5832 5833 #line default 5834 #line hidden 5835 , 116926), false) 5836 ); 5837 5838 WriteLiteral(" class=\"brand\""); 5839 5840 WriteLiteral(">\r\n"); 5841 5842 5843 #line 2848 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5844 5845 5846 #line default 5847 #line hidden 5848 5849 #line 2848 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5850 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 5851 { 5852 if (GeneralSettings.Logo.ContrastImage != GeneralSettings.Logo.Image) 5853 { 5854 5855 5856 #line default 5857 #line hidden 5858 WriteLiteral(" <img"); 5859 5860 WriteLiteral(" class=\"img-responsive dw-logoimage dw-logoimage-normal pull-left\""); 5861 5862 WriteAttribute("src", Tuple.Create(" src=\"", 117381), Tuple.Create("\"", 117414) 5863 5864 #line 2852 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5865 , Tuple.Create(Tuple.Create("", 117387), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Logo.Image 5866 5867 #line default 5868 #line hidden 5869 , 117387), false) 5870 ); 5871 5872 WriteLiteral(" alt=\"Logo\""); 5873 5874 WriteLiteral(">\r\n"); 5875 5876 WriteLiteral(" <img"); 5877 5878 WriteLiteral(" class=\"img-responsive dw-logoimage dw-logoimage-contrast pull-left\""); 5879 5880 WriteAttribute("src", Tuple.Create(" src=\"", 117549), Tuple.Create("\"", 117590) 5881 5882 #line 2853 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5883 , Tuple.Create(Tuple.Create("", 117555), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Logo.ContrastImage 5884 5885 #line default 5886 #line hidden 5887 , 117555), false) 5888 ); 5889 5890 WriteLiteral(" alt=\"Logo\""); 5891 5892 WriteLiteral(">\r\n"); 5893 5894 5895 #line 2854 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5896 } 5897 else 5898 { 5899 5900 5901 #line default 5902 #line hidden 5903 WriteLiteral(" <img"); 5904 5905 WriteLiteral(" class=\"img-responsive dw-logoimage pull-left\""); 5906 5907 WriteAttribute("src", Tuple.Create(" src=\"", 117847), Tuple.Create("\"", 117880) 5908 5909 #line 2857 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5910 , Tuple.Create(Tuple.Create("", 117853), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Logo.Image 5911 5912 #line default 5913 #line hidden 5914 , 117853), false) 5915 ); 5916 5917 WriteLiteral(" alt=\"Logo\""); 5918 5919 WriteLiteral(">\r\n"); 5920 5921 5922 #line 2858 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5923 } 5924 } 5925 5926 5927 #line default 5928 #line hidden 5929 WriteLiteral("\r\n"); 5930 5931 5932 #line 2861 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5933 5934 5935 #line default 5936 #line hidden 5937 5938 #line 2861 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5939 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 5940 { 5941 5942 5943 #line default 5944 #line hidden 5945 WriteLiteral(" <div"); 5946 5947 WriteLiteral(" class=\"dw-logotext pull-left\""); 5948 5949 WriteLiteral(">"); 5950 5951 5952 #line 2863 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5953 Write(GeneralSettings.Logo.Text); 5954 5955 5956 #line default 5957 #line hidden 5958 WriteLiteral("</div>\r\n"); 5959 5960 5961 #line 2864 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5962 } 5963 5964 5965 #line default 5966 #line hidden 5967 WriteLiteral(" </a>\r\n\r\n"); 5968 5969 5970 #line 2867 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5971 5972 5973 #line default 5974 #line hidden 5975 5976 #line 2867 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5977 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Slogan)) 5978 { 5979 5980 5981 #line default 5982 #line hidden 5983 WriteLiteral(" <div"); 5984 5985 WriteLiteral(" class=\"dw-slogantext pull-left\""); 5986 5987 WriteLiteral(">"); 5988 5989 5990 #line 2869 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 5991 Write(GeneralSettings.Logo.Slogan); 5992 5993 5994 #line default 5995 #line hidden 5996 WriteLiteral("</div>\r\n"); 5997 5998 5999 #line 2870 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6000 } 6001 6002 6003 #line default 6004 #line hidden 6005 WriteLiteral(" </div>\r\n </div>\r\n"); 6006 6007 6008 #line 2873 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6009 } 6010 6011 6012 #line default 6013 #line hidden 6014 WriteLiteral(" "); 6015 6016 6017 #line 2874 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6018 if (GeneralSettings.Header.Mode == "mobile") 6019 { 6020 6021 6022 #line default 6023 #line hidden 6024 WriteLiteral("\t\t\t\t\t\t\t<!-- Using only mobile navigation -->\r\n"); 6025 6026 WriteLiteral(" <div"); 6027 6028 WriteAttribute("class", Tuple.Create(" class=\"", 118900), Tuple.Create("\"", 118949) 6029 , Tuple.Create(Tuple.Create("", 118908), Tuple.Create("pull-", 118908), true) 6030 6031 #line 2877 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6032 , Tuple.Create(Tuple.Create("", 118913), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Navigation.Position 6033 6034 #line default 6035 #line hidden 6036 , 118913), false) 6037 ); 6038 6039 WriteLiteral(">\r\n <ul"); 6040 6041 WriteLiteral(" class=\"nav navbar-nav\""); 6042 6043 WriteLiteral(">\r\n <li"); 6044 6045 WriteLiteral(" class=\"dw-navbar-button\""); 6046 6047 WriteLiteral(" data-toggle=\"offcanvas\""); 6048 6049 WriteLiteral(" data-target=\"#myNavmenu\""); 6050 6051 WriteLiteral(" data-canvas=\"body\""); 6052 6053 WriteLiteral(">\r\n <a><i"); 6054 6055 WriteLiteral(" class=\"fa fa-bars fa-2x\""); 6056 6057 WriteLiteral("></i><span></span></a>\r\n </li>\r\n " + 6058 " </ul>\r\n </div>\r\n"); 6059 6060 6061 #line 2884 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6062 } 6063 6064 6065 #line default 6066 #line hidden 6067 WriteLiteral(" </div>\r\n </div>\r\n\r\n"); 6068 6069 6070 #line 2888 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6071 6072 6073 #line default 6074 #line hidden 6075 6076 #line 2888 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6077 if (GetLoop("DWExtranetSecondaryUsers").Count > 0 || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 6078 { 6079 6080 6081 #line default 6082 #line hidden 6083 WriteLiteral(" <div"); 6084 6085 WriteLiteral(" class=\"impersonation-box\""); 6086 6087 WriteLiteral(" role=\"navigation\""); 6088 6089 WriteAttribute("style", Tuple.Create(" style=\"", 119684), Tuple.Create("\"", 119723) 6090 , Tuple.Create(Tuple.Create("", 119692), Tuple.Create("background-color:", 119692), true) 6091 6092 #line 2890 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6093 , Tuple.Create(Tuple.Create("", 119709), Tuple.Create<System.Object, System.Int32>(primaryColor 6094 6095 #line default 6096 #line hidden 6097 , 119709), false) 6098 , Tuple.Create(Tuple.Create("", 119722), Tuple.Create(";", 119722), true) 6099 ); 6100 6101 WriteLiteral(">\r\n <div"); 6102 6103 WriteLiteral(" class=\"container\""); 6104 6105 WriteLiteral(">\r\n <form"); 6106 6107 WriteLiteral(" method=\"post\""); 6108 6109 WriteLiteral(" action=\"/\""); 6110 6111 WriteLiteral(" class=\"form-inline\""); 6112 6113 WriteLiteral(" id=\"form-impersonate\""); 6114 6115 WriteLiteral(">\r\n\r\n <span>\r\n"); 6116 6117 6118 #line 2895 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6119 6120 6121 #line default 6122 #line hidden 6123 6124 #line 2895 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6125 if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 6126 { 6127 6128 6129 #line default 6130 #line hidden 6131 WriteLiteral(" <a"); 6132 6133 WriteLiteral(" class=\"impersonateListLink\""); 6134 6135 WriteAttribute("href", Tuple.Create(" href=\"", 120155), Tuple.Create("\"", 120180) 6136 6137 #line 2897 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6138 , Tuple.Create(Tuple.Create("", 120162), Tuple.Create<System.Object, System.Int32>(impersonationList 6139 6140 #line default 6141 #line hidden 6142 , 120162), false) 6143 ); 6144 6145 WriteLiteral(" title=\"View the list of users you can impersonate\""); 6146 6147 WriteLiteral(">\r\n"); 6148 6149 WriteLiteral(" "); 6150 6151 6152 #line 2898 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6153 Write(Translate("View the list of users you can impersonate", "View the list of users you can impersonate")); 6154 6155 6156 #line default 6157 #line hidden 6158 WriteLiteral("\r\n </a>\r\n"); 6159 6160 6161 #line 2900 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6162 } 6163 else 6164 { 6165 string impersonateUser = GetGlobalValue("Global:Extranet.SecondaryUser.UserName") + " " + Translate("is now impersonating") + " " + GetGlobalValue("Global:Extranet.UserName"); 6166 string stopImpersonateTranslation = Translate("Stop impersonation"); 6167 6168 6169 #line default 6170 #line hidden 6171 WriteLiteral(" <span"); 6172 6173 WriteAttribute("title", Tuple.Create(" title=\"", 120921), Tuple.Create("\"", 120945) 6174 6175 #line 2905 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6176 , Tuple.Create(Tuple.Create("", 120929), Tuple.Create<System.Object, System.Int32>(impersonateUser 6177 6178 #line default 6179 #line hidden 6180 , 120929), false) 6181 ); 6182 6183 WriteLiteral(" class=\"impersonate-user\""); 6184 6185 WriteLiteral("><i"); 6186 6187 WriteLiteral(" class=\"fa fa-user-secret\""); 6188 6189 WriteLiteral("></i> "); 6190 6191 6192 #line 2905 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6193 Write(impersonateUser); 6194 6195 6196 #line default 6197 #line hidden 6198 WriteLiteral("</span>\r\n"); 6199 6200 WriteLiteral(" <input"); 6201 6202 WriteLiteral(" type=\"hidden\""); 6203 6204 WriteLiteral(" name=\"DWExtranetRemoveSecondaryUser\""); 6205 6206 WriteLiteral(" value=\'Stop+impersonation\'"); 6207 6208 WriteLiteral(">\r\n"); 6209 6210 WriteLiteral(" <button"); 6211 6212 WriteLiteral(" type=\"submit\""); 6213 6214 WriteLiteral(" class=\"btn btn-dw-primary impresonateButton\""); 6215 6216 WriteAttribute("value", Tuple.Create(" value=\"", 121265), Tuple.Create("\"", 121300) 6217 6218 #line 2907 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6219 , Tuple.Create(Tuple.Create("", 121273), Tuple.Create<System.Object, System.Int32>(stopImpersonateTranslation 6220 6221 #line default 6222 #line hidden 6223 , 121273), false) 6224 ); 6225 6226 WriteLiteral(">\r\n"); 6227 6228 WriteLiteral(" "); 6229 6230 6231 #line 2908 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6232 Write(stopImpersonateTranslation); 6233 6234 6235 #line default 6236 #line hidden 6237 WriteLiteral("\r\n </button>\r\n"); 6238 6239 6240 #line 2910 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6241 } 6242 6243 6244 #line default 6245 #line hidden 6246 WriteLiteral(" </span>\r\n </form>\r\n " + 6247 " </div>\r\n </div>\r\n"); 6248 6249 6250 #line 2915 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6251 } 6252 6253 6254 #line default 6255 #line hidden 6256 WriteLiteral("\r\n"); 6257 6258 6259 #line 2917 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6260 6261 6262 #line default 6263 #line hidden 6264 6265 #line 2917 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6266 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.HeaderLayoutImage"))) 6267 { 6268 if (currentpageid != firstpageid) 6269 { 6270 var coverimage = GetString("Item.Area.HeaderLayoutImage"); 6271 6272 6273 6274 #line default 6275 #line hidden 6276 WriteLiteral(" <div"); 6277 6278 WriteLiteral(" class=\"container-fluid dw-header-image\""); 6279 6280 WriteLiteral(">\r\n <div"); 6281 6282 WriteLiteral(" class=\"row\""); 6283 6284 WriteLiteral(">\r\n <section"); 6285 6286 WriteLiteral(" class=\"carousel carousel-1 slice fluid\""); 6287 6288 WriteAttribute("style", Tuple.Create(" style=\"", 122099), Tuple.Create("\"", 122337) 6289 , Tuple.Create(Tuple.Create("", 122107), Tuple.Create("height:", 122107), true) 6290 , Tuple.Create(Tuple.Create(" ", 122114), Tuple.Create("160px", 122115), true) 6291 , Tuple.Create(Tuple.Create(" ", 122120), Tuple.Create("!important;", 122121), true) 6292 , Tuple.Create(Tuple.Create(" ", 122132), Tuple.Create("background:", 122133), true) 6293 , Tuple.Create(Tuple.Create(" ", 122144), Tuple.Create("url(\'/Admin/Public/Getimage.ashx?width=1920&amp;compression=75&amp;Crop=5&amp;ima" + 6294 "ge=", 122145), true) 6295 6296 #line 2925 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6297 , Tuple.Create(Tuple.Create("", 122229), Tuple.Create<System.Object, System.Int32>(coverimage 6298 6299 #line default 6300 #line hidden 6301 , 122229), false) 6302 , Tuple.Create(Tuple.Create("", 122240), Tuple.Create("\')", 122240), true) 6303 , Tuple.Create(Tuple.Create(" ", 122242), Tuple.Create("no-repeat;", 122243), true) 6304 , Tuple.Create(Tuple.Create(" ", 122253), Tuple.Create("background-size:", 122254), true) 6305 , Tuple.Create(Tuple.Create(" ", 122270), Tuple.Create("cover", 122271), true) 6306 , Tuple.Create(Tuple.Create(" ", 122276), Tuple.Create("!important;", 122277), true) 6307 , Tuple.Create(Tuple.Create(" ", 122288), Tuple.Create("background-color:", 122289), true) 6308 6309 #line 2925 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6310 , Tuple.Create(Tuple.Create(" ", 122306), Tuple.Create<System.Object, System.Int32>(ColorSettings.Color.Secondary 6311 6312 #line default 6313 #line hidden 6314 , 122307), false) 6315 ); 6316 6317 WriteLiteral("></section>\r\n </div>\r\n </div>\r\n" + 6318 ""); 6319 6320 6321 #line 2928 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6322 } 6323 else if (GeneralSettings.Header.ShowFrontpageImage) 6324 { 6325 var coverimage = GetString("Item.Area.HeaderLayoutImage"); 6326 6327 6328 6329 #line default 6330 #line hidden 6331 WriteLiteral(" <div"); 6332 6333 WriteLiteral(" class=\"container-fluid dw-header-image\""); 6334 6335 WriteLiteral(">\r\n <div"); 6336 6337 WriteLiteral(" class=\"row\""); 6338 6339 WriteLiteral(">\r\n <section"); 6340 6341 WriteLiteral(" class=\"carousel carousel-1 slice fluid\""); 6342 6343 WriteAttribute("style", Tuple.Create(" style=\"", 122822), Tuple.Create("\"", 123060) 6344 , Tuple.Create(Tuple.Create("", 122830), Tuple.Create("height:", 122830), true) 6345 , Tuple.Create(Tuple.Create(" ", 122837), Tuple.Create("160px", 122838), true) 6346 , Tuple.Create(Tuple.Create(" ", 122843), Tuple.Create("!important;", 122844), true) 6347 , Tuple.Create(Tuple.Create(" ", 122855), Tuple.Create("background:", 122856), true) 6348 , Tuple.Create(Tuple.Create(" ", 122867), Tuple.Create("url(\'/Admin/Public/Getimage.ashx?width=1920&amp;compression=75&amp;Crop=5&amp;ima" + 6349 "ge=", 122868), true) 6350 6351 #line 2935 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6352 , Tuple.Create(Tuple.Create("", 122952), Tuple.Create<System.Object, System.Int32>(coverimage 6353 6354 #line default 6355 #line hidden 6356 , 122952), false) 6357 , Tuple.Create(Tuple.Create("", 122963), Tuple.Create("\')", 122963), true) 6358 , Tuple.Create(Tuple.Create(" ", 122965), Tuple.Create("no-repeat;", 122966), true) 6359 , Tuple.Create(Tuple.Create(" ", 122976), Tuple.Create("background-size:", 122977), true) 6360 , Tuple.Create(Tuple.Create(" ", 122993), Tuple.Create("cover", 122994), true) 6361 , Tuple.Create(Tuple.Create(" ", 122999), Tuple.Create("!important;", 123000), true) 6362 , Tuple.Create(Tuple.Create(" ", 123011), Tuple.Create("background-color:", 123012), true) 6363 6364 #line 2935 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6365 , Tuple.Create(Tuple.Create(" ", 123029), Tuple.Create<System.Object, System.Int32>(ColorSettings.Color.Secondary 6366 6367 #line default 6368 #line hidden 6369 , 123030), false) 6370 ); 6371 6372 WriteLiteral("></section>\r\n </div>\r\n </div>\r\n" + 6373 ""); 6374 6375 6376 #line 2938 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6377 } 6378 } 6379 else if (GeneralSettings.Header.Mode != "solid") 6380 { 6381 if (currentpageid != firstpageid) 6382 { 6383 6384 6385 #line default 6386 #line hidden 6387 WriteLiteral(" <div"); 6388 6389 WriteLiteral(" class=\"container-fluid dw-header-image\""); 6390 6391 WriteLiteral(">\r\n <div"); 6392 6393 WriteLiteral(" class=\"row\""); 6394 6395 WriteLiteral(">\r\n <section"); 6396 6397 WriteLiteral(" class=\"carousel carousel-1 slice fluid\""); 6398 6399 WriteLiteral(" style=\"height: 160px !important; background-color: transparent; background-size:" + 6400 " cover !important;\""); 6401 6402 WriteLiteral("></section>\r\n </div>\r\n </div>\r\n" + 6403 ""); 6404 6405 6406 #line 2949 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6407 6408 } 6409 } 6410 6411 6412 #line default 6413 #line hidden 6414 WriteLiteral(" "); 6415 6416 6417 #line 2952 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6418 6419 var actionLink = "/Default.aspx?ID=" + searchPageID + "&PageNum=1"; 6420 6421 6422 #line default 6423 #line hidden 6424 WriteLiteral("\r\n <div"); 6425 6426 WriteLiteral(" class=\"inner-search\""); 6427 6428 WriteLiteral(">\r\n <div"); 6429 6430 WriteLiteral(" class=\"container\""); 6431 6432 WriteLiteral(">\r\n <div"); 6433 6434 WriteLiteral(" class=\"row\""); 6435 6436 WriteLiteral(">\r\n <div"); 6437 6438 WriteLiteral(" class=\"col-md-5 col-sm-12 col-xs-12 top-header navbar navbar-enco\""); 6439 6440 WriteLiteral(">\r\n <nav"); 6441 6442 WriteLiteral(" class=\"navbar-collapse collapse\""); 6443 6444 WriteLiteral(">\r\n"); 6445 6446 6447 #line 2960 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6448 6449 6450 #line default 6451 #line hidden 6452 6453 #line 2960 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6454 if (GeneralSettings.Navigation.IsMegamenu) 6455 { 6456 6457 6458 #line default 6459 #line hidden 6460 6461 #line 2962 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6462 Write(GetValue("DwNavigation(topnavigationmegamenu)")); 6463 6464 6465 #line default 6466 #line hidden 6467 6468 #line 2962 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6469 6470 } 6471 else 6472 { 6473 6474 6475 #line default 6476 #line hidden 6477 6478 #line 2966 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6479 Write(GetValue("DwNavigation(topnavigation)")); 6480 6481 6482 #line default 6483 #line hidden 6484 6485 #line 2966 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6486 6487 } 6488 6489 6490 #line default 6491 #line hidden 6492 WriteLiteral("\r\n <!-- Extra navigation when no header is sho" + 6493 "wn -->\r\n"); 6494 6495 6496 #line 2970 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6497 6498 6499 #line default 6500 #line hidden 6501 6502 #line 2970 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6503 if (GetBoolean("Item.Area.EcomEnabled")) 6504 { 6505 if (!GeneralSettings.Header.Show) 6506 { 6507 6508 6509 #line default 6510 #line hidden 6511 WriteLiteral(" <ul"); 6512 6513 WriteLiteral(" class=\"nav navbar-nav\""); 6514 6515 WriteLiteral(">\r\n <li>&nbsp;&nbsp;&nbsp;</li>\r\n"); 6516 6517 6518 #line 2976 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6519 6520 6521 #line default 6522 #line hidden 6523 6524 #line 2976 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6525 if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 6526 { 6527 6528 6529 #line default 6530 #line hidden 6531 WriteLiteral(" <li"); 6532 6533 WriteLiteral(" class=\"dw-navbar-button\""); 6534 6535 WriteLiteral("><a"); 6536 6537 WriteLiteral(" href=\"#\""); 6538 6539 WriteLiteral(" data-toggle=\"modal\""); 6540 6541 WriteLiteral(" data-target=\"#login\""); 6542 6543 WriteLiteral(" data-hover=\"dropdown\""); 6544 6545 WriteLiteral("><i"); 6546 6547 WriteLiteral(" class=\"fa fa-sign-in\""); 6548 6549 WriteLiteral("></i><span></span></a></li>\r\n"); 6550 6551 WriteLiteral(" <li"); 6552 6553 WriteLiteral(" class=\"dw-navbar-button\""); 6554 6555 WriteLiteral("><a"); 6556 6557 WriteAttribute("href", Tuple.Create(" href=\"", 125609), Tuple.Create("\"", 125644) 6558 , Tuple.Create(Tuple.Create("", 125616), Tuple.Create("/Default.aspx?ID=", 125616), true) 6559 6560 #line 2979 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6561 , Tuple.Create(Tuple.Create("", 125633), Tuple.Create<System.Object, System.Int32>(createuser 6562 6563 #line default 6564 #line hidden 6565 , 125633), false) 6566 ); 6567 6568 WriteLiteral(" data-hover=\"dropdown\""); 6569 6570 WriteLiteral("><i"); 6571 6572 WriteLiteral(" class=\"fa fa-user\""); 6573 6574 WriteLiteral("></i><span></span></a></li>\r\n"); 6575 6576 6577 #line 2980 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6578 } 6579 6580 6581 #line default 6582 #line hidden 6583 WriteLiteral("\r\n"); 6584 6585 6586 #line 2982 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6587 6588 6589 #line default 6590 #line hidden 6591 6592 #line 2982 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6593 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 6594 { 6595 6596 6597 #line default 6598 #line hidden 6599 WriteLiteral(" <li"); 6600 6601 WriteLiteral(" class=\"dw-navbar-button\""); 6602 6603 WriteLiteral(">\r\n <a"); 6604 6605 WriteAttribute("href", Tuple.Create(" href=\'", 126098), Tuple.Create("\'", 126156) 6606 , Tuple.Create(Tuple.Create("", 126105), Tuple.Create("Default.aspx?ID=", 126105), true) 6607 6608 #line 2985 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6609 , Tuple.Create(Tuple.Create("", 126121), Tuple.Create<System.Object, System.Int32>(Pageview.Area.Item["OrdersPageId"] 6610 6611 #line default 6612 #line hidden 6613 , 126121), false) 6614 ); 6615 6616 WriteLiteral(" data-hover=\"dropdown\""); 6617 6618 WriteLiteral(">\r\n <nobr>\r\n " + 6619 " <strong><i"); 6620 6621 WriteLiteral(" class=\"fa fa-user\""); 6622 6623 WriteLiteral(@"></i></strong> 6624 </nobr> 6625 <span></span> 6626 </a> 6627 </li> 6628 "); 6629 6630 WriteLiteral(" <li"); 6631 6632 WriteLiteral(" class=\"dw-navbar-button\""); 6633 6634 WriteLiteral(">\r\n <a"); 6635 6636 WriteAttribute("href", Tuple.Create(" href=\"", 126765), Tuple.Create("\"", 126826) 6637 , Tuple.Create(Tuple.Create("", 126772), Tuple.Create("/Admin/Public/ExtranetLogoff.aspx?ID=", 126772), true) 6638 6639 #line 2993 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6640 , Tuple.Create(Tuple.Create("", 126809), Tuple.Create<System.Object, System.Int32>(Pageview.Page.ID 6641 6642 #line default 6643 #line hidden 6644 , 126809), false) 6645 ); 6646 6647 WriteLiteral(" data-hover=\"dropdown\""); 6648 6649 WriteLiteral("><i"); 6650 6651 WriteLiteral(" class=\"fa fa-sign-out\""); 6652 6653 WriteLiteral("></i>"); 6654 6655 6656 #line 2993 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6657 Write(Translate("Sign Out")); 6658 6659 6660 #line default 6661 #line hidden 6662 WriteLiteral("<span></span></a>\r\n </li>\r\n"); 6663 6664 6665 #line 2995 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6666 } 6667 6668 6669 #line default 6670 #line hidden 6671 WriteLiteral("\r\n <li"); 6672 6673 WriteLiteral(" class=\"dw-navbar-button\""); 6674 6675 WriteLiteral(">\r\n <a"); 6676 6677 WriteAttribute("href", Tuple.Create(" href=\"", 127166), Tuple.Create("\"", 127196) 6678 , Tuple.Create(Tuple.Create("", 127173), Tuple.Create("Default.aspx?ID=", 127173), true) 6679 6680 #line 2998 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6681 , Tuple.Create(Tuple.Create("", 127189), Tuple.Create<System.Object, System.Int32>(cartid 6682 6683 #line default 6684 #line hidden 6685 , 127189), false) 6686 ); 6687 6688 WriteLiteral(" title=\"\""); 6689 6690 WriteLiteral(" id=\"minipagecart-extra\""); 6691 6692 WriteLiteral(" data-hover=\"dropdown\""); 6693 6694 WriteLiteral("><i"); 6695 6696 WriteLiteral(" class=\"fa fa-shopping-cart\""); 6697 6698 WriteLiteral("></i> "); 6699 6700 6701 #line 2998 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6702 Write(GetValue("Ecom:Order.OrderLines.TotalProductQuantity")); 6703 6704 6705 #line default 6706 #line hidden 6707 WriteLiteral(" <span"); 6708 6709 WriteLiteral(" class=\"amount\""); 6710 6711 WriteLiteral(">"); 6712 6713 6714 #line 2998 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6715 Write(GetValue("Ecom:Order.OrderLines.Total.PriceWithVAT")); 6716 6717 6718 #line default 6719 #line hidden 6720 WriteLiteral("</span><span></span></a>\r\n </li>\r\n" + 6721 " </ul>\r\n"); 6722 6723 6724 #line 3001 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6725 } 6726 } 6727 6728 6729 #line default 6730 #line hidden 6731 WriteLiteral(" </nav>\r\n </div>\r\n " + 6732 " <div"); 6733 6734 WriteLiteral(" class=\"col-md-7 col-sm-12 col-xs-12\""); 6735 6736 WriteLiteral(">\r\n <form"); 6737 6738 WriteLiteral(" class=\"innerSearch\""); 6739 6740 WriteLiteral(" method=\"POST\""); 6741 6742 WriteLiteral(">\r\n <input"); 6743 6744 WriteLiteral(" name=\"actionVal\""); 6745 6746 WriteLiteral(" type=\"hidden\""); 6747 6748 WriteAttribute("value", Tuple.Create(" value=\"", 127928), Tuple.Create("\"", 127947) 6749 6750 #line 3007 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6751 , Tuple.Create(Tuple.Create("", 127936), Tuple.Create<System.Object, System.Int32>(actionLink 6752 6753 #line default 6754 #line hidden 6755 , 127936), false) 6756 ); 6757 6758 WriteLiteral(">\r\n <div"); 6759 6760 WriteLiteral(" class=\"dw-inner-search\""); 6761 6762 WriteLiteral(">\r\n <div"); 6763 6764 WriteLiteral(" class=\"input-wrapper\""); 6765 6766 WriteLiteral(">\r\n <input"); 6767 6768 WriteLiteral(" type=\"text\""); 6769 6770 WriteLiteral(" id=\"searchInput\""); 6771 6772 WriteLiteral(" name=\"q\""); 6773 6774 WriteLiteral(" class=\"form-control js-typeahead innerSerachBox\""); 6775 6776 WriteLiteral(" autocomplete=\"off\""); 6777 6778 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 128239), Tuple.Create("\"", 128271) 6779 6780 #line 3010 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6781 , Tuple.Create(Tuple.Create("", 128253), Tuple.Create<System.Object, System.Int32>(searchplaceholder 6782 6783 #line default 6784 #line hidden 6785 , 128253), false) 6786 ); 6787 6788 WriteLiteral(" data-container-id=\"typeaheadSearch\""); 6789 6790 WriteLiteral(" data-search-page-id=\""); 6791 6792 6793 #line 3010 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6794 Write(productsJsonID); 6795 6796 6797 #line default 6798 #line hidden 6799 WriteLiteral("\""); 6800 6801 WriteLiteral(">\r\n <label"); 6802 6803 WriteLiteral(" for=\"searchInput\""); 6804 6805 WriteLiteral(" class=\"fa fa-search input-icon\""); 6806 6807 WriteLiteral("></label>\r\n </div>\r\n " + 6808 " <input"); 6809 6810 WriteLiteral(" type=\"submit\""); 6811 6812 WriteLiteral(" class=\"hidden\""); 6813 6814 WriteLiteral(" value=\"sumbit\""); 6815 6816 WriteLiteral(">\r\n <div"); 6817 6818 WriteLiteral(" class=\"typeahead-result js-ajax-container\""); 6819 6820 WriteLiteral(" id=\"typeaheadSearch\""); 6821 6822 WriteLiteral(" data-template=\"searchItems\""); 6823 6824 WriteLiteral(" data-json-feed=\"/Default.aspx?ID="); 6825 6826 6827 #line 3014 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6828 Write(productsJsonID); 6829 6830 6831 #line default 6832 #line hidden 6833 WriteLiteral("&LayoutTemplate=Json.cshtml&DisableStatistics=True&feedtype=typeahead\""); 6834 6835 WriteLiteral(" data-init-onload=\"false\""); 6836 6837 WriteLiteral(@"></div> 6838 </div> 6839 </form> 6840 </div> 6841 </div> 6842 </div> 6843 </div> 6844 </header> 6845 6846 </div> 6847 6848 6849 6850 6851 6852 6853 6854 <!-- MAIN CONTENT --> 6855 "); 6856 6857 6858 #line 3032 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6859 6860 6861 #line default 6862 #line hidden 6863 WriteLiteral("\r\n\r\n"); 6864 6865 6866 #line 3036 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6867 6868 string TitleFont = @FontSettings.H1.FontFamily; 6869 string SubFont = @FontSettings.H2.FontFamily; 6870 6871 6872 #line default 6873 #line hidden 6874 WriteLiteral("\r\n\r\n"); 6875 6876 6877 #line 3041 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6878 if(GetBoolean("Item.Page.LayoutShowBreadcrumb")) { 6879 6880 6881 #line default 6882 #line hidden 6883 WriteLiteral("<div"); 6884 6885 WriteLiteral(" class=\"pg-opt pin white\""); 6886 6887 WriteLiteral(">\r\n\t<div"); 6888 6889 WriteLiteral(" class=\"container\""); 6890 6891 WriteLiteral(">\r\n\t\t<div"); 6892 6893 WriteLiteral(" class=\"row\""); 6894 6895 WriteLiteral(">\r\n\t\t\t<div"); 6896 6897 WriteLiteral(" class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\""); 6898 6899 WriteLiteral(">\r\n"); 6900 6901 WriteLiteral("\t\t\t\t"); 6902 6903 6904 #line 3046 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6905 Write(GetValue("DwNavigation(breadcrumb)")); 6906 6907 6908 #line default 6909 #line hidden 6910 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"); 6911 6912 6913 #line 3051 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6914 } 6915 6916 6917 #line default 6918 #line hidden 6919 WriteLiteral("\r\n"); 6920 6921 6922 #line 3053 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6923 6924 string totalimages = ""; 6925 6926 foreach (LoopItem i in GetLoop("Item.Images")){ 6927 totalimages = @i.GetString("Item.Images._total"); 6928 } 6929 6930 var textpos = ((360/2)-(28+18+20)).ToString() + "px"; 6931 6932 6933 #line default 6934 #line hidden 6935 WriteLiteral("\r\n\r\n<section"); 6936 6937 WriteLiteral(" class=\"slice white animate-hover-slide mainContentWrapper\""); 6938 6939 WriteLiteral(">\r\n\t<div"); 6940 6941 WriteLiteral(" class=\"w-section inverse shop\""); 6942 6943 WriteLiteral(">\r\n\t\t<div"); 6944 6945 WriteLiteral(" class=\"container\""); 6946 6947 WriteLiteral(">\r\n\t\t\t<div"); 6948 6949 WriteLiteral(" class=\"row\""); 6950 6951 WriteLiteral(">\r\n"); 6952 6953 6954 #line 3067 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6955 6956 6957 #line default 6958 #line hidden 6959 6960 #line 3067 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6961 if(!GetBoolean("Item.Page.LayoutHideLeftMenu")) { 6962 6963 6964 #line default 6965 #line hidden 6966 WriteLiteral("\t\t\t\t<div"); 6967 6968 WriteLiteral(" class=\"col-md-3 hidden-sm hidden-xs\""); 6969 6970 WriteLiteral(">\r\n\t\t\t\t\t<div"); 6971 6972 WriteLiteral(" class=\"widget\""); 6973 6974 WriteLiteral(">\r\n\t\t\t\t\t\t<h3"); 6975 6976 WriteLiteral(" class=\"dw-section-title\""); 6977 6978 WriteLiteral("><span>"); 6979 6980 6981 #line 3070 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6982 Write(GetGlobalValue("Global:Page.Top.Name")); 6983 6984 6985 #line default 6986 #line hidden 6987 WriteLiteral("</span></h3>\r\n\t\t\t\t\t\t<text>&nbsp;</text>\r\n"); 6988 6989 WriteLiteral("\t\t\t\t\t\t"); 6990 6991 6992 #line 3072 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 6993 Write(GetValue("DwNavigation(leftnavigation)")); 6994 6995 6996 #line default 6997 #line hidden 6998 WriteLiteral("\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n"); 6999 7000 7001 #line 3075 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7002 } 7003 7004 7005 #line default 7006 #line hidden 7007 WriteLiteral("\t\t\t\t<div"); 7008 7009 WriteLiteral(" class=\"col-md-9 col-sm-12 col-xs-12\""); 7010 7011 WriteLiteral(">\r\n\t\t\t\t\t<div"); 7012 7013 WriteLiteral(" class=\"row\""); 7014 7015 WriteLiteral(">\r\n\t\t\t\t\t\t<div"); 7016 7017 WriteLiteral(" class=\"col-md-12 col-sm-12 col-xs-12\""); 7018 7019 WriteLiteral(">\r\n"); 7020 7021 7022 #line 3079 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7023 7024 7025 #line default 7026 #line hidden 7027 7028 #line 3079 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7029 if (totalimages != ""){ 7030 7031 7032 #line default 7033 #line hidden 7034 WriteLiteral("\t\t\t\t\t\t\t<div"); 7035 7036 WriteLiteral(" id=\"myCarousel\""); 7037 7038 WriteLiteral(" class=\"carousel slide\""); 7039 7040 WriteLiteral(" data-ride=\"carousel\""); 7041 7042 WriteLiteral(">\r\n\t\t\t\t\t\t\t<div"); 7043 7044 WriteLiteral(" class=\"carousel-inner\""); 7045 7046 WriteLiteral(" role=\"listbox\""); 7047 7048 WriteLiteral(" style=\"max-height:360px !important\""); 7049 7050 WriteLiteral(">\r\n\t\t\t\t\t\t\t \r\n"); 7051 7052 7053 #line 3083 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7054 7055 7056 #line default 7057 #line hidden 7058 7059 #line 3083 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7060 7061 var count = 0; 7062 var focus = "active"; 7063 7064 7065 #line default 7066 #line hidden 7067 WriteLiteral("\r\n\t\t\t\t\t\t\t \r\n"); 7068 7069 7070 #line 3088 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7071 7072 7073 #line default 7074 #line hidden 7075 7076 #line 3088 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7077 foreach (LoopItem i in GetLoop("Item.Images")){ 7078 7079 if (count > 0){ 7080 focus = ""; 7081 } 7082 7083 var image = System.Web.HttpContext.Current.Server.UrlEncode(i.GetString("Item.Images.Image")); 7084 var TitleSize = "28px"; 7085 var SubSize = "18px"; 7086 var TitleColor = "#FFF"; 7087 var SubColor = "#FFF"; 7088 7089 7090 7091 #line default 7092 #line hidden 7093 WriteLiteral("\t\t\t\t\t\t\t\t<div"); 7094 7095 WriteAttribute("class", Tuple.Create(" class=\"", 131217), Tuple.Create("\"", 131236) 7096 , Tuple.Create(Tuple.Create("", 131225), Tuple.Create("item", 131225), true) 7097 7098 #line 3100 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7099 , Tuple.Create(Tuple.Create(" ", 131229), Tuple.Create<System.Object, System.Int32>(focus 7100 7101 #line default 7102 #line hidden 7103 , 131230), false) 7104 ); 7105 7106 WriteLiteral("> \r\n\t\t\t\t\t\t\t\t\t<img"); 7107 7108 WriteLiteral(" class=\"img-responsive\""); 7109 7110 WriteAttribute("src", Tuple.Create(" src=\"", 131278), Tuple.Create("\"", 131358) 7111 , Tuple.Create(Tuple.Create("", 131284), Tuple.Create("/Admin/Public/GetImage.ashx?width=1920&amp;Compression=75&amp;image=", 131284), true) 7112 7113 #line 3101 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7114 , Tuple.Create(Tuple.Create("", 131352), Tuple.Create<System.Object, System.Int32>(image 7115 7116 #line default 7117 #line hidden 7118 , 131352), false) 7119 ); 7120 7121 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t <div"); 7122 7123 WriteLiteral(" class=\"container\""); 7124 7125 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t \t<div"); 7126 7127 WriteLiteral(" class=\"carousel-caption\""); 7128 7129 WriteAttribute("style", Tuple.Create(" style=\"", 131441), Tuple.Create("\"", 131473) 7130 , Tuple.Create(Tuple.Create("", 131449), Tuple.Create("top:", 131449), true) 7131 7132 #line 3103 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7133 , Tuple.Create(Tuple.Create(" ", 131453), Tuple.Create<System.Object, System.Int32>(textpos 7134 7135 #line default 7136 #line hidden 7137 , 131454), false) 7138 , Tuple.Create(Tuple.Create(" ", 131462), Tuple.Create("!important", 131463), true) 7139 ); 7140 7141 WriteLiteral(">\r\n"); 7142 7143 7144 #line 3104 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7145 7146 7147 #line default 7148 #line hidden 7149 7150 #line 3104 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7151 if (i.GetString("Item.Images.Link") != ""){ 7152 7153 7154 #line default 7155 #line hidden 7156 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t <a"); 7157 7158 WriteAttribute("href", Tuple.Create(" href=\"", 131551), Tuple.Create("\"", 131591) 7159 7160 #line 3105 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7161 , Tuple.Create(Tuple.Create("", 131558), Tuple.Create<System.Object, System.Int32>(i.GetString(" item.images.link") 7162 7163 #line default 7164 #line hidden 7165 , 131558), false) 7166 ); 7167 7168 WriteLiteral("=\"\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t <h2><span"); 7169 7170 WriteAttribute("style", Tuple.Create(" style=\"", 131623), Tuple.Create("\"", 131698) 7171 , Tuple.Create(Tuple.Create("", 131631), Tuple.Create("font-family:", 131631), true) 7172 7173 #line 3106 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7174 , Tuple.Create(Tuple.Create(" ", 131643), Tuple.Create<System.Object, System.Int32>(TitleFont 7175 7176 #line default 7177 #line hidden 7178 , 131644), false) 7179 , Tuple.Create(Tuple.Create("", 131654), Tuple.Create(";", 131654), true) 7180 , Tuple.Create(Tuple.Create(" ", 131655), Tuple.Create("font-size:", 131656), true) 7181 7182 #line 3106 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7183 , Tuple.Create(Tuple.Create(" ", 131666), Tuple.Create<System.Object, System.Int32>(TitleSize 7184 7185 #line default 7186 #line hidden 7187 , 131667), false) 7188 , Tuple.Create(Tuple.Create("", 131677), Tuple.Create(";", 131677), true) 7189 , Tuple.Create(Tuple.Create(" ", 131678), Tuple.Create("color:", 131679), true) 7190 7191 #line 3106 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7192 , Tuple.Create(Tuple.Create(" ", 131685), Tuple.Create<System.Object, System.Int32>(TitleColor 7193 7194 #line default 7195 #line hidden 7196 , 131686), false) 7197 , Tuple.Create(Tuple.Create("", 131697), Tuple.Create(";", 131697), true) 7198 ); 7199 7200 WriteLiteral(" class=\"title carousel-text\""); 7201 7202 WriteLiteral(">&nbsp;"); 7203 7204 7205 #line 3106 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7206 Write(i.GetString("Item.Images.Title")); 7207 7208 7209 #line default 7210 #line hidden 7211 WriteLiteral("&nbsp;</span></h2>\r\n"); 7212 7213 7214 #line 3107 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7215 7216 7217 #line default 7218 #line hidden 7219 7220 #line 3107 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7221 if (i.GetString("Item.Images.Subtitle") != ""){ 7222 7223 7224 #line default 7225 #line hidden 7226 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t\t \t<span"); 7227 7228 WriteAttribute("style", Tuple.Create(" style=\"", 131875), Tuple.Create("\"", 131944) 7229 , Tuple.Create(Tuple.Create("", 131883), Tuple.Create("font-family:", 131883), true) 7230 7231 #line 3108 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7232 , Tuple.Create(Tuple.Create(" ", 131895), Tuple.Create<System.Object, System.Int32>(SubFont 7233 7234 #line default 7235 #line hidden 7236 , 131896), false) 7237 , Tuple.Create(Tuple.Create("", 131904), Tuple.Create(";", 131904), true) 7238 , Tuple.Create(Tuple.Create(" ", 131905), Tuple.Create("font-size:", 131906), true) 7239 7240 #line 3108 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7241 , Tuple.Create(Tuple.Create(" ", 131916), Tuple.Create<System.Object, System.Int32>(SubSize 7242 7243 #line default 7244 #line hidden 7245 , 131917), false) 7246 , Tuple.Create(Tuple.Create("", 131925), Tuple.Create(";", 131925), true) 7247 , Tuple.Create(Tuple.Create(" ", 131926), Tuple.Create("color:", 131927), true) 7248 7249 #line 3108 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7250 , Tuple.Create(Tuple.Create(" ", 131933), Tuple.Create<System.Object, System.Int32>(SubColor 7251 7252 #line default 7253 #line hidden 7254 , 131934), false) 7255 , Tuple.Create(Tuple.Create("", 131943), Tuple.Create(";", 131943), true) 7256 ); 7257 7258 WriteLiteral(" class=\"subtitle carousel-text\""); 7259 7260 WriteLiteral(">&nbsp;"); 7261 7262 7263 #line 3108 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7264 Write(i.GetString("Item.Images.Text")); 7265 7266 7267 #line default 7268 #line hidden 7269 WriteLiteral("&nbsp;</span>\r\n"); 7270 7271 7272 #line 3109 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7273 } 7274 7275 7276 #line default 7277 #line hidden 7278 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t </a>\r\n"); 7279 7280 7281 #line 3111 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7282 } else { 7283 7284 7285 #line default 7286 #line hidden 7287 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t\t<h2><span"); 7288 7289 WriteAttribute("style", Tuple.Create(" style=\"", 132112), Tuple.Create("\"", 132187) 7290 , Tuple.Create(Tuple.Create("", 132120), Tuple.Create("font-family:", 132120), true) 7291 7292 #line 3112 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7293 , Tuple.Create(Tuple.Create(" ", 132132), Tuple.Create<System.Object, System.Int32>(TitleFont 7294 7295 #line default 7296 #line hidden 7297 , 132133), false) 7298 , Tuple.Create(Tuple.Create("", 132143), Tuple.Create(";", 132143), true) 7299 , Tuple.Create(Tuple.Create(" ", 132144), Tuple.Create("font-size:", 132145), true) 7300 7301 #line 3112 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7302 , Tuple.Create(Tuple.Create(" ", 132155), Tuple.Create<System.Object, System.Int32>(TitleSize 7303 7304 #line default 7305 #line hidden 7306 , 132156), false) 7307 , Tuple.Create(Tuple.Create("", 132166), Tuple.Create(";", 132166), true) 7308 , Tuple.Create(Tuple.Create(" ", 132167), Tuple.Create("color:", 132168), true) 7309 7310 #line 3112 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7311 , Tuple.Create(Tuple.Create(" ", 132174), Tuple.Create<System.Object, System.Int32>(TitleColor 7312 7313 #line default 7314 #line hidden 7315 , 132175), false) 7316 , Tuple.Create(Tuple.Create("", 132186), Tuple.Create(";", 132186), true) 7317 ); 7318 7319 WriteLiteral(" class=\"title carousel-text\""); 7320 7321 WriteLiteral(">&nbsp;"); 7322 7323 7324 #line 3112 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7325 Write(i.GetString("Item.Images.Title")); 7326 7327 7328 #line default 7329 #line hidden 7330 WriteLiteral("&nbsp;</span></h2>\r\n"); 7331 7332 7333 #line 3113 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7334 if (i.GetString("Item.Images.Subtitle") != ""){ 7335 7336 7337 #line default 7338 #line hidden 7339 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t\t\t<span"); 7340 7341 WriteAttribute("style", Tuple.Create(" style=\"", 132355), Tuple.Create("\"", 132424) 7342 , Tuple.Create(Tuple.Create("", 132363), Tuple.Create("font-family:", 132363), true) 7343 7344 #line 3114 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7345 , Tuple.Create(Tuple.Create(" ", 132375), Tuple.Create<System.Object, System.Int32>(SubFont 7346 7347 #line default 7348 #line hidden 7349 , 132376), false) 7350 , Tuple.Create(Tuple.Create("", 132384), Tuple.Create(";", 132384), true) 7351 , Tuple.Create(Tuple.Create(" ", 132385), Tuple.Create("font-size:", 132386), true) 7352 7353 #line 3114 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7354 , Tuple.Create(Tuple.Create(" ", 132396), Tuple.Create<System.Object, System.Int32>(SubSize 7355 7356 #line default 7357 #line hidden 7358 , 132397), false) 7359 , Tuple.Create(Tuple.Create("", 132405), Tuple.Create(";", 132405), true) 7360 , Tuple.Create(Tuple.Create(" ", 132406), Tuple.Create("color:", 132407), true) 7361 7362 #line 3114 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7363 , Tuple.Create(Tuple.Create(" ", 132413), Tuple.Create<System.Object, System.Int32>(SubColor 7364 7365 #line default 7366 #line hidden 7367 , 132414), false) 7368 , Tuple.Create(Tuple.Create("", 132423), Tuple.Create(";", 132423), true) 7369 ); 7370 7371 WriteLiteral(" class=\"subtitle carousel-text\""); 7372 7373 WriteLiteral(">&nbsp;"); 7374 7375 7376 #line 3114 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7377 Write(i.GetString("Item.Images.Text")); 7378 7379 7380 #line default 7381 #line hidden 7382 WriteLiteral("&nbsp;</span>\r\n"); 7383 7384 7385 #line 3115 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7386 } 7387 } 7388 7389 7390 #line default 7391 #line hidden 7392 WriteLiteral("\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t </div>\r\n\t\t\t\t\t\t\t\t</div>\r\n"); 7393 7394 7395 #line 3120 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7396 7397 count++; 7398 } 7399 7400 7401 #line default 7402 #line hidden 7403 WriteLiteral("\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<!-- Controls -->\r\n\t\t\t\t\t\t\t<a"); 7404 7405 WriteLiteral(" class=\"left carousel-control\""); 7406 7407 WriteLiteral(" href=\"#myCarousel\""); 7408 7409 WriteLiteral(" role=\"button\""); 7410 7411 WriteLiteral(" data-slide=\"prev\""); 7412 7413 WriteLiteral(">\r\n\t\t\t\t\t\t <span"); 7414 7415 WriteLiteral(" class=\"glyphicon glyphicon-chevron-left\""); 7416 7417 WriteLiteral(" aria-hidden=\"true\""); 7418 7419 WriteLiteral("></span>\r\n\t\t\t\t\t\t <span"); 7420 7421 WriteLiteral(" class=\"sr-only\""); 7422 7423 WriteLiteral(">Previous</span>\r\n\t\t\t\t\t\t </a>\r\n\t\t\t\t\t\t\t<a"); 7424 7425 WriteLiteral(" class=\"right carousel-control\""); 7426 7427 WriteLiteral(" href=\"#myCarousel\""); 7428 7429 WriteLiteral(" role=\"button\""); 7430 7431 WriteLiteral(" data-slide=\"next\""); 7432 7433 WriteLiteral(">\r\n\t\t\t\t\t\t <span"); 7434 7435 WriteLiteral(" class=\"glyphicon glyphicon-chevron-right\""); 7436 7437 WriteLiteral(" aria-hidden=\"true\""); 7438 7439 WriteLiteral("></span>\r\n\t\t\t\t\t\t <span"); 7440 7441 WriteLiteral(" class=\"sr-only\""); 7442 7443 WriteLiteral(">Next</span>\r\n\t\t\t\t\t\t </a>\r\n\t\t\t\t\t\t\t</div>\r\n"); 7444 7445 7446 #line 3135 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7447 } else { 7448 foreach (LoopItem i in GetLoop("Item.Images")){ 7449 var image = i.GetString("Item.Images.Image"); 7450 7451 7452 7453 #line default 7454 #line hidden 7455 WriteLiteral("\t\t\t\t\t\t\t\t<img"); 7456 7457 WriteLiteral(" class=\"img-responsive\""); 7458 7459 WriteAttribute("src", Tuple.Create(" src=\"", 133368), Tuple.Create("\"", 133447) 7460 , Tuple.Create(Tuple.Create("", 133374), Tuple.Create("/Admin/Public/GetImage.ashx?image=", 133374), true) 7461 7462 #line 3139 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7463 , Tuple.Create(Tuple.Create("", 133408), Tuple.Create<System.Object, System.Int32>(image 7464 7465 #line default 7466 #line hidden 7467 , 133408), false) 7468 , Tuple.Create(Tuple.Create("", 133414), Tuple.Create("&width=1280&compression=90&crop=7", 133414), true) 7469 ); 7470 7471 WriteLiteral(">\r\n"); 7472 7473 7474 #line 3140 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7475 } 7476 } 7477 7478 7479 #line default 7480 #line hidden 7481 WriteLiteral("\t\t\t\t\t\t</div>\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div"); 7482 7483 WriteLiteral(" class=\"row\""); 7484 7485 WriteLiteral(">\r\n\t\t\t\t\t\t<div"); 7486 7487 WriteLiteral(" class=\"col-md-12 col-sm-12 col-xs-12\""); 7488 7489 WriteLiteral(">\r\n\t\t\t\t\t\t\t<div"); 7490 7491 WriteLiteral(" class=\"figure\""); 7492 7493 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<h1>"); 7494 7495 7496 #line 3147 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7497 Write(GetString("Item.Title")); 7498 7499 7500 #line default 7501 #line hidden 7502 WriteLiteral("</h1>\r\n"); 7503 7504 WriteLiteral("\t\t\t\t\t\t\t\t"); 7505 7506 7507 #line 3148 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7508 Write(GetString("Item.ProductInfo")); 7509 7510 7511 #line default 7512 #line hidden 7513 WriteLiteral("\r\n\r\n"); 7514 7515 7516 #line 3150 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7517 7518 7519 #line default 7520 #line hidden 7521 7522 #line 3150 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7523 string back = Translate("Back", "Back"); 7524 7525 #line default 7526 #line hidden 7527 WriteLiteral("\r\n \t<input"); 7528 7529 WriteLiteral(" type=\"button\""); 7530 7531 WriteLiteral(" class=\"btn btn-dw-primary\""); 7532 7533 WriteAttribute("value", Tuple.Create(" value=\"", 133821), Tuple.Create("\"", 133834) 7534 7535 #line 3151 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7536 , Tuple.Create(Tuple.Create("", 133829), Tuple.Create<System.Object, System.Int32>(back 7537 7538 #line default 7539 #line hidden 7540 , 133829), false) 7541 ); 7542 7543 WriteLiteral(" onclick=\"history.back(-1)\""); 7544 7545 WriteLiteral(">\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</" + 7546 "div>\r\n</section>\t\r\n\r\n\r\n <!-- FOOTER -->\r\n <!-- FOOTER -->\r\n " + 7547 "\r\n"); 7548 7549 7550 #line 3165 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7551 7552 7553 #line default 7554 #line hidden 7555 7556 #line 3165 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7557 if (GetBoolean("Item.Area.FooterNewsletterSignUp")) 7558 { 7559 7560 7561 #line default 7562 #line hidden 7563 WriteLiteral(" <div"); 7564 7565 WriteLiteral(" class=\"newsletterSingUp\""); 7566 7567 WriteLiteral(">\r\n <div"); 7568 7569 WriteLiteral(" class=\"container\""); 7570 7571 WriteLiteral(">\r\n <div"); 7572 7573 WriteLiteral(" class=\"row\""); 7574 7575 WriteLiteral(">\r\n <div"); 7576 7577 WriteLiteral(" class=\"col-md-12\""); 7578 7579 WriteLiteral(">\r\n \r\n <h3"); 7580 7581 WriteLiteral(" class=\"col-md-2\""); 7582 7583 WriteLiteral(">"); 7584 7585 7586 #line 3172 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7587 Write(Translate("Newsletter")); 7588 7589 7590 #line default 7591 #line hidden 7592 WriteLiteral("</h3>\r\n <form"); 7593 7594 WriteLiteral(" class=\"col-md-10\""); 7595 7596 WriteLiteral(" style=\"padding-right:0px; padding-left:0;\""); 7597 7598 WriteLiteral(" name=\"UserManagementEditForm\""); 7599 7600 WriteAttribute("action", Tuple.Create(" action=\"", 134513), Tuple.Create("\"", 134552) 7601 , Tuple.Create(Tuple.Create("", 134522), Tuple.Create("/Default.aspx?ID=", 134522), true) 7602 7603 #line 3173 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7604 , Tuple.Create(Tuple.Create("", 134539), Tuple.Create<System.Object, System.Int32>(signUpPageId 7605 7606 #line default 7607 #line hidden 7608 , 134539), false) 7609 ); 7610 7611 WriteLiteral(" method=\"POST\""); 7612 7613 WriteLiteral(" enctype=\"multipart/form-data\""); 7614 7615 WriteLiteral(">\r\n <div"); 7616 7617 WriteLiteral(" class=\"hidden\""); 7618 7619 WriteLiteral(">\r\n <input"); 7620 7621 WriteLiteral(" name=\"UserManagementForm\""); 7622 7623 WriteLiteral(" value=\"1\""); 7624 7625 WriteLiteral(" type=\"hidden\""); 7626 7627 WriteLiteral(">\r\n <input"); 7628 7629 WriteLiteral(" id=\"UserManagementForm.DeleteImage\""); 7630 7631 WriteLiteral(" name=\"UserManagementForm.DeleteImage\""); 7632 7633 WriteLiteral(" type=\"hidden\""); 7634 7635 WriteLiteral(">\r\n <input"); 7636 7637 WriteLiteral(" name=\"UserManagement_Form_EmailAllowed\""); 7638 7639 WriteLiteral(" id=\"UserManagement_Form_EmailAllowed\""); 7640 7641 WriteLiteral(" value=\"True\""); 7642 7643 WriteLiteral(" checked=\"checked\""); 7644 7645 WriteLiteral(" type=\"checkbox\""); 7646 7647 WriteLiteral(">\r\n <input"); 7648 7649 WriteLiteral(" name=\"UserManagement_Form_EmailAllowed_ApplyValue\""); 7650 7651 WriteLiteral(" id=\"UserManagement_Form_EmailAllowed_ApplyValue\""); 7652 7653 WriteLiteral(" value=\"AllowEmail\""); 7654 7655 WriteLiteral(" type=\"hidden\""); 7656 7657 WriteLiteral(">\r\n </div>\r\n " + 7658 " <input"); 7659 7660 WriteLiteral(" name=\"UserManagement_Form_Name\""); 7661 7662 WriteLiteral(" id=\"UserManagement_Form_Name\""); 7663 7664 WriteLiteral(" type=\"text\""); 7665 7666 WriteLiteral(" class=\"form-control\""); 7667 7668 WriteAttribute("placeholder", Tuple.Create(" placeholder=\'", 135431), Tuple.Create("\'", 135463) 7669 7670 #line 3180 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7671 , Tuple.Create(Tuple.Create("", 135445), Tuple.Create<System.Object, System.Int32>(Translate("name") 7672 7673 #line default 7674 #line hidden 7675 , 135445), false) 7676 ); 7677 7678 WriteLiteral(">\r\n <input"); 7679 7680 WriteLiteral(" name=\"UserManagement_Form_Email\""); 7681 7682 WriteLiteral(" id=\"UserManagement_Form_Email\""); 7683 7684 WriteLiteral(" type=\"email\""); 7685 7686 WriteLiteral(" class=\"form-control\""); 7687 7688 WriteAttribute("placeholder", Tuple.Create(" placeholder=\'", 135607), Tuple.Create("\'", 135640) 7689 7690 #line 3181 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7691 , Tuple.Create(Tuple.Create("", 135621), Tuple.Create<System.Object, System.Int32>(Translate("email") 7692 7693 #line default 7694 #line hidden 7695 , 135621), false) 7696 ); 7697 7698 WriteLiteral(" required=\"required\""); 7699 7700 WriteLiteral(">\r\n <button"); 7701 7702 WriteLiteral(" type=\"submit\""); 7703 7704 WriteLiteral(" class=\"btn btn-newsletterSubmit\""); 7705 7706 WriteLiteral(">"); 7707 7708 7709 #line 3182 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7710 Write(Translate("Sign up")); 7711 7712 7713 #line default 7714 #line hidden 7715 WriteLiteral("</button>\r\n </form>\r\n \r\n " + 7716 " </div>\r\n </div>\r\n </div" + 7717 ">\r\n </div>\r\n"); 7718 7719 7720 #line 3189 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7721 } 7722 7723 7724 #line default 7725 #line hidden 7726 WriteLiteral(" "); 7727 7728 7729 #line 3190 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7730 7731 string TitleSize = GetString("Item.Area.FooterH4.Size") + "px"; 7732 string TitleColor = GetString("Item.Area.FooterH4.Color.Color.Value"); 7733 string TitleFont = CustomFont(GetString("Item.Area.FooterH4.Font.Value"), GetString("Item.Area.FooterH4.CustomFont.Value")); //.Replace(" ", "+"); 7734 7735 7736 #line default 7737 #line hidden 7738 WriteLiteral("\r\n<style>\r\n #footersitemap h4{\r\n color:"); 7739 7740 7741 #line 3197 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7742 Write(TitleColor); 7743 7744 7745 #line default 7746 #line hidden 7747 WriteLiteral(" !important;\r\n font-size:"); 7748 7749 7750 #line 3198 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7751 Write(TitleSize); 7752 7753 7754 #line default 7755 #line hidden 7756 WriteLiteral(" !important;\r\n font-family: "); 7757 7758 7759 #line 3199 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7760 Write(TitleFont); 7761 7762 7763 #line default 7764 #line hidden 7765 WriteLiteral(" !important;\r\n }\r\n footer .share-links h4{\r\n color:"); 7766 7767 7768 #line 3202 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7769 Write(TitleColor); 7770 7771 7772 #line default 7773 #line hidden 7774 WriteLiteral(" !important;\r\n font-size:"); 7775 7776 7777 #line 3203 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7778 Write(TitleSize); 7779 7780 7781 #line default 7782 #line hidden 7783 WriteLiteral(" !important;\r\n font-family: "); 7784 7785 7786 #line 3204 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7787 Write(TitleFont); 7788 7789 7790 #line default 7791 #line hidden 7792 WriteLiteral(" !important;\r\n }\r\n </style>\r\n\r\n\r\n<div"); 7793 7794 WriteAttribute("class", Tuple.Create(" class=\"", 136634), Tuple.Create("\"", 136684) 7795 , Tuple.Create(Tuple.Create("", 136642), Tuple.Create("body-wrap", 136642), true) 7796 7797 #line 3209 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7798 , Tuple.Create(Tuple.Create(" ", 136651), Tuple.Create<System.Object, System.Int32>(GeneralSettings.Site.LayoutMode 7799 7800 #line default 7801 #line hidden 7802 , 136652), false) 7803 ); 7804 7805 WriteLiteral(">\r\n"); 7806 7807 7808 #line 3210 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7809 7810 7811 #line default 7812 #line hidden 7813 7814 #line 3210 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7815 7816 var footerbg = ""; 7817 var important = ""; 7818 7819 7820 7821 #line default 7822 #line hidden 7823 WriteLiteral("\r\n"); 7824 7825 7826 #line 3215 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7827 7828 7829 #line default 7830 #line hidden 7831 7832 #line 3215 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7833 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FooterBackgroundImage"))) 7834 { 7835 footerbg = "background:url(/Admin/Public/GetImage.ashx?&width=1920&amp;Compression=99&amp;image=" + GetString("Item.Area.FooterBackgroundImage") + ") no-repeat"; 7836 important = "!important;"; 7837 } 7838 7839 7840 #line default 7841 #line hidden 7842 WriteLiteral(" <footer"); 7843 7844 WriteLiteral(" class=\"footer\""); 7845 7846 WriteAttribute("style", Tuple.Create(" style=\'", 137093), Tuple.Create("\'", 137202) 7847 7848 #line 3220 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7849 , Tuple.Create(Tuple.Create("", 137101), Tuple.Create<System.Object, System.Int32>(footerbg 7850 7851 #line default 7852 #line hidden 7853 , 137101), false) 7854 7855 #line 3220 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7856 , Tuple.Create(Tuple.Create(" ", 137110), Tuple.Create<System.Object, System.Int32>(important 7857 7858 #line default 7859 #line hidden 7860 , 137111), false) 7861 , Tuple.Create(Tuple.Create(" ", 137121), Tuple.Create("background-position:", 137122), true) 7862 , Tuple.Create(Tuple.Create(" ", 137142), Tuple.Create("center", 137143), true) 7863 , Tuple.Create(Tuple.Create(" ", 137149), Tuple.Create("center", 137150), true) 7864 , Tuple.Create(Tuple.Create(" ", 137156), Tuple.Create("!important;background-size:", 137157), true) 7865 , Tuple.Create(Tuple.Create(" ", 137184), Tuple.Create("cover", 137185), true) 7866 , Tuple.Create(Tuple.Create(" ", 137190), Tuple.Create("!important;", 137191), true) 7867 ); 7868 7869 WriteLiteral(">\r\n <div"); 7870 7871 WriteLiteral(" class=\"overlay\""); 7872 7873 WriteLiteral("></div>\r\n <div"); 7874 7875 WriteLiteral(" class=\"container\""); 7876 7877 WriteLiteral(">\r\n <div"); 7878 7879 WriteLiteral(" class=\"row\""); 7880 7881 WriteLiteral(">\r\n"); 7882 7883 7884 #line 3224 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7885 7886 7887 #line default 7888 #line hidden 7889 7890 #line 3224 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7891 if (GetBoolean("Item.Area.FooterShowSitemap")) 7892 { 7893 7894 7895 #line default 7896 #line hidden 7897 7898 #line 3226 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7899 Write(GetValue("DwNavigation(footersitemap)")); 7900 7901 7902 #line default 7903 #line hidden 7904 7905 #line 3226 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7906 7907 7908 } 7909 7910 7911 #line default 7912 #line hidden 7913 WriteLiteral(" "); 7914 7915 7916 #line 3229 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7917 if (GetBoolean("Item.Area.SocialLinksInFooter")) 7918 { 7919 string sicon = ""; 7920 string slink = ""; 7921 7922 7923 7924 #line default 7925 #line hidden 7926 WriteLiteral(" <div"); 7927 7928 WriteLiteral(" class=\"col-md-4 col-sm-4 col-xs-12 share-links\""); 7929 7930 WriteLiteral(">\r\n <div"); 7931 7932 WriteLiteral(" class=\"col text-left\""); 7933 7934 WriteLiteral(">\r\n <h4>"); 7935 7936 7937 #line 3236 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7938 Write(Translate("Follow Us", "Follow Us")); 7939 7940 7941 #line default 7942 #line hidden 7943 WriteLiteral("</h4>\r\n <p>\r\n"); 7944 7945 7946 #line 3238 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7947 7948 7949 #line default 7950 #line hidden 7951 7952 #line 3238 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7953 7954 string footeremail = GetString("Item.Area.FooterEmail"); 7955 string footerphone = GetString("Item.Area.FooterPhone"); 7956 string footerfax = GetString("Item.Area.FooterFax"); 7957 string notesfooter = GetString("Item.Area.NotesFooter"); 7958 7959 7960 #line default 7961 #line hidden 7962 WriteLiteral("\r\n <a"); 7963 7964 WriteAttribute("href", Tuple.Create(" href=\'", 138374), Tuple.Create("\'", 138400) 7965 , Tuple.Create(Tuple.Create("", 138381), Tuple.Create("mailto:", 138381), true) 7966 7967 #line 3244 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7968 , Tuple.Create(Tuple.Create("", 138388), Tuple.Create<System.Object, System.Int32>(footeremail 7969 7970 #line default 7971 #line hidden 7972 , 138388), false) 7973 ); 7974 7975 WriteLiteral(" class=\'footerEmail\'"); 7976 7977 WriteLiteral(" style=\"font-size: 19px !important;margin-right: 10px;\""); 7978 7979 WriteAttribute("title", Tuple.Create(" title=\'", 138476), Tuple.Create("\'", 138515) 7980 7981 #line 3244 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7982 , Tuple.Create(Tuple.Create("", 138484), Tuple.Create<System.Object, System.Int32>(Translate("Send us a message") 7983 7984 #line default 7985 #line hidden 7986 , 138484), false) 7987 ); 7988 7989 WriteLiteral(">\r\n"); 7990 7991 WriteLiteral(" "); 7992 7993 7994 #line 3245 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 7995 Write(Translate("@EnotriaCoe")); 7996 7997 7998 #line default 7999 #line hidden 8000 WriteLiteral("\r\n </a>\r\n"); 8001 8002 8003 #line 3247 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8004 8005 8006 #line default 8007 #line hidden 8008 8009 #line 3247 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8010 foreach (LoopItem socialitem in GetLoop("Item.Area.SocialIconInFooter")) 8011 { 8012 sicon = socialitem.GetString("Item.Area.SocialIconInFooter.Icon"); 8013 slink = socialitem.GetString("Item.Area.SocialIconInFooter.Link"); 8014 8015 8016 #line default 8017 #line hidden 8018 WriteLiteral(" <a"); 8019 8020 WriteAttribute("href", Tuple.Create(" href=\"", 139008), Tuple.Create("\"", 139021) 8021 8022 #line 3251 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8023 , Tuple.Create(Tuple.Create("", 139015), Tuple.Create<System.Object, System.Int32>(slink 8024 8025 #line default 8026 #line hidden 8027 , 139015), false) 8028 ); 8029 8030 WriteLiteral(">\r\n <i"); 8031 8032 WriteAttribute("class", Tuple.Create(" class=\"", 139067), Tuple.Create("\"", 139084) 8033 , Tuple.Create(Tuple.Create("", 139075), Tuple.Create("fa", 139075), true) 8034 8035 #line 3252 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8036 , Tuple.Create(Tuple.Create(" ", 139077), Tuple.Create<System.Object, System.Int32>(sicon 8037 8038 #line default 8039 #line hidden 8040 , 139078), false) 8041 ); 8042 8043 WriteLiteral("></i>\r\n </a>\r\n"); 8044 8045 8046 #line 3254 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8047 } 8048 8049 8050 #line default 8051 #line hidden 8052 WriteLiteral(" </p>\r\n <div"); 8053 8054 WriteLiteral(" class=\"EnotriaMeta\""); 8055 8056 WriteLiteral(">\r\n"); 8057 8058 8059 #line 3257 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8060 8061 8062 #line default 8063 #line hidden 8064 8065 #line 3257 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8066 if (!string.IsNullOrWhiteSpace(footerphone)) 8067 { 8068 8069 8070 #line default 8071 #line hidden 8072 WriteLiteral(" <p>\r\n"); 8073 8074 WriteLiteral(" "); 8075 8076 8077 #line 3260 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8078 Write(Translate("T: ", "T: ")); 8079 8080 8081 #line default 8082 #line hidden 8083 8084 #line 3260 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8085 Write(footerphone); 8086 8087 8088 #line default 8089 #line hidden 8090 WriteLiteral("\r\n </p>\r\n"); 8091 8092 8093 #line 3262 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8094 } 8095 8096 8097 #line default 8098 #line hidden 8099 WriteLiteral(" "); 8100 8101 8102 #line 3263 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8103 Write(GetValue("Item.Area.FooterAddress")); 8104 8105 8106 #line default 8107 #line hidden 8108 WriteLiteral("\r\n </div>\r\n </div>\r\n " + 8109 " </div>\r\n"); 8110 8111 8112 #line 3267 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8113 } 8114 8115 8116 #line default 8117 #line hidden 8118 WriteLiteral(" </div>\r\n <div"); 8119 8120 WriteLiteral(" class=\"row logo-footer\""); 8121 8122 WriteLiteral(">\r\n <p"); 8123 8124 WriteLiteral(" class=\"col\""); 8125 8126 WriteLiteral(">\r\n <a"); 8127 8128 WriteLiteral(" href=\"https://www.drinkaware.co.uk/\""); 8129 8130 WriteAttribute("title", Tuple.Create(" title=\'", 139928), Tuple.Create("\'", 139974) 8131 8132 #line 3271 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8133 , Tuple.Create(Tuple.Create("", 139936), Tuple.Create<System.Object, System.Int32>(Translate("Visit Drinkaware website") 8134 8135 #line default 8136 #line hidden 8137 , 139936), false) 8138 ); 8139 8140 WriteLiteral(" class=\"drinkawareLogo\""); 8141 8142 WriteLiteral(" target=\"_blank\""); 8143 8144 WriteLiteral(">\r\n <img"); 8145 8146 WriteLiteral(" src=\"/Files/Templates/Designs/Dwsimple/images/drinkaware.png\""); 8147 8148 WriteAttribute("alt", Tuple.Create(" alt=\'", 140107), Tuple.Create("\'", 140142) 8149 8150 #line 3272 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8151 , Tuple.Create(Tuple.Create("", 140113), Tuple.Create<System.Object, System.Int32>(Translate("Drinkaware logo") 8152 8153 #line default 8154 #line hidden 8155 , 140113), false) 8156 ); 8157 8158 WriteLiteral(@"> 8159 </a> 8160 </p> 8161 </div> 8162 </div> 8163 </footer> 8164 </div> 8165 8166 8167 <!--[if IE]> 8168 <style> 8169 8170 .widget.affix{ 8171 8172 width:21% !important; 8173 8174 } 8175 8176 8177 </style> 8178 <![endif]--> 8179 <!-- Essentials --> 8180 <div"); 8181 8182 WriteAttribute("class", Tuple.Create(" class=\"", 140477), Tuple.Create("\"", 140501) 8183 8184 #line 3294 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8185 , Tuple.Create(Tuple.Create("", 140485), Tuple.Create<System.Object, System.Int32>(backgroundmodal 8186 8187 #line default 8188 #line hidden 8189 , 140485), false) 8190 ); 8191 8192 WriteLiteral(" style=\"z-index:1030;\""); 8193 8194 WriteLiteral("></div>\r\n\r\n\r\n\r\n <script"); 8195 8196 WriteLiteral(" src=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js\""); 8197 8198 WriteLiteral("></script>\r\n <script"); 8199 8200 WriteLiteral(" src=\"//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js\""); 8201 8202 WriteLiteral("></script>\r\n <script"); 8203 8204 WriteLiteral(" type=\"text/javascript\""); 8205 8206 WriteLiteral(" src=\"//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/js/jasny-bootstrap.m" + 8207 "in.js\""); 8208 8209 WriteLiteral("></script>\r\n <script"); 8210 8211 WriteLiteral(" src=\"//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js\""); 8212 8213 WriteLiteral("></script>\r\n <script"); 8214 8215 WriteLiteral(" src=\"/Files/Templates/Designs/Dwsimple/js/jquery.dotdotdot.js\""); 8216 8217 WriteLiteral("></script>\r\n"); 8218 8219 8220 #line 3303 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8221 8222 8223 #line default 8224 #line hidden 8225 8226 #line 3303 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8227 8228 Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds; 8229 8230 8231 #line default 8232 #line hidden 8233 WriteLiteral("\r\n <script"); 8234 8235 WriteAttribute("src", Tuple.Create(" src=\"", 141219), Tuple.Create("\"", 141291) 8236 , Tuple.Create(Tuple.Create("", 141225), Tuple.Create("/Files/Templates/Designs/Dwsimple/js/Cart.js?latest=", 141225), true) 8237 8238 #line 3306 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8239 , Tuple.Create(Tuple.Create("", 141277), Tuple.Create<System.Object, System.Int32>(unixTimestamp 8240 8241 #line default 8242 #line hidden 8243 , 141277), false) 8244 ); 8245 8246 WriteLiteral("></script>\r\n <script"); 8247 8248 WriteLiteral(" src=\"/Files/Templates/Designs/Dwsimple/js/custom.js\""); 8249 8250 WriteLiteral("></script>\r\n <script"); 8251 8252 WriteLiteral(" src=\"/Files/Templates/Designs/Dwsimple/js/spin.js\""); 8253 8254 WriteLiteral("></script>\r\n <script"); 8255 8256 WriteLiteral(" src=\"/Files/Templates/Designs/Dwsimple/js/Search.js\""); 8257 8258 WriteLiteral("></script>\r\n <script"); 8259 8260 WriteLiteral(" src=\"/Files/Templates/Designs/Dwsimple/js/Facets.js\""); 8261 8262 WriteLiteral("></script>\r\n\r\n <script"); 8263 8264 WriteAttribute("src", Tuple.Create(" src=\"", 141639), Tuple.Create("\"", 141713) 8265 , Tuple.Create(Tuple.Create("", 141645), Tuple.Create("/Files/Templates/Designs/Dwsimple/js/Dynamo.js?latest=", 141645), true) 8266 8267 #line 3312 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8268 , Tuple.Create(Tuple.Create("", 141699), Tuple.Create<System.Object, System.Int32>(unixTimestamp 8269 8270 #line default 8271 #line hidden 8272 , 141699), false) 8273 ); 8274 8275 WriteLiteral("></script> <!--SHOULD BE LOADED LAST!!!! EVERYTHING BREAKS OTHERWISE-->\r\n\r\n\r\n"); 8276 8277 8278 #line 3315 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8279 8280 8281 #line default 8282 #line hidden 8283 8284 #line 3315 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8285 if (GetString("DW_extranet_error_uk") != "") 8286 { 8287 8288 8289 #line default 8290 #line hidden 8291 WriteLiteral(" <script>\r\n $(\'#login\').modal(\'show\')\r\n </sc" + 8292 "ript>\r\n"); 8293 8294 8295 #line 3320 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8296 } 8297 8298 8299 #line default 8300 #line hidden 8301 WriteLiteral(@" 8302 <!-- Replacing the Home text --> 8303 <script> 8304 if (document.getElementById(""homemenubtn"")) { 8305 document.getElementById(""homemenubtn"").innerHTML = ""<i class='fa fa-home fa-2'></i><span></span>""; 8306 } 8307 </script> 8308 8309 <script"); 8310 8311 WriteLiteral(" type=\"text/x-template\""); 8312 8313 WriteLiteral(" id=\"OrderlineAjaxTemplate\""); 8314 8315 WriteLiteral(@"> 8316 <tr> 8317 <td class=""text-center""><img src=""Obj.image"" class=""img-center"" alt=""""></td> 8318 <td> 8319 <a href=""Obj.link""> 8320 Obj.name Obj.variantname 8321 </a> 8322 </td> 8323 <td class=""text-center"">Obj.quantity</td> 8324 <td class=""text-right""> 8325 <nobr> 8326 Obj.totalprice 8327 </nobr> 8328 </td> 8329 </tr> 8330 </script> 8331 <!-- Template for Typeahead --> 8332 8333 <script"); 8334 8335 WriteLiteral(" id=\"searchItems\""); 8336 8337 WriteLiteral(" type=\"text/x-template\""); 8338 8339 WriteLiteral(@"> 8340 <a href=""data.link"" class=""typeahead-result__item""> 8341 <div class=""typeahead-result__image""> 8342 <img src=""data.image"" alt=""""> 8343 </div> 8344 <div class=""typeahead-result__text""> 8345 <div class=""typeahead-result__name"">data.name</div> 8346 <div class=""typeahead-result__info data.NotSeePrice"">data.price</div> 8347 </div> 8348 </a> 8349 </script> 8350 8351 <!-- Initialize Fancybox --> 8352 <script"); 8353 8354 WriteLiteral(" type=\"text/javascript\""); 8355 8356 WriteLiteral(@"> 8357 $(document).ready(function () { 8358 if ($("".fancybox"").fancybox != undefined) { 8359 $("".fancybox"").fancybox(); 8360 } 8361 8362 }); 8363 </script> 8364 <script> 8365 $(""#form-impersonate"").on(""click"", ""a.select-user"", function () { 8366 var $this = $(this); 8367 var $form = $this.closest(""form""); 8368 $(""input[name=DWExtranetSecondaryUserSelector]"", $form).val($this.attr(""data-userid"")); 8369 $form.submit(); 8370 }); 8371 </script> 8372 "); 8373 8374 8375 #line 3376 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8376 8377 8378 #line default 8379 #line hidden 8380 8381 #line 3376 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8382 if (currentUser.Any()) 8383 { 8384 8385 8386 8387 8388 #line default 8389 #line hidden 8390 WriteLiteral(@" <script> 8391 $(function () { 8392 setTimeout(function () { 8393 8394 var userAddress = $.cookie(""selected_address_id""); 8395 var userListID = $.cookie(""selected_list_id""); 8396 if (currentUserId !== ""0"" && (userAddress == undefined || userAddress === ""null"")) { 8397 $(""#address, .modal-backdrop"").addClass(""in show""); 8398 } 8399 if (currentUserId === ""0"") { 8400 $.cookie(""selected_address_id"", null, { path: ""/"" }); 8401 $.cookie(""selected_list_id"", null, { path: ""/"" }); 8402 } 8403 if ($.cookie('selected_address_id') != null) { 8404 $('#selectaddress option[value=""' + $.cookie('selected_address_id') + '""]').attr('selected', 'selected'); 8405 if ($.cookie('selected_list_id') != """" && $.cookie('selected_list_id') != null) { 8406 "); 8407 8408 WriteLiteral("\r\n }\r\n }\r\n " + 8409 " if ($(\"#selectaddress option\").length <= 1) {\r\n va" + 8410 "r date = new Date();\r\n var minutes = 1440;\r\n " + 8411 " date.setTime(date.getTime() + (minutes * 60 * 1000));\r\n " + 8412 " $(\"#address, .modal-backdrop\").removeClass(\"in show\");\r\n " + 8413 " var selectedAddress = $(\"#selectaddress :first\").val()" + 8414 ";\r\n var selectedListID = $(\"#selectaddress :first\").a" + 8415 "ttr(\"data-listid\");\r\n $.cookie(\"selected_address_id\"," + 8416 " selectedAddress, { expires: date, path: \"/\" });\r\n $." + 8417 "cookie(\"selected_list_id\", selectedListID, { expires: date, path: \"/\" });\r\n\r\n " + 8418 " }\r\n $(\"form[name=modalAddress]\").sub" + 8419 "mit(function (e) {\r\n var date = new Date();\r\n " + 8420 " var minutes = 1440;\r\n date.setTim" + 8421 "e(date.getTime() + (minutes * 60 * 1000));\r\n var sele" + 8422 "ctedAddress = $(\"#selectaddress :selected\").val();\r\n " + 8423 "var selectedListID = $(\"#selectaddress :selected\").attr(\"data-listid\");\r\n " + 8424 " if (selectedAddress !== \"\") {\r\n " + 8425 " $.cookie(\"selected_address_id\", selectedAddress, { expires: date, path: \"/\" " + 8426 "});\r\n $.cookie(\"selected_list_id\", selectedListID" + 8427 ", { expires: date, path: \"/\" });\r\n $(\"#address, ." + 8428 "modal-backdrop\").removeClass(\"in show\");\r\n }\r\n\r\n " + 8429 " return true;\r\n });\r\n " + 8430 " }, 100);\r\n });\r\n </script>\r\n"); 8431 8432 8433 #line 3427 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8434 } 8435 8436 8437 #line default 8438 #line hidden 8439 WriteLiteral(@" <script> 8440 $("".logout a"").on(""click"", function () { 8441 $.cookie(""selected_address_id"", null, { path: ""/"" }); 8442 $.cookie(""selected_list_id"", null, { path: ""/"" }); 8443 $.removeCookie(""selected_address_id"", { path: ""/"" }); 8444 $.removeCookie(""selected_list_id"", { path: ""/"" }); 8445 }); 8446 $("".quickButtonsMenu .login"").on(""click"", function () { 8447 $.cookie(""selected_address_id"", null, { path: '/' }); 8448 $.cookie(""selected_list_id"", null, { path: ""/"" }); 8449 $.removeCookie(""selected_address_id"", { path: ""/"" }); 8450 $.removeCookie(""selected_list_id"", { path: ""/"" }); 8451 $.cookie(""DeliveryName"", """", { path: '/' }); 8452 $.cookie(""DeliveryCompany"", """", { path: '/' }); 8453 $.cookie(""DeliveryPhone"", """", { path: '/' }); 8454 $.cookie(""DeliveryEmail"", """", { path: '/' }); 8455 $.cookie(""DeliveryAddress"", """", { path: '/' }); 8456 $.cookie(""DeliveryAddress2"", """", { path: '/' }); 8457 $.cookie(""DeliveryZip"", """", { path: '/' }); 8458 $.cookie(""DeliveryCity"", """", { path: '/' }); 8459 }); 8460 "); 8461 8462 8463 #line 3449 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8464 8465 8466 #line default 8467 #line hidden 8468 8469 #line 3449 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8470 if (Pageview.Area.Item["EcommerceProductListForm"].ToString().Contains("box")) 8471 { 8472 8473 8474 #line default 8475 #line hidden 8476 WriteLiteral(" "); 8477 8478 WriteLiteral("\r\n jQuery(function ($) {\r\n if (!$.cookie(\'ProductsTemplate\') ||" + 8479 " $.cookie(\'ProductsTemplate\') == undefined) {\r\n $.cookie(\"Product" + 8480 "sTemplate\", \"productGridItem\");\r\n }\r\n });\r\n "); 8481 8482 WriteLiteral("\r\n"); 8483 8484 8485 #line 3458 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8486 } 8487 8488 8489 #line default 8490 #line hidden 8491 WriteLiteral(@" //$("".mini-quantity"").hide(); 8492 //$("".js-mini-cart-button"").on(""mouseover"", function () { 8493 // var newText = $("".mini-new-quantity"").html(); 8494 // if (parseInt(newText) > 0) { 8495 // $("".mini-quantity"").show(); 8496 // $("".mini-quantity"").html(newText); 8497 // } else { 8498 // $("".mini-quantity"").hide(); 8499 // } 8500 //}); 8501 $('#yourid').on('click', function () { 8502 $("".close-menu"").trigger(""click""); 8503 setTimeout(function () { $("".quickButtonsMenu .login a"").trigger(""click""); }, 100); 8504 }); 8505 </script> 8506 "); 8507 8508 WriteLiteral(" "); 8509 8510 8511 #line 3474 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8512 Write(RenderSnippet("JavaScriptBottom")); 8513 8514 8515 #line default 8516 #line hidden 8517 WriteLiteral("\r\n"); 8518 8519 WriteLiteral(" "); 8520 8521 8522 #line 3475 "D:\dynamicweb.net\Solutions\Dynamicweb\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\ProductGalleryPage.parsed.cshtml" 8523 Write(Pageview.Area.Item["EcommerceProductListForm"]); 8524 8525 8526 #line default 8527 #line hidden 8528 WriteLiteral("\r\n</div></body>\r\n\r\n</html>"); 8529 8530 } 8531 } 8532 } 8533

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System 3 @using System.Web 4 @using Dynamicweb.Security.UserManagement; 5 @using Dynamicweb.Security.UserManagement.Common.CustomFields; 6 @using Dynamicweb.Rendering; 7 @using Dynamicweb.Environment; 8 @using System.Text.RegularExpressions; 9 @using User = Dynamicweb.Security.UserManagement.User 10 @using System.Text.RegularExpressions 11 @using System.Web 12 13 14 @functions{ 15 public class WrapMethods 16 { 17 //Gets the contrasting color 18 public static string getContrastYIQ(string hexcolor) 19 { 20 if (hexcolor != "") 21 { 22 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 23 24 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 25 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 26 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 27 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 28 29 if (yiq >= 128) 30 { 31 return "black"; 32 } 33 else 34 { 35 return "white"; 36 } 37 } 38 else 39 { 40 return "black"; 41 } 42 } 43 44 45 //Truncate text 46 public static string Truncate (string value, int count, bool strip=true) 47 { 48 if (strip == true){ 49 value = StripHtmlTagByCharArray(value); 50 } 51 52 if (value.Length > count) 53 { 54 value = value.Substring(0, count - 1) + "..."; 55 } 56 57 return value; 58 } 59 60 61 //Strip text from HTML 62 public static string StripHtmlTagByCharArray(string htmlString) 63 { 64 char[] array = new char[htmlString.Length]; 65 int arrayIndex = 0; 66 bool inside = false; 67 68 for (int i = 0; i < htmlString.Length; i++) 69 { 70 char let = htmlString[i]; 71 if (let == '<') 72 { 73 inside = true; 74 continue; 75 } 76 if (let == '>') 77 { 78 inside = false; 79 continue; 80 } 81 if (!inside) 82 { 83 array[arrayIndex] = let; 84 arrayIndex++; 85 } 86 } 87 return new string(array, 0, arrayIndex); 88 } 89 90 //Make the correct count of columns 91 public static string ColumnMaker(int Col, string ScreenSize) 92 { 93 string Columns = ""; 94 95 switch (Col) 96 { 97 case 1: 98 Columns = "col-"+ScreenSize+"-12"; 99 break; 100 101 case 2: 102 Columns = "col-"+ScreenSize+"-6"; 103 break; 104 105 case 3: 106 Columns = "col-"+ScreenSize+"-4"; 107 break; 108 109 case 4: 110 Columns = "col-"+ScreenSize+"-3"; 111 break; 112 113 default: 114 Columns = "col-"+ScreenSize+"-3"; 115 break; 116 } 117 118 return Columns; 119 } 120 121 122 private string Custom(string firstoption, string secondoption) 123 { 124 if (firstoption == "custom") 125 { 126 return secondoption; 127 } 128 else 129 { 130 return firstoption; 131 } 132 } 133 } 134 } 135 136 137 138 139 140 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 141 142 @helper MiniCart() 143 { 144 <div class="dropdown-cart"> 145 <div id="full-cart"> 146 <div class="col-md-12 col-sm-12 col-xs-12"> 147 <div class="row" id="minicart-content"> 148 <span class="cart-items">@Translate("You have", "You have") <span id="mincart-total-items"></span> @Translate("items in your cart", "items in your cart")</span> 149 <table class="table table-cart"> 150 <thead> 151 <tr> 152 <th></th> 153 <th>@Translate("Product", "Product")</th> 154 <th class="text-center">@Translate("Qty", "Qty")</th> 155 <th class="text-right">@Translate("Total", "Total")</th> 156 </tr> 157 </thead> 158 <tbody> 159 160 @* Orderlines are rendered from the Ajax template *@ 161 162 </tbody> 163 <tfoot> 164 <tr> 165 <td class="text-center"><i class="fa fa-credit-card"></i></td> 166 <td id="minicart-payment"></td> 167 <td class="text-center"></td> 168 <td class="text-right" id="minicart-paymentfee"></td> 169 </tr> 170 <tr> 171 <td class="text-center"><i class="fa fa-truck"></i></td> 172 <td id="minicart-shipping"></td> 173 <td class="text-center"></td> 174 <td class="text-right" id="minicart-shippingfee"></td> 175 </tr> 176 <tr> 177 <td></td> 178 <td><strong>@Translate("Total", "Total")</strong></td> 179 <td class="text-center" id="minicart-total"></td> 180 <td class="text-right" id="minicart-totalprice"></td> 181 </tr> 182 </tfoot> 183 </table> 184 </div> 185 </div> 186 <div class="col-md-12 col-sm-12 col-xs-12"> 187 <div class="row"> 188 <div class="col-md-8"> 189 <button class="btn btn-xs btn-secondary pull-left" onclick="EmptyCart();">@Translate("Empty cart", "Empty cart")</button> 190 </div> 191 <div class="col-md-4"> 192 @{ 193 var cartid = GetValue("DwAreaCartPageID"); 194 } 195 196 <a href="Default.aspx?ID=@cartid" class="btn btn-xs btn-primary pull-right">@Translate("Proceed to checkout", "Proceed to checkout")</a> 197 <span class="clearfix"></span> 198 </div> 199 </div> 200 <div class="row">&nbsp;</div> 201 </div> 202 </div> 203 <span class="cart-items" id="empty-cart">@Translate("Your shopping cart is empty", "Your shopping cart is empty")</span> 204 </div> 205 } 206 207 <!DOCTYPE html> 208 <html lang="en"> 209 <head> 210 <meta charset="utf-8"> 211 <title>@GetValue("Title")</title> 212 @GetValue("MetaTags") 213 @GetValue("CopyRightNotice") 214 215 216 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> 217 218 219 <meta name="owner" content=" GooGhywoiu9839t543j0s7543uw1 - pls add r.weaver@enotriacoe.com to GA account 9345790 with ‘Manage Users and Edit’ permissions - date 8 June 2021."> 220 @{ 221 string MetaDescription = GetString("Meta.Description"); 222 string MetaKeywords = GetString("Meta.Keywords"); 223 } 224 225 226 227 228 <!-- Google Tag Manager --> 229 <script> 230 (function (w, d, s, l, i) { 231 w[l] = w[l] || []; w[l].push({ 232 'gtm.start': 233 new Date().getTime(), event: 'gtm.js' 234 }); var f = d.getElementsByTagName(s)[0], 235 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 236 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 237 })(window, document, 'script', 'dataLayer', 'GTM-N4PBTH2');</script> 238 <!-- End Google Tag Manager --> 239 240 241 <!-- Facebook Admin --> 242 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FacebookCommendAdmin"))) 243 { 244 string fbadmin = GetString("Item.Area.FacebookCommendAdmin"); 245 <meta property="fb:admins" content="@fbadmin"> 246 } 247 248 <!-- Essential styles --> 249 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" type="text/css"> 250 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css"> 251 252 <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> 253 <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet"> 254 255 256 257 <!-- Mobile menu styles --> 258 <link href="//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/css/jasny-bootstrap.min.css" rel="stylesheet" type="text/css" media="screen"> 259 260 <!-- Favicon --> 261 @{ 262 var favicon = @GetString("Item.Area.Favicon"); 263 } 264 <link href="@favicon" rel="icon" type="image/png"> 265 266 <!-- Variables --> 267 @{ 268 var attrValue = ""; 269 string currentpageid = GetString("DwPageID"); 270 string firstpageid = GetString("DwAreaFirstActivePageID"); 271 string productsPageId = GetString("Item.Area.ProductsPageId"); 272 string productsJsonID = GetString("Item.Area.Portfolio_JSON_PageID"); 273 var primaryColor = GetString("Item.Area.ColorsPrimary.Color.Value"); 274 string searchplaceholder = Translate("Search our wines", "Search our wines..."); 275 string wishlistid = GetString("Item.Area.WishListPage"); 276 string signUpPageId = GetString("Item.Area.SignUpPageId"); 277 string wishlistloaderid = GetString("Item.Area.WinelistLoaderPageId"); 278 string impersonationList = GetString("Item.Area.ImpersonationPage"); 279 string createuser = GetString("Item.Area.AddNewUserPageId"); 280 var cartid = GetValue("DwAreaCartPageID"); 281 string searchPageID = GetString("Item.Area.SearchPageId"); 282 string myaccount = GetString("Item.Area.YourAccount"); 283 //DateTime areaUpdated = (DateTime)Pageview.Area.get_Value("AreaUpdatedDate"); 284 DateTime areaUpdated = DateTime.Now; 285 string cssPath = HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.min.css"); 286 DateTime lastWriteTime = System.IO.File.GetLastWriteTime(cssPath); 287 bool writeCss = false; 288 string css = String.Empty; 289 int currentUserID = Convert.ToInt32(GetGlobalValue("Global:Extranet.UserID")); 290 string isLoggedIn = GetGlobalValue("Global:Extranet.UserName"); 291 var listid = ""; 292 293 if (HttpContext.Current.Request.Cookies["selected_list_id"] != null) 294 { 295 296 listid = HttpContext.Current.Request.Cookies["selected_list_id"].Value; 297 298 } 299 300 301 var openmodal = ""; 302 var openmodala = ""; 303 var modalstyle = ""; 304 var modalstylea = ""; 305 var backgroundmodal = "modal-backdrop fade hide"; 306 var bodyclass = ""; 307 308 var cartPageId = GetString("Item.Area.JSONFeedForCart"); 309 if (isLoggedIn == "") 310 { 311 cartid = GetString("Item.Area.Quote_JSON_FeedForCart"); 312 cartPageId = GetString("Item.Area.Quote_Cart_JSON_PageID"); 313 } 314 else 315 { 316 bodyclass = "modal-open"; 317 } 318 319 320 321 //if (areaUpdated > lastWriteTime) 322 //{ 323 // writeCss = true; 324 //} 325 326 if (areaUpdated > lastWriteTime.AddMinutes(5)) 327 { 328 writeCss = true; 329 } 330 } 331 332 <!--FONT SETTINGS--> 333 @functions{ 334 public class FontSettings 335 { 336 public class Logo 337 { 338 public static string FontFamily { get; set; } 339 public static string FontSize { get; set; } 340 public static string FontWeight { get; set; } 341 public static string Color { get; set; } 342 public static string LineHeight { get; set; } 343 public static string Casing { get; set; } 344 public static string LetterSpacing { get; set; } 345 } 346 347 public class Slogan 348 { 349 public static string FontFamily { get; set; } 350 public static string FontSize { get; set; } 351 public static string FontWeight { get; set; } 352 public static string Color { get; set; } 353 public static string LineHeight { get; set; } 354 public static string Casing { get; set; } 355 public static string LetterSpacing { get; set; } 356 } 357 358 public class H1 359 { 360 public static string FontFamily { get; set; } 361 public static string FontSize { get; set; } 362 public static string FontWeight { get; set; } 363 public static string Color { get; set; } 364 public static string LineHeight { get; set; } 365 public static string Casing { get; set; } 366 public static string LetterSpacing { get; set; } 367 } 368 369 public class H2 370 { 371 public static string FontFamily { get; set; } 372 public static string FontSize { get; set; } 373 public static string FontWeight { get; set; } 374 public static string Color { get; set; } 375 public static string LineHeight { get; set; } 376 public static string Casing { get; set; } 377 public static string LetterSpacing { get; set; } 378 } 379 public class H3 380 { 381 public static string FontFamily { get; set; } 382 public static string FontSize { get; set; } 383 public static string FontWeight { get; set; } 384 public static string Color { get; set; } 385 public static string LineHeight { get; set; } 386 public static string Casing { get; set; } 387 public static string LetterSpacing { get; set; } 388 } 389 public class H4 390 { 391 public static string FontFamily { get; set; } 392 public static string FontSize { get; set; } 393 public static string FontWeight { get; set; } 394 public static string Color { get; set; } 395 public static string LineHeight { get; set; } 396 public static string Casing { get; set; } 397 public static string LetterSpacing { get; set; } 398 } 399 public class H5 400 { 401 public static string FontFamily { get; set; } 402 public static string FontSize { get; set; } 403 public static string FontWeight { get; set; } 404 public static string Color { get; set; } 405 public static string LineHeight { get; set; } 406 public static string Casing { get; set; } 407 public static string LetterSpacing { get; set; } 408 } 409 public class Body 410 { 411 public static string FontFamily { get; set; } 412 public static string FontSize { get; set; } 413 public static string FontWeight { get; set; } 414 public static string Color { get; set; } 415 public static string LineHeight { get; set; } 416 public static string Casing { get; set; } 417 public static string LetterSpacing { get; set; } 418 } 419 } 420 421 private void InitFontSettings() 422 { 423 //LOGO 424 FontSettings.Logo.FontFamily = CustomFont(GetString("Item.Area.LogoFont.Font"), GetString("Item.Area.LogoFont.CustomFont")); 425 FontSettings.Logo.FontSize = GetString("Item.Area.LogoFont.Size")+"px"; 426 FontSettings.Logo.FontWeight = CheckExistence(GetString("Item.Area.LogoFont.Weight"), "normal"); 427 FontSettings.Logo.LineHeight = CheckExistence(GetString("Item.Area.LogoFont.LineHeight"), "1"); 428 FontSettings.Logo.LetterSpacing = GetString("Item.Area.LogoFont.LetterSpacing") + "px"; 429 FontSettings.Logo.Casing = GetString("Item.Area.LogoFont.Casing"); 430 FontSettings.Logo.Color = GetString("Item.Area.LogoFont.Color.Color"); 431 432 433 //SLOGAN 434 FontSettings.Slogan.FontFamily = CustomFont(GetString("Item.Area.LogoSloganFont.Font"), GetString("Item.Area.LogoSloganFont.CustomFont")); 435 FontSettings.Slogan.FontSize = GetString("Item.Area.LogoSloganFont.Size")+"px"; 436 FontSettings.Slogan.FontWeight = CheckExistence(GetString("Item.Area.LogoSloganFont.Weight"), "normal"); 437 FontSettings.Slogan.LineHeight = CheckExistence(GetString("Item.Area.LogoSloganFont.LineHeight"), "1"); 438 FontSettings.Slogan.LetterSpacing = GetString("Item.Area.LogoSloganFont.LetterSpacing") + "px"; 439 FontSettings.Slogan.Casing = GetString("Item.Area.LogoSloganFont.Casing"); 440 FontSettings.Slogan.Color = GetString("Item.Area.LogoSloganFont.Color.Color"); 441 442 443 //HEADINGS 444 FontSettings.H1.FontFamily = CustomFont(GetString("Item.Area.HeadingsH1.Font"), GetString("Item.Area.HeadingsH1.CustomFont")); 445 FontSettings.H1.FontSize = GetString("Item.Area.HeadingsH1.Size")+"px"; 446 FontSettings.H1.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH1.Weight"), "normal"); 447 FontSettings.H1.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH1.LineHeight"), "1"); 448 FontSettings.H1.LetterSpacing = GetString("Item.Area.HeadingsH1.LetterSpacing") + "px"; 449 FontSettings.H1.Casing = GetString("Item.Area.HeadingsH1.Casing"); 450 FontSettings.H1.Color = GetString("Item.Area.HeadingsH1.Color.Color"); 451 452 FontSettings.H2.FontFamily = CustomFont(GetString("Item.Area.HeadingsH2.Font"), GetString("Item.Area.HeadingsH2.CustomFont")); 453 FontSettings.H2.FontSize = GetString("Item.Area.HeadingsH2.Size")+"px"; 454 FontSettings.H2.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH2.Weight"), "normal"); 455 FontSettings.H2.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH2.LineHeight"), "1"); 456 FontSettings.H2.LetterSpacing = GetString("Item.Area.HeadingsH2.LetterSpacing") + "px"; 457 FontSettings.H2.Casing = GetString("Item.Area.HeadingsH2.Casing"); 458 FontSettings.H2.Color = GetString("Item.Area.HeadingsH2.Color.Color"); 459 460 FontSettings.H3.FontFamily = CustomFont(GetString("Item.Area.HeadingsH3.Font"), GetString("Item.Area.HeadingsH3.CustomFont")); 461 FontSettings.H3.FontSize = GetString("Item.Area.HeadingsH3.Size") + "px"; 462 FontSettings.H3.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH3.Weight"), "normal"); 463 FontSettings.H3.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH3.LineHeight"), "1"); 464 FontSettings.H3.LetterSpacing = GetString("Item.Area.HeadingsH3.LetterSpacing") + "px"; 465 FontSettings.H3.Casing = GetString("Item.Area.HeadingsH3.Casing"); 466 FontSettings.H3.Color = GetString("Item.Area.HeadingsH3.Color.Color"); 467 468 FontSettings.H4.FontFamily = CustomFont(GetString("Item.Area.HeadingsH4.Font"), GetString("Item.Area.HeadingsH4.CustomFont")); 469 FontSettings.H4.FontSize = GetString("Item.Area.HeadingsH4.Size") + "px"; 470 FontSettings.H4.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH4.Weight"), "normal"); 471 FontSettings.H4.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH4.LineHeight"), "1"); 472 FontSettings.H4.LetterSpacing = GetString("Item.Area.HeadingsH4.LetterSpacing") + "px"; 473 FontSettings.H4.Casing = GetString("Item.Area.HeadingsH4.Casing"); 474 FontSettings.H4.Color = GetString("Item.Area.HeadingsH4.Color.Color"); 475 476 FontSettings.H5.FontFamily = CustomFont(GetString("Item.Area.HeadingsH5.Font"), GetString("Item.Area.HeadingsH5.CustomFont")); 477 FontSettings.H5.FontSize = GetString("Item.Area.HeadingsH5.Size") + "px"; 478 FontSettings.H5.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH5.Weight"), "normal"); 479 FontSettings.H5.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH5.LineHeight"), "1"); 480 FontSettings.H5.LetterSpacing = GetString("Item.Area.HeadingsH5.LetterSpacing") + "px"; 481 FontSettings.H5.Casing = GetString("Item.Area.HeadingsH5.Casing"); 482 FontSettings.H5.Color = GetString("Item.Area.HeadingsH5.Color.Color"); 483 484 485 //BODY 486 FontSettings.Body.FontFamily = CustomFont(GetString("Item.Area.BodyFont.Font"), GetString("Item.Area.BodyFont.CustomFont")); 487 FontSettings.Body.FontSize = GetString("Item.Area.BodyFont.Size") + "px"; 488 FontSettings.Body.FontWeight = CheckExistence(GetString("Item.Area.BodyFont.Weight"), "normal"); 489 FontSettings.Body.LineHeight = CheckExistence(GetString("Item.Area.BodyFont.LineHeight"), "1"); 490 FontSettings.Body.LetterSpacing = GetString("Item.Area.BodyFont.LetterSpacing") + "px"; 491 FontSettings.Body.Casing = GetString("Item.Area.BodyFont.Casing"); 492 FontSettings.Body.Color = GetString("Item.Area.BodyFont.Color.Color"); 493 494 495 gfonts.Add(FontSettings.Logo.FontFamily, ""); 496 497 if (!gfonts.ContainsKey(FontSettings.Slogan.FontFamily)) 498 { 499 gfonts.Add(FontSettings.Slogan.FontFamily, ""); 500 } 501 if (!gfonts.ContainsKey(FontSettings.H1.FontFamily)) 502 { 503 gfonts.Add(FontSettings.H1.FontFamily, ""); 504 } 505 if (!gfonts.ContainsKey(FontSettings.H2.FontFamily)) 506 { 507 gfonts.Add(FontSettings.H2.FontFamily, ""); 508 } 509 if (!gfonts.ContainsKey(FontSettings.H3.FontFamily)) 510 { 511 gfonts.Add(FontSettings.H3.FontFamily, ""); 512 } 513 if (!gfonts.ContainsKey(FontSettings.H4.FontFamily)) 514 { 515 gfonts.Add(FontSettings.H4.FontFamily, ""); 516 } 517 if (!gfonts.ContainsKey(FontSettings.H5.FontFamily)) 518 { 519 gfonts.Add(FontSettings.H5.FontFamily, ""); 520 } 521 if (!gfonts.ContainsKey(FontSettings.Body.FontFamily)) 522 { 523 gfonts.Add(FontSettings.Body.FontFamily, ""); 524 } 525 526 } 527 528 private string CustomFont (string firstfont, string secondfont) 529 { 530 if (firstfont == "custom") 531 { 532 return secondfont; 533 } 534 else 535 { 536 return firstfont; 537 } 538 } 539 540 private string CheckExistence (string stringitem, string defaultvalue) 541 { 542 if (!string.IsNullOrWhiteSpace(stringitem)) { 543 return stringitem; 544 } else { 545 return defaultvalue; 546 } 547 } 548 549 private System.Collections.Generic.Dictionary<string, object> gfonts = new System.Collections.Generic.Dictionary<string, object>(); 550 } 551 552 @{ 553 InitFontSettings(); 554 } 555 556 @helper GoogleFonts() 557 { 558 if (gfonts != null) 559 { 560 foreach (var item in gfonts) 561 { 562 string fontName = item.Key.Replace(" ", "+"); 563 if (fontName.Contains("Century")) 564 { 565 <link rel="stylesheet" href="/Files/Templates/Designs/Dwsimple/css/CenturyGothic.css" type="text/css"> 566 } 567 else if (fontName.Contains("HeveticaLT") || fontName.Contains("ColfaxWebRegular") || fontName.Contains("HelveticaLT")) 568 { 569 570 } 571 572 573 else 574 { 575 576 <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=@fontName:100,200,300,400,500,600,700,800,900"> 577 } 578 579 } 580 } 581 } 582 583 @functions{ 584 public string FontStylesCSS() 585 { 586 string CssString = @" 587 .dw-logotext { 588 font-family: " + FontSettings.Logo.FontFamily + @"; 589 font-size: " + FontSettings.Logo.FontSize + @"; 590 font-weight: " + FontSettings.Logo.FontWeight + @"; 591 line-height: " + FontSettings.Logo.LineHeight + @" !important; 592 letter-spacing: " + FontSettings.Logo.LetterSpacing + @"; 593 text-transform: " + FontSettings.Logo.Casing + @"; 594 color: " + FontSettings.Logo.Color + @"; 595 } 596 597 .dw-slogantext { 598 font-family: " + FontSettings.Slogan.FontFamily + @"; 599 font-size: " + FontSettings.Slogan.FontSize + @"; 600 font-weight: " + FontSettings.Slogan.FontWeight + @"; 601 line-height: " + FontSettings.Slogan.LineHeight + @" !important; 602 letter-spacing: " + FontSettings.Slogan.LetterSpacing + @"; 603 text-transform: " + FontSettings.Slogan.Casing + @"; 604 color: " + FontSettings.Slogan.Color + @"; 605 } 606 607 h1 { 608 font-family: " + FontSettings.H1.FontFamily + @"; 609 font-size: " + FontSettings.H1.FontSize + @"; 610 color: " + FontSettings.H1.Color + @"; 611 line-height: " + FontSettings.H1.LineHeight + @" !important; 612 text-transform: " + FontSettings.H1.Casing + @"; 613 font-weight: " + FontSettings.H1.FontWeight + @"; 614 letter-spacing: " + FontSettings.H1.LetterSpacing + @" !important; 615 } 616 617 618 h2{ 619 margin-top: 0.7em; 620 margin-bottom: 0.7em; 621 622 font-family: " + FontSettings.H2.FontFamily + @"; 623 font-size: " + FontSettings.H2.FontSize + @"; 624 color: " + FontSettings.H2.Color + @"; 625 line-height: " + FontSettings.H2.LineHeight + @"; 626 text-transform: " + FontSettings.H2.Casing + @" !important; 627 font-weight: " + FontSettings.H2.FontWeight + @" !important; 628 letter-spacing: " + FontSettings.H2.LetterSpacing + @" !important; 629 } 630 h3{ 631 margin-top: 0.7em; 632 margin-bottom: 0.7em; 633 634 font-family: " + FontSettings.H3.FontFamily + @"; 635 font-size: " + FontSettings.H3.FontSize + @"; 636 color: " + FontSettings.H3.Color + @"; 637 line-height: " + FontSettings.H3.LineHeight + @"; 638 text-transform: " + FontSettings.H3.Casing + @" !important; 639 font-weight: " + FontSettings.H3.FontWeight + @" !important; 640 letter-spacing: " + FontSettings.H3.LetterSpacing + @" !important; 641 } 642 h4{ 643 margin-top: 0.7em; 644 margin-bottom: 0.7em; 645 646 font-family: " + FontSettings.H4.FontFamily + @"; 647 font-size: " + FontSettings.H4.FontSize + @"; 648 color: " + FontSettings.H4.Color + @"; 649 line-height: " + FontSettings.H4.LineHeight + @"; 650 text-transform: " + FontSettings.H4.Casing + @" !important; 651 font-weight: " + FontSettings.H4.FontWeight + @" !important; 652 letter-spacing: " + FontSettings.H4.LetterSpacing + @" !important; 653 } 654 footer h4{ 655 font-size: " + FontSettings.H4.FontSize + @" !important; 656 } 657 h5{ 658 margin-top: 0.7em; 659 margin-bottom: 0.7em; 660 661 font-family: " + FontSettings.H5.FontFamily + @"; 662 font-size: " + FontSettings.H5.FontSize + @"; 663 color: " + FontSettings.H5.Color + @"; 664 line-height: " + FontSettings.H5.LineHeight + @"; 665 text-transform: " + FontSettings.H5.Casing + @" !important; 666 font-weight: " + FontSettings.H5.FontWeight + @" !important; 667 letter-spacing: " + FontSettings.H5.LetterSpacing + @" !important; 668 } 669 body { 670 font-family: " + FontSettings.Body.FontFamily + @" !important; 671 font-size: " + FontSettings.Body.FontSize + @"; 672 color: " + FontSettings.Body.Color + @"; 673 line-height: " + FontSettings.Body.LineHeight + @" !important; 674 text-transform: " + FontSettings.Body.Casing + @"; 675 font-weight: " + FontSettings.Body.FontWeight + @"; 676 letter-spacing: " + FontSettings.Body.LetterSpacing + @" !important; 677 } 678 679 .navbar-wp .navbar-nav > li > a { 680 font-family: " + FontSettings.Body.FontFamily + @" !important; 681 } 682 683 .section-title { 684 margin-top: 0; 685 margin-bottom: 0.7em; 686 } 687 "; 688 return CssString; 689 } 690 691 692 } 693 @GoogleFonts() 694 695 <!-- GENERAL/COLOR SETTINGS --> 696 @functions{ 697 public class ColorSettings 698 { 699 public class Color 700 { 701 public static string Primary { get; set; } 702 public static string Secondary { get; set; } 703 public static string NavbarFont { get; set; } 704 public static string NavigationBackground { get; set; } 705 public static string TopNavigationText { get; set; } 706 public static string Footer { get; set; } 707 public static string FooterFont { get; set; } 708 709 public static string Sticker { get; set; } 710 public static string Price { get; set; } 711 public static string Cart { get; set; } 712 } 713 } 714 715 716 717 private void InitColorSettings() 718 { 719 ColorSettings.Color.Primary = GetString("Item.Area.ColorsPrimary.Color"); 720 ColorSettings.Color.Secondary = GetString("Item.Area.ColorsSecondary.Color"); 721 ColorSettings.Color.NavigationBackground = GetString("Item.Area.Navigation_Background.Color"); 722 ColorSettings.Color.TopNavigationText = GetString("Item.Area.TopNavigationColorText.Color"); 723 724 ColorSettings.Color.NavbarFont = GetString("Item.Area.NavbarFontColor"); 725 726 if (string.IsNullOrWhiteSpace(ColorSettings.Color.NavbarFont)) 727 { 728 ColorSettings.Color.NavbarFont = WrapMethods.getContrastYIQ(ColorSettings.Color.Secondary); 729 } 730 731 ColorSettings.Color.Footer = GetString("Item.Area.ColorsFooterColor.Color"); 732 ColorSettings.Color.FooterFont = GetString("Item.Area.FooterFontColor.Color"); 733 734 ColorSettings.Color.Price = GetString("Item.Area.EcommercePriceColor.Color"); 735 ColorSettings.Color.Sticker = GetString("Item.Area.EcommerceDiscountStickerColor.Color"); 736 ColorSettings.Color.Cart = GetString("Item.Area.EcommerceCartButtonColor.Color"); 737 } 738 739 public string GetColorSettings() 740 { 741 string CssString = @" 742 a:hover, a:focus, a:active { 743 color: @Primary; 744 } 745 746 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 747 color: @NavbarFont; 748 } 749 750 .navbar-wp .navbar-nav > .active > a, .navbar-wp .navbar-nav > .active > a:hover, .navbar-wp .navbar-nav > .active > a:focus { 751 color: @TopNavigationText; 752 } 753 754 .navbar-wp .navbar-nav > li > a:hover, .navbar-wp .navbar-nav > li > a:focus { 755 border-top: 0px solid @Secondary; 756 color: @TopNavigationText; 757 } 758 759 .navbar-wp .navbar-nav > li > a span:after { 760 background-color: @TopNavigationText; 761 } 762 763 .navbar-wp .megamenu > li:hover > a { 764 color: @TopNavigationText !important; 765 } 766 767 .btn-dw-primary { 768 color: #FFF; 769 background-color: @Primary; 770 border-color: @Primary; 771 } 772 773 .btn-dw-secondary { 774 color: @NavbarFont; 775 background-color: @Secondary; 776 border-color: @Secondary; 777 } 778 779 .btn-dw-cart { 780 color: #FFF; 781 background-color: @Cart; 782 border-color: @Cart; 783 } 784 785 .dw-section-title { 786 border-color: @Secondary; 787 } 788 789 .dw-minicart-update { 790 color: #FFF !important; 791 background-color: @Primary; 792 transition: all 0.3s ease-in-out 0s; 793 } 794 795 .pagination > li > a, .pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > a:active { 796 color: @Primary; 797 } 798 799 .form-control:hover, .form-control:focus, .form-control:active { 800 border-color: @Primary !important; 801 } 802 803 .bg-2 { 804 background: @Primary !important; 805 } 806 807 .blockquote-1:hover { 808 border-color: @Primary !important; 809 } 810 811 .navbar-wp .navbar-nav > li > a.dropdown-form-toggle, .navbar-wp .navbar-nav > li > a.dropdown-form-toggle:hover, .navbar-wp .navbar-nav > li > a.dropdown-form-toggle:focus { 812 color: @Primary; 813 } 814 815 .navbar-wp .navbar-nav > .open > a.dropdown-form-toggle, .navbar-wp .navbar-nav > .open > a.dropdown-form-toggle:hover, .navbar-wp .navbar-nav > .open > a.dropdown-form-toggle:focus { 816 color: @Primary; 817 } 818 819 .navbar-wp .navbar-nav > li > a:hover, .navbar-wp .navbar-nav > li > a:focus { 820 border: 0px solid @Primary; 821 } 822 823 .navbar-wp .navbar-toggle:hover, .navbar-wp .navbar-toggle:focus { 824 background-color: @Primary !important; 825 border-color: @Primary !important; 826 } 827 828 .navbar-wp .dropdown-menu, .dropdown-megamenu .container { 829 border-top: none; 830 border-bottom: none !important; 831 } 832 833 .navbar-wp .dropdown-menu > li > a:hover { 834 background: none !important; 835 color: @NavigationBackground; 836 } 837 838 .navbar-wp .dropdown-menu .active { 839 background: none !important; 840 color: @NavigationBackground; 841 } 842 .top-header .top-header-menu > ul.top-menu.quickButtonsMenu li a { 843 color: @TopNavigationText; 844 } 845 .navbar-wp.navbar-contrasted .dropdown-menu > li > a:hover { 846 background: @Primary !important; 847 } 848 849 .nav > ul > li > a:hover { 850 color: @Primary; 851 } 852 853 .lw .w-box.w-box-inverse .thmb-img i { 854 color: @Primary !important; 855 } 856 857 .w-box.w-box-inverse .thmb-img:hover i { 858 background: @Primary !important; 859 } 860 861 .c-box { 862 border: 1px solid @Primary !important; 863 } 864 865 .c-box .c-box-header { 866 background: @Primary !important; 867 } 868 869 .w-section .aside-feature:hover .icon-feature, .w-section .aside-feature:hover h4 { 870 color: @Primary !important; 871 } 872 873 .layer-slider-wrapper .title.title-base { 874 background: @Primary !important; 875 } 876 877 .layer-slider-wrapper .subtitle { 878 color: @Primary !important; 879 } 880 881 .layer-slider-wrapper .list-item { 882 color: @Primary !important; 883 } 884 885 .box-element.box-element-bordered { 886 border: 1px solid @Primary !important; 887 } 888 889 .carousel-2 .carousel-indicators .active { 890 background-color: @Primary !important; 891 } 892 893 .carousel-2 .carousel-nav a { 894 color: @Primary !important; 895 } 896 897 .carousel-2 .carousel-nav a:hover { 898 background: @Primary !important; 899 } 900 901 .carousel-3 .carousel-nav a { 902 color: @Primary !important; 903 } 904 905 .carousel-3 .carousel-nav a:hover { 906 background: @Primary !important; 907 } 908 909 .like-button .button.liked i { 910 color: @Primary !important; 911 } 912 913 ul.list-listings li.featured { 914 border-color: @Primary !important; 915 } 916 917 ul.list-check li i { 918 color: @Primary !important; 919 } 920 921 ul.dw-categories li a:hover, ul.dw-categories a:focus, ul.dw-categories a:active{ 922 color: @NavbarFont; 923 background-color: @Primary; 924 border-color: @Primary; 925 } 926 927 ul.categories li a:hover, ul.categories a:focus, ul.categories a:active{ 928 color: @NavbarFont; 929 background-color: @Primary; 930 border-color: @Primary; 931 } 932 933 .timeline .event:nth-child(2n):before { 934 background-color: @Primary !important; 935 } 936 937 .timeline .event:nth-child(2n-1):before { 938 background-color: @Primary !important; 939 } 940 941 #toTopHover { 942 background-color: @Primary !important; 943 } 944 945 .tags-list li { 946 border: 1px solid @Primary !important; 947 color: @Primary !important; 948 } 949 950 .tags-list li:hover, 951 a.open-panel { 952 background-color: @Primary !important; 953 } 954 955 .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus, 956 .panel-group .panel-heading a i, 957 .tags-list li a { 958 color: @NavbarFont !important; 959 } 960 961 .nav-pills > li > a:hover, .nav-pills > li > a:focus { 962 color: @NavbarFont !important; 963 background: none repeat scroll 0% 0% @Secondary !important; 964 } 965 966 footer { 967 background: @Footer !important; 968 } 969 970 footer h4 { 971 color: @FooterFont !important; 972 } 973 974 footer a { 975 color: @FooterFont !important; 976 } 977 978 footer a:hover, footer a:focus, footer a:active { 979 color: @Secondary !important; 980 } 981 982 footer p { 983 color: @FooterFont !important; 984 } 985 986 footer ul > li { 987 color: @FooterFont !important; 988 } 989 990 footer hr { 991 border-color: @FooterFont 992 } 993 994 995 /* Button colors */ 996 .btn-base { 997 color: @NavbarFont !important; 998 background-color: @Secondary !important; 999 border: 1px solid @Secondary !important; 1000 } 1001 1002 .btn-base:before { 1003 background-color: @Secondary !important; 1004 } 1005 1006 .btn-base:hover:before, .btn-base:focus:before, .btn-base:active:before { 1007 color: @NavbarFont !important; 1008 background-color: @Primary !important; 1009 border-color: @Primary !important; 1010 } 1011 1012 .btn-icon:before { 1013 transition: none !important; 1014 } 1015 1016 .btn-base:hover, .btn-base:focus, .btn-base:active, .btn-base.active, .open .dropdown-toggle.btn-base { 1017 color: @NavbarFont !important; 1018 background-color: @Primary !important; 1019 border-color: @Primary !important; 1020 } 1021 1022 .btn-primary { 1023 background-color: @Primary !important; 1024 border-color: @Primary !important; 1025 } 1026 1027 .open .dropdown-toggle.btn-primary { 1028 background-color: @Primary !important; 1029 border-color: @Primary !important; 1030 } 1031 1032 /* Dropdown-menu */ 1033 1034 1035 /* Ecom settings */ 1036 .ribbon.base, .ball { 1037 background: @Sticker !important; 1038 color: #fff; 1039 border-right: 5px solid @Sticker !important; 1040 } 1041 1042 .ribbon.base:before { 1043 border-top: 27px solid @Sticker !important; 1044 } 1045 1046 .ribbon.base:after { 1047 border-bottom: 27px solid @Sticker !important; 1048 } 1049 1050 .price { 1051 color: @Price !important; 1052 } 1053 1054 .discount-sticker { 1055 background-color: @Sticker !important; 1056 } 1057 1058 .bs-callout-primary { 1059 border-left-color: @Primary !important; 1060 } 1061 1062 .ratings .fa-star { 1063 color: @Secondary !important; 1064 } 1065 1066 .feature-label { 1067 color: @Secondary !important; 1068 }"; 1069 1070 return ParseCSSToString(CssString); 1071 } 1072 1073 private string ParseCSSToString(string TheString) 1074 { 1075 TheString = TheString.Replace("@Primary", ColorSettings.Color.Primary); 1076 TheString = TheString.Replace("@Secondary", ColorSettings.Color.Secondary); 1077 TheString = TheString.Replace("@NavbarFont", ColorSettings.Color.NavbarFont); 1078 TheString = TheString.Replace("@NavigationBackground", ColorSettings.Color.NavigationBackground); 1079 TheString = TheString.Replace("@TopNavigationText", ColorSettings.Color.TopNavigationText); 1080 TheString = TheString.Replace("@FooterFont", ColorSettings.Color.FooterFont); 1081 TheString = TheString.Replace("@Footer", ColorSettings.Color.Footer); 1082 1083 TheString = TheString.Replace("@Sticker", ColorSettings.Color.Sticker); 1084 TheString = TheString.Replace("@Price", ColorSettings.Color.Price); 1085 TheString = TheString.Replace("@Cart", ColorSettings.Color.Cart); 1086 1087 1088 System.Text.StringBuilder sb = new System.Text.StringBuilder(); 1089 1090 foreach(var item in TheString.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries)) 1091 { 1092 sb.AppendLine(item); 1093 } 1094 1095 return sb.ToString(); 1096 } 1097 } 1098 1099 @{ 1100 InitColorSettings(); 1101 } 1102 1103 1104 1105 @using System.Drawing 1106 @using System.Net 1107 1108 1109 @functions{ 1110 public class GeneralSettings 1111 { 1112 1113 public class Header 1114 { 1115 public static string Mode { get; set; } 1116 public static string Classes { get; set; } 1117 public static bool Show { get; set; } 1118 public static string Background { get; set; } 1119 public static bool ShowFrontpageImage { get; set; } 1120 } 1121 1122 public class Logo 1123 { 1124 public static string Image { get; set; } 1125 public static string ContrastImage { get; set; } 1126 public static string Text { get; set; } 1127 public static string Slogan { get; set; } 1128 public static string SecondaryColor { get; set; } 1129 } 1130 1131 public class Navigation 1132 { 1133 public static string Position { get; set; } 1134 public static bool IsMegamenu { get; set; } 1135 public static string InvertedPosition { get; set; } 1136 public static string StickyMenu { get; set; } 1137 public static string SelectionMode { get; set; } 1138 public static string SelectionStyle { get; set; } 1139 public static int SelectionWeight { get; set; } 1140 public static bool Case { get; set; } 1141 1142 public static string BreadcrumbMode { get; set; } 1143 public static string BreadcrumbAlign { get; set; } 1144 1145 public static string LeftmenuMode { get; set; } 1146 1147 public static string ButtonDesign { get; set; } 1148 } 1149 1150 public class Headings 1151 { 1152 public static string Mode { get; set; } 1153 } 1154 1155 public class Background 1156 { 1157 public static string Color { get; set; } 1158 public static string Image { get; set; } 1159 public static string CustomImage { get; set; } 1160 public static bool GradientColor { get; set; } 1161 public static string GradientPercentage { get; set; } 1162 public static string Style { get; set; } 1163 public static string Position { get; set; } 1164 } 1165 1166 public class Site 1167 { 1168 public static bool Shadow { get; set; } 1169 public static string LayoutMode { get; set; } 1170 } 1171 1172 public class Images 1173 { 1174 public static bool RoundCorners { get; set; } 1175 } 1176 1177 public class Ecommerce 1178 { 1179 public static string EcomListDesign { get; set; } 1180 public static string EcomCardDesign { get; set; } 1181 } 1182 } 1183 1184 private void InitGeneralSettings() 1185 { 1186 //Header settings 1187 GeneralSettings.Header.Mode = GetString("Item.Area.HeaderLayoutMode"); 1188 GeneralSettings.Header.Show = GetBoolean("Item.Area.HeaderShow"); 1189 GeneralSettings.Header.Background = GetString("Item.Area.NavigationNavbarBackground"); 1190 GeneralSettings.Header.ShowFrontpageImage = GetBoolean("Item.Area.HeaderFrontpageImage"); 1191 1192 if (GeneralSettings.Header.Mode == "solid"){ 1193 GeneralSettings.Header.Classes = ""; 1194 } 1195 1196 if (GeneralSettings.Header.Mode == "cover" || GeneralSettings.Header.Mode == "mobile"){ 1197 GeneralSettings.Header.Classes = "header-alpha header-cover"; 1198 } 1199 1200 1201 //Logo settings 1202 GeneralSettings.Logo.Image = GetString("Item.Area.GeneralLogo"); 1203 GeneralSettings.Logo.Text = GetString("Item.Area.GeneralLogoText"); 1204 GeneralSettings.Logo.Slogan = GetString("Item.Area.LogoSlogan"); 1205 GeneralSettings.Logo.SecondaryColor = GetString("Item.Area.LogoSecondColor.Color"); 1206 1207 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoContrastImage"))) { 1208 GeneralSettings.Logo.ContrastImage = GetString("Item.Area.LogoContrastImage"); 1209 } else { 1210 GeneralSettings.Logo.ContrastImage = GetString("Item.Area.GeneralLogo"); 1211 } 1212 1213 1214 //Navigation settings 1215 GeneralSettings.Navigation.Position = GetString("Item.Area.NavigationPosition"); 1216 GeneralSettings.Navigation.StickyMenu = "off"; 1217 GeneralSettings.Navigation.IsMegamenu = GetBoolean("Item.Area.IsMegamenu"); 1218 1219 if (GetBoolean("Item.Area.NavigationSticky")) { 1220 if (GeneralSettings.Header.Show) 1221 { 1222 if (GeneralSettings.Header.Mode == "cover") 1223 { 1224 GeneralSettings.Navigation.StickyMenu = "44"; //"data-spy=\"affix\" data-offset-top=\"44\" data-offset-bottom=\"300\""; 1225 } 1226 else 1227 { 1228 int offset = ImageHeight()+28; 1229 1230 GeneralSettings.Navigation.StickyMenu = offset.ToString(); // "data-spy=\"affix\" data-offset-top=\"" + offset.ToString() + "\" data-offset-bottom=\"300\""; 1231 } 1232 } 1233 else 1234 { 1235 GeneralSettings.Navigation.StickyMenu = "5"; // "data-spy=\"affix\" data-offset-top=\"5\" data-offset-bottom=\"300\""; 1236 } 1237 } 1238 1239 if (GeneralSettings.Navigation.Position == "left") { 1240 GeneralSettings.Navigation.InvertedPosition = "right"; 1241 } 1242 else 1243 { 1244 GeneralSettings.Navigation.InvertedPosition = "left"; 1245 } 1246 1247 GeneralSettings.Navigation.SelectionMode = GetString("Item.Area.NavigationSelectionMode"); 1248 GeneralSettings.Navigation.SelectionStyle = ""; 1249 GeneralSettings.Navigation.SelectionWeight = GetInteger("Item.Area.SelectionWeight"); 1250 1251 if (GeneralSettings.Navigation.SelectionMode == "arrow") { 1252 GeneralSettings.Navigation.SelectionStyle = "navbar-arrow"; 1253 } 1254 1255 GeneralSettings.Navigation.Case = GetBoolean("Item.Area.NavigationUppercase"); 1256 1257 GeneralSettings.Navigation.BreadcrumbMode = GetString("Item.Area.NavigationBreadcrumbLayout"); 1258 GeneralSettings.Navigation.BreadcrumbAlign = GetString("Item.Area.NavigationBreadcrumbAlign"); 1259 1260 GeneralSettings.Navigation.LeftmenuMode = GetString("Item.Area.NavigationLeftNavigationMode"); 1261 1262 GeneralSettings.Navigation.ButtonDesign = GetString("Item.Area.NavigationButtonDesign"); 1263 1264 1265 //Background settings 1266 GeneralSettings.Background.Image = GetString("Item.Area.BackgroundImage.Image.Image"); 1267 GeneralSettings.Background.CustomImage = GetString("Item.Area.BackgroundImage.Image.CustomImage"); 1268 GeneralSettings.Background.Color = GetString("Item.Area.BackgroundImage.Color.Color"); 1269 GeneralSettings.Background.GradientColor = GetBoolean("Item.Area.BackroundGradientColor"); 1270 GeneralSettings.Background.GradientPercentage = GetString("Item.Area.GradientPercentage"); 1271 1272 1273 if (@GetString("Item.Area.BackgroundFixed") == "True") 1274 { 1275 GeneralSettings.Background.Position = "fixed"; 1276 } 1277 else 1278 { 1279 GeneralSettings.Background.Position = ""; 1280 } 1281 1282 1283 if (GeneralSettings.Background.Image == "none") 1284 { 1285 GeneralSettings.Background.Style = ""; 1286 } 1287 else if (GeneralSettings.Background.Image == "custom") 1288 { 1289 if (!string.IsNullOrWhiteSpace(GeneralSettings.Background.CustomImage)) 1290 { 1291 GeneralSettings.Background.Style = "background: url('/Admin/Public/GetImage.ashx?width=1920&amp;Crop=1&amp;Compression=75&amp;image=" + GeneralSettings.Background.CustomImage + "') " + GeneralSettings.Background.Position + " !important; "; 1292 } 1293 } 1294 else 1295 { 1296 GeneralSettings.Background.Style = "background: url('/Admin/Public/GetImage.ashx?width=1920&amp;Crop=1&amp;Compression=75&amp;image=/Files/Templates/Designs/Dwsimple/images/background/" + GeneralSettings.Background.Image + "') " + GeneralSettings.Background.Position + " !important; "; 1297 } 1298 1299 1300 //Headings settings 1301 GeneralSettings.Headings.Mode = GetString("Item.Area.AdvHeadingsMode"); 1302 1303 1304 //Site settings 1305 GeneralSettings.Site.Shadow = GetBoolean("Item.Area.BackgroundSiteShadow"); 1306 GeneralSettings.Site.LayoutMode = GetString("Item.Area.LayoutMode"); 1307 1308 if (GeneralSettings.Site.LayoutMode == "boxed"){ 1309 GeneralSettings.Site.LayoutMode = "body-" + GeneralSettings.Site.LayoutMode; 1310 GeneralSettings.Header.Classes += " header-boxed"; 1311 } 1312 1313 1314 //Image settings 1315 GeneralSettings.Images.RoundCorners = GetBoolean("Item.Area.LayoutRoundCorners"); 1316 1317 //Ecommerce settings 1318 GeneralSettings.Ecommerce.EcomListDesign = GetString("Item.Area.EcommerceProductCardDesign"); 1319 GeneralSettings.Ecommerce.EcomCardDesign = GetString("Item.Area.EcommerceProductCardDesign"); 1320 } 1321 1322 public string GetGeneralCSS() 1323 { 1324 string CssString = ""; 1325 int SelectionWeight = GeneralSettings.Navigation.SelectionWeight; 1326 1327 //Site settings 1328 if (GetString("Item.Area.LogoFont.Color.Color") == "#FFF" || GetString("Item.Area.LogoFont.Color.Color") == "#FFFFFF") 1329 { 1330 int offset = ImageHeight()+28; 1331 1332 CssString += @" 1333 .dw-offsetmenu-logo { 1334 color: #333 !important; 1335 }"; 1336 } 1337 1338 if (!string.IsNullOrWhiteSpace(GeneralSettings.Background.Color)) 1339 { 1340 CssString += @" 1341 body { 1342 background-color: " + GeneralSettings.Background.Color + @"; 1343 background-size: cover; 1344 }"; 1345 } 1346 1347 if (GeneralSettings.Background.GradientColor) 1348 { 1349 CssString += @" 1350 body { 1351 background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1352 background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1353 background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1354 background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1355 background: linear-gradient(to top, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1356 background-attachment: fixed; 1357 background-color: " + GeneralSettings.Background.Color + @" !important; 1358 }"; 1359 } 1360 1361 if (GeneralSettings.Site.Shadow) 1362 { 1363 CssString += @" 1364 .shad { 1365 -webkit-box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1366 -moz-box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1367 box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1368 }"; 1369 } 1370 1371 //Image settings 1372 if (GeneralSettings.Images.RoundCorners) 1373 { 1374 CssString += @" 1375 .content-image { 1376 border-radius: 6px; 1377 -webkit-border-radius: 6px; 1378 -moz-border-radius: 6px; 1379 }"; 1380 } 1381 1382 //Navbar and header custom settings 1383 if (GeneralSettings.Header.Mode == "cover") 1384 { 1385 CssString += @" 1386 .navbar-wp { 1387 background-color: none !important; 1388 }"; 1389 1390 if (!GeneralSettings.Header.Show || GeneralSettings.Header.Mode == "mobile") 1391 { 1392 CssString += @" 1393 .header-cover .navbar-wp { 1394 top: 0px !important; 1395 }"; 1396 } 1397 } 1398 else 1399 { 1400 if (GeneralSettings.Header.Show) 1401 { 1402 CssString += @" 1403 .navbar-wp.affix .navbar-nav > li > a { 1404 padding: 16px 16px !important; 1405 }"; 1406 } 1407 } 1408 1409 if (GeneralSettings.Header.Background == "colorline") 1410 { 1411 CssString += @" 1412 .navbar-wp, .navbar-wp.affix { 1413 border-bottom: 4px solid " + ColorSettings.Color.Primary + @" !important; 1414 } 1415 1416 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1417 background-color: #FFF; 1418 color: #333; 1419 } 1420 1421 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1422 color: " + ColorSettings.Color.NavbarFont + @"; 1423 } 1424 1425 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1426 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1427 }"; 1428 } else if (GeneralSettings.Header.Background == "neutral") 1429 { 1430 CssString += @" 1431 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 1432 background-color: #f1f1f1; 1433 } 1434 1435 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1436 color: #333; 1437 } 1438 1439 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1440 color: " + ColorSettings.Color.NavbarFont + @"; 1441 } 1442 1443 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1444 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1445 }"; 1446 } 1447 else if (GeneralSettings.Header.Background == "transparent") 1448 { 1449 CssString += @" 1450 .navbar-wp, .navbar-wp.affix { 1451 background-color: #FFF; 1452 opacity: 0.9; 1453 filter: alpha(opacity=90); /* For IE8 and earlier */ 1454 } 1455 1456 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1457 color: #333; 1458 } 1459 1460 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1461 color: " + ColorSettings.Color.NavbarFont + @"; 1462 } 1463 1464 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1465 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1466 }"; 1467 } 1468 else 1469 { 1470 CssString += @" 1471 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 1472 background-color: " + ColorSettings.Color.NavigationBackground + @"; 1473 color: " + ColorSettings.Color.TopNavigationText + @"; 1474 } 1475 1476 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1477 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1478 }"; 1479 } 1480 1481 if (GeneralSettings.Navigation.SelectionMode == "background" || GeneralSettings.Navigation.SelectionMode == "arrow"){ 1482 CssString += NavbarPosition(false, SelectionWeight); 1483 1484 CssString += @" 1485 .dw-navbar-button > a { 1486 background-color: transparent !important; 1487 } 1488 1489 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1490 background-color: " + ColorSettings.Color.TopNavigationText + @" !important; 1491 }"; 1492 } 1493 1494 if (GeneralSettings.Navigation.SelectionMode == "underline"){ 1495 CssString += NavbarPosition(true); 1496 1497 CssString += ClearBackground(); 1498 1499 CssString += @" 1500 .dw-navbar-button > a span:after { 1501 position: absolute; 1502 content: ''; 1503 left: 0px; 1504 bottom: 0px; 1505 height: " + SelectionWeight + @"px; 1506 width: 100%; 1507 transform: scaleX(0); 1508 transition: all 0.3s ease-in-out 0s; 1509 } 1510 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1511 color: " + ColorSettings.Color.TopNavigationText + @" !important; 1512 } 1513 1514 .dw-navbar-button > a:hover span:after, dw-navbar-button > a:active span:after, dw-navbar-button > a:focus span:after, .active > a span:after { 1515 color: " + ColorSettings.Color.Primary + @" !important; 1516 transform: scaleX(1); 1517 transition: all 0.3s ease-in-out 0s; 1518 }"; 1519 } 1520 1521 if (GeneralSettings.Navigation.SelectionMode == "boxed"){ 1522 CssString += NavbarPosition(true, SelectionWeight); 1523 1524 CssString += @" 1525 .dw-navbar-button > a { 1526 background-color: transparent !important; 1527 } 1528 1529 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1530 background-color: " + ColorSettings.Color.Primary + @" !important; 1531 transition: all 0.3s ease-in-out 0s; 1532 }"; 1533 } 1534 1535 if (GeneralSettings.Navigation.SelectionMode == "border"){ 1536 CssString += NavbarPosition(true, 6, SelectionWeight); 1537 1538 CssString += ClearBackground(); 1539 1540 CssString += @" 1541 .dw-navbar-button > a { 1542 border: " + SelectionWeight + @"px solid transparent !important; transition: None !important; 1543 } 1544 1545 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1546 border-width: " + SelectionWeight + @"px !important; 1547 border-color: " + ColorSettings.Color.Primary + @" !important; 1548 transition: all 0.3s ease-in-out 0s; 1549 }"; 1550 } 1551 1552 if (GeneralSettings.Navigation.SelectionMode == "font"){ 1553 CssString += NavbarPosition(); 1554 1555 CssString += ClearBackground(); 1556 1557 SelectionWeight = (SelectionWeight*100); 1558 1559 CssString += @" 1560 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1561 color: " + ColorSettings.Color.Primary + @" !important; 1562 font-weight: " + SelectionWeight + @" !important; 1563 transition: all 0.3s ease-in-out 0s; 1564 }"; 1565 } 1566 1567 if (GeneralSettings.Navigation.Case){ 1568 CssString += @" 1569 .dw-navbar-button > a { 1570 text-transform: uppercase !important; 1571 }"; 1572 } 1573 else 1574 { 1575 CssString += @" 1576 .dw-navbar-button > a { 1577 text-transform: none !important; 1578 }"; 1579 } 1580 1581 1582 //Breadcrumb custom settings 1583 if (GeneralSettings.Navigation.BreadcrumbMode == "light") 1584 { 1585 CssString += @" 1586 .pg-opt { 1587 border-bottom: 0px; 1588 background: none repeat scroll 0% 0% #FFF; 1589 } 1590 1591 .dw-breadcrumb-title { 1592 font-size: 14px !important; 1593 padding: 5px 0px 5px 0px !important; 1594 } 1595 1596 .dw-breadcrumb { 1597 padding: 16px 15px 16px 0 !important; 1598 }"; 1599 } 1600 1601 if (GeneralSettings.Navigation.BreadcrumbMode == "normal") 1602 { 1603 CssString += @" 1604 .dw-breadcrumb-title { 1605 font-size: 14px !important; 1606 padding: 5px 0px 5px 0px !important; 1607 } 1608 1609 .dw-breadcrumb a, .pg-opt .breadcrumb { 1610 padding: 5px !important; 1611 }"; 1612 } 1613 1614 if (GeneralSettings.Navigation.BreadcrumbMode == "large") 1615 { 1616 CssString += @" 1617 .dw-breadcrumb-title { 1618 font-size: 22px !important; 1619 padding: 15px 0px 15px 0px !important; 1620 } 1621 1622 .dw-breadcrumb { 1623 padding: 15px !important; 1624 }"; 1625 } 1626 1627 1628 if (GeneralSettings.Navigation.BreadcrumbAlign == "right") 1629 { 1630 CssString += @" 1631 .dw-breadcrumb { 1632 float: right !important; 1633 }"; 1634 } 1635 else 1636 { 1637 CssString += @" 1638 .dw-breadcrumb { 1639 float: left !important; 1640 }"; 1641 } 1642 1643 1644 //Left menu custom settings 1645 if (GeneralSettings.Navigation.LeftmenuMode == "light" || GeneralSettings.Navigation.LeftmenuMode == "light-color") 1646 { 1647 CssString += @" 1648 ul.dw-categories, ul.dw-categories > li, ul.dw-categories > li > ul > li { 1649 border: 0px solid #EEE; 1650 } 1651 1652 ul.dw-categories > li > ul { 1653 background: none repeat scroll 0% 0% #FFF; 1654 } 1655 1656 ul.dw-categories li a:hover, ul.dw-categories li a:focus, ul.dw-categories li a:active { 1657 background-color: #FFF !important; 1658 color: " + ColorSettings.Color.Primary + @" !important; 1659 } 1660 1661 .list-active, .list-active > a { 1662 background-color: #FFF; 1663 color: " + ColorSettings.Color.Primary + @" !important; 1664 } 1665 1666 .list-open-active { 1667 background-color: #FFF; 1668 color: " + ColorSettings.Color.Primary + @" !important; 1669 }"; 1670 } 1671 1672 if (GeneralSettings.Navigation.LeftmenuMode == "lines") 1673 { 1674 CssString += @" 1675 ul.dw-categories > li { 1676 border-bottom: 1px solid #EEE; 1677 } 1678 1679 ul.dw-categories { 1680 border: 0px solid #EEE; 1681 } 1682 1683 ul.dw-categories > li > ul { 1684 background: none repeat scroll 0% 0% #FFF; 1685 } 1686 1687 ul.dw-categories li a:hover, a:focus, a:active { 1688 background-color: #FFF !important; 1689 color: " + ColorSettings.Color.Primary + @" !important; 1690 } 1691 1692 .list-active, .list-active > a { 1693 background-color: #FFF; 1694 color: " + ColorSettings.Color.Primary + @" !important; 1695 } 1696 1697 .list-open-active { 1698 background-color: #FFF; 1699 color: " + ColorSettings.Color.Primary + @" !important; 1700 }"; 1701 } 1702 1703 if (GeneralSettings.Navigation.LeftmenuMode == "boxed") 1704 { 1705 CssString += @" 1706 ul.dw-categories, ul.dw-categories > li, ul.dw-categories > li > ul > li { 1707 border: 0px solid #EEE; 1708 } 1709 1710 .list-active, .list-active > a { 1711 background-color: " + ColorSettings.Color.Primary + @" !important; 1712 color: #FFF; 1713 }"; 1714 } 1715 1716 if (GeneralSettings.Navigation.LeftmenuMode == "border") 1717 { 1718 CssString += @" 1719 ul.dw-categories > li { 1720 border: 1px solid #EEE; 1721 } 1722 1723 ul.dw-categories > li > ul > li { 1724 border-top: 1px solid #EEE; 1725 } 1726 1727 .list-active, .list-active > a { 1728 background-color: " + ColorSettings.Color.Primary + @" !important; 1729 color: #FFF; 1730 }"; 1731 } 1732 1733 if (GeneralSettings.Navigation.LeftmenuMode == "light-color") 1734 { 1735 CssString += @" 1736 ul.dw-categories li a:hover, ul.dw-categories a:focus, ul.dw-categories a:active { 1737 border-left: 6px solid " + ColorSettings.Color.Primary + @"; 1738 } 1739 1740 ul.dw-categories .M2 > li > a:hover, ul.dw-categories .M2 > li > a:focus, ul.dw-categories .M2 > li > a:active, ul.dw-categories .M2 > .list-active > a { 1741 padding-left: 20px; 1742 } 1743 1744 ul.dw-categories .M3 > li > a:hover, ul.dw-categories .M3 > li > a:focus, ul.dw-categories .M3 > li > a:active, ul.dw-categories .M3 > .list-active > a { 1745 padding-left: 30px; 1746 } 1747 1748 ul.dw-categories .M4 > li > a:hover, ul.dw-categories .M4 > li > a:focus, ul.dw-categories .M4 > li > a:active, ul.dw-categories .M4 > .list-active > a { 1749 padding-left: 40px; 1750 } 1751 1752 ul.dw-categories .M5 > li > a:hover, ul.dw-categories .M5 > li > a:focus, ul.dw-categories .M5 > li > a:active, ul.dw-categories .M5 > .list-active > a { 1753 padding-left: 50px; 1754 } 1755 1756 ul.dw-categories .M6 > li > a:hover, ul.dw-categories .M6 > li > a:focus, ul.dw-categories .M6 > li > a:active, ul.dw-categories .M6 > .list-active > a { 1757 padding-left: 50px; 1758 } 1759 1760 ul.dw-categories .M7 > li > a:hover, ul.dw-categories .M7 > li > a:focus, ul.dw-categories .M7 > li > a:active, ul.dw-categories .M7 > .list-active > a { 1761 padding-left: 50px; 1762 } 1763 1764 ul.dw-categories .M8 > li > a:hover, ul.dw-categories .M8 > li > a:focus, ul.dw-categories .M8 > li > a:active, ul.dw-categories .M8 > .list-active > a { 1765 padding-left: 50px; 1766 } 1767 1768 ul.dw-categories .list-active > a { 1769 border-left: 6px solid " + ColorSettings.Color.Primary + @"; 1770 } 1771 1772 .btn-dw:hover, .btn-dw:focus, .btn-dw:active { 1773 1774 }"; 1775 } 1776 1777 1778 //Buttons custom designs 1779 if (GeneralSettings.Navigation.ButtonDesign == "light-rounded") 1780 { 1781 CssString += @" 1782 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1783 border-width: 0px; 1784 } 1785 1786 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1787 background-color: " + ColorSettings.Color.Secondary + @"; 1788 color: #FFF; 1789 border-width: 0px; 1790 } 1791 1792 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1793 background-color: " + ColorSettings.Color.Primary + @"; 1794 color: #FFF; 1795 border-width: 0px; 1796 } 1797 1798 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1799 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1800 color: #FFF; 1801 border-width: 0px; 1802 }"; 1803 } 1804 1805 if (GeneralSettings.Navigation.ButtonDesign == "corners") 1806 { 1807 CssString += @" 1808 .btn-dw-primary, .btn-dw-secondary, btn-dw-cart , .btn-dw-cart { 1809 border-radius: 0px !important; 1810 border-width: 0px; 1811 } 1812 1813 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1814 background-color: " + ColorSettings.Color.Secondary + @"; 1815 color: #FFF; 1816 border-width: 0px; 1817 } 1818 1819 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1820 background-color: " + ColorSettings.Color.Primary + @"; 1821 color: #FFF; 1822 border-width: 0px; 1823 } 1824 1825 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1826 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1827 color: #FFF; 1828 border-width: 0px; 1829 }"; 1830 } 1831 1832 if (GeneralSettings.Navigation.ButtonDesign == "round") 1833 { 1834 CssString += @" 1835 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1836 padding: 5px 15px; 1837 border-radius: 200px !important; 1838 border-width: 0px !important; 1839 } 1840 1841 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1842 background-color: " + ColorSettings.Color.Secondary + @"; 1843 color: #FFF; 1844 border-width: 0px !important; 1845 } 1846 1847 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1848 background-color: " + ColorSettings.Color.Primary + @"; 1849 color: #FFF; 1850 border-width: 0px !important; 1851 } 1852 1853 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1854 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1855 color: #FFF; 1856 border-width: 0px !important; 1857 }"; 1858 } 1859 1860 if (GeneralSettings.Navigation.ButtonDesign == "border") 1861 { 1862 CssString += @" 1863 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1864 background-color: transparent; 1865 } 1866 1867 .btn-dw-primary { 1868 border-width: 4px; 1869 padding: 3px 10px; 1870 color: " + ColorSettings.Color.Primary + @"; 1871 } 1872 1873 .btn-dw-secondary { 1874 border-width: 2px; 1875 color: " + ColorSettings.Color.Secondary + @"; 1876 } 1877 1878 .btn-dw-cart { 1879 border-width: 4px; 1880 padding: 3px 10px; 1881 color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1882 } 1883 1884 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1885 background-color: " + ColorSettings.Color.Primary + @"; 1886 border-width: 4px; 1887 padding: 3px 10px; 1888 border-color: " + ColorSettings.Color.Primary + @"; 1889 color: #FFF; 1890 } 1891 1892 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1893 background-color: " + ColorSettings.Color.Primary + @"; 1894 border-width: 2px; 1895 color: #FFF; 1896 border-color: #FFF; 1897 } 1898 1899 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1900 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1901 border-width: 4px; 1902 padding: 3px 10px; 1903 border-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1904 color: #FFF; 1905 }"; 1906 } 1907 1908 if (GeneralSettings.Navigation.ButtonDesign == "border-sharp" || GeneralSettings.Navigation.ButtonDesign == "border-round") 1909 { 1910 CssString += @" 1911 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1912 background-color: transparent; 1913 } 1914 1915 .btn-dw-primary { 1916 border-width: 4px; 1917 padding: 3px 15px; 1918 color: " + ColorSettings.Color.Primary + @"; 1919 } 1920 1921 .btn-dw-secondary { 1922 border-width: 2px; 1923 padding: 5px 15px; 1924 color: " + ColorSettings.Color.Secondary + @"; 1925 } 1926 1927 .btn-dw-cart { 1928 border-width: 4px; 1929 padding: 3px 15px; 1930 color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1931 } 1932 1933 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1934 background-color: " + ColorSettings.Color.Primary + @"; 1935 border-width: 4px; 1936 color: #FFF; 1937 padding: 3px 15px; 1938 border-color: " + ColorSettings.Color.Primary + @"; 1939 } 1940 1941 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1942 background-color: " + ColorSettings.Color.Primary + @"; 1943 border-width: 2px; 1944 color: #FFF; 1945 padding: 5px 15px; 1946 border-color: #FFF; 1947 } 1948 1949 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1950 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1951 border-width: 4px; 1952 color: #FFF; 1953 padding: 3px 15px; 1954 border-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1955 }"; 1956 } 1957 1958 if (GeneralSettings.Navigation.ButtonDesign == "border-sharp") 1959 { 1960 CssString += @" 1961 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart, .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active, .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active, .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1962 border-radius: 0px !important; 1963 }"; 1964 } 1965 1966 if (GeneralSettings.Navigation.ButtonDesign == "border-round") 1967 { 1968 CssString += @" 1969 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart, .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active, .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active, .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1970 border-radius: 200px !important; 1971 }"; 1972 } 1973 1974 1975 //Headings custom settings 1976 if (GeneralSettings.Headings.Mode == "underline") 1977 { 1978 CssString += @" 1979 .dw-section-title { 1980 border-bottom: 2px solid; 1981 margin-bottom: 15px; 1982 }"; 1983 } 1984 1985 if (GeneralSettings.Headings.Mode == "boxed" || GeneralSettings.Headings.Mode == "boxed-line") 1986 { 1987 CssString += @" 1988 .dw-section-title span { 1989 background-color: " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 1990 display: inline-block; 1991 padding: 8px 16px; 1992 color: #FFF; 1993 }"; 1994 1995 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 1996 { 1997 CssString += @" 1998 .dw-section-title { 1999 background-color: " + ColorSettings.Color.Primary + @"; 2000 }"; 2001 } 2002 } 2003 2004 if (GeneralSettings.Headings.Mode == "boxed-line") 2005 { 2006 CssString += @" 2007 .dw-section-title span { 2008 margin-bottom: 2px; 2009 } 2010 2011 .dw-section-title { 2012 border-bottom: 2px solid " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 2013 margin-bottom: 10px; 2014 }"; 2015 2016 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 2017 { 2018 CssString += @" 2019 .dw-section-title { 2020 border-bottom: 2px solid " + ColorSettings.Color.Primary + @"; 2021 }"; 2022 } 2023 } 2024 2025 if (GeneralSettings.Headings.Mode == "outline") 2026 { 2027 CssString += @" 2028 .dw-section-title { 2029 color: #FFF; 2030 text-shadow: 2031 -1px -1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 2032 1px -1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 2033 -1px 1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 2034 1px 1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 2035 }"; 2036 2037 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 2038 { 2039 CssString += @" 2040 .dw-section-title { 2041 text-shadow: 2042 -1px -1px 0 #1A1A1A, 2043 1px -1px 0 #1A1A1A, 2044 -1px 1px 0 #1A1A1A, 2045 1px 1px 0 #1A1A1A; 2046 }"; 2047 } 2048 } 2049 2050 if (GeneralSettings.Headings.Mode == "backline") 2051 { 2052 CssString += @" 2053 .dw-section-title { 2054 margin-bottom: 30px; 2055 } 2056 2057 .dw-section-title span::after { 2058 border-bottom: 5px solid #003A6F; 2059 width: 160px; 2060 content: ''; 2061 display: block; 2062 position: relative; 2063 margin-top: 10px; 2064 }"; 2065 } 2066 2067 if (GeneralSettings.Headings.Mode == "topbottomline") 2068 { 2069 CssString += @" 2070 H1.dw-section-title, 2071 H2.dw-section-title, 2072 H3.dw-section-title, 2073 H4.dw-section-title, 2074 H5.dw-section-title { 2075 border-top: 2px solid; 2076 border-bottom: 2px solid; 2077 padding: 10px 0; 2078 height: auto; 2079 }"; 2080 } 2081 2082 if (GeneralSettings.Ecommerce.EcomCardDesign == "one") 2083 { 2084 2085 } 2086 2087 if (GeneralSettings.Ecommerce.EcomCardDesign == "two") 2088 { 2089 CssString += @" 2090 .product { 2091 border: 1px solid #E5E5E5; 2092 }"; 2093 } 2094 2095 return CssString; 2096 } 2097 2098 private string ClearBackground() { 2099 string CssString = ""; 2100 2101 CssString += @" 2102 .dw-navbar-button > a { 2103 background-color: rgba(0, 0, 0, 0.0) !important; 2104 } 2105 2106 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 2107 background-color: rgba(0, 0, 0, 0.0) !important; 2108 }"; 2109 2110 return CssString; 2111 } 2112 2113 private string NavbarPosition(bool margin=false, int specialpadding=6, int extramargin=0) { 2114 int LogoHeight = 0; 2115 string CssString = ""; 2116 int Centerpos = 0; 2117 2118 if (GeneralSettings.Header.Mode != "solid"){ 2119 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2120 { 2121 LogoHeight = ImageHeight(); 2122 } 2123 else 2124 { 2125 LogoHeight = GetInteger("Item.Area.LogoFont.Size"); 2126 } 2127 } 2128 else 2129 { 2130 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2131 { 2132 LogoHeight = 18; 2133 } 2134 else 2135 { 2136 LogoHeight = GetInteger("Item.Area.LogoFont.Size")-10; 2137 } 2138 } 2139 2140 if (margin == false) 2141 { 2142 Centerpos = (LogoHeight/2) + 6; 2143 2144 CssString += @" 2145 .dw-navbar-button > a, .navbar-wp.affix .navbar-nav > li > a { 2146 padding: " + Centerpos + @"px " + (specialpadding+4) + @"px " + Centerpos + @"px " + (specialpadding+4) + @"px !important; 2147 margin: " + extramargin + @"px " + extramargin + @"px !important; 2148 }"; 2149 } 2150 else 2151 { 2152 Centerpos = ((LogoHeight/2)+6)-(specialpadding+extramargin); 2153 2154 CssString += @" 2155 .dw-navbar-button > a, .navbar-wp.affix .navbar-nav > li > a { 2156 padding: " + specialpadding + @"px " + (specialpadding+4) + @"px " + specialpadding + @"px " + (specialpadding+4) + @"px !important; 2157 margin: " + Centerpos + @"px 4px 0px 4px !important; 2158 }"; 2159 } 2160 2161 return CssString; 2162 } 2163 2164 private int ImageHeight () 2165 { 2166 int LogoHeight = 0; 2167 2168 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GeneralLogo"))) 2169 { 2170 string imageUrl = "http://" + HttpContext.Current.Request.Url.Authority + GetString("Item.Area.GeneralLogo"); 2171 2172 WebRequest request = WebRequest.Create(imageUrl); 2173 using (WebResponse response = request.GetResponse()) 2174 using (Image image = Image.FromStream(response.GetResponseStream())) 2175 { 2176 LogoHeight = image.Height; 2177 } 2178 } 2179 else 2180 { 2181 LogoHeight = 38; 2182 } 2183 2184 return LogoHeight; 2185 } 2186 } 2187 2188 2189 2190 @{ 2191 InitGeneralSettings(); 2192 } 2193 2194 2195 @if (writeCss) 2196 { 2197 css += FontStylesCSS() + "/*Colors*/" + Environment.NewLine + GetColorSettings() + Environment.NewLine + "/*General*/" + Environment.NewLine + GetGeneralCSS(); 2198 Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(css, HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.css"), false); 2199 Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(RemoveWhiteSpaceFromStylesheets(Dynamicweb.Core.Helpers.TextFileHelper.ReadTextFile(HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.css"))), HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.min.css"), false); 2200 Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(RemoveWhiteSpaceFromStylesheets(css), cssPath, false); 2201 } 2202 2203 @functions{ 2204 public static string RemoveWhiteSpaceFromStylesheets(string body) 2205 { 2206 body = Regex.Replace(body, @"[a-zA-Z]+#", "#"); 2207 body = Regex.Replace(body, @"[\n\r]+\s*", string.Empty); 2208 body = Regex.Replace(body, @"\s+", " "); 2209 body = Regex.Replace(body, @"\s?([:,;{}])\s?", "$1"); 2210 body = body.Replace(";}", "}"); 2211 body = Regex.Replace(body, @"([\s:]0)(px|pt|%|em)", "$1"); 2212 // Remove comments from CSS 2213 body = Regex.Replace(body, @"/\*[\d\D]*?\*/", string.Empty); 2214 return body; 2215 } 2216 } 2217 2218 <!-- Template styles --> 2219 <link id="dwStylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.min.css" rel="stylesheet" media="screen"> 2220 <!--<link rel="stylesheet" type="text/css" href="css/print.css" media="print">--> 2221 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/app.min.css"> 2222 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/style.css"> 2223 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/styles.css"> 2224 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/product.css"> 2225 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/header.css"> 2226 @{ string cssAutoPath = "/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.min.css?t=@areaUpdated.Ticks"; } 2227 2228 <link type="text/css" href="@cssAutoPath" rel="stylesheet"> 2229 2230 <!-- Analytics code --> 2231 @GetValue("Item.Area.OtherAnalyticsCode") 2232 2233 <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 2234 2235 @if (GeneralSettings.Navigation.IsMegamenu) 2236 { 2237 <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/megamenu.css"> 2238 } 2239 <style type="text/css"> 2240 @RenderSnippet("producersStyles") 2241 @RenderSnippet("styleNewsRow") 2242 @RenderSnippet("styleFocusElement") 2243 @RenderSnippet("styleCarousel") 2244 @RenderSnippet("subMenu") 2245 @RenderSnippet("imagePosition") 2246 @RenderSnippet("backgroundColor") 2247 @RenderSnippet("styleDescription") 2248 @RenderSnippet("styleThreeBoxes") 2249 </style> 2250 <script> 2251 2252 var currentUserId = "@GetGlobalValue("Global:Extranet.UserID")"; 2253 </script> 2254 @{ 2255 var currentUser = UserAddress.GetUserAddresses(currentUserID); 2256 } 2257 @{ 2258 var currentUserDefaultAddress = UserAddress.GetUserDefaultUserAddressesCustomFields(currentUserID); 2259 } 2260 2261 @GetValue("Stylesheets") 2262 @GetValue("Javascripts") 2263 </head> 2264 <body style="@GeneralSettings.Background.Style" id="sitecontent" class="@bodyclass"> 2265 2266 <!-- Google Tag Manager (noscript) --> 2267 <noscript> 2268 <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N4PBTH2" height="0" width="0" style="display:none;visibility:hidden"></iframe> 2269 </noscript> 2270 <!-- End Google Tag Manager (noscript) --> 2271 2272 2273 <div id="fb-root"></div> 2274 <script> 2275 (function (d, s, id) { 2276 var js, fjs = d.getElementsByTagName(s)[0]; 2277 if (d.getElementById(id)) return; 2278 js = d.createElement(s); js.id = id; 2279 js.src = "//connect.facebook.net/da_DK/sdk.js#xfbml=1&version=v2.5"; 2280 fjs.parentNode.insertBefore(js, fjs); 2281 }(document, 'script', 'facebook-jssdk')); 2282 </script> 2283 2284 <!-- MODALS --> 2285 @{ 2286 string firstPageId = GetString("DwAreaFirstPageID"); 2287 2288 } 2289 2290 2291 <div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true"> 2292 <div class="modal-dialog modal-sm"> 2293 <div class="modal-content"> 2294 <div class="modal-header"> 2295 <h4 class="modal-title" id="loginModalLabel">@Translate("Login", "Login")</h4> 2296 @if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_error_uk"))) 2297 { 2298 2299 <p class="bg-danger">@GetValue("DW_extranet_error_uk")</p> 2300 } 2301 2302 </div> 2303 2304 <form name="form" action="/Default.aspx?ID=@firstPageId" id="loginform" method="post"> 2305 <div class="modal-body"> 2306 2307 <input type="hidden" name="ID" value="@Pageview.ID"> 2308 <input type="hidden" name="DWExtranetUsernameRemember" value="True"> 2309 <input type="hidden" name="DWExtranetPasswordRemember" value="True"> 2310 <div class="form-group"> 2311 @{ attrValue = Translate("Enter email", "Enter email"); 2312 var username2 = @GetValue("DWExtranetUsername"); 2313 } 2314 2315 <label for="username">@Translate("Email", "Email")</label> 2316 <input type="text" class="form-control" name="username" id="username" placeholder="@attrValue" value="@username2" required=""> 2317 </div> 2318 <div class="form-group"> 2319 @{ attrValue = Translate("Enter password", "Enter password"); 2320 } 2321 2322 <label for="password">@Translate("Password", "Password")</label> 2323 <input type="password" class="form-control" name="password" id="password" placeholder="@attrValue" required=""> 2324 <p>&nbsp;</p> 2325 <a class="pull-left" href='/Default.aspx?ID=@Pageview.Area.Item["SignInPageId"]&LoginAction=Recovery'>@Translate("Forgot your password?", "Forgot your password?")</a> 2326 &nbsp; 2327 </div> 2328 </div> 2329 <div class="modal-footer"> 2330 <div class="row"> 2331 <div class="col-md-12"> 2332 <div class="checkbox pull-left"> 2333 <label> 2334 <input type="checkbox" name="Autologin" checked="checked" value="True"> @Translate("Remember me", "Remember me") 2335 </label> 2336 </div> 2337 <button type="submit" class="btn btn-xs btn-base pull-right">@Translate("Sign in", "Sign in")</button> 2338 </div> 2339 </div> 2340 </div> 2341 </form> 2342 </div> 2343 </div> 2344 </div> 2345 2346 <div class="modal fade" id="address" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 2347 <div class="modal-dialog modal-md"> 2348 <div class="modal-content"> 2349 <div class="modal-header"> 2350 <h4 class="modal-title" id="myModalLabel">@Translate("Addresses list", "Addresses list")</h4> 2351 </div> 2352 <div class="modal-body"> 2353 @if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2354 { 2355 var numberOfAddresses = currentUser.Count<UserAddress>(); 2356 <form class="form" name="modalAddress" method="post"> 2357 <div class="form-group"> 2358 <label for="selectaddress">@Translate("Select address", "Select address")</label> 2359 <select name="EcomOrderDeliveryAddress2" id="selectaddress" class="form-control"> 2360 @{ 2361 var userID = GetInteger("Ecom:Order.Customer.AccessUserID"); 2362 } 2363 2364 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Order.Customer.Address"))) 2365 { 2366 var navListId = ""; 2367 foreach (var def in currentUserDefaultAddress) 2368 { 2369 if (def.CustomField.SystemName == "AccessUserAddress_AccessUserWineListID") 2370 { 2371 2372 navListId = def.Value.ToString(); 2373 } 2374 } 2375 var dic = DynamicwebSoftware.Enotria.CustomSolution.ActiveListIdMacro.GetFavoriteListIds(navListId); 2376 var listId = ""; 2377 if (dic.ContainsKey(navListId)) 2378 { 2379 listId = dic[navListId]; 2380 } 2381 2382 } 2383 2384 @foreach (var add in currentUser) 2385 { 2386 string name = add.Name; 2387 string address = add.Address; 2388 var navListId = ""; 2389 int addressid = add.ID; 2390 bool defaultAdd = add.IsDefault; 2391 foreach (Dynamicweb.Security.UserManagement.Common.CustomFields.CustomFieldValue val in add.CustomFieldValues) 2392 { 2393 //<script>alert("@val.CustomField.SystemName")</script> 2394 if (val.CustomField.SystemName == "AccessUserAddress_AccessUserWineListID") 2395 { 2396 2397 navListId = val.Value.ToString(); 2398 //<script>alert("@navListId")</script> 2399 } 2400 } 2401 2402 var dic = DynamicwebSoftware.Enotria.CustomSolution.ActiveListIdMacro.GetFavoriteListIds(navListId); 2403 //<script>alert("@dic.Count()")</script> 2404 var listId = ""; 2405 foreach(string test in dic.Keys) 2406 { 2407 <text>@test</text> 2408 } 2409 if (dic.ContainsKey(navListId)) 2410 { 2411 listId = dic[navListId]; 2412 //<script>alert("@listId")</script> 2413 } 2414 else 2415 { 2416 // <script>alert("Fail")</script> 2417 } 2418 2419 2420 var addAddress2Text = ""; 2421 var addZipText = ""; 2422 var output = ""; 2423 2424 if (!string.IsNullOrWhiteSpace(add.Company)) 2425 { 2426 addAddress2Text = WrapMethods.Truncate(add.Company, 80); 2427 addZipText = add.Zip; 2428 output = addAddress2Text + ", " + addZipText; 2429 2430 } 2431 else 2432 { 2433 addAddress2Text = WrapMethods.Truncate(add.Address, 80); 2434 addZipText = add.Zip; 2435 output = addAddress2Text + ", " + addZipText; 2436 2437 } 2438 2439 if (!defaultAdd) 2440 { 2441 <option value="@addressid" data-listid="@listId" data-default=""> 2442 2443 @output 2444 </option> 2445 } 2446 else 2447 { 2448 if (numberOfAddresses <= 1) 2449 { 2450 <option value="@addressid" data-listid="@listId" data-default=""> 2451 @output 2452 </option> 2453 } 2454 2455 } 2456 } 2457 </select> 2458 </div> 2459 <div class="row">&nbsp;</div> 2460 <div class="form-group text-right"> 2461 <button type="submit" class="btn btn-dw-primary" id="get-address">@Translate("Save", "Save")</button> 2462 </div> 2463 </form> 2464 } 2465 </div> 2466 <div class="modal-footer"> 2467 2468 </div> 2469 2470 </div> 2471 </div> 2472 </div> 2473 2474 <!-- MOBILE MENU --> 2475 @{ 2476 var offsetmenuplace = "right"; 2477 } 2478 @if (GeneralSettings.Header.Mode == "mobile") 2479 { 2480 offsetmenuplace = GeneralSettings.Navigation.Position; 2481 } 2482 2483 <div id="myNavmenu" class="navmenu navmenu-default navmenu-fixed-@offsetmenuplace offcanvas off-canvas-wrapper"> 2484 <div class="mobile-menu-wrapper clearfix"> 2485 2486 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2487 <div class="row offcanvas-row"> 2488 &nbsp; 2489 </div> 2490 <div class="offcanvas-row pull-right"> 2491 <a href="javascript:void(0);" class=" close-menu" data-toggle="offcanvas" data-target="#myNavmenu" data-canvas="body"> 2492 <i class="fa fa-times"></i> 2493 </a> 2494 </div> 2495 @*<div class="row offcanvas-row"> 2496 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2497 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 2498 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2499 { 2500 <div class="img-responsive dw-offsetmenu-logo pull-left"> 2501 @if (GeneralSettings.Logo.ContrastImage != GeneralSettings.Logo.Image) 2502 { 2503 <img src="@GeneralSettings.Logo.ContrastImage" alt="Logo"> 2504 } 2505 else 2506 { 2507 <img class="img-responsive" src="@GeneralSettings.Logo.Image" alt="Logo"> 2508 } 2509 </div> 2510 } 2511 2512 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 2513 { 2514 <div class="dw-logotext dw-offsetmenu-logo pull-left">@GeneralSettings.Logo.Text</div> 2515 } 2516 </a> 2517 </div> 2518 </div> 2519 <div class="row offcanvas-row">&nbsp;</div>*@ 2520 </div> 2521 2522 2523 2524 2525 <div class="row offcanvas-row"> 2526 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2527 @GetValue("DwNavigation(drawernavigation)") 2528 </div> 2529 </div> 2530 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2531 @if (GetBoolean("Item.Area.EcomEnabled")) 2532 { 2533 <hr class="nav-line-hr"> 2534 <div class="row offcanvas-row"> 2535 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2536 @if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2537 { 2538 <div class="col-md-6 myIcons pull-left"> 2539 @{ 2540 var parameter = ""; 2541 } 2542 @if (!string.IsNullOrWhiteSpace(listid)) 2543 { 2544 parameter = "&ListID=" + listid; 2545 } 2546 <a href='Default.aspx?ID=@GetString("Item.Area.WishListPage")'> 2547 <i class="fa fa-list" aria-hidden="true"></i><span>@Translate("My List", "My List")</span> 2548 </a> 2549 </div> 2550 <div class="col-md-6 myIcons pull-right"> 2551 <span class="menu-quantity">@GetInteger("Ecom:Order.OrderLines.TotalProductQuantity")</span> 2552 <a href='Default.aspx?ID=@cartid'> 2553 <i class="fa fa-shopping-cart" aria-hidden="true"></i><span>@Translate("My Cart", "My Cart")</span> 2554 </a> 2555 </div> 2556 <div class="clearfix"></div> 2557 <hr class="nav-line-hr"> 2558 <div class="col-md-6 myIcons pull-left"> 2559 <a href='Default.aspx?ID=@myaccount'> 2560 <i class="fa fa-user" aria-hidden="true"></i><span>@Translate("My Account", "My Account")</span> 2561 </a> 2562 </div> 2563 <div class="col-md-6 myIcons pull-right"> 2564 <a href='/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.ID'> 2565 <i class="fa fa-sign-out" aria-hidden="true"></i><span>@Translate("Sign out", "Sign out")</span> 2566 </a> 2567 </div> 2568 } 2569 else 2570 { 2571 <div class="col-md-6 myIcons pull-left"> 2572 <a href="javascript:void(0);" id="yourid"> 2573 <i class="fa fa-sign-in" aria-hidden="true"></i><span>@Translate("Login", "Login")</span> 2574 </a> 2575 </div> 2576 <div class="col-md-6 myIcons pull-right"> 2577 <a href='Default.aspx?ID=@cartid'> 2578 <i class="fa fa-shopping-cart" aria-hidden="true"></i><span>@Translate("Pricequote", "Pricequote")</span> 2579 </a> 2580 </div> 2581 } 2582 @if (GetLoop("DWExtranetSecondaryUsers").Count > 0 || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 2583 { 2584 <p>&nbsp;</p> 2585 <form method="post"> 2586 <div class="pull-left"> 2587 @if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 2588 { 2589 <select id="DWExtranetSecondaryUserSelector" name="DWExtranetSecondaryUserSelector" title="Impersonate selected user"> 2590 @foreach (var user in GetLoop("DWExtranetSecondaryUsers")) 2591 { 2592 <option value='@user.GetValue("UserID")'>@user.GetValue("UserName")</option> 2593 } 2594 </select> 2595 <input type="submit" class="btn btn-xs" tabindex="3" value="OK"> 2596 } 2597 else 2598 { 2599 string impersonateUser = @GetGlobalValue("Global:Extranet.SecondaryUser.UserName") + " is impersonated by " + @Pageview.User.UserName; 2600 <span title="@impersonateUser" class="btn btn-xs impersonation-btn"><i class="fa fa-user-secret"></i> @GetGlobalValue("Global:Extranet.SecondaryUser.UserName")</span> 2601 <input type="submit" class="btn btn-xs" name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" value="Stop impersonation"> 2602 } 2603 </div> 2604 </form> 2605 } 2606 </div> 2607 </div> 2608 <div class="row offcanvas-row">&nbsp;</div> 2609 } 2610 </div> 2611 2612 </div> 2613 </div> 2614 2615 2616 <!-- HEADER AND CONTENT--> 2617 2618 <div class="body-wrap shad @GeneralSettings.Site.LayoutMode"> 2619 2620 <!-- HEADER --> 2621 2622 <div id="divHeaderWrapper"> 2623 <header class="@GeneralSettings.Header.Classes"> 2624 2625 <!-- TOP HEADER --> 2626 <!-- MAIN NAV --> 2627 @{ 2628 var sticky = GeneralSettings.Navigation.StickyMenu; 2629 var stickyTrigger = "affix"; 2630 var navbarpos = GeneralSettings.Navigation.Position; 2631 var selectionstyle = GeneralSettings.Navigation.SelectionStyle; 2632 2633 if (sticky == "off") 2634 { 2635 stickyTrigger = ""; 2636 } 2637 } 2638 2639 @if (GeneralSettings.Header.Show) 2640 { 2641 2642 <div class="top-header navbar navbar-wp @selectionstyle navbar-fixed affix-top" role="navigation" data-spy="@stickyTrigger" data-offset-top="@sticky"> 2643 <div class="container-expanded"> 2644 <div class="row clearfix"> 2645 <div class="col-md-3 col-sm-4 col-xs-5 logobox"> 2646 @if (GeneralSettings.Header.Mode == "solid") 2647 { 2648 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 2649 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2650 { 2651 <img class="img-responsive dw-logoimage pull-left" src="@GeneralSettings.Logo.Image" alt="Logo"> 2652 } 2653 2654 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 2655 { 2656 <div class="dw-logotext pull-left">@GeneralSettings.Logo.Text</div> 2657 } 2658 </a> 2659 2660 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Slogan)) 2661 { 2662 <div class="dw-slogantext pull-left">@GeneralSettings.Logo.Slogan</div> 2663 } 2664 } 2665 </div> 2666 2667 <div class="col-lg-9 col-md-9 col-sm-8 col-xs-7 logobox"> 2668 <nav class="top-header-menu"> 2669 <ul class="top-menu quickButtonsMenu"> 2670 <!-- Ecommerce user menu --> 2671 @if (GetBoolean("Item.Area.EcomEnabled")) 2672 { 2673 if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2674 { 2675 <text> 2676 2677 <li class="login hidden-xs hidden-sm"><a data-toggle="modal" data-target="#login"><i class="fa fa-user" aria-hidden="true"></i><span class="hidden-xs">@Translate("Login", "Login")</span></a></li> 2678 2679 2680 </text> 2681 } 2682 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2683 { 2684 <text> 2685 <li class="hidden-xs hidden-sm"> 2686 <a href='Default.aspx?ID=@myaccount'> 2687 <i class="fa fa-user" aria-hidden="true"></i><span class="hidden-xs">@Translate("My account", "My account")</span> 2688 </a> 2689 </li> 2690 <li class="hidden-xs hidden-sm"> 2691 @{ 2692 var parameter = ""; 2693 } 2694 @if (!string.IsNullOrWhiteSpace(listid)) 2695 { 2696 parameter = "&ListID=" + listid; 2697 } 2698 <a href='Default.aspx?ID=@GetString("Item.Area.WishListPage")' id="linkwishlist"> 2699 <i class="fa fa-list" aria-hidden="true"></i><span class="hidden-xs">@Translate("My List", "My List")</span> 2700 </a> 2701 </li> 2702 </text> 2703 } 2704 } 2705 2706 <!-- Ecommerce Cart --> 2707 @if (GetBoolean("Item.Area.EcomEnabled")) 2708 { 2709 var cartJSONRealID = GetString("Item.Area.Quote_Cart_JSON_PageID"); 2710 <li class="menu__item hidden-xs hidden-sm"> 2711 <div class="mini-cart"> 2712 <a href="/Default.aspx?ID=@cartid" class="menu-tools__link menu__link--condensed dw-mod js-mini-cart-button" onmouseover="Dynamo.UpdateContent('miniCart', '/Default.aspx?ID=@cartJSONRealID&LayoutTemplate=Json.cshtml&DisableStatistics=True')" data-init-onload="false"> 2713 <i class="fa fa-shopping-cart" style="margin-right:6px;"></i> 2714 @if (isLoggedIn == "") 2715 { 2716 <span class="hidden-xs">@Translate("Pricequote", "Pricequote")</span> 2717 } 2718 else 2719 { 2720 <span class="hidden-xs">@Translate("My cart", "My cart")</span> 2721 } 2722 </a> 2723 @if(currentpageid != cartPageId) { 2724 <div id="minicartQuantity" class="js-ajax-container" data-template="MiniCartQuantity" data-cart-id="@cartPageId" data-json-feed="/Default.aspx?ID=@cartPageId&LayoutTemplate=Json.cshtml&DisableStatistics=True" data-preloader="false"></div> 2725 <div class="mini-cart-dropdown js-ajax-container js-mini-cart" id="miniCart" data-template="MiniCartContent" data-cart-id="@cartPageId" data-json-feed="/Default.aspx?ID=@cartPageId&LayoutTemplate=Json.cshtml&DisableStatistics=True" data-preloader="false" data-init-onload="false"></div> 2726 2727 <script id="MiniCartQuantity" type="x-template"> 2728 <span class="mini-quantity data.isempty">data.numberofproducts</span> 2729 </script> 2730 2731 <div class="mini-cart-dropdown js-ajax-container js-mini-cart" id="miniCart" data-template="MiniCartContent" data-cart-id="@cartJSONRealID" data-json-feed="/Default.aspx?ID=@cartJSONRealID&LayoutTemplate=Json.cshtml&DisableStatistics=True" data-preloader="false" data-init-onload="false"></div> 2732 2733 2734 <script id="MiniCartContent" type="text/x-template"> 2735 <div class="hidden mini-new-quantity">data.numberofproducts</div> 2736 <div class="mini-cart-dropdown__inner data.isempty"> 2737 @if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2738 { 2739 <table class="table mini-cart-table"> 2740 <thead> 2741 <tr> 2742 <td>&nbsp;</td> 2743 <td>@Translate("Product")</td> 2744 </tr> 2745 </thead> 2746 2747 <tbody id="OrderLines" data-template="OrderlinesTemplate"></tbody> 2748 <tr class="mini-cart-orderlines__footer"> 2749 <td colspan="2"><button type="button" class="btn pull-left btn-dw-primary emptyCartBtn" onclick="Cart.EmptyCart(event)">@Translate("Empty cart")</button></td> 2750 <td colspan="2" class="text-right"><a href="/Default.aspx?ID=@cartid" class="btn pull-right btn-dw-primary cartProceedBtn">@Translate("Proceed to checkout")</a></td> 2751 </tr> 2752 </table> 2753 } 2754 else 2755 { 2756 <table class="table mini-cart-table"> 2757 <thead> 2758 <tr> 2759 <td>&nbsp;</td> 2760 <td>@Translate("Product")</td> 2761 <td class="text-right">@Translate("Qty")</td> 2762 <td class="text-right">@Translate("Price")</td> 2763 </tr> 2764 </thead> 2765 2766 <tbody id="OrderLines" data-template="OrderlinesTemplate"></tbody> 2767 2768 <tr class="mini-cart-totals"> 2769 <td colspan="2">@Translate("Total")</td> 2770 <td class="text-right">data.numberofproducts</td> 2771 <td class="text-right">data.totalprice</td> 2772 </tr> 2773 <tr class="mini-cart-orderlines__footer"> 2774 <td colspan="2"><button type="button" class="btn pull-left btn-dw-primary emptyCartBtn" onclick="Cart.EmptyCart(event)">@Translate("Empty cart")</button></td> 2775 <td colspan="2" class="text-right"><a href="/Default.aspx?ID=@cartid" class="btn pull-right btn-dw-primary cartProceedBtn">@Translate("Proceed to checkout")</a></td> 2776 </tr> 2777 </table> 2778 } 2779 2780 </div> 2781 </script> 2782 if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2783 { 2784 <script id="OrderlinesTemplate" type="text/x-template"> 2785 <tr class="data.isempty"> 2786 <td><div class="data.hideimage"><img src="data.image"></div></td> 2787 <td colspan="2"><a href="data.link">data.name data.variantname</a></td> 2788 </tr> 2789 </script> 2790 } 2791 else 2792 { 2793 <script id="OrderlinesTemplate" type="text/x-template"> 2794 <tr class="data.isempty"> 2795 <td><div class="data.hideimage"><img src="data.image"></div></td> 2796 <td><a href="data.link" class="mini-cart-orderlines__name">data.name data.variantname</a></td> 2797 <td class="text-right"><div class="data.hideimage">data.quantity</div></td> 2798 @if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2799 { 2800 <td class="text-right">data.totalprice</td> 2801 } 2802 </tr> 2803 </script> 2804 } 2805 } 2806 </div> 2807 </li> 2808 if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2809 { 2810 <li class="logout hidden-xs hidden-sm"> 2811 <a href='/Admin/Public/ExtranetLogoff.aspx?ID=@firstpageid' title='@Translate("Sign out", "Sign out")'><i class="fa fa-sign-out" aria-hidden="true"></i>@Translate("Sign Out")</a> 2812 </li> 2813 } 2814 } @if (GeneralSettings.Header.Mode != "mobile") 2815 { 2816 <li class="hidden-lg hidden-md"> 2817 <a data-toggle="offcanvas" data-target="#myNavmenu" data-canvas="body"> <i class="fa fa-bars barsLink"></i></a> 2818 </li> 2819 } 2820 </ul> 2821 2822 2823 2824 </nav> 2825 @{ 2826 var deviceType = Dynamicweb.Frontend.PageView.Current().Device.ToString(); 2827 } 2828 2829 </div> 2830 2831 </div> 2832 </div> 2833 </div> 2834 } 2835 <div class="dropdown-megamenu Manufacturer hidden-xs hidden-sm navbar-fixed affix" role="navigation" data-spy="@stickyTrigger" data-offset-top="@sticky"> 2836 2837 @RenderItemList(new { ItemType = "Manufacturer", ListSourceType = "Area", ListSourceArea = 1, ItemFieldsList = "*", ListTemplate = "ItemPublisher/List/navigation.cshtml", ListPageSize = 100 }) 2838 2839 </div> 2840 2841 <div id="navOne" class="navbar-wp @selectionstyle navbar-fixed affix-top hidden-sm hidden-xs" role="navigation" data-spy="@stickyTrigger" data-offset-top="@sticky"> 2842 <div class="container"> 2843 @if (GeneralSettings.Header.Mode != "solid" || !GeneralSettings.Header.Show) 2844 { 2845 <div class="navbar-header pull-@GeneralSettings.Navigation.InvertedPosition"> 2846 <div class="hidden-sm hidden-xs"> 2847 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 2848 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2849 { 2850 if (GeneralSettings.Logo.ContrastImage != GeneralSettings.Logo.Image) 2851 { 2852 <img class="img-responsive dw-logoimage dw-logoimage-normal pull-left" src="@GeneralSettings.Logo.Image" alt="Logo"> 2853 <img class="img-responsive dw-logoimage dw-logoimage-contrast pull-left" src="@GeneralSettings.Logo.ContrastImage" alt="Logo"> 2854 } 2855 else 2856 { 2857 <img class="img-responsive dw-logoimage pull-left" src="@GeneralSettings.Logo.Image" alt="Logo"> 2858 } 2859 } 2860 2861 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 2862 { 2863 <div class="dw-logotext pull-left">@GeneralSettings.Logo.Text</div> 2864 } 2865 </a> 2866 2867 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Slogan)) 2868 { 2869 <div class="dw-slogantext pull-left">@GeneralSettings.Logo.Slogan</div> 2870 } 2871 </div> 2872 </div> 2873 } 2874 @if (GeneralSettings.Header.Mode == "mobile") 2875 { 2876 <!-- Using only mobile navigation --> 2877 <div class="pull-@GeneralSettings.Navigation.Position"> 2878 <ul class="nav navbar-nav"> 2879 <li class="dw-navbar-button" data-toggle="offcanvas" data-target="#myNavmenu" data-canvas="body"> 2880 <a><i class="fa fa-bars fa-2x"></i><span></span></a> 2881 </li> 2882 </ul> 2883 </div> 2884 } 2885 </div> 2886 </div> 2887 2888 @if (GetLoop("DWExtranetSecondaryUsers").Count > 0 || !string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 2889 { 2890 <div class="impersonation-box" role="navigation" style="background-color:@primaryColor;"> 2891 <div class="container"> 2892 <form method="post" action="/" class="form-inline" id="form-impersonate"> 2893 2894 <span> 2895 @if (string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.SecondaryUser.UserID"))) 2896 { 2897 <a class="impersonateListLink" href="@impersonationList" title="View the list of users you can impersonate"> 2898 @Translate("View the list of users you can impersonate", "View the list of users you can impersonate") 2899 </a> 2900 } 2901 else 2902 { 2903 string impersonateUser = GetGlobalValue("Global:Extranet.SecondaryUser.UserName") + " " + Translate("is now impersonating") + " " + GetGlobalValue("Global:Extranet.UserName"); 2904 string stopImpersonateTranslation = Translate("Stop impersonation"); 2905 <span title="@impersonateUser" class="impersonate-user"><i class="fa fa-user-secret"></i> @impersonateUser</span> 2906 <input type="hidden" name="DWExtranetRemoveSecondaryUser" value='Stop+impersonation'> 2907 <button type="submit" class="btn btn-dw-primary impresonateButton" value="@stopImpersonateTranslation"> 2908 @stopImpersonateTranslation 2909 </button> 2910 } 2911 </span> 2912 </form> 2913 </div> 2914 </div> 2915 } 2916 2917 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.HeaderLayoutImage"))) 2918 { 2919 if (currentpageid != firstpageid) 2920 { 2921 var coverimage = GetString("Item.Area.HeaderLayoutImage"); 2922 2923 <div class="container-fluid dw-header-image"> 2924 <div class="row"> 2925 <section class="carousel carousel-1 slice fluid" style="height: 160px !important; background: url('/Admin/Public/Getimage.ashx?width=1920&amp;compression=75&amp;Crop=5&amp;image=@coverimage') no-repeat; background-size: cover !important; background-color: @ColorSettings.Color.Secondary"></section> 2926 </div> 2927 </div> 2928 } 2929 else if (GeneralSettings.Header.ShowFrontpageImage) 2930 { 2931 var coverimage = GetString("Item.Area.HeaderLayoutImage"); 2932 2933 <div class="container-fluid dw-header-image"> 2934 <div class="row"> 2935 <section class="carousel carousel-1 slice fluid" style="height: 160px !important; background: url('/Admin/Public/Getimage.ashx?width=1920&amp;compression=75&amp;Crop=5&amp;image=@coverimage') no-repeat; background-size: cover !important; background-color: @ColorSettings.Color.Secondary"></section> 2936 </div> 2937 </div> 2938 } 2939 } 2940 else if (GeneralSettings.Header.Mode != "solid") 2941 { 2942 if (currentpageid != firstpageid) 2943 { 2944 <div class="container-fluid dw-header-image"> 2945 <div class="row"> 2946 <section class="carousel carousel-1 slice fluid" style="height: 160px !important; background-color: transparent; background-size: cover !important;"></section> 2947 </div> 2948 </div> 2949 2950 } 2951 } 2952 @{ 2953 var actionLink = "/Default.aspx?ID=" + searchPageID + "&PageNum=1"; 2954 } 2955 <div class="inner-search"> 2956 <div class="container"> 2957 <div class="row"> 2958 <div class="col-md-5 col-sm-12 col-xs-12 top-header navbar navbar-enco"> 2959 <nav class="navbar-collapse collapse"> 2960 @if (GeneralSettings.Navigation.IsMegamenu) 2961 { 2962 @GetValue("DwNavigation(topnavigationmegamenu)") 2963 } 2964 else 2965 { 2966 @GetValue("DwNavigation(topnavigation)") 2967 } 2968 2969 <!-- Extra navigation when no header is shown --> 2970 @if (GetBoolean("Item.Area.EcomEnabled")) 2971 { 2972 if (!GeneralSettings.Header.Show) 2973 { 2974 <ul class="nav navbar-nav"> 2975 <li>&nbsp;&nbsp;&nbsp;</li> 2976 @if (!Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2977 { 2978 <li class="dw-navbar-button"><a href="#" data-toggle="modal" data-target="#login" data-hover="dropdown"><i class="fa fa-sign-in"></i><span></span></a></li> 2979 <li class="dw-navbar-button"><a href="/Default.aspx?ID=@createuser" data-hover="dropdown"><i class="fa fa-user"></i><span></span></a></li> 2980 } 2981 2982 @if (Dynamicweb.Core.Converter.ToBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2983 { 2984 <li class="dw-navbar-button"> 2985 <a href='Default.aspx?ID=@Pageview.Area.Item["OrdersPageId"]' data-hover="dropdown"> 2986 <nobr> 2987 <strong><i class="fa fa-user"></i></strong> 2988 </nobr> 2989 <span></span> 2990 </a> 2991 </li> 2992 <li class="dw-navbar-button"> 2993 <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.Page.ID" data-hover="dropdown"><i class="fa fa-sign-out"></i>@Translate("Sign Out")<span></span></a> 2994 </li> 2995 } 2996 2997 <li class="dw-navbar-button"> 2998 <a href="Default.aspx?ID=@cartid" title="" id="minipagecart-extra" data-hover="dropdown"><i class="fa fa-shopping-cart"></i> @GetValue("Ecom:Order.OrderLines.TotalProductQuantity") <span class="amount">@GetValue("Ecom:Order.OrderLines.Total.PriceWithVAT")</span><span></span></a> 2999 </li> 3000 </ul> 3001 } 3002 } 3003 </nav> 3004 </div> 3005 <div class="col-md-7 col-sm-12 col-xs-12"> 3006 <form class="innerSearch" method="POST"> 3007 <input name="actionVal" type="hidden" value="@actionLink"> 3008 <div class="dw-inner-search"> 3009 <div class="input-wrapper"> 3010 <input type="text" id="searchInput" name="q" class="form-control js-typeahead innerSerachBox" autocomplete="off" placeholder="@searchplaceholder" data-container-id="typeaheadSearch" data-search-page-id="@productsJsonID"> 3011 <label for="searchInput" class="fa fa-search input-icon"></label> 3012 </div> 3013 <input type="submit" class="hidden" value="sumbit"> 3014 <div class="typeahead-result js-ajax-container" id="typeaheadSearch" data-template="searchItems" data-json-feed="/Default.aspx?ID=@productsJsonID&LayoutTemplate=Json.cshtml&DisableStatistics=True&feedtype=typeahead" data-init-onload="false"></div> 3015 </div> 3016 </form> 3017 </div> 3018 </div> 3019 </div> 3020 </div> 3021 </header> 3022 3023 </div> 3024 3025 3026 3027 3028 3029 3030 3031 <!-- MAIN CONTENT --> 3032 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 3033 3034 3035 3036 @{ 3037 string TitleFont = @FontSettings.H1.FontFamily; 3038 string SubFont = @FontSettings.H2.FontFamily; 3039 } 3040 3041 @if(GetBoolean("Item.Page.LayoutShowBreadcrumb")) { 3042 <div class="pg-opt pin white"> 3043 <div class="container"> 3044 <div class="row"> 3045 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> 3046 @GetValue("DwNavigation(breadcrumb)") 3047 </div> 3048 </div> 3049 </div> 3050 </div> 3051 } 3052 3053 @{ 3054 string totalimages = ""; 3055 3056 foreach (LoopItem i in GetLoop("Item.Images")){ 3057 totalimages = @i.GetString("Item.Images._total"); 3058 } 3059 3060 var textpos = ((360/2)-(28+18+20)).ToString() + "px"; 3061 } 3062 3063 <section class="slice white animate-hover-slide mainContentWrapper"> 3064 <div class="w-section inverse shop"> 3065 <div class="container"> 3066 <div class="row"> 3067 @if(!GetBoolean("Item.Page.LayoutHideLeftMenu")) { 3068 <div class="col-md-3 hidden-sm hidden-xs"> 3069 <div class="widget"> 3070 <h3 class="dw-section-title"><span>@GetGlobalValue("Global:Page.Top.Name")</span></h3> 3071 <text>&nbsp;</text> 3072 @GetValue("DwNavigation(leftnavigation)") 3073 </div> 3074 </div> 3075 } 3076 <div class="col-md-9 col-sm-12 col-xs-12"> 3077 <div class="row"> 3078 <div class="col-md-12 col-sm-12 col-xs-12"> 3079 @if (totalimages != ""){ 3080 <div id="myCarousel" class="carousel slide" data-ride="carousel"> 3081 <div class="carousel-inner" role="listbox" style="max-height:360px !important"> 3082 3083 @{ 3084 var count = 0; 3085 var focus = "active"; 3086 } 3087 3088 @foreach (LoopItem i in GetLoop("Item.Images")){ 3089 3090 if (count > 0){ 3091 focus = ""; 3092 } 3093 3094 var image = System.Web.HttpContext.Current.Server.UrlEncode(i.GetString("Item.Images.Image")); 3095 var TitleSize = "28px"; 3096 var SubSize = "18px"; 3097 var TitleColor = "#FFF"; 3098 var SubColor = "#FFF"; 3099 3100 <div class="item @focus"> 3101 <img class="img-responsive" src="/Admin/Public/GetImage.ashx?width=1920&amp;Compression=75&amp;image=@image"> 3102 <div class="container"> 3103 <div class="carousel-caption" style="top: @textpos !important"> 3104 @if (i.GetString("Item.Images.Link") != ""){ 3105 <a href="@i.GetString(" item.images.link")"=""> 3106 <h2><span style="font-family: @TitleFont; font-size: @TitleSize; color: @TitleColor;" class="title carousel-text">&nbsp;@i.GetString("Item.Images.Title")&nbsp;</span></h2> 3107 @if (i.GetString("Item.Images.Subtitle") != ""){ 3108 <span style="font-family: @SubFont; font-size: @SubSize; color: @SubColor;" class="subtitle carousel-text">&nbsp;@i.GetString("Item.Images.Text")&nbsp;</span> 3109 } 3110 </a> 3111 } else { 3112 <h2><span style="font-family: @TitleFont; font-size: @TitleSize; color: @TitleColor;" class="title carousel-text">&nbsp;@i.GetString("Item.Images.Title")&nbsp;</span></h2> 3113 if (i.GetString("Item.Images.Subtitle") != ""){ 3114 <span style="font-family: @SubFont; font-size: @SubSize; color: @SubColor;" class="subtitle carousel-text">&nbsp;@i.GetString("Item.Images.Text")&nbsp;</span> 3115 } 3116 } 3117 </div> 3118 </div> 3119 </div> 3120 3121 count++; 3122 } 3123 </div> 3124 3125 <!-- Controls --> 3126 <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"> 3127 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> 3128 <span class="sr-only">Previous</span> 3129 </a> 3130 <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"> 3131 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> 3132 <span class="sr-only">Next</span> 3133 </a> 3134 </div> 3135 } else { 3136 foreach (LoopItem i in GetLoop("Item.Images")){ 3137 var image = i.GetString("Item.Images.Image"); 3138 3139 <img class="img-responsive" src="/Admin/Public/GetImage.ashx?image=@image&width=1280&compression=90&crop=7"> 3140 } 3141 } 3142 </div> 3143 </div> 3144 <div class="row"> 3145 <div class="col-md-12 col-sm-12 col-xs-12"> 3146 <div class="figure"> 3147 <h1>@GetString("Item.Title")</h1> 3148 @GetString("Item.ProductInfo") 3149 3150 @{ string back = Translate("Back", "Back"); } 3151 <input type="button" class="btn btn-dw-primary" value="@back" onclick="history.back(-1)"> 3152 </div> 3153 </div> 3154 </div> 3155 </div> 3156 </div> 3157 </div> 3158 </div> 3159 </section> 3160 3161 3162 <!-- FOOTER --> 3163 <!-- FOOTER --> 3164 3165 @if (GetBoolean("Item.Area.FooterNewsletterSignUp")) 3166 { 3167 <div class="newsletterSingUp"> 3168 <div class="container"> 3169 <div class="row"> 3170 <div class="col-md-12"> 3171 3172 <h3 class="col-md-2">@Translate("Newsletter")</h3> 3173 <form class="col-md-10" style="padding-right:0px; padding-left:0;" name="UserManagementEditForm" action="/Default.aspx?ID=@signUpPageId" method="POST" enctype="multipart/form-data"> 3174 <div class="hidden"> 3175 <input name="UserManagementForm" value="1" type="hidden"> 3176 <input id="UserManagementForm.DeleteImage" name="UserManagementForm.DeleteImage" type="hidden"> 3177 <input name="UserManagement_Form_EmailAllowed" id="UserManagement_Form_EmailAllowed" value="True" checked="checked" type="checkbox"> 3178 <input name="UserManagement_Form_EmailAllowed_ApplyValue" id="UserManagement_Form_EmailAllowed_ApplyValue" value="AllowEmail" type="hidden"> 3179 </div> 3180 <input name="UserManagement_Form_Name" id="UserManagement_Form_Name" type="text" class="form-control" placeholder='@Translate("name")'> 3181 <input name="UserManagement_Form_Email" id="UserManagement_Form_Email" type="email" class="form-control" placeholder='@Translate("email")' required="required"> 3182 <button type="submit" class="btn btn-newsletterSubmit">@Translate("Sign up")</button> 3183 </form> 3184 3185 </div> 3186 </div> 3187 </div> 3188 </div> 3189 } 3190 @{ 3191 string TitleSize = GetString("Item.Area.FooterH4.Size") + "px"; 3192 string TitleColor = GetString("Item.Area.FooterH4.Color.Color.Value"); 3193 string TitleFont = CustomFont(GetString("Item.Area.FooterH4.Font.Value"), GetString("Item.Area.FooterH4.CustomFont.Value")); //.Replace(" ", "+"); 3194 } 3195 <style> 3196 #footersitemap h4{ 3197 color:@TitleColor !important; 3198 font-size:@TitleSize !important; 3199 font-family: @TitleFont !important; 3200 } 3201 footer .share-links h4{ 3202 color:@TitleColor !important; 3203 font-size:@TitleSize !important; 3204 font-family: @TitleFont !important; 3205 } 3206 </style> 3207 3208 3209 <div class="body-wrap @GeneralSettings.Site.LayoutMode"> 3210 @{ 3211 var footerbg = ""; 3212 var important = ""; 3213 3214 } 3215 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FooterBackgroundImage"))) 3216 { 3217 footerbg = "background:url(/Admin/Public/GetImage.ashx?&width=1920&amp;Compression=99&amp;image=" + GetString("Item.Area.FooterBackgroundImage") + ") no-repeat"; 3218 important = "!important;"; 3219 } 3220 <footer class="footer" style='@footerbg @important background-position: center center !important;background-size: cover !important;'> 3221 <div class="overlay"></div> 3222 <div class="container"> 3223 <div class="row"> 3224 @if (GetBoolean("Item.Area.FooterShowSitemap")) 3225 { 3226 @GetValue("DwNavigation(footersitemap)") 3227 3228 } 3229 @if (GetBoolean("Item.Area.SocialLinksInFooter")) 3230 { 3231 string sicon = ""; 3232 string slink = ""; 3233 3234 <div class="col-md-4 col-sm-4 col-xs-12 share-links"> 3235 <div class="col text-left"> 3236 <h4>@Translate("Follow Us", "Follow Us")</h4> 3237 <p> 3238 @{ 3239 string footeremail = GetString("Item.Area.FooterEmail"); 3240 string footerphone = GetString("Item.Area.FooterPhone"); 3241 string footerfax = GetString("Item.Area.FooterFax"); 3242 string notesfooter = GetString("Item.Area.NotesFooter"); 3243 } 3244 <a href='mailto:@footeremail' class='footerEmail' style="font-size: 19px !important;margin-right: 10px;" title='@Translate("Send us a message")'> 3245 @Translate("@EnotriaCoe") 3246 </a> 3247 @foreach (LoopItem socialitem in GetLoop("Item.Area.SocialIconInFooter")) 3248 { 3249 sicon = socialitem.GetString("Item.Area.SocialIconInFooter.Icon"); 3250 slink = socialitem.GetString("Item.Area.SocialIconInFooter.Link"); 3251 <a href="@slink"> 3252 <i class="fa @sicon"></i> 3253 </a> 3254 } 3255 </p> 3256 <div class="EnotriaMeta"> 3257 @if (!string.IsNullOrWhiteSpace(footerphone)) 3258 { 3259 <p> 3260 @Translate("T: ", "T: ")@footerphone 3261 </p> 3262 } 3263 @GetValue("Item.Area.FooterAddress") 3264 </div> 3265 </div> 3266 </div> 3267 } 3268 </div> 3269 <div class="row logo-footer"> 3270 <p class="col"> 3271 <a href="https://www.drinkaware.co.uk/" title='@Translate("Visit Drinkaware website")' class="drinkawareLogo" target="_blank"> 3272 <img src="/Files/Templates/Designs/Dwsimple/images/drinkaware.png" alt='@Translate("Drinkaware logo")'> 3273 </a> 3274 </p> 3275 </div> 3276 </div> 3277 </footer> 3278 </div> 3279 3280 3281 <!--[if IE]> 3282 <style> 3283 3284 .widget.affix{ 3285 3286 width:21% !important; 3287 3288 } 3289 3290 3291 </style> 3292 <![endif]--> 3293 <!-- Essentials --> 3294 <div class="@backgroundmodal" style="z-index:1030;"></div> 3295 3296 3297 3298 <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> 3299 <script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script> 3300 <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/js/jasny-bootstrap.min.js"></script> 3301 <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script> 3302 <script src="/Files/Templates/Designs/Dwsimple/js/jquery.dotdotdot.js"></script> 3303 @{ 3304 Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds; 3305 } 3306 <script src="/Files/Templates/Designs/Dwsimple/js/Cart.js?latest=@unixTimestamp"></script> 3307 <script src="/Files/Templates/Designs/Dwsimple/js/custom.js"></script> 3308 <script src="/Files/Templates/Designs/Dwsimple/js/spin.js"></script> 3309 <script src="/Files/Templates/Designs/Dwsimple/js/Search.js"></script> 3310 <script src="/Files/Templates/Designs/Dwsimple/js/Facets.js"></script> 3311 3312 <script src="/Files/Templates/Designs/Dwsimple/js/Dynamo.js?latest=@unixTimestamp"></script> <!--SHOULD BE LOADED LAST!!!! EVERYTHING BREAKS OTHERWISE--> 3313 3314 3315 @if (GetString("DW_extranet_error_uk") != "") 3316 { 3317 <script> 3318 $('#login').modal('show') 3319 </script> 3320 } 3321 3322 <!-- Replacing the Home text --> 3323 <script> 3324 if (document.getElementById("homemenubtn")) { 3325 document.getElementById("homemenubtn").innerHTML = "<i class='fa fa-home fa-2'></i><span></span>"; 3326 } 3327 </script> 3328 3329 <script type="text/x-template" id="OrderlineAjaxTemplate"> 3330 <tr> 3331 <td class="text-center"><img src="Obj.image" class="img-center" alt=""></td> 3332 <td> 3333 <a href="Obj.link"> 3334 Obj.name Obj.variantname 3335 </a> 3336 </td> 3337 <td class="text-center">Obj.quantity</td> 3338 <td class="text-right"> 3339 <nobr> 3340 Obj.totalprice 3341 </nobr> 3342 </td> 3343 </tr> 3344 </script> 3345 <!-- Template for Typeahead --> 3346 3347 <script id="searchItems" type="text/x-template"> 3348 <a href="data.link" class="typeahead-result__item"> 3349 <div class="typeahead-result__image"> 3350 <img src="data.image" alt=""> 3351 </div> 3352 <div class="typeahead-result__text"> 3353 <div class="typeahead-result__name">data.name</div> 3354 <div class="typeahead-result__info data.NotSeePrice">data.price</div> 3355 </div> 3356 </a> 3357 </script> 3358 3359 <!-- Initialize Fancybox --> 3360 <script type="text/javascript"> 3361 $(document).ready(function () { 3362 if ($(".fancybox").fancybox != undefined) { 3363 $(".fancybox").fancybox(); 3364 } 3365 3366 }); 3367 </script> 3368 <script> 3369 $("#form-impersonate").on("click", "a.select-user", function () { 3370 var $this = $(this); 3371 var $form = $this.closest("form"); 3372 $("input[name=DWExtranetSecondaryUserSelector]", $form).val($this.attr("data-userid")); 3373 $form.submit(); 3374 }); 3375 </script> 3376 @if (currentUser.Any()) 3377 { 3378 3379 3380 <script> 3381 $(function () { 3382 setTimeout(function () { 3383 3384 var userAddress = $.cookie("selected_address_id"); 3385 var userListID = $.cookie("selected_list_id"); 3386 if (currentUserId !== "0" && (userAddress == undefined || userAddress === "null")) { 3387 $("#address, .modal-backdrop").addClass("in show"); 3388 } 3389 if (currentUserId === "0") { 3390 $.cookie("selected_address_id", null, { path: "/" }); 3391 $.cookie("selected_list_id", null, { path: "/" }); 3392 } 3393 if ($.cookie('selected_address_id') != null) { 3394 $('#selectaddress option[value="' + $.cookie('selected_address_id') + '"]').attr('selected', 'selected'); 3395 if ($.cookie('selected_list_id') != "" && $.cookie('selected_list_id') != null) { 3396 @* $("#linkwishlist").attr("href", "Default.aspx?ID=" +@GetString("Item.Area.WinelistLoaderPageId") +"&ListID=" + $.cookie('selected_list_id'));*@ 3397 } 3398 } 3399 if ($("#selectaddress option").length <= 1) { 3400 var date = new Date(); 3401 var minutes = 1440; 3402 date.setTime(date.getTime() + (minutes * 60 * 1000)); 3403 $("#address, .modal-backdrop").removeClass("in show"); 3404 var selectedAddress = $("#selectaddress :first").val(); 3405 var selectedListID = $("#selectaddress :first").attr("data-listid"); 3406 $.cookie("selected_address_id", selectedAddress, { expires: date, path: "/" }); 3407 $.cookie("selected_list_id", selectedListID, { expires: date, path: "/" }); 3408 3409 } 3410 $("form[name=modalAddress]").submit(function (e) { 3411 var date = new Date(); 3412 var minutes = 1440; 3413 date.setTime(date.getTime() + (minutes * 60 * 1000)); 3414 var selectedAddress = $("#selectaddress :selected").val(); 3415 var selectedListID = $("#selectaddress :selected").attr("data-listid"); 3416 if (selectedAddress !== "") { 3417 $.cookie("selected_address_id", selectedAddress, { expires: date, path: "/" }); 3418 $.cookie("selected_list_id", selectedListID, { expires: date, path: "/" }); 3419 $("#address, .modal-backdrop").removeClass("in show"); 3420 } 3421 3422 return true; 3423 }); 3424 }, 100); 3425 }); 3426 </script> 3427 } 3428 <script> 3429 $(".logout a").on("click", function () { 3430 $.cookie("selected_address_id", null, { path: "/" }); 3431 $.cookie("selected_list_id", null, { path: "/" }); 3432 $.removeCookie("selected_address_id", { path: "/" }); 3433 $.removeCookie("selected_list_id", { path: "/" }); 3434 }); 3435 $(".quickButtonsMenu .login").on("click", function () { 3436 $.cookie("selected_address_id", null, { path: '/' }); 3437 $.cookie("selected_list_id", null, { path: "/" }); 3438 $.removeCookie("selected_address_id", { path: "/" }); 3439 $.removeCookie("selected_list_id", { path: "/" }); 3440 $.cookie("DeliveryName", "", { path: '/' }); 3441 $.cookie("DeliveryCompany", "", { path: '/' }); 3442 $.cookie("DeliveryPhone", "", { path: '/' }); 3443 $.cookie("DeliveryEmail", "", { path: '/' }); 3444 $.cookie("DeliveryAddress", "", { path: '/' }); 3445 $.cookie("DeliveryAddress2", "", { path: '/' }); 3446 $.cookie("DeliveryZip", "", { path: '/' }); 3447 $.cookie("DeliveryCity", "", { path: '/' }); 3448 }); 3449 @if (Pageview.Area.Item["EcommerceProductListForm"].ToString().Contains("box")) 3450 { 3451 <text> 3452 jQuery(function ($) { 3453 if (!$.cookie('ProductsTemplate') || $.cookie('ProductsTemplate') == undefined) { 3454 $.cookie("ProductsTemplate", "productGridItem"); 3455 } 3456 }); 3457 </text> 3458 } 3459 //$(".mini-quantity").hide(); 3460 //$(".js-mini-cart-button").on("mouseover", function () { 3461 // var newText = $(".mini-new-quantity").html(); 3462 // if (parseInt(newText) > 0) { 3463 // $(".mini-quantity").show(); 3464 // $(".mini-quantity").html(newText); 3465 // } else { 3466 // $(".mini-quantity").hide(); 3467 // } 3468 //}); 3469 $('#yourid').on('click', function () { 3470 $(".close-menu").trigger("click"); 3471 setTimeout(function () { $(".quickButtonsMenu .login a").trigger("click"); }, 100); 3472 }); 3473 </script> 3474 @RenderSnippet("JavaScriptBottom") 3475 @Pageview.Area.Item["EcommerceProductListForm"] 3476 </div></body> 3477 3478 </html>