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