Error compiling template "Designs/ClientBase_generated/_parsed/ThemeMaster.parsed.cshtml"
Line 456: A local variable or function named 'isVisualEditor' is already defined in this scope
Line 486: A local variable or function named 'font_configuration' is already defined in this scope
Line 493: A local variable or function named 'designRoot' is already defined in this scope
Line 522: A local variable or function named 'appcss' is already defined in this scope
Line 408: The variable 'isThemeMaster' is assigned but its value is never used
Line 502: The variable 'isOffline' is assigned but its value is never used
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 namespace CompiledRazorTemplates.Dynamic {
12
13 #line 308 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
14 using System;
15
16 #line default
17 #line hidden
18 using System.Collections.Generic;
19
20 #line 309 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
21 using System.Linq;
22
23 #line default
24 #line hidden
25
26 #line 312 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
27 using Dynamicweb;
28
29 #line default
30 #line hidden
31
32 #line 318 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
33 using Bluedesk.Tools.Generic;
34
35 #line default
36 #line hidden
37
38 #line 310 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
39 using System.Globalization;
40
41 #line default
42 #line hidden
43
44 #line 313 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
45 using Dynamicweb.Content.Items;
46
47 #line default
48 #line hidden
49
50 #line 320 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
51 using Bluedesk.DynamicWeb.ItemTypes;
52
53 #line default
54 #line hidden
55
56 #line 321 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
57 using Bluedesk.DynamicWeb.ItemTypes.Settings;
58
59 #line default
60 #line hidden
61
62 #line 315 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
63 using Dynamicweb.Frontend;
64
65 #line default
66 #line hidden
67
68 #line 316 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
69 using Dynamicweb.Frontend.Navigation;
70
71 #line default
72 #line hidden
73
74 #line 10 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
75 using Dynamicweb.Ecommerce.ProductCatalog;
76
77 #line default
78 #line hidden
79
80 #line 314 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
81 using Dynamicweb.Environment;
82
83 #line default
84 #line hidden
85
86 #line 326 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
87 using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
88
89 #line default
90 #line hidden
91
92 #line 323 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
93 using Bluedesk.DynamicWeb.ItemTypes.Configuration;
94
95 #line default
96 #line hidden
97
98 #line 324 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
99 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
100
101 #line default
102 #line hidden
103
104 #line 48 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
105 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
106
107 #line default
108 #line hidden
109
110 #line 325 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
111 using Bluedesk.DynamicWeb.ItemTypes.Extensions;
112
113 #line default
114 #line hidden
115
116
117 public class RazorEngine_d33d7de59f984ffea9d74981aa631291 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> {
118
119 #line hidden
120
121 #line 256 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
122 public RazorEngine.Templating.TemplateWriter RenderCSSKeyAndValue(string Key, string Value)
123 {
124 #line default
125 #line hidden
126 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
127
128 #line 257 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
129
130 if (!string.IsNullOrWhiteSpace(Value))
131 {
132
133
134 #line default
135 #line hidden
136 WriteLiteralTo(__razor_helper_writer, "\t\t");
137
138
139 #line 260 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
140 WriteTo(__razor_helper_writer, Key);
141
142
143 #line default
144 #line hidden
145 WriteLiteralTo(__razor_helper_writer, " : ");
146
147
148 #line 260 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
149 WriteTo(__razor_helper_writer, Value);
150
151
152 #line default
153 #line hidden
154 WriteLiteralTo(__razor_helper_writer, " !important;");
155
156 WriteLiteralTo(__razor_helper_writer, "\r\n");
157
158
159 #line 261 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
160 }
161
162
163 #line default
164 #line hidden
165 });
166
167 #line 262 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
168 }
169 #line default
170 #line hidden
171
172
173 #line 264 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
174 public RazorEngine.Templating.TemplateWriter SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
175 {
176 #line default
177 #line hidden
178 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
179
180 #line 265 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
181
182
183 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
184 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
185 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
186 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
187
188 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
189
190 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
191 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
192
193 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
194 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
195
196
197
198 #line default
199 #line hidden
200 WriteLiteralTo(__razor_helper_writer, "\t");
201
202 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t\t--Position:\t\t");
203
204
205 #line 282 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
206 WriteTo(__razor_helper_writer, Position);
207
208
209 #line default
210 #line hidden
211 WriteLiteralTo(__razor_helper_writer, ";\r\n\r\n");
212
213 WriteLiteralTo(__razor_helper_writer, "\t\t");
214
215
216 #line 284 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
217 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding));
218
219
220 #line default
221 #line hidden
222 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
223
224 WriteLiteralTo(__razor_helper_writer, "\t\t");
225
226
227 #line 286 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
228 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Top", Top));
229
230
231 #line default
232 #line hidden
233 WriteLiteralTo(__razor_helper_writer, "\r\n");
234
235 WriteLiteralTo(__razor_helper_writer, "\t\t");
236
237
238 #line 287 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
239 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Left", Left));
240
241
242 #line default
243 #line hidden
244 WriteLiteralTo(__razor_helper_writer, "\r\n");
245
246 WriteLiteralTo(__razor_helper_writer, "\t\t");
247
248
249 #line 288 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
250 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Right", Right));
251
252
253 #line default
254 #line hidden
255 WriteLiteralTo(__razor_helper_writer, "\r\n");
256
257 WriteLiteralTo(__razor_helper_writer, "\t\t");
258
259
260 #line 289 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
261 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Bottom", Bottom));
262
263
264 #line default
265 #line hidden
266 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
267
268 WriteLiteralTo(__razor_helper_writer, "\t\t");
269
270
271 #line 291 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
272 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Color", Color));
273
274
275 #line default
276 #line hidden
277 WriteLiteralTo(__razor_helper_writer, "\r\n");
278
279 WriteLiteralTo(__razor_helper_writer, "\t\t");
280
281
282 #line 292 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
283 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize));
284
285
286 #line default
287 #line hidden
288 WriteLiteralTo(__razor_helper_writer, "\r\n");
289
290 WriteLiteralTo(__razor_helper_writer, "\t\t");
291
292
293 #line 293 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
294 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle));
295
296
297 #line default
298 #line hidden
299 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
300
301 WriteLiteralTo(__razor_helper_writer, "\t\t");
302
303
304 #line 295 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
305 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight));
306
307
308 #line default
309 #line hidden
310 WriteLiteralTo(__razor_helper_writer, "\r\n");
311
312 WriteLiteralTo(__razor_helper_writer, "\t\t");
313
314
315 #line 296 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
316 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily));
317
318
319 #line default
320 #line hidden
321 WriteLiteralTo(__razor_helper_writer, "\r\n");
322
323 WriteLiteralTo(__razor_helper_writer, "\t\t");
324
325
326 #line 297 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
327 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight));
328
329
330 #line default
331 #line hidden
332 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
333
334 WriteLiteralTo(__razor_helper_writer, "\t\t");
335
336
337 #line 299 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
338 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor));
339
340
341 #line default
342 #line hidden
343 WriteLiteralTo(__razor_helper_writer, "\r\n");
344
345 WriteLiteralTo(__razor_helper_writer, "\t\t");
346
347
348 #line 300 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
349 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderColor", BorderColor));
350
351
352 #line default
353 #line hidden
354 WriteLiteralTo(__razor_helper_writer, "\r\n");
355
356 WriteLiteralTo(__razor_helper_writer, "\t\t");
357
358
359 #line 301 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
360 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderSize", BorderSize));
361
362
363 #line default
364 #line hidden
365 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t");
366
367 WriteLiteralTo(__razor_helper_writer, "\r\n");
368
369
370 #line 304 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
371
372
373
374 #line default
375 #line hidden
376 });
377
378 #line 305 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
379 }
380 #line default
381 #line hidden
382
383
384 public RazorEngine_d33d7de59f984ffea9d74981aa631291() {
385 }
386
387 public override void Execute() {
388 WriteLiteral("\r\n");
389
390
391 #line 13 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
392 Write(Title("Configuration page template"));
393
394
395 #line default
396 #line hidden
397 WriteLiteral("\r\n\r\n");
398
399
400 #line 15 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
401
402 var websitesettings = Dynamicweb.Content.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id);
403 var font_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
404
405 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name;
406 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
407
408 bool isThemeMaster = true;
409
410 bool isVisualEditor = Dynamicweb.Context.Current.Request.GetBoolean("visualedit");
411
412
413 #line default
414 #line hidden
415 WriteLiteral("\r\n\r\n");
416
417 WriteLiteral("\r\n");
418
419 WriteLiteral("\r\n");
420
421 WriteLiteral("\r\n");
422
423 WriteLiteral("\r\n");
424
425 WriteLiteral("\r\n");
426
427 WriteLiteral("\r\n");
428
429
430 #line 50 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
431
432
433 var master_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
434 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
435
436 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
437
438 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
439
440 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
441 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
442
443 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True";
444 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers;
445 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber;
446 if(pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) {
447 WithVATBool = false;
448 }
449 if(pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) {
450 WithVATBool = false;
451 }
452 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower();
453 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
454
455 bool IsNotContentManager = false;
456 bool isVisualEditor = Pageview.IsVisualEditorMode;
457
458 if (isVisualEditor)
459 {
460 Dynamicweb.Context.Current.Session["PreviousPage"] = Pageview.Page.ID;
461 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
462 }
463
464 BaseSettingsObj BaseSettings = new BaseSettingsObj();
465
466 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
467 Dynamicweb.Context.Current.Session["BaseSettings"] = BaseSettings;
468
469 //if (Dynamicweb.Context.Current.Session["BaseSettings"] == null)
470 //{
471
472 //}
473 //else
474 //{
475 // BaseSettings = (BaseSettingsObj)Dynamicweb.Context.Current.Session["BaseSettings"];
476 // if (BaseSettings.AreaID != Pageview.AreaID)
477 // {
478 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
479 // Dynamicweb.Context.Current.Session["BaseSettings"] = BaseSettings;
480 // }
481 //}
482
483 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
484 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
485
486 var font_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
487
488 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
489 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
490 var langName = Pageview.Area.Culture;
491
492 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
493 var designRoot = BaseSettings.DesignRoot;
494
495 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
496 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
497 var emailadress = BaseSettings.CorporateSettings.Emailadress;
498 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
499 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
500 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
501
502 bool isOffline = false;
503
504 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
505 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
506 DateTime today = DateTime.Now;
507 var cHour = DateTime.Now.TimeOfDay;
508 int cDay = (int)DateTime.Now.DayOfWeek;
509 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
510 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
511 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
512 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
513 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
514 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
515 if (isNoValidDate || isOvertime)
516 {
517 isOffline = true;
518 }
519
520 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
521
522 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
523
524 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
525 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
526 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
527
528 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
529 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
530 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
531
532 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
533 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
534 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
535
536 //*** Start Scanapp configuration ***\\
537 bool hideHeader = false;
538 bool hideFooter = false;
539 bool hideBottombar = false;
540
541 if (Dynamicweb.Context.Current.Session["ScanApp"] != null)
542 {
543 hideHeader = mc.ScanAppConfig.ShowHeader;
544 hideFooter = mc.ScanAppConfig.ShowFooter;
545 hideBottombar = mc.ScanAppConfig.ShowBottombar;
546 }
547 // END Scanapp configration **\\
548
549
550
551 #line default
552 #line hidden
553 WriteLiteral("\r\n\r\n\r\n<!DOCTYPE html>\r\n<html");
554
555 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\"");
556
557 WriteLiteral(">\r\n<head>\r\n\t");
558
559 WriteLiteral("\r\n\r\n</head>\r\n\r\n<body>\r\n\r\n\t<script");
560
561 WriteLiteral(" type=\"text/javascript\"");
562
563 WriteLiteral(@">
564
565 var stylesDump;
566
567 function onTryItClick(variable) {
568
569 var StyleID = variable + 'Style';
570 var contentID = variable + 'Content';
571 var frameID = variable + 'Frame';
572 var MasterConfigID = 'MasterConfig';
573
574 var style = document.getElementById(StyleID).innerHTML;
575 var MasterConfig = document.getElementById(MasterConfigID).innerHTML;
576 var content = document.getElementById(contentID).innerHTML;
577 var iframe = document.getElementById(frameID);
578
579 stylesDump = stylesDump + style;
580
581 var frameDoc = iframe.document;
582 if (iframe.contentWindow)
583 frameDoc = iframe.contentWindow.document;
584
585 frameDoc.open();
586 frameDoc.writeln(content);
587 frameDoc.writeln(MasterConfig);
588 frameDoc.writeln(stylesDump);
589 frameDoc.close();
590
591 document.getElementById(contentID).remove();
592
593 }
594
595 </script>
596
597 <section");
598
599 WriteLiteral(" id=\"MasterConfig\"");
600
601 WriteLiteral(">\r\n");
602
603
604 #line 235 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
605
606
607 #line default
608 #line hidden
609 WriteLiteral("\r\n");
610
611 WriteLiteral("\r\n");
612
613 WriteLiteral("\r\n");
614
615 WriteLiteral("\r\n");
616
617 WriteLiteral("\r\n");
618
619 WriteLiteral("\r\n");
620
621 WriteLiteral("\r\n");
622
623
624 #line 307 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
625
626
627 #line default
628 #line hidden
629 WriteLiteral("\r\n");
630
631 WriteLiteral("\r\n");
632
633 WriteLiteral("\r\n");
634
635 WriteLiteral("\r\n");
636
637 WriteLiteral("\r\n\t</section>\r\n\r\n");
638
639
640 #line 330 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
641
642
643 #line default
644 #line hidden
645
646 #line 330 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
647 if (isVisualEditor)
648 {
649
650
651 #line default
652 #line hidden
653 WriteLiteral("\t\t<link");
654
655 WriteAttribute("href", Tuple.Create(" href=\"", 12506), Tuple.Create("\"", 12520)
656
657 #line 332 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
658 , Tuple.Create(Tuple.Create("", 12513), Tuple.Create<System.Object, System.Int32>(appcss
659
660 #line default
661 #line hidden
662 , 12513), false)
663 );
664
665 WriteLiteral(" rel=\"stylesheet\"");
666
667 WriteLiteral(" />\r\n");
668
669
670 #line 333 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
671
672
673
674 #line default
675 #line hidden
676 WriteLiteral("\t\t<header");
677
678 WriteLiteral(" style=\"padding: 25px;\"");
679
680 WriteLiteral(">\r\n\t\t\t<h1>Theme</h1>\r\n\t\t\t<h2");
681
682 WriteLiteral(" style=\"font-weight: normal;\"");
683
684 WriteLiteral(">");
685
686
687 #line 336 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
688 Write(Model.Title);
689
690
691 #line default
692 #line hidden
693 WriteLiteral("</h2>\r\n\t\t</header>\r\n");
694
695
696 #line 338 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
697 }
698
699
700 #line default
701 #line hidden
702 WriteLiteral("\r\n");
703
704 WriteLiteral("\t");
705
706
707 #line 340 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
708 Write(Model.Grid("Breakpoint", "Breakpoint", "default:true;sort:1", "Configuration/Theme"));
709
710
711 #line default
712 #line hidden
713 WriteLiteral("\r\n\r\n");
714
715
716 #line 342 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
717
718
719 #line default
720 #line hidden
721
722 #line 342 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
723 if (isVisualEditor)
724 {
725 if (font_configuration != null)
726 {
727 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
728 {
729
730
731 #line default
732 #line hidden
733 WriteLiteral("\t\t\t\t<link");
734
735 WriteAttribute("href", Tuple.Create(" href=\"", 13012), Tuple.Create("\"", 13036)
736
737 #line 348 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
738 , Tuple.Create(Tuple.Create("", 13019), Tuple.Create<System.Object, System.Int32>(item["FontLink"]
739
740 #line default
741 #line hidden
742 , 13019), false)
743 );
744
745 WriteLiteral(" rel=\"stylesheet\"");
746
747 WriteLiteral(">\r\n");
748
749
750 #line 349 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
751 }
752 }
753
754
755
756 #line default
757 #line hidden
758 WriteLiteral("\t\t<link");
759
760 WriteLiteral(" rel=\"stylesheet\"");
761
762 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\"");
763
764 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" +
765 "QU\"");
766
767 WriteLiteral(" crossorigin=\"anonymous\"");
768
769 WriteLiteral(">\r\n");
770
771
772 #line 353 "C:\home\site\wwwroot\files\Templates\Designs\ClientBase_generated\_parsed\ThemeMaster.parsed.cshtml"
773 }
774
775
776 #line default
777 #line hidden
778 WriteLiteral("</body>\r\n</html>\r\n");
779
780 }
781 }
782 }
783
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
2 @using Dynamicweb;
3 @using Bluedesk.Tools.Generic;
4 @using System.Globalization;
5 @using Dynamicweb.Content.Items;
6 @using Bluedesk.DynamicWeb.ItemTypes;
7 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
8 @using Dynamicweb.Frontend
9 @using Dynamicweb.Frontend.Navigation
10 @using Dynamicweb.Ecommerce.ProductCatalog
11 @using Dynamicweb.Environment
12
13 @Title("Configuration page template")
14
15 @{
16 var websitesettings = Dynamicweb.Content.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id);
17 var font_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
18
19 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name;
20 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
21
22 bool isThemeMaster = true;
23
24 bool isVisualEditor = Dynamicweb.Context.Current.Request.GetBoolean("visualedit");
25 }
26
27 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
28
29 @using System;
30 @using System.Linq;
31 @using System.Globalization;
32
33 @using Dynamicweb;
34 @using Dynamicweb.Content.Items;
35 @using Dynamicweb.Environment;
36 @using Dynamicweb.Frontend;
37 @using Dynamicweb.Frontend.Navigation;
38
39 @using Bluedesk.Tools.Generic;
40
41 @using Bluedesk.DynamicWeb.ItemTypes;
42 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
43 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
44
45 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
46
47 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
48 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
49
50 @{
51
52 var master_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
53 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
54
55 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
56
57 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
58
59 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
60 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
61
62 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True";
63 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers;
64 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber;
65 if(pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) {
66 WithVATBool = false;
67 }
68 if(pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) {
69 WithVATBool = false;
70 }
71 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower();
72 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
73
74 bool IsNotContentManager = false;
75 bool isVisualEditor = Pageview.IsVisualEditorMode;
76
77 if (isVisualEditor)
78 {
79 Dynamicweb.Context.Current.Session["PreviousPage"] = Pageview.Page.ID;
80 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
81 }
82
83 BaseSettingsObj BaseSettings = new BaseSettingsObj();
84
85 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
86 Dynamicweb.Context.Current.Session["BaseSettings"] = BaseSettings;
87
88 //if (Dynamicweb.Context.Current.Session["BaseSettings"] == null)
89 //{
90
91 //}
92 //else
93 //{
94 // BaseSettings = (BaseSettingsObj)Dynamicweb.Context.Current.Session["BaseSettings"];
95 // if (BaseSettings.AreaID != Pageview.AreaID)
96 // {
97 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
98 // Dynamicweb.Context.Current.Session["BaseSettings"] = BaseSettings;
99 // }
100 //}
101
102 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
103 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
104
105 var font_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
106
107 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
108 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
109 var langName = Pageview.Area.Culture;
110
111 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
112 var designRoot = BaseSettings.DesignRoot;
113
114 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
115 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
116 var emailadress = BaseSettings.CorporateSettings.Emailadress;
117 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
118 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
119 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
120
121 bool isOffline = false;
122
123 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
124 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
125 DateTime today = DateTime.Now;
126 var cHour = DateTime.Now.TimeOfDay;
127 int cDay = (int)DateTime.Now.DayOfWeek;
128 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
129 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
130 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
131 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
132 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
133 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
134 if (isNoValidDate || isOvertime)
135 {
136 isOffline = true;
137 }
138
139 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
140
141 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
142
143 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
144 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
145 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
146
147 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
148 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
149 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
150
151 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
152 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
153 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
154
155 //*** Start Scanapp configuration ***\\
156 bool hideHeader = false;
157 bool hideFooter = false;
158 bool hideBottombar = false;
159
160 if (Dynamicweb.Context.Current.Session["ScanApp"] != null)
161 {
162 hideHeader = mc.ScanAppConfig.ShowHeader;
163 hideFooter = mc.ScanAppConfig.ShowFooter;
164 hideBottombar = mc.ScanAppConfig.ShowBottombar;
165 }
166 // END Scanapp configration **\\
167
168 }
169
170
171 <!DOCTYPE html>
172 <html prefix="og: http://ogp.me/ns#">
173 <head>
174 @*@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
175 @using System;
176 @using System.Linq;
177 @using System.Globalization;
178
179 @using Dynamicweb;
180 @using Dynamicweb.Content.Items;
181 @using Dynamicweb.Environment;
182 @using Dynamicweb.Frontend;
183 @using Dynamicweb.Frontend.Navigation;
184
185 @using Bluedesk.Tools.Generic;
186
187 @using Bluedesk.DynamicWeb.ItemTypes;
188 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
189
190 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
191 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
192 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
193 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
194 *@
195
196 </head>
197
198 <body>
199
200 <script type="text/javascript">
201
202 var stylesDump;
203
204 function onTryItClick(variable) {
205
206 var StyleID = variable + 'Style';
207 var contentID = variable + 'Content';
208 var frameID = variable + 'Frame';
209 var MasterConfigID = 'MasterConfig';
210
211 var style = document.getElementById(StyleID).innerHTML;
212 var MasterConfig = document.getElementById(MasterConfigID).innerHTML;
213 var content = document.getElementById(contentID).innerHTML;
214 var iframe = document.getElementById(frameID);
215
216 stylesDump = stylesDump + style;
217
218 var frameDoc = iframe.document;
219 if (iframe.contentWindow)
220 frameDoc = iframe.contentWindow.document;
221
222 frameDoc.open();
223 frameDoc.writeln(content);
224 frameDoc.writeln(MasterConfig);
225 frameDoc.writeln(stylesDump);
226 frameDoc.close();
227
228 document.getElementById(contentID).remove();
229
230 }
231
232 </script>
233
234 <section id="MasterConfig">
235 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
236 @using System;
237 @using System.Linq;
238 @using System.Globalization;
239
240 @using Dynamicweb;
241 @using Dynamicweb.Content.Items;
242 @using Dynamicweb.Environment;
243 @using Dynamicweb.Frontend;
244 @using Dynamicweb.Frontend.Navigation;
245
246 @using Bluedesk.Tools.Generic;
247
248 @using Bluedesk.DynamicWeb.ItemTypes;
249 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
250 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
251
252 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
253 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
254 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
255
256 @helper RenderCSSKeyAndValue(string Key, string Value)
257 {
258 if (!string.IsNullOrWhiteSpace(Value))
259 {
260 <text>@Key : @Value !important;</text>
261 }
262 }
263
264 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
265 {
266
267 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
268 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
269 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
270 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
271
272 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
273
274 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
275 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
276
277 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
278 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
279
280 <text>
281
282 --Position: @Position;
283
284 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding)
285
286 @RenderCSSKeyAndValue("--Top", Top)
287 @RenderCSSKeyAndValue("--Left", Left)
288 @RenderCSSKeyAndValue("--Right", Right)
289 @RenderCSSKeyAndValue("--Bottom", Bottom)
290
291 @RenderCSSKeyAndValue("--Color", Color)
292 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize)
293 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle)
294
295 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight)
296 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily)
297 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight)
298
299 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor)
300 @RenderCSSKeyAndValue("--BorderColor", BorderColor)
301 @RenderCSSKeyAndValue("--BorderSize", BorderSize)
302
303 </text>
304
305 }
306
307 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
308 @using System;
309 @using System.Linq;
310 @using System.Globalization;
311
312 @using Dynamicweb;
313 @using Dynamicweb.Content.Items;
314 @using Dynamicweb.Environment;
315 @using Dynamicweb.Frontend;
316 @using Dynamicweb.Frontend.Navigation;
317
318 @using Bluedesk.Tools.Generic;
319
320 @using Bluedesk.DynamicWeb.ItemTypes;
321 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
322
323 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
324 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
325 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
326 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
327
328 </section>
329
330 @if (isVisualEditor)
331 {
332 <link href="@appcss" rel="stylesheet" />
333
334 <header style="padding: 25px;">
335 <h1>Theme</h1>
336 <h2 style="font-weight: normal;">@Model.Title</h2>
337 </header>
338 }
339
340 @Model.Grid("Breakpoint", "Breakpoint", "default:true;sort:1", "Configuration/Theme")
341
342 @if (isVisualEditor)
343 {
344 if (font_configuration != null)
345 {
346 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
347 {
348 <link href="@item["FontLink"]" rel="stylesheet">
349 }
350 }
351
352 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous">
353 }
354 </body>
355 </html>
356