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