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