Error executing template "Designs/Dwsimple/_parsed/EventFull.parsed.cshtml"
System.Net.WebException: The remote name could not be resolved: 'cleverchoice.dk'
   at System.Net.HttpWebRequest.GetResponse()
   at CompiledRazorTemplates.Dynamic.RazorEngine_5350588b2bf5408cadd3e4a51ee6c045.ImageHeight() in E:\Dynamicweb.net\Solutions\cleverchoice\cleverchoiceweb.net.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\EventFull.parsed.cshtml:line 1904
   at CompiledRazorTemplates.Dynamic.RazorEngine_5350588b2bf5408cadd3e4a51ee6c045.InitGeneralSettings() in E:\Dynamicweb.net\Solutions\cleverchoice\cleverchoiceweb.net.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\EventFull.parsed.cshtml:line 994
   at CompiledRazorTemplates.Dynamic.RazorEngine_5350588b2bf5408cadd3e4a51ee6c045.Execute() in E:\Dynamicweb.net\Solutions\cleverchoice\cleverchoiceweb.net.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\EventFull.parsed.cshtml:line 1921
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @using System 2 @using System.Web 3 @using System.Linq 4 @using System.Text.RegularExpressions 5 @using System.Web 6 7 8 @functions{ 9 public class WrapMethods 10 { 11 //Gets the contrasting color 12 public static string getContrastYIQ(string hexcolor) 13 { 14 if (hexcolor != "") 15 { 16 hexcolor = Regex.Replace(hexcolor, "[^0-9a-zA-Z]+", ""); 17 18 int r = Convert.ToByte(hexcolor.Substring(0, 2), 16); 19 int g = Convert.ToByte(hexcolor.Substring(2, 2), 16); 20 int b = Convert.ToByte(hexcolor.Substring(4, 2), 16); 21 int yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; 22 23 if (yiq >= 128) 24 { 25 return "black"; 26 } 27 else 28 { 29 return "white"; 30 } 31 } 32 else 33 { 34 return "black"; 35 } 36 } 37 38 39 //Truncate text 40 public static string Truncate (string value, int count, bool strip=true) 41 { 42 if (strip == true){ 43 value = StripHtmlTagByCharArray(value); 44 } 45 46 if (value.Length > count) 47 { 48 value = value.Substring(0, count - 1) + "..."; 49 } 50 51 return value; 52 } 53 54 55 //Strip text from HTML 56 public static string StripHtmlTagByCharArray(string htmlString) 57 { 58 char[] array = new char[htmlString.Length]; 59 int arrayIndex = 0; 60 bool inside = false; 61 62 for (int i = 0; i < htmlString.Length; i++) 63 { 64 char let = htmlString[i]; 65 if (let == '<') 66 { 67 inside = true; 68 continue; 69 } 70 if (let == '>') 71 { 72 inside = false; 73 continue; 74 } 75 if (!inside) 76 { 77 array[arrayIndex] = let; 78 arrayIndex++; 79 } 80 } 81 return new string(array, 0, arrayIndex); 82 } 83 84 //Make the correct count of columns 85 public static string ColumnMaker(int Col, string ScreenSize) 86 { 87 string Columns = ""; 88 89 switch (Col) 90 { 91 case 1: 92 Columns = "col-"+ScreenSize+"-12"; 93 break; 94 95 case 2: 96 Columns = "col-"+ScreenSize+"-6"; 97 break; 98 99 case 3: 100 Columns = "col-"+ScreenSize+"-4"; 101 break; 102 103 case 4: 104 Columns = "col-"+ScreenSize+"-3"; 105 break; 106 107 default: 108 Columns = "col-"+ScreenSize+"-3"; 109 break; 110 } 111 112 return Columns; 113 } 114 115 116 private string Custom(string firstoption, string secondoption) 117 { 118 if (firstoption == "custom") 119 { 120 return secondoption; 121 } 122 else 123 { 124 return firstoption; 125 } 126 } 127 } 128 } 129 @*Include("eCom7/CartV2/MiniCart.cshtml")*@ 130 <!DOCTYPE html> 131 <html> 132 <head> 133 <!-- Global site tag (gtag.js) - Google Analytics --> 134 <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-57560074-1"></script> 135 <!-- <script> 136 window.dataLayer = window.dataLayer || []; 137 function gtag(){dataLayer.push(arguments);} 138 gtag('js', new Date()); 139 140 gtag('config', 'UA-57560074-1'); 141 </script> 142 143 --> 144 145 <script> 146 gtag('config', 'AW-935089715/9p0kCJDnrHkQs6zxvQM', { 147 'phone_conversion_number': '2210 2040' 148 }); 149 </script> 150 151 <meta charset="utf-8"> 152 <title>@GetValue("Title")</title> 153 @GetValue("MetaTags") 154 @GetValue("CopyRightNotice") 155 156 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> 157 <meta name="robots" content="index, follow"> 158 <meta name="google-site-verification" content="ROtRvNI3Po3Jvq_9W3mfXGKWywjxOYYVJj8QJltgPjI"> 159 160 161 162 <meta property="og:title" content="@Dynamicweb.Frontend.PageView.Current().Meta.Title"> 163 <meta property="og:type" content="website"> 164 <meta property="og:image" content=""> 165 <meta property="og:description" content='@GetValue("Meta.Description")'> 166 <meta property="og:url" content='@GetGlobalValue("Global:Pageview.Url")'> 167 <meta property="og:site_name" content='http://cleverchoice.dk'> 168 169 <!-- Facebook Admin --> 170 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.FacebookCommendAdmin"))) 171 { 172 string fbadmin = GetString("Item.Area.FacebookCommendAdmin"); 173 <meta property="fb:admins" content="@fbadmin"> 174 } 175 176 <!-- Favicon --> 177 @{ 178 var favicon = @GetString("Item.Area.Favicon"); 179 } 180 <link href="@favicon" rel="icon" type="image/png"> 181 182 <!-- Variables --> 183 @{ 184 var attrValue = ""; 185 string currentpageid = GetString("DwPageID"); 186 string firstpageid = GetString("DwAreaFirstActivePageID"); 187 string loginpageid = "8482"; 188 string searchplaceholder = Translate("Search products", "Search products"); 189 190 var cartid = GetValue("DwAreaCartPageID"); 191 192 DateTime areaUpdated = (DateTime)Pageview.Area.get_Value("AreaUpdatedDate"); 193 string cssPath = HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.min.css"); 194 DateTime lastWriteTime = System.IO.File.GetLastWriteTime(cssPath); 195 bool writeCss = false; 196 string css = String.Empty; 197 if (areaUpdated > lastWriteTime) 198 { 199 writeCss = true; 200 } 201 } 202 <!--FONT SETTINGS--> 203 @functions{ 204 public class FontSettings 205 { 206 public class Logo 207 { 208 public static string FontFamily { get; set; } 209 public static string FontSize { get; set; } 210 public static string FontWeight { get; set; } 211 public static string Color { get; set; } 212 public static string LineHeight { get; set; } 213 public static string Casing { get; set; } 214 public static string LetterSpacing { get; set; } 215 } 216 217 public class Slogan 218 { 219 public static string FontFamily { get; set; } 220 public static string FontSize { get; set; } 221 public static string FontWeight { get; set; } 222 public static string Color { get; set; } 223 public static string LineHeight { get; set; } 224 public static string Casing { get; set; } 225 public static string LetterSpacing { get; set; } 226 } 227 228 public class H1 229 { 230 public static string FontFamily { get; set; } 231 public static string FontSize { get; set; } 232 public static string FontWeight { get; set; } 233 public static string Color { get; set; } 234 public static string LineHeight { get; set; } 235 public static string Casing { get; set; } 236 public static string LetterSpacing { get; set; } 237 } 238 239 public class H2 240 { 241 public static string FontFamily { get; set; } 242 public static string FontSize { get; set; } 243 public static string FontWeight { get; set; } 244 public static string Color { get; set; } 245 public static string LineHeight { get; set; } 246 public static string Casing { get; set; } 247 public static string LetterSpacing { get; set; } 248 } 249 250 public class Body 251 { 252 public static string FontFamily { get; set; } 253 public static string FontSize { get; set; } 254 public static string FontWeight { get; set; } 255 public static string Color { get; set; } 256 public static string LineHeight { get; set; } 257 public static string Casing { get; set; } 258 public static string LetterSpacing { get; set; } 259 } 260 } 261 262 private void InitFontSettings() 263 { 264 //LOGO 265 FontSettings.Logo.FontFamily = CustomFont(GetString("Item.Area.LogoFont.Font"), GetString("Item.Area.LogoFont.CustomFont")); 266 FontSettings.Logo.FontSize = GetString("Item.Area.LogoFont.Size")+"px"; 267 FontSettings.Logo.FontWeight = CheckExistence(GetString("Item.Area.LogoFont.Weight"), "normal"); 268 FontSettings.Logo.LineHeight = CheckExistence(GetString("Item.Area.LogoFont.LineHeight"), "1"); 269 FontSettings.Logo.LetterSpacing = GetString("Item.Area.LogoFont.LetterSpacing") + "px"; 270 FontSettings.Logo.Casing = GetString("Item.Area.LogoFont.Casing"); 271 FontSettings.Logo.Color = GetString("Item.Area.LogoFont.Color.Color"); 272 273 274 //SLOGAN 275 FontSettings.Slogan.FontFamily = CustomFont(GetString("Item.Area.LogoSloganFont.Font"), GetString("Item.Area.LogoSloganFont.CustomFont")); 276 FontSettings.Slogan.FontSize = GetString("Item.Area.LogoSloganFont.Size")+"px"; 277 FontSettings.Slogan.FontWeight = CheckExistence(GetString("Item.Area.LogoSloganFont.Weight"), "normal"); 278 FontSettings.Slogan.LineHeight = CheckExistence(GetString("Item.Area.LogoSloganFont.LineHeight"), "1"); 279 FontSettings.Slogan.LetterSpacing = GetString("Item.Area.LogoSloganFont.LetterSpacing") + "px"; 280 FontSettings.Slogan.Casing = GetString("Item.Area.LogoSloganFont.Casing"); 281 FontSettings.Slogan.Color = GetString("Item.Area.LogoSloganFont.Color.Color"); 282 283 284 //HEADINGS 285 FontSettings.H1.FontFamily = CustomFont(GetString("Item.Area.HeadingsH1.Font"), GetString("Item.Area.HeadingsH1.CustomFont")); 286 FontSettings.H1.FontSize = GetString("Item.Area.HeadingsH1.Size")+"px"; 287 FontSettings.H1.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH1.Weight"), "normal"); 288 FontSettings.H1.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH1.LineHeight"), "1"); 289 FontSettings.H1.LetterSpacing = GetString("Item.Area.HeadingsH1.LetterSpacing") + "px"; 290 FontSettings.H1.Casing = GetString("Item.Area.HeadingsH1.Casing"); 291 FontSettings.H1.Color = GetString("Item.Area.HeadingsH1.Color.Color"); 292 293 FontSettings.H2.FontFamily = CustomFont(GetString("Item.Area.HeadingsH2.Font"), GetString("Item.Area.HeadingsH2.CustomFont")); 294 FontSettings.H2.FontSize = GetString("Item.Area.HeadingsH2.Size")+"px"; 295 FontSettings.H2.FontWeight = CheckExistence(GetString("Item.Area.HeadingsH2.Weight"), "normal"); 296 FontSettings.H2.LineHeight = CheckExistence(GetString("Item.Area.HeadingsH2.LineHeight"), "1"); 297 FontSettings.H2.LetterSpacing = GetString("Item.Area.HeadingsH2.LetterSpacing") + "px"; 298 FontSettings.H2.Casing = GetString("Item.Area.HeadingsH2.Casing"); 299 FontSettings.H2.Color = GetString("Item.Area.HeadingsH2.Color.Color"); 300 301 302 //BODY 303 FontSettings.Body.FontFamily = CustomFont(GetString("Item.Area.BodyFont.Font"), GetString("Item.Area.BodyFont.CustomFont")); 304 FontSettings.Body.FontSize = GetString("Item.Area.BodyFont.Size") + "px"; 305 FontSettings.Body.FontWeight = CheckExistence(GetString("Item.Area.BodyFont.Weight"), "normal"); 306 FontSettings.Body.LineHeight = CheckExistence(GetString("Item.Area.BodyFont.LineHeight"), "1"); 307 FontSettings.Body.LetterSpacing = GetString("Item.Area.BodyFont.LetterSpacing") + "px"; 308 FontSettings.Body.Casing = GetString("Item.Area.BodyFont.Casing"); 309 FontSettings.Body.Color = GetString("Item.Area.BodyFont.Color.Color"); 310 311 312 gfonts.Add(FontSettings.Logo.FontFamily, ""); 313 314 if (!gfonts.ContainsKey(FontSettings.Slogan.FontFamily)) 315 { 316 gfonts.Add(FontSettings.Slogan.FontFamily, ""); 317 } 318 if (!gfonts.ContainsKey(FontSettings.H1.FontFamily)) 319 { 320 gfonts.Add(FontSettings.H1.FontFamily, ""); 321 } 322 if (!gfonts.ContainsKey(FontSettings.H2.FontFamily)) 323 { 324 gfonts.Add(FontSettings.H2.FontFamily, ""); 325 } 326 if (!gfonts.ContainsKey(FontSettings.Body.FontFamily)) 327 { 328 gfonts.Add(FontSettings.Body.FontFamily, ""); 329 } 330 331 } 332 333 private string CustomFont (string firstfont, string secondfont) 334 { 335 if (firstfont == "custom") 336 { 337 return secondfont; 338 } 339 else 340 { 341 return firstfont; 342 } 343 } 344 345 private string CheckExistence (string stringitem, string defaultvalue) 346 { 347 if (!string.IsNullOrWhiteSpace(stringitem)) { 348 return stringitem; 349 } else { 350 return defaultvalue; 351 } 352 } 353 354 private System.Collections.Generic.Dictionary<string, object> gfonts = new System.Collections.Generic.Dictionary<string, object>(); 355 } 356 357 @{ 358 InitFontSettings(); 359 } 360 361 @helper GoogleFonts() 362 { 363 if (gfonts != null) 364 { 365 foreach (var item in gfonts) 366 { 367 <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=@item.Key:100,200,300,400,500,600,700,800,900"> 368 } 369 } 370 } 371 372 @functions{ 373 public string FontStylesCSS() 374 { 375 string CssString = @" 376 .dw-logotext { 377 font-family: " + FontSettings.Logo.FontFamily + @"; 378 font-size: " + FontSettings.Logo.FontSize + @"; 379 font-weight: " + FontSettings.Logo.FontWeight + @"; 380 line-height: " + FontSettings.Logo.LineHeight + @" !important; 381 letter-spacing: " + FontSettings.Logo.LetterSpacing + @"; 382 text-transform: " + FontSettings.Logo.Casing + @"; 383 color: " + FontSettings.Logo.Color + @"; 384 } 385 386 .dw-slogantext { 387 font-family: " + FontSettings.Slogan.FontFamily + @"; 388 font-size: " + FontSettings.Slogan.FontSize + @"; 389 font-weight: " + FontSettings.Slogan.FontWeight + @"; 390 line-height: " + FontSettings.Slogan.LineHeight + @" !important; 391 letter-spacing: " + FontSettings.Slogan.LetterSpacing + @"; 392 text-transform: " + FontSettings.Slogan.Casing + @"; 393 color: " + FontSettings.Slogan.Color + @"; 394 } 395 396 h1 { 397 font-family: " + FontSettings.H1.FontFamily + @" !important; 398 font-size: " + FontSettings.H1.FontSize + @"; 399 color: " + FontSettings.H1.Color + @"; 400 line-height: " + FontSettings.H1.LineHeight + @" !important; 401 text-transform: " + FontSettings.H1.Casing + @"; 402 font-weight: " + FontSettings.H1.FontWeight + @"; 403 letter-spacing: " + FontSettings.H1.LetterSpacing + @" !important; 404 } 405 406 407 h2, h3, h4, h5, h6 { 408 margin-top: 0.7em; 409 margin-bottom: 0.7em; 410 411 font-family: " + FontSettings.H2.FontFamily + @" !important; 412 font-size: " + FontSettings.H2.FontSize + @"; 413 color: " + FontSettings.H2.Color + @"; 414 line-height: " + FontSettings.H2.LineHeight + @"; 415 text-transform: " + FontSettings.H2.Casing + @" !important; 416 font-weight: " + FontSettings.H2.FontWeight + @" !important; 417 letter-spacing: " + FontSettings.H2.LetterSpacing + @" !important; 418 } 419 420 h4, h5, h6 { 421 font-size: 16px !important; 422 } 423 424 body { 425 font-family: " + FontSettings.Body.FontFamily + @" !important; 426 font-size: " + FontSettings.Body.FontSize + @"; 427 color: " + FontSettings.Body.Color + @"; 428 line-height: " + FontSettings.Body.LineHeight + @" !important; 429 text-transform: " + FontSettings.Body.Casing + @"; 430 font-weight: " + FontSettings.Body.FontWeight + @"; 431 letter-spacing: " + FontSettings.Body.LetterSpacing + @" !important; 432 } 433 434 .navbar-wp .navbar-nav > li > a { 435 font-family: " + FontSettings.Body.FontFamily + @" !important; 436 } 437 438 .section-title { 439 margin-top: 0.7em; 440 margin-bottom: 0.7em; 441 } 442 "; 443 return CssString; 444 } 445 } 446 447 <!-- GENERAL/COLOR SETTINGS --> 448 @functions{ 449 public class ColorSettings 450 { 451 public class Color 452 { 453 public static string Primary { get; set; } 454 public static string Secondary { get; set; } 455 public static string NavbarFont { get; set; } 456 public static string Footer { get; set; } 457 public static string FooterFont { get; set; } 458 459 public static string Sticker { get; set; } 460 public static string Price { get; set; } 461 public static string Cart { get; set; } 462 } 463 } 464 465 private void InitColorSettings() 466 { 467 ColorSettings.Color.Primary = GetString("Item.Area.ColorsPrimary.Color"); 468 ColorSettings.Color.Secondary = GetString("Item.Area.ColorsSecondary.Color"); 469 470 ColorSettings.Color.NavbarFont = GetString("Item.Area.NavbarFontColor"); 471 472 if (string.IsNullOrWhiteSpace(ColorSettings.Color.NavbarFont)) 473 { 474 ColorSettings.Color.NavbarFont = WrapMethods.getContrastYIQ(ColorSettings.Color.Secondary); 475 } 476 477 ColorSettings.Color.Footer = GetString("Item.Area.ColorsFooterColor.Color"); 478 ColorSettings.Color.FooterFont = WrapMethods.getContrastYIQ(ColorSettings.Color.Footer); 479 480 ColorSettings.Color.Price = GetString("Item.Area.EcommercePriceColor.Color"); 481 ColorSettings.Color.Sticker = GetString("Item.Area.EcommerceDiscountStickerColor.Color"); 482 ColorSettings.Color.Cart = GetString("Item.Area.EcommerceCartButtonColor.Color"); 483 } 484 485 public string GetColorSettings() 486 { 487 string CssString = @" 488 a:hover, a:focus, a:active { 489 color: @Primary; 490 } 491 492 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 493 color: @NavbarFont; 494 } 495 496 .navbar-wp .navbar-nav > .active > a, .navbar-wp .navbar-nav > .active > a:hover, .navbar-wp .navbar-nav > .active > a:focus { 497 color: @NavbarFont; 498 } 499 500 .navbar-wp .navbar-nav > li > a:hover, .navbar-wp .navbar-nav > li > a:focus { 501 border-top: 0px solid @Secondary; 502 color: @NavbarFont; 503 } 504 505 .navbar-wp .navbar-nav > li > a span:after { 506 background-color: @Primary; 507 } 508 509 .btn-dw-primary { 510 color: #FFF; 511 background-color: @Primary; 512 border-color: @Primary; 513 } 514 515 .btn-dw-secondary { 516 color: @NavbarFont; 517 background-color: @Secondary; 518 border-color: @Secondary; 519 } 520 521 .btn-dw-cart { 522 color: #FFF; 523 background-color: @Cart; 524 border-color: @Cart; 525 } 526 527 .dw-section-title { 528 border-color: @Secondary; 529 } 530 531 .dw-minicart-update { 532 color: #FFF !important; 533 background-color: @Primary; 534 transition: all 0.3s ease-in-out 0s; 535 } 536 537 .pagination > li > a, .pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > a:active { 538 color: @Primary; 539 } 540 541 .form-control:hover, .form-control:focus, .form-control:active { 542 border-color: @Primary !important; 543 } 544 545 .bg-2 { 546 background: @Primary !important; 547 } 548 549 .blockquote-1:hover { 550 border-color: @Primary !important; 551 } 552 553 .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 { 554 color: @Primary; 555 } 556 557 .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 { 558 color: @Primary; 559 } 560 561 .navbar-wp .navbar-nav > li > a:hover, .navbar-wp .navbar-nav > li > a:focus { 562 border: 0px solid @Primary; 563 } 564 565 .navbar-wp .navbar-toggle:hover, .navbar-wp .navbar-toggle:focus { 566 background-color: @Primary !important; 567 border-color: @Primary !important; 568 } 569 570 .navbar-wp .dropdown-menu { 571 border-top: 1px solid @Primary !important; 572 border-bottom: 3px solid @Primary !important; 573 } 574 575 .navbar-wp .dropdown-menu > li > a:hover { 576 background: @Primary !important; 577 color: #fff; 578 } 579 580 .navbar-wp .dropdown-menu .active { 581 background: @Primary !important; 582 color: #fff; 583 } 584 585 .navbar-wp.navbar-contrasted .dropdown-menu > li > a:hover { 586 background: @Primary !important; 587 } 588 589 .nav > ul > li > a:hover { 590 color: @Primary; 591 } 592 593 .lw .w-box.w-box-inverse .thmb-img i { 594 color: @Primary !important; 595 } 596 597 .w-box.w-box-inverse .thmb-img:hover i { 598 background: @Primary !important; 599 } 600 601 .c-box { 602 border: 1px solid @Primary !important; 603 } 604 605 .c-box .c-box-header { 606 background: @Primary !important; 607 } 608 609 .w-section .aside-feature:hover .icon-feature, .w-section .aside-feature:hover h4 { 610 color: @Primary !important; 611 } 612 613 .layer-slider-wrapper .title.title-base { 614 background: @Primary !important; 615 } 616 617 .layer-slider-wrapper .subtitle { 618 color: @Primary !important; 619 } 620 621 .layer-slider-wrapper .list-item { 622 color: @Primary !important; 623 } 624 625 .box-element.box-element-bordered { 626 border: 1px solid @Primary !important; 627 } 628 629 .carousel-2 .carousel-indicators .active { 630 background-color: @Primary !important; 631 } 632 633 .carousel-2 .carousel-nav a { 634 color: @Primary !important; 635 } 636 637 .carousel-2 .carousel-nav a:hover { 638 background: @Primary !important; 639 } 640 641 .carousel-3 .carousel-nav a { 642 color: @Primary !important; 643 } 644 645 .carousel-3 .carousel-nav a:hover { 646 background: @Primary !important; 647 } 648 649 .like-button .button.liked i { 650 color: @Primary !important; 651 } 652 653 ul.list-listings li.featured { 654 border-color: @Primary !important; 655 } 656 657 ul.list-check li i { 658 color: @Primary !important; 659 } 660 661 ul.dw-categories li a:hover, ul.dw-categories a:focus, ul.dw-categories a:active{ 662 color: @NavbarFont; 663 background-color: @Primary; 664 border-color: @Primary; 665 } 666 667 ul.categories li a:hover, ul.categories a:focus, ul.categories a:active{ 668 color: @NavbarFont; 669 background-color: @Primary; 670 border-color: @Primary; 671 } 672 673 .timeline .event:nth-child(2n):before { 674 background-color: @Primary !important; 675 } 676 677 .timeline .event:nth-child(2n-1):before { 678 background-color: @Primary !important; 679 } 680 681 #toTopHover { 682 background-color: @Primary !important; 683 } 684 685 .tags-list li { 686 border: 1px solid @Primary !important; 687 color: @Primary !important; 688 } 689 690 .tags-list li:hover, 691 a.open-panel { 692 background-color: @Primary !important; 693 } 694 695 .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus, 696 .panel-group .panel-heading a i, 697 .tags-list li a { 698 color: @NavbarFont !important; 699 } 700 701 .nav-pills > li > a:hover, .nav-pills > li > a:focus { 702 color: @NavbarFont !important; 703 background: none repeat scroll 0% 0% @Secondary !important; 704 } 705 706 footer { 707 background: @Footer !important; 708 } 709 710 footer h4 { 711 color: @FooterFont !important; 712 } 713 714 footer a { 715 color: @FooterFont !important; 716 } 717 718 footer a:hover, footer a:focus, footer a:active { 719 color: @Secondary !important; 720 } 721 722 footer p { 723 color: @FooterFont !important; 724 } 725 726 footer ul > li { 727 color: @FooterFont !important; 728 } 729 730 footer hr { 731 border-color: @FooterFont 732 } 733 734 735 /* Button colors */ 736 .btn-base { 737 color: @NavbarFont !important; 738 background-color: @Secondary !important; 739 border: 1px solid @Secondary !important; 740 } 741 742 .btn-base:before { 743 background-color: @Secondary !important; 744 } 745 746 .btn-base:hover:before, .btn-base:focus:before, .btn-base:active:before { 747 color: @NavbarFont !important; 748 background-color: @Primary !important; 749 border-color: @Primary !important; 750 } 751 752 .btn-icon:before { 753 transition: none !important; 754 } 755 756 .btn-base:hover, .btn-base:focus, .btn-base:active, .btn-base.active, .open .dropdown-toggle.btn-base { 757 color: @NavbarFont !important; 758 background-color: @Primary !important; 759 border-color: @Primary !important; 760 } 761 762 .btn-two { 763 color: @NavbarFont !important; 764 border-color: @Secondary !important; 765 background-color: @Secondary !important; 766 border: 1px solid @Secondary !important; 767 } 768 769 .btn-two:hover, .btn-two:focus, .btn-two:active, .btn-two.active, .open .dropdown-toggle.btn-two { 770 color: @NavbarFont !important; 771 background-color: @Primary !important; 772 border-color: @Primary !important; 773 } 774 775 .btn-primary { 776 background-color: @Primary !important; 777 border-color: @Primary !important; 778 } 779 780 .open .dropdown-toggle.btn-primary { 781 background-color: @Primary !important; 782 border-color: @Primary !important; 783 } 784 785 .btn-one:hover, .btn-one:focus, .btn-one:active, .btn-one.active, .open .dropdown-toggle.btn-one { 786 color: @Primary !important; 787 } 788 789 .btn-four { 790 border: 2px solid @Primary!important; 791 color: @Primary !important; 792 } 793 794 .btn-four:hover, .btn-four:focus, .btn-four:active, .btn-four.active, .open .dropdown-toggle.btn-four { 795 background-color: #fff !important; 796 } 797 798 799 /* Dropdown-menu */ 800 .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { 801 background: @Primary !important; 802 color: #fff !important; 803 } 804 805 /* Ecom settings */ 806 .ribbon.base, .ball { 807 background: @Sticker !important; 808 color: #fff; 809 border-right: 5px solid @Sticker !important; 810 } 811 812 .ribbon.base:before { 813 border-top: 27px solid @Sticker !important; 814 } 815 816 .ribbon.base:after { 817 border-bottom: 27px solid @Sticker !important; 818 } 819 820 .price { 821 color: @Price !important; 822 } 823 824 .discount-sticker { 825 background-color: @Sticker !important; 826 } 827 828 .bs-callout-primary { 829 border-left-color: @Primary !important; 830 } 831 832 .ratings .fa-star { 833 color: @Secondary !important; 834 } 835 836 .feature-label { 837 color: @Secondary !important; 838 }"; 839 840 return ParseCSSToString(CssString); 841 } 842 843 private string ParseCSSToString(string TheString) 844 { 845 TheString = TheString.Replace("@Primary", ColorSettings.Color.Primary); 846 TheString = TheString.Replace("@Secondary", ColorSettings.Color.Secondary); 847 TheString = TheString.Replace("@NavbarFont", ColorSettings.Color.NavbarFont); 848 TheString = TheString.Replace("@FooterFont", ColorSettings.Color.FooterFont); 849 TheString = TheString.Replace("@Footer", ColorSettings.Color.Footer); 850 851 TheString = TheString.Replace("@Sticker", ColorSettings.Color.Sticker); 852 TheString = TheString.Replace("@Price", ColorSettings.Color.Price); 853 TheString = TheString.Replace("@Cart", ColorSettings.Color.Cart); 854 855 856 System.Text.StringBuilder sb = new System.Text.StringBuilder(); 857 858 foreach(var item in TheString.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries)) 859 { 860 sb.AppendLine(item); 861 } 862 863 return sb.ToString(); 864 } 865 } 866 867 @{ 868 InitColorSettings(); 869 } 870 871 872 873 @using System.Drawing 874 @using System.Net 875 876 877 @functions{ 878 public class GeneralSettings 879 { 880 881 public class Header 882 { 883 public static string Mode { get; set; } 884 public static string Classes { get; set; } 885 public static bool Show { get; set; } 886 public static string Background { get; set; } 887 public static bool ShowFrontpageImage { get; set; } 888 } 889 890 public class Logo 891 { 892 public static string Image { get; set; } 893 public static string ContrastImage { get; set; } 894 public static string Text { get; set; } 895 public static string Slogan { get; set; } 896 public static string SecondaryColor { get; set; } 897 } 898 899 public class Navigation 900 { 901 public static string Position { get; set; } 902 public static string InvertedPosition { get; set; } 903 public static string StickyMenu { get; set; } 904 public static string SelectionMode { get; set; } 905 public static string SelectionStyle { get; set; } 906 public static int SelectionWeight { get; set; } 907 public static bool Case { get; set; } 908 909 public static string BreadcrumbMode { get; set; } 910 public static string BreadcrumbAlign { get; set; } 911 912 public static string LeftmenuMode { get; set; } 913 914 public static string ButtonDesign { get; set; } 915 } 916 917 public class Headings 918 { 919 public static string Mode { get; set; } 920 } 921 922 public class Background 923 { 924 public static string Color { get; set; } 925 public static string Image { get; set; } 926 public static string CustomImage { get; set; } 927 public static bool GradientColor { get; set; } 928 public static string GradientPercentage { get; set; } 929 public static string Style { get; set; } 930 public static string Position { get; set; } 931 } 932 933 public class Site 934 { 935 public static bool Shadow { get; set; } 936 public static string LayoutMode { get; set; } 937 } 938 939 public class Images 940 { 941 public static bool RoundCorners { get; set; } 942 } 943 944 public class Ecommerce 945 { 946 public static string EcomListDesign { get; set; } 947 public static string EcomCardDesign { get; set; } 948 } 949 } 950 951 private void InitGeneralSettings() 952 { 953 //Header settings 954 GeneralSettings.Header.Mode = GetString("Item.Area.HeaderLayoutMode"); 955 GeneralSettings.Header.Show = GetBoolean("Item.Area.HeaderShow"); 956 GeneralSettings.Header.Background = GetString("Item.Area.NavigationNavbarBackground"); 957 GeneralSettings.Header.ShowFrontpageImage = GetBoolean("Item.Area.HeaderFrontpageImage"); 958 959 if (GeneralSettings.Header.Mode == "solid"){ 960 GeneralSettings.Header.Classes = ""; 961 } 962 963 if (GeneralSettings.Header.Mode == "cover" || GeneralSettings.Header.Mode == "mobile"){ 964 GeneralSettings.Header.Classes = "header-alpha header-cover"; 965 } 966 967 968 //Logo settings 969 GeneralSettings.Logo.Image = GetString("Item.Area.GeneralLogo"); 970 GeneralSettings.Logo.Text = GetString("Item.Area.GeneralLogoText"); 971 GeneralSettings.Logo.Slogan = GetString("Item.Area.LogoSlogan"); 972 GeneralSettings.Logo.SecondaryColor = GetString("Item.Area.LogoSecondColor.Color"); 973 974 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.LogoContrastImage"))) { 975 GeneralSettings.Logo.ContrastImage = GetString("Item.Area.LogoContrastImage"); 976 } else { 977 GeneralSettings.Logo.ContrastImage = GetString("Item.Area.GeneralLogo"); 978 } 979 980 981 //Navigation settings 982 GeneralSettings.Navigation.Position = GetString("Item.Area.NavigationPosition"); 983 GeneralSettings.Navigation.StickyMenu = "off"; 984 985 if (GetBoolean("Item.Area.NavigationSticky")) { 986 if (GeneralSettings.Header.Show) 987 { 988 if (GeneralSettings.Header.Mode == "cover") 989 { 990 GeneralSettings.Navigation.StickyMenu = "44"; //"data-spy=\"affix\" data-offset-top=\"44\" data-offset-bottom=\"300\""; 991 } 992 else 993 { 994 int offset = ImageHeight()+28; 995 996 GeneralSettings.Navigation.StickyMenu = offset.ToString(); // "data-spy=\"affix\" data-offset-top=\"" + offset.ToString() + "\" data-offset-bottom=\"300\""; 997 } 998 } 999 else 1000 { 1001 GeneralSettings.Navigation.StickyMenu = "5"; // "data-spy=\"affix\" data-offset-top=\"5\" data-offset-bottom=\"300\""; 1002 } 1003 } 1004 1005 if (GeneralSettings.Navigation.Position == "left") { 1006 GeneralSettings.Navigation.InvertedPosition = "right"; 1007 } 1008 else 1009 { 1010 GeneralSettings.Navigation.InvertedPosition = "left"; 1011 } 1012 1013 GeneralSettings.Navigation.SelectionMode = GetString("Item.Area.NavigationSelectionMode"); 1014 GeneralSettings.Navigation.SelectionStyle = ""; 1015 GeneralSettings.Navigation.SelectionWeight = GetInteger("Item.Area.SelectionWeight"); 1016 1017 if (GeneralSettings.Navigation.SelectionMode == "arrow") { 1018 GeneralSettings.Navigation.SelectionStyle = "navbar-arrow"; 1019 } 1020 1021 GeneralSettings.Navigation.Case = GetBoolean("Item.Area.NavigationUppercase"); 1022 1023 GeneralSettings.Navigation.BreadcrumbMode = GetString("Item.Area.NavigationBreadcrumbLayout"); 1024 GeneralSettings.Navigation.BreadcrumbAlign = GetString("Item.Area.NavigationBreadcrumbAlign"); 1025 1026 GeneralSettings.Navigation.LeftmenuMode = GetString("Item.Area.NavigationLeftNavigationMode"); 1027 1028 GeneralSettings.Navigation.ButtonDesign = GetString("Item.Area.NavigationButtonDesign"); 1029 1030 1031 //Background settings 1032 GeneralSettings.Background.Image = GetString("Item.Area.BackgroundImage.Image.Image"); 1033 GeneralSettings.Background.CustomImage = GetString("Item.Area.BackgroundImage.Image.CustomImage"); 1034 GeneralSettings.Background.Color = GetString("Item.Area.BackgroundImage.Color.Color"); 1035 GeneralSettings.Background.GradientColor = GetBoolean("Item.Area.BackroundGradientColor"); 1036 GeneralSettings.Background.GradientPercentage = GetString("Item.Area.GradientPercentage"); 1037 1038 1039 if (@GetString("Item.Area.BackgroundFixed") == "True") 1040 { 1041 GeneralSettings.Background.Position = "fixed"; 1042 } 1043 else 1044 { 1045 GeneralSettings.Background.Position = ""; 1046 } 1047 1048 1049 if (GeneralSettings.Background.Image == "none") 1050 { 1051 GeneralSettings.Background.Style = ""; 1052 } 1053 else if (GeneralSettings.Background.Image == "custom") 1054 { 1055 if (!string.IsNullOrWhiteSpace(GeneralSettings.Background.CustomImage)) 1056 { 1057 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; "; 1058 } 1059 } 1060 else 1061 { 1062 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; "; 1063 } 1064 1065 1066 //Headings settings 1067 GeneralSettings.Headings.Mode = GetString("Item.Area.AdvHeadingsMode"); 1068 1069 1070 //Site settings 1071 GeneralSettings.Site.Shadow = GetBoolean("Item.Area.BackgroundSiteShadow"); 1072 GeneralSettings.Site.LayoutMode = GetString("Item.Area.LayoutMode"); 1073 1074 if (GeneralSettings.Site.LayoutMode == "boxed"){ 1075 GeneralSettings.Site.LayoutMode = "body-" + GeneralSettings.Site.LayoutMode; 1076 GeneralSettings.Header.Classes += " header-boxed"; 1077 } 1078 1079 1080 //Image settings 1081 GeneralSettings.Images.RoundCorners = GetBoolean("Item.Area.LayoutRoundCorners"); 1082 1083 //Ecommerce settings 1084 GeneralSettings.Ecommerce.EcomListDesign = GetString("Item.Area.EcommerceProductCardDesign"); 1085 GeneralSettings.Ecommerce.EcomCardDesign = GetString("Item.Area.EcommerceProductCardDesign"); 1086 } 1087 1088 public string GetGeneralCSS() 1089 { 1090 string CssString = ""; 1091 int SelectionWeight = GeneralSettings.Navigation.SelectionWeight; 1092 1093 //Site settings 1094 if (GetString("Item.Area.LogoFont.Color.Color") == "#FFF" || GetString("Item.Area.LogoFont.Color.Color") == "#FFFFFF") 1095 { 1096 int offset = ImageHeight()+28; 1097 1098 CssString += @" 1099 .dw-offsetmenu-logo { 1100 color: #333 !important; 1101 }"; 1102 } 1103 1104 if (!string.IsNullOrWhiteSpace(GeneralSettings.Background.Color)) 1105 { 1106 CssString += @" 1107 body { 1108 background-color: " + GeneralSettings.Background.Color + @"; 1109 background-size: cover; 1110 overflow-y: scroll; 1111 }"; 1112 } 1113 1114 if (GeneralSettings.Background.GradientColor) 1115 { 1116 CssString += @" 1117 body { 1118 background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1119 background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1120 background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1121 background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1122 background: linear-gradient(to top, rgba(0, 0, 0, 0." + GeneralSettings.Background.GradientPercentage + @") 0%, rgba(0, 0, 0, 0) 100%); 1123 background-attachment: fixed; 1124 background-color: " + GeneralSettings.Background.Color + @" !important; 1125 }"; 1126 } 1127 1128 if (GeneralSettings.Site.Shadow) 1129 { 1130 CssString += @" 1131 .shad { 1132 -webkit-box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1133 -moz-box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1134 box-shadow: 0px 0px 8px 0px rgba(50, 50, 50, 0.75); 1135 }"; 1136 } 1137 1138 //Image settings 1139 if (GeneralSettings.Images.RoundCorners) 1140 { 1141 CssString += @" 1142 .content-image { 1143 border-radius: 6px; 1144 -webkit-border-radius: 6px; 1145 -moz-border-radius: 6px; 1146 }"; 1147 } 1148 1149 //Navbar and header custom settings 1150 if (GeneralSettings.Header.Mode == "cover") 1151 { 1152 CssString += @" 1153 .navbar-wp { 1154 background-color: none !important; 1155 }"; 1156 1157 if (!GeneralSettings.Header.Show || GeneralSettings.Header.Mode == "mobile") 1158 { 1159 CssString += @" 1160 .header-cover .navbar-wp { 1161 top: 0px !important; 1162 }"; 1163 } 1164 } 1165 else 1166 { 1167 if (GeneralSettings.Header.Show) 1168 { 1169 CssString += @" 1170 .navbar-wp.affix .navbar-nav > li > a { 1171 padding: 16px 16px !important; 1172 }"; 1173 } 1174 } 1175 1176 if (GeneralSettings.Header.Background == "colorline") 1177 { 1178 CssString += @" 1179 .navbar-wp, .navbar-wp.affix { 1180 border-bottom: 4px solid " + ColorSettings.Color.Primary + @" !important; 1181 } 1182 1183 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1184 background-color: #FFF; 1185 color: #333; 1186 } 1187 1188 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1189 color: " + ColorSettings.Color.NavbarFont + @"; 1190 } 1191 1192 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1193 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1194 }"; 1195 } else if (GeneralSettings.Header.Background == "neutral") 1196 { 1197 CssString += @" 1198 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 1199 background-color: #f1f1f1; 1200 } 1201 1202 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1203 color: #333; 1204 } 1205 1206 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1207 color: " + ColorSettings.Color.NavbarFont + @"; 1208 } 1209 1210 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1211 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1212 }"; 1213 } 1214 else if (GeneralSettings.Header.Background == "transparent") 1215 { 1216 CssString += @" 1217 .navbar-wp, .navbar-wp.affix { 1218 background-color: #FFF; 1219 opacity: 0.9; 1220 filter: alpha(opacity=90); /* For IE8 and earlier */ 1221 } 1222 1223 .navbar-wp.affix, .navbar-wp.affix .navbar-nav > li > a { 1224 color: #333; 1225 } 1226 1227 .navbar-wp.affix .navbar-nav > .active > a, .navbar-wp.affix .navbar-nav > li > a:hover, .navbar-wp.affix .navbar-nav > li > a:focus { 1228 color: " + ColorSettings.Color.NavbarFont + @"; 1229 } 1230 1231 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1232 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1233 }"; 1234 } 1235 else 1236 { 1237 CssString += @" 1238 .navbar-wp, .navbar-wp.affix, .navbar-wp .navbar-nav > li > a { 1239 background-color: " + ColorSettings.Color.Secondary + @"; 1240 } 1241 1242 .affix .dw-logotext, .affix .dw-slogantext, .dw-header-sm-title, .dw-offsetmenu-logo { 1243 color: " + GeneralSettings.Logo.SecondaryColor + @" !important; 1244 }"; 1245 } 1246 1247 if (GeneralSettings.Navigation.SelectionMode == "background" || GeneralSettings.Navigation.SelectionMode == "arrow"){ 1248 CssString += NavbarPosition(false, SelectionWeight); 1249 1250 CssString += @" 1251 .dw-navbar-button > a { 1252 background-color: transparent !important; 1253 } 1254 1255 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1256 background-color: " + ColorSettings.Color.Primary + @" !important; 1257 }"; 1258 } 1259 1260 if (GeneralSettings.Navigation.SelectionMode == "underline"){ 1261 CssString += NavbarPosition(true); 1262 1263 CssString += ClearBackground(); 1264 1265 CssString += @" 1266 .dw-navbar-button > a span:after { 1267 position: absolute; 1268 content: ''; 1269 left: 0px; 1270 bottom: 0px; 1271 height: " + SelectionWeight + @"px; 1272 width: 100%; 1273 transform: scaleX(0); 1274 transition: all 0.3s ease-in-out 0s; 1275 } 1276 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1277 color: " + ColorSettings.Color.Primary + @" !important; 1278 } 1279 1280 .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 { 1281 color: " + ColorSettings.Color.Primary + @" !important; 1282 transform: scaleX(1); 1283 transition: all 0.3s ease-in-out 0s; 1284 }"; 1285 } 1286 1287 if (GeneralSettings.Navigation.SelectionMode == "boxed"){ 1288 CssString += NavbarPosition(true, SelectionWeight); 1289 1290 CssString += @" 1291 .dw-navbar-button > a { 1292 background-color: transparent !important; 1293 } 1294 1295 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1296 background-color: " + ColorSettings.Color.Primary + @" !important; 1297 transition: all 0.3s ease-in-out 0s; 1298 }"; 1299 } 1300 1301 if (GeneralSettings.Navigation.SelectionMode == "border"){ 1302 CssString += NavbarPosition(true, 6, SelectionWeight); 1303 1304 CssString += ClearBackground(); 1305 1306 CssString += @" 1307 .dw-navbar-button > a { 1308 border: " + SelectionWeight + @"px solid transparent !important; transition: None !important; 1309 } 1310 1311 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1312 border-width: " + SelectionWeight + @"px !important; 1313 border-color: " + ColorSettings.Color.Primary + @" !important; 1314 transition: all 0.3s ease-in-out 0s; 1315 }"; 1316 } 1317 1318 if (GeneralSettings.Navigation.SelectionMode == "font"){ 1319 CssString += NavbarPosition(); 1320 1321 CssString += ClearBackground(); 1322 1323 SelectionWeight = (SelectionWeight*100); 1324 1325 CssString += @" 1326 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1327 color: " + ColorSettings.Color.Primary + @" !important; 1328 font-weight: " + SelectionWeight + @" !important; 1329 transition: all 0.3s ease-in-out 0s; 1330 }"; 1331 } 1332 1333 if (GeneralSettings.Navigation.Case){ 1334 CssString += @" 1335 .dw-navbar-button > a { 1336 text-transform: uppercase !important; 1337 }"; 1338 } 1339 else 1340 { 1341 CssString += @" 1342 .dw-navbar-button > a { 1343 text-transform: none !important; 1344 }"; 1345 } 1346 1347 1348 //Breadcrumb custom settings 1349 if (GeneralSettings.Navigation.BreadcrumbMode == "light") 1350 { 1351 CssString += @" 1352 .pg-opt { 1353 border-bottom: 0px; 1354 background: none repeat scroll 0% 0% #FFF; 1355 } 1356 1357 .dw-breadcrumb-title { 1358 font-size: 14px !important; 1359 padding: 5px 0px 5px 0px !important; 1360 } 1361 1362 .dw-breadcrumb { 1363 padding: 5px 0px 5px 0px !important; 1364 }"; 1365 } 1366 1367 if (GeneralSettings.Navigation.BreadcrumbMode == "normal") 1368 { 1369 CssString += @" 1370 .dw-breadcrumb-title { 1371 font-size: 14px !important; 1372 padding: 5px 0px 5px 0px !important; 1373 } 1374 1375 .dw-breadcrumb a, .pg-opt .breadcrumb { 1376 padding: 5px !important; 1377 }"; 1378 } 1379 1380 if (GeneralSettings.Navigation.BreadcrumbMode == "large") 1381 { 1382 CssString += @" 1383 .dw-breadcrumb-title { 1384 font-size: 22px !important; 1385 padding: 15px 0px 15px 0px !important; 1386 } 1387 1388 .dw-breadcrumb { 1389 padding: 15px !important; 1390 }"; 1391 } 1392 1393 1394 if (GeneralSettings.Navigation.BreadcrumbAlign == "right") 1395 { 1396 CssString += @" 1397 .dw-breadcrumb { 1398 float: right !important; 1399 }"; 1400 } 1401 else 1402 { 1403 CssString += @" 1404 .dw-breadcrumb { 1405 float: left !important; 1406 }"; 1407 } 1408 1409 1410 //Left menu custom settings 1411 if (GeneralSettings.Navigation.LeftmenuMode == "light" || GeneralSettings.Navigation.LeftmenuMode == "light-color") 1412 { 1413 CssString += @" 1414 ul.dw-categories > li > ul > li > a { 1415 padding: 5px 35px; 1416 } 1417 1418 ul.dw-categories, ul.dw-categories > li, ul.dw-categories > li > ul > li { 1419 border: 0px solid #EEE; 1420 } 1421 1422 ul.dw-categories > li > ul { 1423 background: none repeat scroll 0% 0% #FFF; 1424 } 1425 1426 ul.dw-categories li a:hover, ul.dw-categories li a:focus, ul.dw-categories li a:active { 1427 background-color: #FFF !important; 1428 color: " + ColorSettings.Color.Primary + @" !important; 1429 } 1430 1431 .list-active, .list-active > a { 1432 background-color: #FFF; 1433 color: " + ColorSettings.Color.Primary + @" !important; 1434 } 1435 1436 .list-open-active { 1437 background-color: #FFF; 1438 color: " + ColorSettings.Color.Primary + @" !important; 1439 }"; 1440 } 1441 1442 if (GeneralSettings.Navigation.LeftmenuMode == "lines") 1443 { 1444 CssString += @" 1445 ul.dw-categories > li { 1446 border-bottom: 1px solid #EEE; 1447 } 1448 1449 ul.dw-categories { 1450 border: 0px solid #EEE; 1451 } 1452 1453 ul.dw-categories > li > ul { 1454 background: none repeat scroll 0% 0% #FFF; 1455 } 1456 1457 ul.dw-categories li a:hover, a:focus, a:active { 1458 background-color: #FFF !important; 1459 color: " + ColorSettings.Color.Primary + @" !important; 1460 } 1461 1462 .list-active, .list-active > a { 1463 background-color: #FFF; 1464 color: " + ColorSettings.Color.Primary + @" !important; 1465 } 1466 1467 .list-open-active { 1468 background-color: #FFF; 1469 color: " + ColorSettings.Color.Primary + @" !important; 1470 }"; 1471 } 1472 1473 if (GeneralSettings.Navigation.LeftmenuMode == "boxed") 1474 { 1475 CssString += @" 1476 ul.dw-categories, ul.dw-categories > li, ul.dw-categories > li > ul > li { 1477 border: 0px solid #EEE; 1478 } 1479 1480 .list-active, .list-active > a { 1481 background-color: " + ColorSettings.Color.Primary + @" !important; 1482 color: #FFF; 1483 }"; 1484 } 1485 1486 if (GeneralSettings.Navigation.LeftmenuMode == "border") 1487 { 1488 CssString += @" 1489 ul.dw-categories > li { 1490 border: 1px solid #EEE; 1491 } 1492 1493 ul.dw-categories > li > ul > li { 1494 border-top: 1px solid #EEE; 1495 } 1496 1497 .list-active, .list-active > a { 1498 background-color: " + ColorSettings.Color.Primary + @" !important; 1499 color: #FFF; 1500 }"; 1501 } 1502 1503 if (GeneralSettings.Navigation.LeftmenuMode == "light-color") 1504 { 1505 CssString += @" 1506 ul.dw-categories li a:hover, ul.dw-categories a:focus, ul.dw-categories a:active { 1507 border-left: 6px solid " + ColorSettings.Color.Primary + @"; 1508 } 1509 1510 ul.dw-categories .list-active > a { 1511 border-left: 6px solid " + ColorSettings.Color.Primary + @"; 1512 } 1513 1514 .btn-dw:hover, .btn-dw:focus, .btn-dw:active { 1515 1516 }"; 1517 } 1518 1519 1520 //Buttons custom designs 1521 if (GeneralSettings.Navigation.ButtonDesign == "light-rounded") 1522 { 1523 CssString += @" 1524 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1525 border-width: 0px; 1526 } 1527 1528 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1529 background-color: " + ColorSettings.Color.Secondary + @"; 1530 color: #FFF; 1531 border-width: 0px; 1532 } 1533 1534 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1535 background-color: " + ColorSettings.Color.Primary + @"; 1536 color: #FFF; 1537 border-width: 0px; 1538 } 1539 1540 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1541 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1542 color: #FFF; 1543 border-width: 0px; 1544 }"; 1545 } 1546 1547 if (GeneralSettings.Navigation.ButtonDesign == "corners") 1548 { 1549 CssString += @" 1550 .btn-dw-primary, .btn-dw-secondary, btn-dw-cart , .btn-dw-cart { 1551 border-radius: 0px !important; 1552 border-width: 0px; 1553 } 1554 1555 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1556 background-color: " + ColorSettings.Color.Secondary + @"; 1557 color: #FFF; 1558 border-width: 0px; 1559 } 1560 1561 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1562 background-color: " + ColorSettings.Color.Primary + @"; 1563 color: #FFF; 1564 border-width: 0px; 1565 } 1566 1567 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1568 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1569 color: #FFF; 1570 border-width: 0px; 1571 }"; 1572 } 1573 1574 if (GeneralSettings.Navigation.ButtonDesign == "round") 1575 { 1576 CssString += @" 1577 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1578 padding: 5px 15px; 1579 border-radius: 200px !important; 1580 border-width: 0px !important; 1581 } 1582 1583 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1584 background-color: " + ColorSettings.Color.Secondary + @"; 1585 color: #FFF; 1586 border-width: 0px !important; 1587 } 1588 1589 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1590 background-color: " + ColorSettings.Color.Primary + @"; 1591 color: #FFF; 1592 border-width: 0px !important; 1593 } 1594 1595 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1596 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1597 color: #FFF; 1598 border-width: 0px !important; 1599 }"; 1600 } 1601 1602 if (GeneralSettings.Navigation.ButtonDesign == "border") 1603 { 1604 CssString += @" 1605 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1606 background-color: transparent; 1607 } 1608 1609 .btn-dw-primary { 1610 border-width: 4px; 1611 padding: 3px 10px; 1612 color: " + ColorSettings.Color.Primary + @"; 1613 } 1614 1615 .btn-dw-secondary { 1616 border-width: 2px; 1617 color: " + ColorSettings.Color.Secondary + @"; 1618 } 1619 1620 .btn-dw-cart { 1621 border-width: 4px; 1622 padding: 3px 10px; 1623 color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1624 } 1625 1626 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1627 background-color: " + ColorSettings.Color.Primary + @"; 1628 border-width: 4px; 1629 padding: 3px 10px; 1630 border-color: " + ColorSettings.Color.Primary + @"; 1631 color: #FFF; 1632 } 1633 1634 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1635 background-color: " + ColorSettings.Color.Primary + @"; 1636 border-width: 2px; 1637 color: #FFF; 1638 border-color: #FFF; 1639 } 1640 1641 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1642 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1643 border-width: 4px; 1644 padding: 3px 10px; 1645 border-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1646 color: #FFF; 1647 }"; 1648 } 1649 1650 if (GeneralSettings.Navigation.ButtonDesign == "border-sharp" || GeneralSettings.Navigation.ButtonDesign == "border-round") 1651 { 1652 CssString += @" 1653 .btn-dw-primary, .btn-dw-secondary, .btn-dw-cart { 1654 background-color: transparent; 1655 } 1656 1657 .btn-dw-primary { 1658 border-width: 4px; 1659 padding: 3px 15px; 1660 color: " + ColorSettings.Color.Primary + @"; 1661 } 1662 1663 .btn-dw-secondary { 1664 border-width: 2px; 1665 padding: 5px 15px; 1666 color: " + ColorSettings.Color.Secondary + @"; 1667 } 1668 1669 .btn-dw-cart { 1670 border-width: 4px; 1671 padding: 3px 15px; 1672 color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1673 } 1674 1675 .btn-dw-primary:hover, .btn-dw-primary:focus, .btn-dw-primary:active { 1676 background-color: " + ColorSettings.Color.Primary + @"; 1677 border-width: 4px; 1678 color: #FFF; 1679 padding: 3px 15px; 1680 border-color: " + ColorSettings.Color.Primary + @"; 1681 } 1682 1683 .btn-dw-secondary:hover, .btn-dw-secondary:focus, .btn-dw-secondary:active { 1684 background-color: " + ColorSettings.Color.Primary + @"; 1685 border-width: 2px; 1686 color: #FFF; 1687 padding: 5px 15px; 1688 border-color: #FFF; 1689 } 1690 1691 .btn-dw-cart:hover, .btn-dw-cart:focus, .btn-dw-cart:active { 1692 background-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1693 border-width: 4px; 1694 color: #FFF; 1695 padding: 3px 15px; 1696 border-color: " + GetString("Item.Area.EcommerceCartButtonColor.Color") + @"; 1697 }"; 1698 } 1699 1700 if (GeneralSettings.Navigation.ButtonDesign == "border-sharp") 1701 { 1702 CssString += @" 1703 .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 { 1704 border-radius: 0px !important; 1705 }"; 1706 } 1707 1708 if (GeneralSettings.Navigation.ButtonDesign == "border-round") 1709 { 1710 CssString += @" 1711 .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 { 1712 border-radius: 200px !important; 1713 }"; 1714 } 1715 1716 1717 //Headings custom settings 1718 if (GeneralSettings.Headings.Mode == "underline") 1719 { 1720 CssString += @" 1721 .dw-section-title { 1722 border-bottom: 2px solid; 1723 margin-bottom: 15px; 1724 }"; 1725 } 1726 1727 if (GeneralSettings.Headings.Mode == "boxed" || GeneralSettings.Headings.Mode == "boxed-line") 1728 { 1729 CssString += @" 1730 .dw-section-title span { 1731 background-color: " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 1732 display: inline-block; 1733 padding: 8px 16px; 1734 color: #FFF; 1735 }"; 1736 1737 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 1738 { 1739 CssString += @" 1740 .dw-section-title { 1741 background-color: " + ColorSettings.Color.Primary + @"; 1742 }"; 1743 } 1744 } 1745 1746 if (GeneralSettings.Headings.Mode == "boxed-line") 1747 { 1748 CssString += @" 1749 .dw-section-title span { 1750 margin-bottom: 2px; 1751 } 1752 1753 .dw-section-title { 1754 border-bottom: 2px solid " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 1755 margin-bottom: 10px; 1756 }"; 1757 1758 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 1759 { 1760 CssString += @" 1761 .dw-section-title { 1762 border-bottom: 2px solid " + ColorSettings.Color.Primary + @"; 1763 }"; 1764 } 1765 } 1766 1767 if (GeneralSettings.Headings.Mode == "outline") 1768 { 1769 CssString += @" 1770 .dw-section-title { 1771 color: #FFF; 1772 text-shadow: 1773 -1px -1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 1774 1px -1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 1775 -1px 1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @", 1776 1px 1px 0 " + GetString("Item.Area.HeadingsH1.Color.Color") + @"; 1777 }"; 1778 1779 if (string.IsNullOrWhiteSpace(GetString("Item.Area.HeadingsH1.Color.Color"))) 1780 { 1781 CssString += @" 1782 .dw-section-title { 1783 text-shadow: 1784 -1px -1px 0 #1A1A1A, 1785 1px -1px 0 #1A1A1A, 1786 -1px 1px 0 #1A1A1A, 1787 1px 1px 0 #1A1A1A; 1788 }"; 1789 } 1790 } 1791 1792 if (GeneralSettings.Headings.Mode == "backline") 1793 { 1794 CssString += @" 1795 .dw-section-title { 1796 text-align: center; 1797 border-bottom: 2px solid; 1798 padding: 0; 1799 margin: 50px 0 30px; 1800 line-height: 0em !important; 1801 } 1802 1803 .dw-section-title > span { 1804 background-color: #FFF; 1805 padding: 0 16px; 1806 } 1807 1808 .dw-section-title-small { 1809 margin: 8px 0 20px; 1810 }"; 1811 } 1812 1813 if (GeneralSettings.Ecommerce.EcomCardDesign == "one") 1814 { 1815 1816 } 1817 1818 if (GeneralSettings.Ecommerce.EcomCardDesign == "two") 1819 { 1820 CssString += @" 1821 .product { 1822 border: 1px solid #E5E5E5; 1823 }"; 1824 } 1825 1826 return CssString; 1827 } 1828 1829 private string ClearBackground() { 1830 string CssString = ""; 1831 1832 CssString += @" 1833 .dw-navbar-button > a { 1834 background-color: rgba(0, 0, 0, 0.0) !important; 1835 } 1836 1837 .dw-navbar-button > a:hover, dw-navbar-button > a:active, dw-navbar-button > a:focus, .active > a { 1838 background-color: rgba(0, 0, 0, 0.0) !important; 1839 }"; 1840 1841 return CssString; 1842 } 1843 1844 private string NavbarPosition(bool margin=false, int specialpadding=6, int extramargin=0) { 1845 int LogoHeight = 0; 1846 string CssString = ""; 1847 int Centerpos = 0; 1848 1849 if (GeneralSettings.Header.Mode != "solid"){ 1850 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 1851 { 1852 LogoHeight = ImageHeight(); 1853 } 1854 else 1855 { 1856 LogoHeight = GetInteger("Item.Area.LogoFont.Size"); 1857 } 1858 } 1859 else 1860 { 1861 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 1862 { 1863 LogoHeight = 18; 1864 } 1865 else 1866 { 1867 LogoHeight = GetInteger("Item.Area.LogoFont.Size")-10; 1868 } 1869 } 1870 1871 if (margin == false) 1872 { 1873 Centerpos = (LogoHeight/2) + 6; 1874 1875 CssString += @" 1876 .dw-navbar-button > a, .navbar-wp.affix .navbar-nav > li > a { 1877 padding: " + Centerpos + @"px " + (specialpadding+4) + @"px " + Centerpos + @"px " + (specialpadding+4) + @"px !important; 1878 margin: " + extramargin + @"px " + extramargin + @"px !important; 1879 }"; 1880 } 1881 else 1882 { 1883 Centerpos = ((LogoHeight/2)+6)-(specialpadding+extramargin); 1884 1885 CssString += @" 1886 .dw-navbar-button > a, .navbar-wp.affix .navbar-nav > li > a { 1887 padding: " + specialpadding + @"px " + (specialpadding+4) + @"px " + specialpadding + @"px " + (specialpadding+4) + @"px !important; 1888 margin: " + Centerpos + @"px 4px 0px 4px !important; 1889 }"; 1890 } 1891 1892 return CssString; 1893 } 1894 1895 private int ImageHeight () 1896 { 1897 int LogoHeight = 0; 1898 1899 if (!string.IsNullOrWhiteSpace(GetString("Item.Area.GeneralLogo"))) 1900 { 1901 string imageUrl = "http://" + HttpContext.Current.Request.Url.Authority + GetString("Item.Area.GeneralLogo"); 1902 1903 WebRequest request = WebRequest.Create(imageUrl); 1904 WebResponse response = request.GetResponse(); 1905 Image image = Image.FromStream(response.GetResponseStream()); 1906 1907 LogoHeight = image.Height; 1908 } 1909 else 1910 { 1911 LogoHeight = 38; 1912 } 1913 1914 return LogoHeight; 1915 } 1916 } 1917 1918 1919 1920 @{ 1921 InitGeneralSettings(); 1922 } 1923 1924 @if (writeCss) 1925 { 1926 css += FontStylesCSS() + "/*Colors*/" + Environment.NewLine + GetColorSettings() + Environment.NewLine + "/*General*/" + Environment.NewLine + GetGeneralCSS(); 1927 Dynamicweb.Base.WriteTextFile(css, HttpContext.Current.Server.MapPath("/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.css"), false); 1928 //Dynamicweb.Base.WriteTextFile(RemoveWhiteSpaceFromStylesheets(Dynamicweb.Base.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); 1929 Dynamicweb.Base.WriteTextFile(RemoveWhiteSpaceFromStylesheets(css), cssPath, false); 1930 } 1931 1932 @functions{ 1933 public static string RemoveWhiteSpaceFromStylesheets(string body) 1934 { 1935 body = Regex.Replace(body, @"[a-zA-Z]+#", "#"); 1936 body = Regex.Replace(body, @"[\n\r]+\s*", string.Empty); 1937 body = Regex.Replace(body, @"\s+", " "); 1938 body = Regex.Replace(body, @"\s?([:,;{}])\s?", "$1"); 1939 body = body.Replace(";}", "}"); 1940 body = Regex.Replace(body, @"([\s:]0)(px|pt|%|em)", "$1"); 1941 body = Regex.Replace(body, @"/\*[\d\D]*?\*/", string.Empty); 1942 return body; 1943 } 1944 } 1945 1946 <!-- Template styles --> 1947 @{ string cssAutoPath = "/Files/Templates/Designs/Dwsimple/css/DWGlobalStylesSite" + GetString("DwAreaID") + "_auto.min.css?t=@areaUpdated.Ticks"; } 1948 <link id="dwStylesheet" type="text/css" href="/Files/Templates/Designs/Dwsimple/css/DWGlobalStyles.min.css" rel="stylesheet" media="screen"> 1949 <link type="text/css" href="@cssAutoPath" rel="stylesheet"> 1950 <!-- Analytics code --> 1951 @GetValue("Item.Area.OtherAnalyticsCode") 1952 <!-- Casper Andersen start --> 1953 <!-- Essential styles --> 1954 <link href="/Files/Templates/Designs/Dwsimple/css/MyCss.css" rel="stylesheet"> 1955 <!--<link href="css/ccCustom.css" rel="stylesheet" />--> 1956 <script src="/Files/Templates/Designs/Dwsimple/js/Jquery.js" async=""></script> 1957 <script src="/Files/Templates/Designs/Dwsimple/js/headCoreJs.js" defer=""></script> 1958 <script src="/Files/Templates/Designs/Dwsimple/js/headLoadJs.js" defer=""></script> 1959 <script src="/Files/Templates/Designs/Dwsimple/js/Bootstrap.js" defer=""></script> 1960 <script src="/Files/Templates/Designs/Dwsimple/js/BootstrapJasny.js" defer=""></script> 1961 <script src="/Files/Templates/Designs/Dwsimple/js/JSFile.js" defer=""></script> 1962 <script src="https://kit.fontawesome.com/2d6ebc736a.js" crossorigin="anonymous"></script> 1963 1964 <!-- Casper Andersen end --> 1965 1966 <!-- Dan Vester - Green.Click --> 1967 <!-- Google Tag Manager --> 1968 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 1969 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 1970 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 1971 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 1972 })(window,document,'script','dataLayer','GTM-M37DXW3');</script> 1973 <!-- End Google Tag Manager --> 1974 1975 <!-- Mailchimp popup start--> 1976 <!--<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us13.list-manage.com","uuid":"1312c0d749b4aee8cf27d03f4","lid":"0de92fbd8e","uniqueMethods":true}) })</script>--> 1977 <!-- Mailchimp popup end--> 1978 1979 @GetValue("Stylesheets") 1980 @GetValue("Javascripts") 1981 </head> 1982 <body style="@GeneralSettings.Background.Style" id="sitecontent"> 1983 <script type="text/javascript" src="https://secure.leadforensics.com/js/124798.js"></script> 1984 <noscript><img src="https://secure.leadforensics.com/124798.png" style="display:none;"></noscript> 1985 <!-- Google Tag Manager (noscript) --> 1986 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M37DXW3" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 1987 <!-- End Google Tag Manager (noscript) --> 1988 <a style="z-index:10000;" data-toggle="modal" data-target="#MailChimpNewsletterModal"><div class="envelope"><i class="fa fa-newspaper-o" aria-hidden="true"></i></div></a> 1989 <!-- MODALS --> 1990 <div class="modal fade" id="MailChimpNewsletterModal" tabindex="-1" role="dialog"> 1991 <div class="modal-dialog"> 1992 <div class="modal-content"> 1993 <div class="modal-header"> 1994 <button type="button" class="close" data-dismiss="modal">x</button> 1995 <h2 class="modal-title" id="MailChimpNewsletterModalLabel">@Translate("Nyhedsbrev", "Nyhedsbrev")</h2> 1996 </div> 1997 <div class="modal-body"> 1998 <!-- Begin MailChimp Signup Form --> 1999 <div id="mc_embed_signup"> 2000 <form action="https://cleverchoice.us13.list-manage.com/subscribe/post?u=1312c0d749b4aee8cf27d03f4&amp;id=0de92fbd8e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank"> 2001 <div id="mc_embed_signup_scroll"> 2002 <div id="NewsletterPretext"> 2003 @GetValue("Item.Area.Newsletter_Text") 2004 </div> 2005 <div class="indicates-required form-group"> 2006 <span class="asterisk NewsletterPretext">*</span> 2007 <span class="NewsletterPretext">@Translate("Påkrævet", "Påkrævet")<span> 2008 </span></span></div> 2009 <div class="mc-field-group form-group"> 2010 <label for="MERGE0" class="NewsletterLabel">@Translate("Email","Email") <span class="asterisk">*</span></label> 2011 <input type="email" value="" name="MERGE0" required="required" class="required email form-control" id="MERGE0"> 2012 </div> 2013 <div class="mc-field-group form-group"> 2014 <label for="MERGE1" class="NewsletterLabel">@Translate("Fornavn", "Fornavn") <span class="asterisk">*</span></label> 2015 <input type="text" value="" name="MERGE1" required="required" class="required form-control" id="MERGE1"> 2016 </div> 2017 <div class="mc-field-group form-group"> 2018 <label for="MERGE2" class="NewsletterLabel">@Translate("Efternavn", "Efternavn") <span class="asterisk">*</span></label> 2019 <input type="text" value="" name="MERGE2" required="required" class="required form-control" id="mce-MERGE2"> 2020 </div> 2021 <div class="mc-field-group form-group"> 2022 <label for="MERGE7" class="NewsletterLabel">@Translate("Firma", "Firma") <span class="asterisk">*</span></label> 2023 <input type="text" value="" name="MERGE7" required="required" class="required form-control" id="MERGE7"> 2024 </div> 2025 <div class="mc-field-group form-group"> 2026 <label for="MERGE8" class="NewsletterLabel">@Translate("Teknisk Nyhedsbrev", "Teknisk Nyhedsbrev")</label> 2027 <input type="checkbox" value="Ja" name="MERGE8" class="checkbox" id="MERGE8"> 2028 </div> 2029 <div id="mce-responses" class="clear"> 2030 <div class="response" id="mce-error-response" style="display:none"></div> 2031 <div class="response" id="mce-success-response" style="display:none"></div> 2032 </div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> 2033 <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_1312c0d749b4aee8cf27d03f4_99ba6757c9" tabindex="-1" value=""></div> 2034 <div class="clear"><input type="submit" value='@Translate("Tilmeld","Tilmeld")' name="subscribe" id="mc-embedded-subscribe" class="button btn btn-default NewsletterPretext"></div> 2035 </div> 2036 </form> 2037 </div> 2038 </div> 2039 </div> 2040 </div> 2041 </div> 2042 2043 <div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 2044 <div class="modal-dialog modal-sm"> 2045 <div class="modal-content"> 2046 <div class="modal-header"> 2047 <h4 class="modal-title" id="myModalLabel">@Translate("Login", "Login")</h4> 2048 </div> 2049 <form role="form" id="loginform" method="post"> 2050 <div class="modal-body"> 2051 @if (!string.IsNullOrWhiteSpace(GetString("DW_extranet_error_uk"))) 2052 { 2053 <script>alert("@GetValue("DW_extranet_error_uk")");</script> 2054 } 2055 2056 <input type="hidden" name="ID" value="@Pageview.ID"> 2057 <input type="hidden" name="DWExtranetUsernameRemember" value="True"> 2058 <input type="hidden" name="DWExtranetPasswordRemember" value="True"> 2059 <div class="form-group"> 2060 @{ attrValue = Translate("Enter username", "Enter username"); 2061 var username2 = @GetValue("DWExtranetUsername"); 2062 } 2063 2064 <label for="username">@Translate("Email address", "Email address")</label> 2065 <input type="text" class="form-control" name="username" id="username" placeholder="@attrValue" value="@username2"> 2066 </div> 2067 <div class="form-group"> 2068 @{ attrValue = Translate("Enter password", "Enter password"); 2069 } 2070 2071 <label for="password">@Translate("Password", "Password")</label> 2072 <input type="password" class="form-control" name="password" id="password" placeholder="@attrValue"> 2073 <p>&nbsp;</p> 2074 <a class="pull-left" href="/Default.aspx?ID=@loginpageid&LoginAction=Recovery">@Translate("Forgot your password?", "Forgot your password?")</a> 2075 &nbsp; 2076 </div> 2077 </div> 2078 <div class="modal-footer"> 2079 <div class="row"> 2080 <div class="col-md-12"> 2081 <div class="checkbox pull-left"> 2082 <label> 2083 <input type="checkbox" name="Autologin" checked="checked" value="True"> @Translate("Remember me", "Remember me") 2084 </label> 2085 </div> 2086 <button type="submit" class="btn btn-xs btn-base pull-right">@Translate("Sign in", "Sign in")</button> 2087 </div> 2088 </div> 2089 </div> 2090 @if (GetLoop("DWExtranetExternalLoginProviders").Count != 0) 2091 { 2092 <div class="modal-footer"> 2093 <div class="row"> 2094 <div class="col-md-12"> 2095 <div class="pull-left">@Translate("Or sign in using", "Or sign in using"):</div> 2096 <p>&nbsp;</p> 2097 </div> 2098 </div> 2099 2100 <div class="row"> 2101 <div class="col-md-12"> 2102 @foreach (LoopItem LoginProvider in GetLoop("DWExtranetExternalLoginProviders")) 2103 { 2104 var ProviderName = LoginProvider.GetString("ProviderName").ToLower(); 2105 var ProviderID = LoginProvider.GetValue("ProviderID"); 2106 <a href='/Admin/Public/Social/ExternalLogin.aspx?action=login&amp;providerID=@ProviderID' class="btn btn-xs btn-base pull-left"><i class="fa fa-@ProviderName"></i>@LoginProvider.GetString("ProviderName")</a><text>&nbsp;&nbsp;&nbsp;</text> 2107 } 2108 </div> 2109 </div> 2110 </div> 2111 } 2112 </form> 2113 </div> 2114 </div> 2115 </div> 2116 <!-- MOBILE MENU --> 2117 @{ 2118 var offsetmenuplace = "left"; 2119 2120 if (GeneralSettings.Header.Mode == "mobile") 2121 { 2122 offsetmenuplace = GeneralSettings.Navigation.Position; 2123 } 2124 } 2125 2126 <div id="myNavmenu" class="navmenu navmenu-default navmenu-fixed-@offsetmenuplace offcanvas"> 2127 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2128 <div class="row offcanvas-row">&nbsp;</div> 2129 <div class="row offcanvas-row"> 2130 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2131 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 2132 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2133 { 2134 <div class="img-responsive dw-offsetmenu-logo pull-left"> 2135 @if (GeneralSettings.Logo.ContrastImage != GeneralSettings.Logo.Image) 2136 { 2137 <img src="@GeneralSettings.Logo.ContrastImage" alt="Logo"> 2138 } 2139 else { 2140 <img src="@GeneralSettings.Logo.Image" alt="Logo"> 2141 } 2142 </div> 2143 } 2144 2145 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 2146 { 2147 <div class="dw-logotext dw-offsetmenu-logo pull-left">@GeneralSettings.Logo.Text</div> 2148 } 2149 </a> 2150 </div> 2151 </div> 2152 <div class="row offcanvas-row">&nbsp;</div> 2153 </div> 2154 2155 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2156 @if (GetBoolean("Item.Area.EcomEnabled")) 2157 { 2158 <div class="row offcanvas-row"> 2159 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2160 <form method="get" action="Default.aspx"> 2161 <input type="hidden" name="ID" value="8399"> 2162 <div class="input-group"> 2163 <input type="text" class="form-control" name="eComQuery" tabindex="1" placeholder='Søg'> 2164 <span class="input-group-btn"> 2165 <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i></button> 2166 </span> 2167 </div> 2168 </form> 2169 </div> 2170 </div> 2171 <div class="row offcanvas-row">&nbsp;</div> 2172 <div class="row offcanvas-row"> 2173 @*<div class="col-sm-12 col-xs-12 offcanvas-col"> 2174 @if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2175 { 2176 <div class="pull-left"> 2177 <a href="Default.aspx?ID=@loginpageid" class="btn btn-sm btn-default"><i class="fa fa-sign-in"></i> @Translate("Sign in", "Sign in")</a> 2178 </div> 2179 } 2180 2181 @if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2182 { 2183 <div class="pull-left"> 2184 <a href="Default.aspx?ID=8473" class="btn btn-sm btn-default"> 2185 <i class="fa fa-user"></i> <strong>@GetGlobalValue("Global:Extranet.Name")</strong> 2186 </a> 2187 </div> 2188 <div class="pull-left"> 2189 <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.ID"><button class="btn btn-sm btn-default"><i class="fa fa-sign-out"></i> @Translate("Sign out", "Sign out")</button></a> 2190 </div> 2191 } 2192 </div>*@ 2193 </div> 2194 <div class="row offcanvas-row">&nbsp;</div> 2195 } 2196 </div> 2197 2198 2199 <div class="row offcanvas-row"> 2200 <div class="col-sm-12 col-xs-12 offcanvas-col"> 2201 @GetValue("DwNavigation(drawernavigation)") 2202 <ul class="nav nav-pills nav-stacked"> 2203 <li class="offcanvas-menubtn"> 2204 <div style="position: relative;display: block;padding: 10px 15px;"> 2205 <form action="Default.aspx" method="get" name="SearchForm1"> 2206 <input type="hidden" name="ID" value='@GetValue("DwAreaSearchPageID")'> 2207 <div class="input-group"> 2208 <input type="text" name="q" class="form-control" placeholder='@Translate("Search Placeholder", "Search Placeholder")'> 2209 <span class="input-group-btn" style="top:0px !important"> 2210 <button class="btn btn-default" type="submit">@Translate("Search Button", "Search Button")</button> 2211 </span> 2212 </div><!-- /input-group --> 2213 </form> 2214 </div> 2215 </li> 2216 </ul> 2217 </div> 2218 </div> 2219 </div> 2220 2221 <!-- HEADER AND CONTENT--> 2222 2223 <div class="body-wrap shad @GeneralSettings.Site.LayoutMode"> 2224 2225 <!-- HEADER --> 2226 <div id="divHeaderWrapper"> 2227 <header class="@GeneralSettings.Header.Classes"> 2228 2229 <!-- MAIN NAV --> 2230 @{ 2231 var sticky = GeneralSettings.Navigation.StickyMenu; 2232 var stickyTrigger = "affix"; 2233 var navbarpos = GeneralSettings.Navigation.Position; 2234 var selectionstyle = GeneralSettings.Navigation.SelectionStyle; 2235 2236 if (sticky == "off") 2237 { 2238 stickyTrigger = ""; 2239 } 2240 } 2241 <div> 2242 <!-- TOP HEADER --> 2243 @if (GeneralSettings.Header.Show) 2244 { 2245 <div class="top-header"> 2246 <div class="container"> 2247 <div class="row"> 2248 <div class="col-md-3 logobox"> 2249 @if (GeneralSettings.Header.Mode == "solid") 2250 { 2251 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 2252 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2253 { 2254 <img class="img-responsive dw-logoimage pull-left" src="@GeneralSettings.Logo.Image" alt="Logo"> 2255 } 2256 2257 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 2258 { 2259 <div class="dw-logotext pull-left">@GeneralSettings.Logo.Text</div> 2260 } 2261 </a> 2262 2263 if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Slogan)) 2264 { 2265 <div class="dw-slogantext pull-left">@GeneralSettings.Logo.Slogan</div> 2266 } 2267 } 2268 </div> 2269 <div class="col-md-8 col-md-offset-1 logobox"> 2270 <!-- Casper6060 --> 2271 <div class="pull-right SupportButtonGrouping"> 2272 2273 <button type="button" class="MailChimpNewsletterButton btn btn-info btn-default" data-toggle="modal" data-target="#MailChimpNewsletterModal">@Translate("Nyhedsbrev", "Nyhedsbrev")</button> 2274 <!-- Trigger the modal with a button --> 2275 <a href="tel:+4522102043" class="SupportModalButton btn btn-info btn-default">@Translate("SupportTelefonNummer", "SupportTelefonNummer")</a> 2276 2277 <a href="tel:+4522102040" class="SupportModalButton btn btn-info btn-default">@Translate("TelefonNummer", "TelefonNummer")</a> 2278 2279 <button type="button" class="SupportModalButton btn btn-info btn-default" data-toggle="modal" data-target="#SupportModal">@Translate("Support Button", "Support Button")</button> 2280 2281 <!-- Modal --> 2282 <div id="SupportModal" class="SupportModal modal fade" role="dialog"> 2283 <div class="modal-dialog modal-lg"> 2284 2285 <!-- Modal content--> 2286 <div class="modal-content"> 2287 <div class="modal-header"> 2288 <button type="button" class="close" data-dismiss="modal">&times;</button> 2289 <span class="modal-title SupportTitle">@Translate("Support", "Support")</span> 2290 </div> 2291 <div class="modal-body"> 2292 <div class="col-xs-12 col-sm-6 col-md-4 SupportBox"> 2293 <div class="OuterBox"> 2294 <p class="SupportBoxTitel">@Translate("GetHelpWith", "GetHelpWith")</p> 2295 <div class="InnerBox"> 2296 <i class="fas fa-question-circle" style="width:35%;height:auto;color:#003366 !important;"></i> 2297 </div> 2298 <div class="figure"> 2299 <ul> 2300 @GetValue("Item.Area.Get_Help_Text") 2301 </ul> 2302 </div> 2303 </div> 2304 </div> 2305 <div class="col-xs-12 col-sm-6 col-md-4 SupportBox"> 2306 <div class="OuterBox"> 2307 <p class="SupportBoxTitel">@Translate("Servicedesk", "Servicedesk")</p> 2308 <div class="InnerBox"> 2309 <a href='@GetValue("Item.Area.Servicedesk_Login")' id="CustomerSupport"> 2310 <i class="fas fa-unlock" style="width:35%;height:auto;"></i> 2311 </a> 2312 </div> 2313 <div class="figure"> 2314 @GetValue("Item.Area.Servicedesk") 2315 </div> 2316 </div> 2317 </div> 2318 <div class="col-xs-12 col-sm-6 col-md-4 SupportBox"> 2319 <div class="OuterBox"> 2320 <p class="SupportBoxTitel">@Translate("ContactUs", "ContactUs")</p> 2321 <div class="InnerBox"> 2322 <i class="fas fa-headset" style="width:35%;height:auto;color:#003366 !important;"></i> 2323 </div> 2324 <div class="figure"> 2325 @GetValue("Item.Area.Contact_Us") 2326 </div> 2327 </div> 2328 </div> 2329 2330 @*GetValue("Item.Area.Support_Text.Value")*@ 2331 </div> 2332 <div class="modal-footer"> 2333 <button type="button" class="btn btn-default" data-dismiss="modal">@Translate("Close","Close")</button> 2334 </div> 2335 </div> 2336 </div> 2337 </div> 2338 </div>@* Casper6060 sprog 2339 <ul class="nav lang-selector pull-right"> 2340 @foreach (var language in GetLoop("Languages")) 2341 { 2342 string culture = language.GetString("Culture"); 2343 string languageImage = "/Admin/Images/Flags/flag_" + culture.Substring(3).ToLower() + ".png"; 2344 if (!language.GetBoolean("IsCurrent")) 2345 { 2346 string languagePage = (language.GetBoolean("PageIsHidden")) ? language.GetString("FirstPageID") : language.GetString("PageID"); 2347 <li class="pull-left flags @culture.Substring(3).ToUpper()"><a href="Default.aspx?ID=@languagePage" hreflang="@culture.Substring(3).ToUpper()"><img src="@languageImage" alt=""></a></li> 2348 } 2349 2350 else 2351 { 2352 string languagePage = (language.GetBoolean("PageIsHidden")) ? language.GetString("FirstPageID") : language.GetString("PageID"); 2353 <li class="pull-left flags @culture.Substring(3).ToUpper() active"><a href="Default.aspx?ID=@languagePage" hreflang="@culture.Substring(3).ToUpper()"><img src="@languageImage" alt=""></a></li> 2354 } 2355 } 2356 </ul>*@ 2357 </div> 2358 @* 2359 <div class="col-md-6 logobox"> 2360 <nav class="top-header-menu hidden-sm hidden-xs"> 2361 <ul class="top-menu"> 2362 2363 <!-- Ecommerce user menu --> 2364 @if (GetBoolean("Item.Area.EcomEnabled")) { 2365 if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2366 { 2367 <text> 2368 <li><a href="#" data-toggle="modal" data-target="#login">@Translate("Login", "Login")</a></li> 2369 @GetValue("DwNavigation(toolsnavigationNotloggedin)") 2370 </text> 2371 } 2372 2373 if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2374 { 2375 <text> 2376 <li> 2377 <a href="Default.aspx?ID=8473"> 2378 <nobr> 2379 <i class="fa fa-user"></i> <strong>@GetGlobalValue("Global:Extranet.Name")</strong> 2380 </nobr> 2381 </a> 2382 </li> 2383 <li> 2384 <a href='/Admin/Public/ExtranetLogoff.aspx?ID=@currentpageid'>@Translate("Logout", "Logout")</a> 2385 </li> 2386 </text> 2387 } 2388 } 2389 2390 2391 <!-- Ecommerce Cart --> 2392 @if (GetBoolean("Item.Area.EcomEnabled")) { 2393 <li class="dropdown animate-hover" data-animate="animated fadeInUp"> 2394 <a href="Default.aspx?ID=@cartid" title="" id="minipagecart" class="dw-minicart"><i class="fa fa-shopping-cart"></i> @GetValue("Ecom:Order.OrderLines.TotalProductQuantity") <span>@GetValue("Ecom:Order.OrderLines.Total.PriceWithVAT")</span></a> 2395 2396 <ul class="sub-menu"> 2397 <li id="minicart"> 2398 @MiniCart() 2399 </li> 2400 </ul> 2401 </li> 2402 } 2403 </ul> 2404 </nav> 2405 </div> 2406 *@ 2407 </div> 2408 </div> 2409 </div> 2410 } 2411 2412 <div id="navOne" class="navbar navbar-wp @selectionstyle navbar-fixed affix-top" role="navigation" data-spy="@stickyTrigger" data-offset-top="@sticky" data-offset-bottom="300"> 2413 <div class="container"> 2414 @if (GeneralSettings.Header.Mode != "solid" || !GeneralSettings.Header.Show) 2415 { 2416 <div class="navbar-header pull-@GeneralSettings.Navigation.InvertedPosition"> 2417 <div class="hidden-sm hidden-xs"> 2418 <a href="/Default.aspx?ID=@firstpageid" class="brand"> 2419 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Image)) 2420 { 2421 if (GeneralSettings.Logo.ContrastImage != GeneralSettings.Logo.Image) 2422 { 2423 <img class="img-responsive dw-logoimage dw-logoimage-normal pull-left" src="@GeneralSettings.Logo.Image" alt="Logo"> 2424 <img class="img-responsive dw-logoimage dw-logoimage-contrast pull-left" src="@GeneralSettings.Logo.ContrastImage" alt="Logo"> 2425 } 2426 else { 2427 <img class="img-responsive dw-logoimage pull-left" src="@GeneralSettings.Logo.Image" alt="Logo"> 2428 } 2429 } 2430 2431 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Text)) 2432 { 2433 <div class="dw-logotext pull-left">@GeneralSettings.Logo.Text</div> 2434 } 2435 </a> 2436 2437 @if (!string.IsNullOrWhiteSpace(GeneralSettings.Logo.Slogan)) 2438 { 2439 <div class="dw-slogantext pull-left">@GeneralSettings.Logo.Slogan</div> 2440 } 2441 </div> 2442 </div> 2443 } 2444 2445 @if (GeneralSettings.Header.Mode != "mobile") 2446 { 2447 <!-- Small screen header --> 2448 <div class="hidden-md hidden-lg row"> 2449 <div class="dw-header-sm"> 2450 <div class="pull-left"> 2451 <button type="button" class="btn btn-sm btn-base" data-toggle="offcanvas" data-target="#myNavmenu" data-canvas="body"> 2452 <i class="fa fa-bars"></i> 2453 </button> 2454 &nbsp;&nbsp;&nbsp; 2455 </div> 2456 2457 <div class="pull-left"> 2458 <h2 class="dw-header-sm-title">@GetGlobalValue("Global:Page.Top.Name")</h2> 2459 </div> 2460 2461 @*if (GetBoolean("Item.Area.EcomEnabled")) 2462 { 2463 2464 <div class="pull-right"> 2465 <ul class="top-menu"> 2466 <li> 2467 <a href="Default.aspx?ID=@cartid" title="" class="btn btn-sm btn-base dw-minicart" id="minipagecart-button"><i class="fa fa-shopping-cart"></i><strong> @GetValue("Ecom:Order.OrderLines.TotalProductQuantity") <span class="amount">@GetValue("Ecom:Order.OrderLines.Total.PriceWithVAT")</span></strong></a> 2468 2469 <ul class="sub-menu hidden-xs"> 2470 <li id="smallscreen-minicart"> 2471 @MiniCart() 2472 </li> 2473 </ul> 2474 </li> 2475 </ul> 2476 </div> 2477 if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2478 { 2479 <div class="hidden-xs pull-right"> 2480 <a href='/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.Page.ID'><button class="btn btn-sm btn-base"><i class="fa fa-sign-out"></i></button></a> 2481 &nbsp; 2482 </div> 2483 <div class="hidden-xs pull-right"> 2484 <a href="Default.aspx?ID=8473" class="btn btn-sm btn-base"> 2485 <i class="fa fa-user"></i> <strong>@GetGlobalValue("Global:Extranet.Name")</strong> 2486 </a> 2487 &nbsp; 2488 </div> 2489 } 2490 2491 if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2492 { 2493 <div class="hidden-xs pull-right"> 2494 <a href="Default.aspx?ID=@loginpageid" class="btn btn-sm btn-base"><i class="fa fa-sign-in"></i></a> 2495 &nbsp; 2496 </div> 2497 } 2498 }*@ 2499 </div> 2500 </div> 2501 2502 <!-- Big screen header --> 2503 <div class="navbar-navigation"> 2504 <div class="hidden-sm hidden-xs"> 2505 <nav class="col-md-10 col-sm-10 col-xs-10 p-0 navbar-collapse collapse navbar-@navbarpos"> 2506 @GetValue("DwNavigation(topnavigation)") 2507 <ul id="topnavigation" class="pull-right" style="list-style:none;height: 40px;font-size: 16px !important;border-radius: 5px !important;padding: 10px 15px !important;width:25%;padding-right:0px !important;"> 2508 <li class="pull-right"> 2509 <div class="pull-right"> 2510 <form action="Default.aspx" method="get" name="SearchForm1"> 2511 <input type="hidden" name="ID" value='@GetValue("DwAreaSearchPageID")'> 2512 <div class="input-group"> 2513 <input type="text" name="q" class="form-control" placeholder='@Translate("Search Placeholder", "Search Placeholder")'> 2514 <span class="input-group-btn" style="top:0px !important"> 2515 <button class="btn btn-default" type="submit">@Translate("Search Button", "Search Button")</button> 2516 </span> 2517 </div><!-- /input-group --> 2518 </form> 2519 </div> 2520 </li> 2521 </ul> 2522 <!-- Extra navigation when no header is shown --> 2523 @if (GetBoolean("Item.Area.EcomEnabled")) 2524 { 2525 if (!GeneralSettings.Header.Show) 2526 { 2527 <ul class="nav navbar-nav"> 2528 <li>&nbsp;&nbsp;&nbsp;</li> 2529 @if (!Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2530 { 2531 <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> 2532 <li class="dw-navbar-button"><a href="/not-logged-in/create-user-profile" data-hover="dropdown"><i class="fa fa-user"></i><span></span></a></li> 2533 } 2534 2535 @if (Dynamicweb.Input.FormatBoolean(GetGlobalValue("Global:Extranet.UserName"))) 2536 { 2537 <li class="dw-navbar-button"> 2538 <a href="Default.aspx?ID=8473" data-hover="dropdown"> 2539 <nobr> 2540 <strong><i class="fa fa-user"></i></strong> 2541 </nobr> 2542 <span></span> 2543 </a> 2544 </li> 2545 <li class="dw-navbar-button"> 2546 <a href="/Admin/Public/ExtranetLogoff.aspx?ID=@Pageview.Page.ID" data-hover="dropdown"><i class="fa fa-sign-out"></i><span></span></a> 2547 </li> 2548 } 2549 2550 <li class="dw-navbar-button"> 2551 <a href="Default.aspx?ID=@cartid" title="" id="nav_minipagecart" 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> 2552 </li> 2553 </ul> 2554 } 2555 2556 if (GeneralSettings.Header.Mode != "solid") 2557 { 2558 <ul class="nav navbar-nav"> 2559 <li class="dropdown dropdown-aux animate-click dw-navbar-button" data-animate-in="animated bounceInUp" data-animate-out="animated fadeOutDown" style="z-index:500;"> 2560 <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"><i class="fa fa-search"></i><span></span></a> 2561 <ul class="dropdown-menu dropdown-menu-user animate-wr"> 2562 <li id="dropdownForm"> 2563 <div class="dropdown-form"> 2564 <form class="form-light p-15" role="form" method="get" action="Default.aspx"> 2565 <input type="hidden" name="ID" value="8399"> 2566 <div class="input-group"> 2567 <input type="text" class="form-control" name="eComQuery" placeholder="@searchplaceholder"> 2568 <span class="input-group-btn"> 2569 <button class="btn btn-base" type="submit"><i class="fa fa-search"></i></button> 2570 </span> 2571 </div> 2572 </form> 2573 </div> 2574 </li> 2575 </ul> 2576 </li> 2577 </ul> 2578 } 2579 } 2580 2581 </nav> 2582 </div> 2583 2584 @if (GetBoolean("Item.Area.EcomEnabled")) 2585 { 2586 if (GeneralSettings.Header.Mode == "solid" && GeneralSettings.Header.Show) 2587 { 2588 <div class="hidden-sm hidden-xs"> 2589 <div class="col-md-2 col-sm-2 col-xs-2 pull-@GeneralSettings.Navigation.InvertedPosition"> 2590 <form method="get" action="Default.aspx"> 2591 <input type="hidden" name="ID" value="8399"> 2592 <div class="input-group pull-@GeneralSettings.Navigation.InvertedPosition dw-top-search"> 2593 <input type="text" class="form-control" name="eComQuery" tabindex="1" placeholder="@searchplaceholder"> 2594 <span class="input-group-btn"> 2595 <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i></button> 2596 </span> 2597 </div> 2598 </form> 2599 </div> 2600 </div> 2601 } 2602 } 2603 </div> 2604 } 2605 else 2606 { 2607 <!-- Using only mobile navigation --> 2608 <div class="pull-@GeneralSettings.Navigation.Position"> 2609 <ul class="nav navbar-nav"> 2610 <li class="dw-navbar-button" data-toggle="offcanvas" data-target="#myNavmenu" data-canvas="body"> 2611 <a><i class="fa fa-bars fa-2x"></i><span></span></a> 2612 </li> 2613 </ul> 2614 </div> 2615 } 2616 </div> 2617 </div> 2618 2619 2620 2621 @if (!string.IsNullOrWhiteSpace(GetString("Item.Area.HeaderLayoutImage"))) 2622 { 2623 if (currentpageid != firstpageid) 2624 { 2625 var coverimage = GetString("Item.Area.HeaderLayoutImage"); 2626 2627 <div class="container-fluid dw-header-image"> 2628 <div class="row"> 2629 <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> 2630 </div> 2631 </div> 2632 } 2633 else if (GeneralSettings.Header.ShowFrontpageImage) 2634 { 2635 var coverimage = GetString("Item.Area.HeaderLayoutImage"); 2636 2637 <div class="container-fluid dw-header-image"> 2638 <div class="row"> 2639 <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> 2640 </div> 2641 </div> 2642 } 2643 } 2644 else if (GeneralSettings.Header.Mode != "solid") 2645 { 2646 if (currentpageid != firstpageid) 2647 { 2648 <div class="container-fluid dw-header-image"> 2649 <div class="row"> 2650 <section class="carousel carousel-1 slice fluid" style="height: 160px !important; background-color: transparent; background-size: cover !important;"></section> 2651 </div> 2652 </div> 2653 } 2654 } 2655 </div></header> 2656 2657 2658 <!-- MAIN CONTENT --> 2659 2660 2661 <section class="slice white animate-hover-slide"> 2662 <div class="container"> 2663 <div class="row"> 2664 <div class="col-md-12 col-sm-12 col-xm-12"> 2665 <div class="row" id="maincontent"> 2666 <section class="col-xs-12"> 2667 <h2>@GetValue("Item.Event_Name")</h2> 2668 @GetValue("Item.Event_Description") 2669 </section> 2670 </div> 2671 </div> 2672 </div> 2673 </div> 2674 </section></div> 2675 <!-- MailChimp Signup form --> 2676 2677 <!-- FOOTER --> 2678 <div class="body-wrap @GeneralSettings.Site.LayoutMode"> 2679 <footer class="footer"> 2680 <div class="container"> 2681 <div class="row"> 2682 <div class="col-md-3 col-sm-6 col-xs-12 pull-left" style="margin-bottom:25px;"> 2683 @{ 2684 object FooterLogo = GetValue("Item.Area.Footer_Logo"); 2685 } 2686 <img src="@FooterLogo" alt="@FooterLogo"> 2687 <br> 2688 <br> 2689 <p style="text-align:center;font-size:16px;">&copy; @DateTime.Now.Year Clever Choice</p> 2690 @{ 2691 object FooterUnderLogo = GetValue("Item.Area.Footer_Under_Logo"); 2692 } 2693 2694 @if (GetBoolean("Item.Area.SocialLinksInFooter")) 2695 { 2696 string sicon = ""; 2697 string slink = ""; 2698 <div class="col" style="text-align:center;"> 2699 <h4>@Translate("Social links", "Social links")</h4> 2700 <p> 2701 @foreach (LoopItem socialitem in GetLoop("Item.Area.SocialIconInFooter")) 2702 { 2703 sicon = socialitem.GetString("Item.Area.SocialIconInFooter.Icon"); 2704 slink = socialitem.GetString("Item.Area.SocialIconInFooter.Link"); 2705 <a href="@slink" target="_blank"><i class="fa @sicon fa-2x" style="margin-right:10px; height:"></i></a> 2706 } 2707 </p> 2708 </div> 2709 } 2710 @FooterUnderLogo 2711 </div> 2712 <div class="col-md-3 col-sm-6 col-xs-12 pull-left" style="margin-bottom:25px;"> 2713 @* 2714 <div class="col"> 2715 <!--<h4>@Translate("Contact us", "Contact us")</h4>--> 2716 @{ 2717 string footeremail = GetString("Item.Area.FooterEmail"); 2718 } 2719 2720 <!-- 2721 <ul> 2722 <li>@GetValue("Item.Area.FooterCompanyName")</li> 2723 <li>@Translate("Phone", "Phone"): @GetValue("Item.Area.FooterPhone") </li> 2724 <li>@Translate("Email", "Email"): <a href="mailto:@footeremail" title="Email Us">@GetValue("Item.Area.FooterEmail")</a></li> 2725 </ul> 2726 <div>&nbsp;</div>--> 2727 </div>*@ 2728 @GetValue("Item.Area.FooterAddress") 2729 </div> 2730 2731 <div class="col-md-3 col-sm-6 col-xs-12 pull-left" style="text-align:center;"> 2732 @GetValue("Item.Area.Contact") 2733 </div> 2734 2735 @if(true == false) 2736 { 2737 <div class="col-md-3 col-sm-6 col-xs-12 pull-left" style="margin-bottom:25px;text-align:center;"> 2738 @GetValue("Item.Area.Contact") 2739 2740 2741 <span style="font-size:14px;color:#ffffff;"><i class="fa fa-phone"></i> @GetValue("Item.Area.Footer_Phone")</span> 2742 <br> 2743 <br> 2744 <span style="font-size:14px;color:#ffffff;"><i class="fa fa-envelope"></i><a href='mailto:@GetValue("Item.Area.Footer_Email")'> @GetValue("Item.Area.Footer_Email")</a></span> 2745 <br> 2746 <br> 2747 @GetValue("Item.Area.Site_Map") 2748 <span style="font-size:14px;color:#ffffff;"> 2749 <i class="fa fa-sitemap"></i> <a href='@GetValue("Item.Area.Site_Map_Link")'>@Translate("Site Map","Site Map")</a> 2750 </span> 2751 2752 </div> 2753 } 2754 2755 <div class="col-md-3 col-sm-6 col-xs-12 pull-left" style="margin-bottom:25px;"> 2756 @GetValue("Item.Area.Google_Maps") 2757 </div> 2758 @if (GetBoolean("Item.Area.FooterNewsletterSignUp")) 2759 { 2760 <div class="col-md-3 col-sm-6 col-xs-12 pull-left"> 2761 <div class="col"> 2762 <h4>@Translate("Mailing list", "Mailing list")</h4> 2763 <p>@Translate("Sign up if you would like to receive occasional treats from us.", "Sign up if you would like to receive occasional treats from us.")</p> 2764 <form name="UserManagementEditForm" action="/Default.aspx?ID=8478" method="post" enctype="multipart/form-data"> 2765 <input name="UserManagementForm" value="1" type="hidden"> 2766 <input id="UserManagementForm.DeleteImage" name="UserManagementForm.DeleteImage" type="hidden"> 2767 <div style="display: none;"> 2768 <input name="UserManagement_Form_EmailAllowed" id="UserManagement_Form_EmailAllowed" value="True" checked="checked" type="checkbox"> 2769 <input name="UserManagement_Form_EmailAllowed_ApplyValue" id="UserManagement_Form_EmailAllowed_ApplyValue" value="AllowEmail" type="hidden"> 2770 </div> 2771 <div class="input-group"> 2772 @{ attrValue = Translate("Your email address", "Your email address"); 2773 } 2774 2775 <input name="UserManagement_Form_Email" id="UserManagement_Form_Email" type="text" class="form-control" placeholder="@attrValue"> 2776 <span class="input-group-btn"> 2777 <input class="btn btn-base" type="submit" id="submitter" value="Go"> 2778 </span> 2779 2780 </div> 2781 <div>&nbsp;</div> 2782 </form> 2783 </div> 2784 </div> 2785 } 2786 2787 @if (GetBoolean("Item.Area.FooterShowSitemap")) 2788 { 2789 <div class="col-md-6 col-sm-12 col-xs-12"> 2790 <div class="col"> 2791 @GetValue("DwNavigation(footersitemap)") 2792 </div> 2793 <div>&nbsp;</div> 2794 </div> 2795 } 2796 </div> 2797 2798 <!--<hr>--> 2799 2800 <div class="row"> 2801 <!--<div class="col-lg-9 col-md-9 col-sm-9 col-xs-9 copyright"> 2802 <div class="col"> 2803 <p>@GetGlobalValue("Global:Server.Date.Year") &copy; @GetValue("Item.Area.FooterCompanyName"). @Translate("All rights reserved.", "All rights reserved.")</p> 2804 </div> 2805 </div>--> 2806 @if (GetString("Item.Area.WebmasterLinkCode") != "") 2807 { 2808 <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3"> 2809 <div class="col pull-right"> 2810 @{ 2811 var webmasterlink = GetString("Item.Area.WebmasterLinkCode"); 2812 var username = GetValue("Item.Area.FooterEmail"); 2813 var pagename = GetGlobalValue("Global:Page.Name"); 2814 } 2815 2816 <p><a href="javascript:void(0);" rel="nofollow" onclick="window.open('@webmasterlink?un=@username&amp;pn=@pagename&amp;url=' + encodeURI(location),'_blank','width=1050,height=750,resizable=yes,scrollbars=yes');">Webmaster</a></p> 2817 </div> 2818 </div> 2819 } 2820 </div> 2821 </div> 2822 </footer> 2823 </div> 2824 2825 <script> 2826 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 2827 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 2828 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 2829 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 2830 2831 ga('create', 'UA-57560074-1', 'auto'); 2832 ga('send', 'pageview'); 2833 2834 </script> 2835 </div> 2836 2837 </body> 2838 </html>