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