Error compiling template "Designs/ClientBase_generated/_parsed/LayoutConfigurationPage.parsed.cshtml"
Line 402: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 402: 'Services.Items' is obsolete: 'Use Dynamicweb.Content.Services.Items instead.'
Line 403: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 403: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 453: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 453: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 506: A local variable or function named 'font_configuration' is already defined in this scope
Line 506: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 506: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 513: A local variable or function named 'designRoot' is already defined in this scope
Line 542: A local variable or function named 'appcss' is already defined in this scope
Line 522: 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 244 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
14 using System;
15 16 #line default
17 #line hidden
18 using System.Collections.Generic;
19 20 #line 246 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
21 using System.Linq;
22 23 #line default
24 #line hidden
25 26 #line 249 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
27 using Dynamicweb;
28 29 #line default
30 #line hidden
31 32 #line 255 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
33 using Bluedesk.Tools.Generic;
34 35 #line default
36 #line hidden
37 38 #line 247 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
39 using System.Globalization;
40 41 #line default
42 #line hidden
43 44 #line 250 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
45 using Dynamicweb.Content.Items;
46 47 #line default
48 #line hidden
49 50 #line 257 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
51 using Bluedesk.DynamicWeb.ItemTypes;
52 53 #line default
54 #line hidden
55 56 #line 258 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
57 using Bluedesk.DynamicWeb.ItemTypes.Settings;
58 59 #line default
60 #line hidden
61 62 #line 245 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
63 using System.Web;
64 65 #line default
66 #line hidden
67 68 #line 251 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
69 using Dynamicweb.Environment;
70 71 #line default
72 #line hidden
73 74 #line 252 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
75 using Dynamicweb.Frontend;
76 77 #line default
78 #line hidden
79 80 #line 253 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
81 using Dynamicweb.Frontend.Navigation;
82 83 #line default
84 #line hidden
85 86 #line 263 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
87 using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
88 89 #line default
90 #line hidden
91 92 #line 260 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
93 using Bluedesk.DynamicWeb.ItemTypes.Configuration;
94 95 #line default
96 #line hidden
97 98 #line 261 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
99 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
100101 #line default
102 #line hidden
103104 #line 48 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
105 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
106107 #line default
108 #line hidden
109110 #line 262 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
111 using Bluedesk.DynamicWeb.ItemTypes.Extensions;
112113 #line default
114 #line hidden
115116117 public class RazorEngine_9f6d4754bb7644318570a430249b6e29 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> {
118119 #line hidden
120121 #line 192 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.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 => {
127128 #line 193 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
129130 if (!string.IsNullOrWhiteSpace(Value))
131 {
132133134 #line default
135 #line hidden
136 WriteLiteralTo(__razor_helper_writer, "\t\t");
137138139 #line 196 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
140 WriteTo(__razor_helper_writer, Key);
141142143 #line default
144 #line hidden
145 WriteLiteralTo(__razor_helper_writer, " : ");
146147148 #line 196 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
149 WriteTo(__razor_helper_writer, Value);
150151152 #line default
153 #line hidden
154 WriteLiteralTo(__razor_helper_writer, " !important;");
155156 WriteLiteralTo(__razor_helper_writer, "\r\n");
157158159 #line 197 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
160 }
161162163 #line default
164 #line hidden
165 });
166167 #line 198 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
168 }
169 #line default
170 #line hidden
171172173 #line 200 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.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 => {
179180 #line 201 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
181182183 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" : "";
187188 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
189190 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
191 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
192193 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
194 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
195196197198 #line default
199 #line hidden
200 WriteLiteralTo(__razor_helper_writer, "\t");
201202 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t\t--Position:\t\t");
203204205 #line 218 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
206 WriteTo(__razor_helper_writer, Position);
207208209 #line default
210 #line hidden
211 WriteLiteralTo(__razor_helper_writer, ";\r\n\r\n");
212213 WriteLiteralTo(__razor_helper_writer, "\t\t");
214215216 #line 220 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
217 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding));
218219220 #line default
221 #line hidden
222 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
223224 WriteLiteralTo(__razor_helper_writer, "\t\t");
225226227 #line 222 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
228 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Top", Top));
229230231 #line default
232 #line hidden
233 WriteLiteralTo(__razor_helper_writer, "\r\n");
234235 WriteLiteralTo(__razor_helper_writer, "\t\t");
236237238 #line 223 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
239 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Left", Left));
240241242 #line default
243 #line hidden
244 WriteLiteralTo(__razor_helper_writer, "\r\n");
245246 WriteLiteralTo(__razor_helper_writer, "\t\t");
247248249 #line 224 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
250 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Right", Right));
251252253 #line default
254 #line hidden
255 WriteLiteralTo(__razor_helper_writer, "\r\n");
256257 WriteLiteralTo(__razor_helper_writer, "\t\t");
258259260 #line 225 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
261 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Bottom", Bottom));
262263264 #line default
265 #line hidden
266 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
267268 WriteLiteralTo(__razor_helper_writer, "\t\t");
269270271 #line 227 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
272 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Color", Color));
273274275 #line default
276 #line hidden
277 WriteLiteralTo(__razor_helper_writer, "\r\n");
278279 WriteLiteralTo(__razor_helper_writer, "\t\t");
280281282 #line 228 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
283 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize));
284285286 #line default
287 #line hidden
288 WriteLiteralTo(__razor_helper_writer, "\r\n");
289290 WriteLiteralTo(__razor_helper_writer, "\t\t");
291292293 #line 229 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
294 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle));
295296297 #line default
298 #line hidden
299 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
300301 WriteLiteralTo(__razor_helper_writer, "\t\t");
302303304 #line 231 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
305 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight));
306307308 #line default
309 #line hidden
310 WriteLiteralTo(__razor_helper_writer, "\r\n");
311312 WriteLiteralTo(__razor_helper_writer, "\t\t");
313314315 #line 232 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
316 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily));
317318319 #line default
320 #line hidden
321 WriteLiteralTo(__razor_helper_writer, "\r\n");
322323 WriteLiteralTo(__razor_helper_writer, "\t\t");
324325326 #line 233 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
327 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight));
328329330 #line default
331 #line hidden
332 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
333334 WriteLiteralTo(__razor_helper_writer, "\t\t");
335336337 #line 235 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
338 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor));
339340341 #line default
342 #line hidden
343 WriteLiteralTo(__razor_helper_writer, "\r\n");
344345 WriteLiteralTo(__razor_helper_writer, "\t\t");
346347348 #line 236 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
349 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderColor", BorderColor));
350351352 #line default
353 #line hidden
354 WriteLiteralTo(__razor_helper_writer, "\r\n");
355356 WriteLiteralTo(__razor_helper_writer, "\t\t");
357358359 #line 237 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
360 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderSize", BorderSize));
361362363 #line default
364 #line hidden
365 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t");
366367 WriteLiteralTo(__razor_helper_writer, "\r\n");
368369370 #line 240 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
371372373374 #line default
375 #line hidden
376 });
377378 #line 241 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
379 }
380 #line default
381 #line hidden
382383384 public RazorEngine_9f6d4754bb7644318570a430249b6e29() {
385 }
386387 public override void Execute() {
388 WriteLiteral("\r\n");
389390391 #line 9 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
392 Write(Title("Configuration page template"));
393394395 #line default
396 #line hidden
397 WriteLiteral("\r\n\r\n");
398399400 #line 11 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
401402 var websitesettings = Dynamicweb.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id);
403 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
404405 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name;
406 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
407408409 #line default
410 #line hidden
411 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n<html");
412413 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\"");
414415 WriteLiteral(">\r\n<head>\r\n\r\n</head>\r\n<body>\r\n\t<link");
416417 WriteAttribute("href", Tuple.Create(" href=\"", 795), Tuple.Create("\"", 809)
418419 #line 25 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
420 , Tuple.Create(Tuple.Create("", 802), Tuple.Create<System.Object, System.Int32>(appcss
421422 #line default
423 #line hidden
424 , 802), false)
425 );
426427 WriteLiteral(" rel=\"stylesheet\"");
428429 WriteLiteral(" />\r\n");
430431432 #line 26 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
433434435 #line default
436 #line hidden
437 WriteLiteral("\r\n");
438439 WriteLiteral("\r\n");
440441 WriteLiteral("\r\n");
442443 WriteLiteral("\r\n");
444445 WriteLiteral("\r\n");
446447 WriteLiteral("\r\n");
448449450 #line 50 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
451452453 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
454 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
455456 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
457458 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
459460 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
461 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
462463 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True";
464 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers;
465 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber;
466 if(pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) {
467 WithVATBool = false;
468 }
469 if(pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) {
470 WithVATBool = false;
471 }
472 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower();
473 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
474475 bool IsNotContentManager = false;
476 bool isVisualEditor = Pageview.IsVisualEditorMode;
477478 if (isVisualEditor)
479 {
480 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
481 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
482 }
483484 BaseSettingsObj BaseSettings = new BaseSettingsObj();
485486 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
487 HttpContext.Current.Session["BaseSettings"] = BaseSettings;
488489 //if (HttpContext.Current.Session["BaseSettings"] == null)
490 //{
491492 //}
493 //else
494 //{
495 // BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"];
496 // if (BaseSettings.AreaID != Pageview.AreaID)
497 // {
498 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
499 // HttpContext.Current.Session["BaseSettings"] = BaseSettings;
500 // }
501 //}
502503 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
504 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
505506 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
507508 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
509 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
510 var langName = Pageview.Area.Culture;
511512 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
513 var designRoot = BaseSettings.DesignRoot;
514515 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
516 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
517 var emailadress = BaseSettings.CorporateSettings.Emailadress;
518 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
519 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
520 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
521522 bool isOffline = false;
523524 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
525 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
526 DateTime today = DateTime.Now;
527 var cHour = DateTime.Now.TimeOfDay;
528 int cDay = (int)DateTime.Now.DayOfWeek;
529 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
530 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
531 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
532 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
533 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
534 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
535 if (isNoValidDate || isOvertime)
536 {
537 isOffline = true;
538 }
539540 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
541542 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
543544 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
545 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
546 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
547548 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
549 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
550 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
551552 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
553 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
554 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
555556 //*** Start Scanapp configuration ***\\
557 bool hideHeader = false;
558 bool hideFooter = false;
559 bool hideBottombar = false;
560561 if (HttpContext.Current.Session["ScanApp"] != null)
562 {
563 hideHeader = mc.ScanAppConfig.ShowHeader;
564 hideFooter = mc.ScanAppConfig.ShowFooter;
565 hideBottombar = mc.ScanAppConfig.ShowBottombar;
566 }
567 // END Scanapp configration **\\
568569570571 #line default
572 #line hidden
573 WriteLiteral("\r\n\r\n");
574575576 #line 170 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
577578579 #line default
580 #line hidden
581 WriteLiteral("\r\n");
582583 WriteLiteral("\r\n");
584585 WriteLiteral("\r\n");
586587 WriteLiteral("\r\n");
588589 WriteLiteral("\r\n");
590591 WriteLiteral("\r\n");
592593 WriteLiteral("\r\n");
594595596 #line 243 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
597598599 #line default
600 #line hidden
601 WriteLiteral("\r\n");
602603 WriteLiteral("\r\n");
604605 WriteLiteral("\r\n");
606607 WriteLiteral("\r\n");
608609 WriteLiteral("\r\n\r\n\t<header");
610611 WriteLiteral(" style=\"padding: 25px;\"");
612613 WriteLiteral(">\r\n\t\t<h1>Header Configuration</h1>\r\n\t</header>\r\n\r\n\t<h2><i");
614615 WriteLiteral(" class=\"fas fa-desktop-alt\"");
616617 WriteLiteral("></i> Desktop</h2>\r\n\t<div");
618619 WriteLiteral(" style=\"display: flex; flex-direction: column; padding: 25px; background-color:#f" +
620 "1f1f1;\"");
621622 WriteLiteral(">\r\n");
623624 WriteLiteral("\t\t");
625626627 #line 272 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
628 Write(Model.Grid("LayoutDesktop", "Layout Desktop", "default:true;sort:1", "Configuration/Layout/Header"));
629630631 #line default
632 #line hidden
633 WriteLiteral("\r\n\t</div>\r\n\r\n\t<h2><i");
634635 WriteLiteral(" class=\"fas fa-mobile-alt\"");
636637 WriteLiteral("></i> Mobile</h2>\r\n\t<div");
638639 WriteLiteral(" style=\"display: flex; flex-direction: column; padding: 25px; background-color:#f" +
640 "1f1f1;\"");
641642 WriteLiteral(">\r\n");
643644 WriteLiteral("\t\t");
645646647 #line 277 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
648 Write(Model.Grid("LayoutMobile", "Layout mobile", "default:true;sort:1", "Configuration/Layout/Header"));
649650651 #line default
652 #line hidden
653 WriteLiteral("\r\n\t</div>\r\n\r\n");
654655656 #line 280 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
657658659 #line default
660 #line hidden
661662 #line 280 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
663 if (font_configuration != null)
664 {
665 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
666 {
667668669 #line default
670 #line hidden
671 WriteLiteral("\t\t\t<link");
672673 WriteAttribute("href", Tuple.Create(" href=\"", 11486), Tuple.Create("\"", 11510)
674675 #line 284 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
676 , Tuple.Create(Tuple.Create("", 11493), Tuple.Create<System.Object, System.Int32>(item["FontLink"]
677678 #line default
679 #line hidden
680 , 11493), false)
681 );
682683 WriteLiteral(" rel=\"stylesheet\"");
684685 WriteLiteral(">\r\n");
686687688 #line 285 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml"
689 }
690 }
691692693 #line default
694 #line hidden
695 WriteLiteral("\r\n\t<link");
696697 WriteLiteral(" rel=\"stylesheet\"");
698699 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\"");
700701 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" +
702 "QU\"");
703704 WriteLiteral(" crossorigin=\"anonymous\"");
705706 WriteLiteral(">\r\n\r\n</body>\r\n</html>\r\n");
707708 }
709 }
710 }
711
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 9 @Title("Configuration page template")
10 11 @{
12 var websitesettings = Dynamicweb.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id);
13 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
14 15 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name;
16 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
17 }
18 19 <!DOCTYPE html>
20 <html prefix="og: http://ogp.me/ns#">
21 <head>
22 23 </head>
24 <body>
25 <link href="@appcss" rel="stylesheet" />
26 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
27 28 @using System;
29 @using System.Web;
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.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 System.Web.HttpContext.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 HttpContext.Current.Session["BaseSettings"] = BaseSettings;
87 88 //if (HttpContext.Current.Session["BaseSettings"] == null)
89 //{
90 91 //}
92 //else
93 //{
94 // BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"];
95 // if (BaseSettings.AreaID != Pageview.AreaID)
96 // {
97 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
98 // HttpContext.Current.Session["BaseSettings"] = BaseSettings;
99 // }
100 //}
101102 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
103 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
104105 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
106107 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
108 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
109 var langName = Pageview.Area.Culture;
110111 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
112 var designRoot = BaseSettings.DesignRoot;
113114 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;
120121 bool isOffline = false;
122123 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 }
138139 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
140141 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
142143 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);
146147 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;
150151 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");
154155 //*** Start Scanapp configuration ***\\
156 bool hideHeader = false;
157 bool hideFooter = false;
158 bool hideBottombar = false;
159160 if (HttpContext.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 **\\
167168 }
169170 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
171 @using System;
172 @using System.Web;
173 @using System.Linq;
174 @using System.Globalization;
175176 @using Dynamicweb;
177 @using Dynamicweb.Content.Items;
178 @using Dynamicweb.Environment;
179 @using Dynamicweb.Frontend;
180 @using Dynamicweb.Frontend.Navigation;
181182 @using Bluedesk.Tools.Generic;
183184 @using Bluedesk.DynamicWeb.ItemTypes;
185 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
186 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
187188 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
189 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
190 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
191192 @helper RenderCSSKeyAndValue(string Key, string Value)
193 {
194 if (!string.IsNullOrWhiteSpace(Value))
195 {
196 <text>@Key : @Value !important;</text>
197 }
198 }
199200 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
201 {
202203 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
204 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
205 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
206 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
207208 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
209210 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
211 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
212213 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
214 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
215216 <text>
217218 --Position: @Position;
219220 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding)
221222 @RenderCSSKeyAndValue("--Top", Top)
223 @RenderCSSKeyAndValue("--Left", Left)
224 @RenderCSSKeyAndValue("--Right", Right)
225 @RenderCSSKeyAndValue("--Bottom", Bottom)
226227 @RenderCSSKeyAndValue("--Color", Color)
228 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize)
229 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle)
230231 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight)
232 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily)
233 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight)
234235 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor)
236 @RenderCSSKeyAndValue("--BorderColor", BorderColor)
237 @RenderCSSKeyAndValue("--BorderSize", BorderSize)
238239 </text>
240241 }
242243 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
244 @using System;
245 @using System.Web;
246 @using System.Linq;
247 @using System.Globalization;
248249 @using Dynamicweb;
250 @using Dynamicweb.Content.Items;
251 @using Dynamicweb.Environment;
252 @using Dynamicweb.Frontend;
253 @using Dynamicweb.Frontend.Navigation;
254255 @using Bluedesk.Tools.Generic;
256257 @using Bluedesk.DynamicWeb.ItemTypes;
258 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
259260 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
261 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
262 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
263 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
264265266 <header style="padding: 25px;">
267 <h1>Header Configuration</h1>
268 </header>
269270 <h2><i class="fas fa-desktop-alt"></i> Desktop</h2>
271 <div style="display: flex; flex-direction: column; padding: 25px; background-color:#f1f1f1;">
272 @Model.Grid("LayoutDesktop", "Layout Desktop", "default:true;sort:1", "Configuration/Layout/Header")
273 </div>
274275 <h2><i class="fas fa-mobile-alt"></i> Mobile</h2>
276 <div style="display: flex; flex-direction: column; padding: 25px; background-color:#f1f1f1;">
277 @Model.Grid("LayoutMobile", "Layout mobile", "default:true;sort:1", "Configuration/Layout/Header")
278 </div>
279280 @if (font_configuration != null)
281 {
282 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
283 {
284 <link href="@item["FontLink"]" rel="stylesheet">
285 }
286 }
287288 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous">
289290 </body>
291 </html>
292