Error executing template "Designs/Dwsimple/_parsed/Kalenderaftale.parsed.cshtml"
System.Net.WebException: The remote server returned an error: (503) Server Unavailable.
   at System.Net.HttpWebRequest.GetResponse()
   at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at CompiledRazorTemplates.Dynamic.RazorEngine_9eb18a3fcd1640c5842be91c89a04dff.<CalendarItem>b__20_0(TextWriter __razor_helper_writer) in E:\dynamicweb.net\solutions\SkovboData\skovboservice.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\Kalenderaftale.parsed.cshtml:line 2760
   at CompiledRazorTemplates.Dynamic.RazorEngine_9eb18a3fcd1640c5842be91c89a04dff.Execute() in E:\dynamicweb.net\solutions\SkovboData\skovboservice.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\_parsed\Kalenderaftale.parsed.cshtml:line 2739
   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.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

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