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