Error compiling template "Designs/ClientBase_generated/_parsed/MasterConfigurationPage.parsed.cshtml"
Line 426: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 426: 'Services.Items' is obsolete: 'Use Dynamicweb.Content.Services.Items instead.'
Line 427: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 427: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 443: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 443: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 491: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 491: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 514: A local variable or function named 'isVisualEditor' is already defined in this scope
Line 544: A local variable or function named 'font_configuration' is already defined in this scope
Line 544: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 544: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 551: A local variable or function named 'designRoot' is already defined in this scope
Line 580: A local variable or function named 'appcss' is already defined in this scope
Line 1084: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 1084: 'Services.Items' is obsolete: 'Use Dynamicweb.Content.Services.Items instead.'
Line 1099: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 1099: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 1101: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 1101: 'Services.Items' is obsolete: 'Use Dynamicweb.Content.Services.Items instead.'
Line 560: 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 280 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
14 using System;
15 16 #line default
17 #line hidden
18 using System.Collections.Generic;
19 20 #line 282 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
21 using System.Linq;
22 23 #line default
24 #line hidden
25 26 #line 285 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
27 using Dynamicweb;
28 29 #line default
30 #line hidden
31 32 #line 4 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
33 using Dynamicweb.Content;
34 35 #line default
36 #line hidden
37 38 #line 286 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
39 using Dynamicweb.Content.Items;
40 41 #line default
42 #line hidden
43 44 #line 6 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
45 using Bluedesk.DynamicWeb.ItemTypes.Pages;
46 47 #line default
48 #line hidden
49 50 #line 7 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
51 using Bluedesk.Tools.DynamicWeb.ExtensionMethods;
52 53 #line default
54 #line hidden
55 56 #line 291 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
57 using Bluedesk.Tools.Generic;
58 59 #line default
60 #line hidden
61 62 #line 283 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
63 using System.Globalization;
64 65 #line default
66 #line hidden
67 68 #line 293 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
69 using Bluedesk.DynamicWeb.ItemTypes;
70 71 #line default
72 #line hidden
73 74 #line 294 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
75 using Bluedesk.DynamicWeb.ItemTypes.Settings;
76 77 #line default
78 #line hidden
79 80 #line 299 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
81 using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
82 83 #line default
84 #line hidden
85 86 #line 297 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
87 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
88 89 #line default
90 #line hidden
91 92 #line 287 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
93 using Dynamicweb.Environment;
94 95 #line default
96 #line hidden
97 98 #line 288 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
99 using Dynamicweb.Frontend;
100101 #line default
102 #line hidden
103104 #line 281 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
105 using System.Web;
106107 #line default
108 #line hidden
109110 #line 296 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
111 using Bluedesk.DynamicWeb.ItemTypes.Configuration;
112113 #line default
114 #line hidden
115116 #line 289 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
117 using Dynamicweb.Frontend.Navigation;
118119 #line default
120 #line hidden
121122 #line 84 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
123 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
124125 #line default
126 #line hidden
127128 #line 298 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
129 using Bluedesk.DynamicWeb.ItemTypes.Extensions;
130131 #line default
132 #line hidden
133134135 public class RazorEngine_11e09e08ccbc414fbf1e0e642f8deb9e : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> {
136137 #line hidden
138139 #line 228 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
140 public RazorEngine.Templating.TemplateWriter RenderCSSKeyAndValue(string Key, string Value)
141 {
142 #line default
143 #line hidden
144 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
145146 #line 229 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
147148 if (!string.IsNullOrWhiteSpace(Value))
149 {
150151152 #line default
153 #line hidden
154 WriteLiteralTo(__razor_helper_writer, "\t\t");
155156157 #line 232 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
158 WriteTo(__razor_helper_writer, Key);
159160161 #line default
162 #line hidden
163 WriteLiteralTo(__razor_helper_writer, " : ");
164165166 #line 232 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
167 WriteTo(__razor_helper_writer, Value);
168169170 #line default
171 #line hidden
172 WriteLiteralTo(__razor_helper_writer, " !important;");
173174 WriteLiteralTo(__razor_helper_writer, "\r\n");
175176177 #line 233 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
178 }
179180181 #line default
182 #line hidden
183 });
184185 #line 234 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
186 }
187 #line default
188 #line hidden
189190191 #line 236 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
192 public RazorEngine.Templating.TemplateWriter SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
193 {
194 #line default
195 #line hidden
196 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
197198 #line 237 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
199200201 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
202 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
203 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
204 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
205206 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
207208 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
209 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
210211 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
212 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
213214215216 #line default
217 #line hidden
218 WriteLiteralTo(__razor_helper_writer, "\t");
219220 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t\t--Position:\t\t");
221222223 #line 254 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
224 WriteTo(__razor_helper_writer, Position);
225226227 #line default
228 #line hidden
229 WriteLiteralTo(__razor_helper_writer, ";\r\n\r\n");
230231 WriteLiteralTo(__razor_helper_writer, "\t\t");
232233234 #line 256 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
235 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding));
236237238 #line default
239 #line hidden
240 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
241242 WriteLiteralTo(__razor_helper_writer, "\t\t");
243244245 #line 258 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
246 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Top", Top));
247248249 #line default
250 #line hidden
251 WriteLiteralTo(__razor_helper_writer, "\r\n");
252253 WriteLiteralTo(__razor_helper_writer, "\t\t");
254255256 #line 259 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
257 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Left", Left));
258259260 #line default
261 #line hidden
262 WriteLiteralTo(__razor_helper_writer, "\r\n");
263264 WriteLiteralTo(__razor_helper_writer, "\t\t");
265266267 #line 260 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
268 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Right", Right));
269270271 #line default
272 #line hidden
273 WriteLiteralTo(__razor_helper_writer, "\r\n");
274275 WriteLiteralTo(__razor_helper_writer, "\t\t");
276277278 #line 261 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
279 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Bottom", Bottom));
280281282 #line default
283 #line hidden
284 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
285286 WriteLiteralTo(__razor_helper_writer, "\t\t");
287288289 #line 263 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
290 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Color", Color));
291292293 #line default
294 #line hidden
295 WriteLiteralTo(__razor_helper_writer, "\r\n");
296297 WriteLiteralTo(__razor_helper_writer, "\t\t");
298299300 #line 264 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
301 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize));
302303304 #line default
305 #line hidden
306 WriteLiteralTo(__razor_helper_writer, "\r\n");
307308 WriteLiteralTo(__razor_helper_writer, "\t\t");
309310311 #line 265 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
312 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle));
313314315 #line default
316 #line hidden
317 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
318319 WriteLiteralTo(__razor_helper_writer, "\t\t");
320321322 #line 267 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
323 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight));
324325326 #line default
327 #line hidden
328 WriteLiteralTo(__razor_helper_writer, "\r\n");
329330 WriteLiteralTo(__razor_helper_writer, "\t\t");
331332333 #line 268 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
334 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily));
335336337 #line default
338 #line hidden
339 WriteLiteralTo(__razor_helper_writer, "\r\n");
340341 WriteLiteralTo(__razor_helper_writer, "\t\t");
342343344 #line 269 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
345 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight));
346347348 #line default
349 #line hidden
350 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n");
351352 WriteLiteralTo(__razor_helper_writer, "\t\t");
353354355 #line 271 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
356 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor));
357358359 #line default
360 #line hidden
361 WriteLiteralTo(__razor_helper_writer, "\r\n");
362363 WriteLiteralTo(__razor_helper_writer, "\t\t");
364365366 #line 272 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
367 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderColor", BorderColor));
368369370 #line default
371 #line hidden
372 WriteLiteralTo(__razor_helper_writer, "\r\n");
373374 WriteLiteralTo(__razor_helper_writer, "\t\t");
375376377 #line 273 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
378 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderSize", BorderSize));
379380381 #line default
382 #line hidden
383 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t");
384385 WriteLiteralTo(__razor_helper_writer, "\r\n");
386387388 #line 276 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
389390391392 #line default
393 #line hidden
394 });
395396 #line 277 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
397 }
398 #line default
399 #line hidden
400401402 public RazorEngine_11e09e08ccbc414fbf1e0e642f8deb9e() {
403 }
404405 public override void Execute() {
406 WriteLiteral("\r\n");
407408 WriteLiteral("\r\n");
409410 WriteLiteral("\r\n");
411412 WriteLiteral("\r\n");
413414415 #line 30 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
416 Write(Title("Configuration page template"));
417418419 #line default
420 #line hidden
421 WriteLiteral("\r\n\r\n");
422423424 #line 32 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
425426 var websitesettings = Dynamicweb.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id);
427 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
428429 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name;
430 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
431432 bool isVisualEditor = Dynamicweb.Context.Current.Request.GetBoolean("visualedit");
433434 if (isVisualEditor)
435 {
436 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
437 }
438439 string paragraphID = Model.ItemId;
440 MasterConfigurationPage _data = ItemManager.Storage.GetById<MasterConfigurationPage>(paragraphID ?? "0");
441442 string ItemTypeId = _data.HeaderConfigurationID;
443 int HeaderLayoutID = Dynamicweb.Services.Pages.GetPageForItem("HeaderConfigurationPage", ItemTypeId).ID;
444445446447 #line default
448 #line hidden
449 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n<html");
450451 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\"");
452453 WriteLiteral(">\r\n<head>\r\n\r\n</head>\r\n<body>\r\n\r\n\t<link");
454455 WriteAttribute("href", Tuple.Create(" href=\"", 1974), Tuple.Create("\"", 1988)
456457 #line 61 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
458 , Tuple.Create(Tuple.Create("", 1981), Tuple.Create<System.Object, System.Int32>(appcss
459460 #line default
461 #line hidden
462 , 1981), false)
463 );
464465 WriteLiteral(" rel=\"stylesheet\"");
466467 WriteLiteral(" />\r\n");
468469470 #line 62 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
471472473 #line default
474 #line hidden
475 WriteLiteral("\r\n");
476477 WriteLiteral("\r\n");
478479 WriteLiteral("\r\n");
480481 WriteLiteral("\r\n");
482483 WriteLiteral("\r\n");
484485 WriteLiteral("\r\n");
486487488 #line 86 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
489490491 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
492 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
493494 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
495496 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
497498 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
499 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
500501 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True";
502 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers;
503 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber;
504 if(pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) {
505 WithVATBool = false;
506 }
507 if(pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) {
508 WithVATBool = false;
509 }
510 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower();
511 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
512513 bool IsNotContentManager = false;
514 bool isVisualEditor = Pageview.IsVisualEditorMode;
515516 if (isVisualEditor)
517 {
518 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
519 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
520 }
521522 BaseSettingsObj BaseSettings = new BaseSettingsObj();
523524 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
525 HttpContext.Current.Session["BaseSettings"] = BaseSettings;
526527 //if (HttpContext.Current.Session["BaseSettings"] == null)
528 //{
529530 //}
531 //else
532 //{
533 // BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"];
534 // if (BaseSettings.AreaID != Pageview.AreaID)
535 // {
536 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
537 // HttpContext.Current.Session["BaseSettings"] = BaseSettings;
538 // }
539 //}
540541 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
542 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
543544 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
545546 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
547 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
548 var langName = Pageview.Area.Culture;
549550 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
551 var designRoot = BaseSettings.DesignRoot;
552553 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
554 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
555 var emailadress = BaseSettings.CorporateSettings.Emailadress;
556 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
557 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
558 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
559560 bool isOffline = false;
561562 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
563 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
564 DateTime today = DateTime.Now;
565 var cHour = DateTime.Now.TimeOfDay;
566 int cDay = (int)DateTime.Now.DayOfWeek;
567 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
568 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
569 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
570 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
571 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
572 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
573 if (isNoValidDate || isOvertime)
574 {
575 isOffline = true;
576 }
577578 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
579580 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
581582 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
583 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
584 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
585586 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
587 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
588 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
589590 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
591 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
592 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
593594 //*** Start Scanapp configuration ***\\
595 bool hideHeader = false;
596 bool hideFooter = false;
597 bool hideBottombar = false;
598599 if (HttpContext.Current.Session["ScanApp"] != null)
600 {
601 hideHeader = mc.ScanAppConfig.ShowHeader;
602 hideFooter = mc.ScanAppConfig.ShowFooter;
603 hideBottombar = mc.ScanAppConfig.ShowBottombar;
604 }
605 // END Scanapp configration **\\
606607608609 #line default
610 #line hidden
611 WriteLiteral("\r\n\r\n");
612613614 #line 206 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
615616617 #line default
618 #line hidden
619 WriteLiteral("\r\n");
620621 WriteLiteral("\r\n");
622623 WriteLiteral("\r\n");
624625 WriteLiteral("\r\n");
626627 WriteLiteral("\r\n");
628629 WriteLiteral("\r\n");
630631 WriteLiteral("\r\n");
632633634 #line 279 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
635636637 #line default
638 #line hidden
639 WriteLiteral("\r\n");
640641 WriteLiteral("\r\n");
642643 WriteLiteral("\r\n");
644645 WriteLiteral("\r\n");
646647 WriteLiteral("\r\n\r\n\t<header");
648649 WriteLiteral(" style=\"padding: 25px; display: flex; flex-direction: row;\"");
650651 WriteLiteral(">\r\n\t\t<div>\r\n\t\t\t<h1>Branding Stylesheet</h1>\r\n\t\t\t<h2");
652653 WriteLiteral(" style=\"font-weight: normal;\"");
654655 WriteLiteral(">");
656657658 #line 305 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
659 Write(_data.Title);
660661662 #line default
663 #line hidden
664 WriteLiteral("</h2>\r\n\t\t\t<button");
665666 WriteLiteral(" onclick=\"toggleClass(\'.slidePanel\', \'open\'); toggleClass(\'main\', \'blur\')\"");
667668 WriteLiteral(" class=\"togglePanelButton\"");
669670 WriteLiteral(">Open panel</button>\r\n\t\t</div>\r\n\t\t<nav");
671672 WriteLiteral(" style=\"display: flex; flex-direction: row; margin-left: 50px\"");
673674 WriteLiteral(">\r\n\r\n");
675676677 #line 310 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
678679680 #line default
681 #line hidden
682683 #line 310 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
684 if (System.Web.HttpContext.Current.Session["PreviousPage"] != null)
685 {
686687688 #line default
689 #line hidden
690 WriteLiteral("\t\t\t\t<a");
691692 WriteAttribute("href", Tuple.Create(" href=\"", 12307), Tuple.Create("\"", 12386)
693 , Tuple.Create(Tuple.Create("", 12314), Tuple.Create("/Default.aspx?ID=", 12314), true)
694695 #line 312 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
696 , Tuple.Create(Tuple.Create("", 12331), Tuple.Create<System.Object, System.Int32>(System.Web.HttpContext.Current.Session["PreviousPage"]
697698 #line default
699 #line hidden
700 , 12331), false)
701 );
702703 WriteLiteral(" class=\"ConfigurationButton\"");
704705 WriteLiteral("><i");
706707 WriteLiteral(" class=\"icon fa-light fa-reply\"");
708709 WriteLiteral("></i></a>\r\n");
710711712 #line 313 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
713 }
714715716 #line default
717 #line hidden
718 WriteLiteral("\t\t\t<a");
719720 WriteLiteral(" href=\"/Default.aspx?ID=1598\"");
721722 WriteLiteral(" class=\"ConfigurationButton\"");
723724 WriteLiteral("><i");
725726 WriteLiteral(" class=\"icon fa-light fa-grid-horizontal\"");
727728 WriteLiteral("></i><label>Dashboard</label></a>\r\n\t\t\t<a");
729730 WriteLiteral(" href=\"/Default.aspx?ID=1055\"");
731732 WriteLiteral(" class=\"ConfigurationButton\"");
733734 WriteLiteral("><i");
735736 WriteLiteral(" class=\"icon fa-light fa-diagram-cells\"");
737738 WriteLiteral("></i><label>Masters</label></a>\r\n\t\t\t<a");
739740 WriteLiteral(" href=\"/Default.aspx?ID=1055\"");
741742 WriteLiteral(" class=\"ConfigurationButton\"");
743744 WriteLiteral("><i");
745746 WriteLiteral(" class=\"icon fa-light fa-link\"");
747748 WriteLiteral("></i><label>Buttons</label></a>\r\n\t\t\t<a");
749750 WriteLiteral(" href=\"/Default.aspx?ID=1009\"");
751752 WriteLiteral(" class=\"ConfigurationButton\"");
753754 WriteLiteral("><i");
755756 WriteLiteral(" class=\"icon fa-light fa-paintbrush\"");
757758 WriteLiteral("></i><label>Backgrounds</label></a>\r\n\t\t\t<a");
759760 WriteLiteral(" href=\"/Default.aspx?ID=1460\"");
761762 WriteLiteral(" class=\"ConfigurationButton\"");
763764 WriteLiteral("><i");
765766 WriteLiteral(" class=\"icon fa-light fa-megaphone\"");
767768 WriteLiteral("></i><label>Jumbotrons</label></a>\r\n\t\t\t<a");
769770 WriteLiteral(" href=\"/Default.aspx?ID=1518\"");
771772 WriteLiteral(" class=\"ConfigurationButton\"");
773774 WriteLiteral("><i");
775776 WriteLiteral(" class=\"icon fa-light fa-brush\"");
777778 WriteLiteral("></i><label>Themes</label></a>\r\n\t\t\t<a");
779780 WriteLiteral(" href=\"/Default.aspx?ID=1450\"");
781782 WriteLiteral(" class=\"ConfigurationButton\"");
783784 WriteLiteral("><i");
785786 WriteLiteral(" class=\"icon fa-light fa-font\"");
787788 WriteLiteral("></i><label>Fonts</label></a>\r\n\t\t\t<a");
789790 WriteLiteral(" href=\"/Default.aspx?ID=1514\"");
791792 WriteLiteral(" class=\"ConfigurationButton\"");
793794 WriteLiteral("><i");
795796 WriteLiteral(" class=\"icon fa-light fa-computer\"");
797798 WriteLiteral("></i><label>Devices</label></a>\r\n\r\n\t\t</nav>\r\n\t</header>\r\n\t<main>\r\n\t\t<a");
799800 WriteAttribute("href", Tuple.Create(" href=\"", 13569), Tuple.Create("\"", 13608)
801 , Tuple.Create(Tuple.Create("", 13576), Tuple.Create("/Default.aspx?ID=", 13576), true)
802803 #line 326 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
804 , Tuple.Create(Tuple.Create("", 13593), Tuple.Create<System.Object, System.Int32>(HeaderLayoutID
805806 #line default
807 #line hidden
808 , 13593), false)
809 );
810811 WriteLiteral(" class=\"ConfigurationButton\"");
812813 WriteLiteral("><i");
814815 WriteLiteral(" class=\"icon fa-light fa-brush\"");
816817 WriteLiteral("></i><label>Edit Header configuration</label></a>\r\n");
818819 WriteLiteral("\t\t");
820821822 #line 327 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
823 Write(RenderGrid(HeaderLayoutID));
824825826 #line default
827 #line hidden
828 WriteLiteral(@"
829 </main>
830831 <style>
832 .ConfigurationButton {
833 display: flex;
834 flex-direction: column;
835 height: 100px;
836 width: 100px;
837 margin-right: 25px;
838 padding: 25px;
839 background-color: #f1f1f1;
840 justify-content: center;
841 align-items: center;
842 box-sizing: border-box;
843 text-align: center;
844 font-size: 12px;
845 }
846847 .ConfigurationButton .icon {
848 font-size: 25px;
849 }
850 </style>
851852 ");
853854 WriteLiteral("\t");
855856857 #line 351 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
858 Write(Model.Grid("Grid", "Configuration items", "default:true;sort:1", "Configuration"));
859860861 #line default
862 #line hidden
863 WriteLiteral("\r\n\r\n");
864865866 #line 353 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
867868869 #line default
870 #line hidden
871872 #line 353 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
873 if (font_configuration != null)
874 {
875 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
876 {
877878879 #line default
880 #line hidden
881 WriteLiteral("\t\t\t<link");
882883 WriteAttribute("href", Tuple.Create(" href=\"", 14472), Tuple.Create("\"", 14496)
884885 #line 357 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
886 , Tuple.Create(Tuple.Create("", 14479), Tuple.Create<System.Object, System.Int32>(item["FontLink"]
887888 #line default
889 #line hidden
890 , 14479), false)
891 );
892893 WriteLiteral(" rel=\"stylesheet\"");
894895 WriteLiteral(">\r\n");
896897898 #line 358 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
899 }
900 }
901902903 #line default
904 #line hidden
905 WriteLiteral("\r\n\t<link");
906907 WriteLiteral(" rel=\"stylesheet\"");
908909 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\"");
910911 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" +
912 "QU\"");
913914 WriteLiteral(" crossorigin=\"anonymous\"");
915916 WriteLiteral(">\r\n\t<script");
917918 WriteLiteral(" src=\"https://kit.fontawesome.com/a46eca85e2.js\"");
919920 WriteLiteral(" crossorigin=\"anonymous\"");
921922 WriteLiteral("></script>\r\n\r\n\t<style>\r\n\r\n\t\tbody {\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\tfont-family" +
923 ": \'Barlow\', sans-serif;\r\n\t\t}\r\n\r\n\t\t.slidePanel {\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 0;" +
924 "\r\n\t\t\tbottom: 0;\r\n\t\t\tmin-width: 500px;\r\n\t\t\tbox-shadow: -10px 10px 10px rgb(153 15" +
925 "3 255 / 10%);\r\n\t\t\tbackground-color: #FFFFFF;\r\n\t\t\tz-index: 1000;\r\n\t\t\tbox-sizing: " +
926 "border-box;\r\n\t\t\ttransition: all .5s ease-in;\r\n\t\t}\r\n\r\n\t\t\t.slidePanel.open {\r\n\t\t\t\t" +
927 "right: 0;\r\n\t\t\t}\r\n\r\n\t\t.slidePanel {\r\n\t\t\tright: -500px;\r\n\t\t\ttransition: all 0.5s e" +
928 "ase-in;\r\n\t\t}\r\n\r\n\t\t.slidePanel__container {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: rela" +
929 "tive;\r\n\t\t\theight: 100%;\r\n\t\t}\r\n\r\n\t\t.togglePanelButton {\r\n\t\t\tposition: fixed;\r\n\t\t\t" +
930 "top: 50px;\r\n\t\t\tleft: 50px;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\ta" +
931 "lign-items: center;\r\n\t\t\tcolor: white;\r\n\t\t\tbackground-color: black;\r\n\t\t\tpadding: " +
932 "0px 25px;\r\n\t\t\theight: 50px;\r\n\t\t\tcursor: pointer;\r\n\t\t\tz-index: 1000;\r\n\t\t}\r\n\r\n\t\t.c" +
933 "loseButton {\r\n\t\t\tposition: absolute;\r\n\t\t\tdisplay: flex;\r\n\t\t\ttop: 25px;\r\n\t\t\tright" +
934 ": 25px;\r\n\t\t\tfont-size: 2rem;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tcolor: black;\r\n\t\t}\r\n" +
935 "\r\n\r\n\t\t.blur {\r\n\t\t\tfilter: blur(4px);\r\n\t\t\tpointer-events: none;\r\n\t\t}\r\n\r\n\t\t.sideMe" +
936 "nu {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: absolute;\r\n\t\t\talign-items: center;\r\n\t\t\tmin" +
937 "-height: 100px;\r\n\t\t\tz-index: 1200;\r\n\t\t\ttop: 0;\r\n\t\t\tbottom: 0;\r\n\t\t\tright: 100%;\r\n" +
938 "\t\t}\r\n\r\n\t\t.sideMenu__link:first-child {\r\n\t\t\tmargin-top: 10px;\r\n\t\t}\r\n\r\n\t\t.sideMenu" +
939 "__link {\r\n\t\t\tposition: relative;\r\n\t\t\tflex-direction: column;\r\n\t\t\tdisplay: flex;\r" +
940 "\n\t\t\theight: 50px;\r\n\t\t\twidth: 50px;\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\tmargin-bot" +
941 "tom: 10px;\r\n\t\t\tmargin-left: 10px;\r\n\t\t\tmargin-right: 10px;\r\n\t\t\tjustify-content: s" +
942 "pace-between;\r\n\t\t\talign-items: center;\r\n\t\t\tfont-size: 10px;\r\n\t\t\tpadding: 10px;\r\n" +
943 "\t\t\tbox-sizing: border-box;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tcolor: rgb(22, 101, 12" +
944 "3);\r\n\t\t}\r\n\r\n\t\t\t.sideMenu__link label {\r\n\t\t\t\tfont-size: 12px;\r\n\t\t\t}\r\n\r\n\t\t\t.sideMe" +
945 "nu__link .icon {\r\n\t\t\t\tfont-size: 24px;\r\n\t\t\t}\r\n\r\n\t\t.sideMenu__container {\r\n\t\t\tdis" +
946 "play: flex;\r\n\t\t\tposition: relative;\r\n\t\t\tflex-direction: column;\r\n\t\t\tbox-shadow: " +
947 "-10px 10px 10px rgb(153 153 255 / 10%);\r\n\t\t\tbackground-color: white;\r\n\t\t}\r\n\t</st" +
948 "yle>\r\n\r\n\t<script>\r\n\t\tfunction toggleClass(ClassName, AddedClassName) {\r\n\t\t\tvar e" +
949 "lement = document.querySelector(ClassName);\r\n\t\t\tif (element.classList.contains(A" +
950 "ddedClassName)) {\r\n\t\t\t\telement.classList.remove(AddedClassName);\r\n\t\t\t} else {\r\n\t" +
951 "\t\t\telement.classList.add(AddedClassName);\r\n\t\t\t}\r\n\t\t}\r\n\t</script>\r\n\r\n\t<section");
952953 WriteLiteral(" class=\"slidePanel\"");
954955 WriteLiteral(" id=\"slidePanel\"");
956957 WriteLiteral(">\r\n\r\n\t\t<div");
958959 WriteLiteral(" class=\"slidePanel__container\"");
960961 WriteLiteral(">\r\n\r\n\t\t\t<a");
962963 WriteLiteral(" href=\"javasciprt:void(0);\"");
964965 WriteLiteral(" onclick=\"toggleClass(\'.slidePanel\', \'open\'); toggleClass(\'main\', \'blur\')\"");
966967 WriteLiteral(" class=\"closeButton\"");
968969 WriteLiteral(">\r\n\t\t\t\t<i");
970971 WriteLiteral(" class=\"fa-light fa-circle-xmark\"");
972973 WriteLiteral("></i>\r\n\t\t\t</a>\r\n\r\n\t\t\t<nav");
974975 WriteLiteral(" class=\"sideMenu\"");
976977 WriteLiteral(">\r\n\t\t\t\t<section");
978979 WriteLiteral(" class=\"sideMenu__container\"");
980981 WriteLiteral(">\r\n\t\t\t\t\t<a");
982983 WriteLiteral(" href=\"javascript:history.back();\"");
984985 WriteLiteral(" class=\"sideMenu__link\"");
986987 WriteLiteral("><i");
988989 WriteLiteral(" class=\"icon fa-light fa-reply\"");
990991 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
992993 WriteLiteral(" href=\"/dashboard-configuration\"");
994995 WriteLiteral(" class=\"sideMenu__link\"");
996997 WriteLiteral("><i");
998999 WriteLiteral(" class=\"icon fa-light fa-grid-horizontal\"");
10001001 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10021003 WriteLiteral(" href=\"javasciprt:void(0);\"");
10041005 WriteLiteral(" onclick=\"toggleClass(\'.slidePanel\', \'open\'); toggleClass(\'main\', \'blur\')\"");
10061007 WriteLiteral(" class=\"sideMenu__link\"");
10081009 WriteLiteral("><i");
10101011 WriteLiteral(" class=\"icon fa-light fa-diagram-cells\"");
10121013 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10141015 WriteLiteral(" href=\"/button-configuration\"");
10161017 WriteLiteral(" class=\"sideMenu__link\"");
10181019 WriteLiteral("><i");
10201021 WriteLiteral(" class=\"icon fa-light fa-link\"");
10221023 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10241025 WriteLiteral(" href=\"/background-configuration\"");
10261027 WriteLiteral(" class=\"sideMenu__link\"");
10281029 WriteLiteral("><i");
10301031 WriteLiteral(" class=\"icon fa-light fa-paintbrush\"");
10321033 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10341035 WriteLiteral(" href=\"/jumbotron-configuration\"");
10361037 WriteLiteral(" class=\"sideMenu__link\"");
10381039 WriteLiteral("><i");
10401041 WriteLiteral(" class=\"icon fa-light fa-megaphone\"");
10421043 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10441045 WriteLiteral(" href=\"/theme-configuration-page/theme-01\"");
10461047 WriteLiteral(" class=\"sideMenu__link\"");
10481049 WriteLiteral("><i");
10501051 WriteLiteral(" class=\"icon fa-light fa-brush\"");
10521053 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10541055 WriteLiteral(" href=\"/font-configuration\"");
10561057 WriteLiteral(" class=\"sideMenu__link\"");
10581059 WriteLiteral("><i");
10601061 WriteLiteral(" class=\"icon fa-light fa-font\"");
10621063 WriteLiteral("></i></a>\r\n\t\t\t\t\t<a");
10641065 WriteLiteral(" href=\"/device-manager\"");
10661067 WriteLiteral(" class=\"sideMenu__link\"");
10681069 WriteLiteral("><i");
10701071 WriteLiteral(" class=\"icon fa-light fa-computer\"");
10721073 WriteLiteral("></i></a>\r\n\t\t\t\t</section>\r\n\t\t\t</nav>\r\n\r\n");
107410751076 #line 513 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
107710781079 #line default
1080 #line hidden
10811082 #line 513 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
10831084 MasterConfigurationPage MCPage = Dynamicweb.Services.Items.GetItemById<MasterConfigurationPage>(Model.Area.Item.Id);
108510861087 #line default
1088 #line hidden
1089 WriteLiteral("\r\n\r\n\t\t\t<ul>\r\n");
109010911092 #line 518 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
109310941095 #line default
1096 #line hidden
10971098 #line 518 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
1099 foreach (Dynamicweb.Content.Page MasterConfigurationPage in Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId))
1100 {
1101 MCPage = Dynamicweb.Services.Items.GetItemById<MasterConfigurationPage>(MasterConfigurationPage.ID.ToString());
1102110311041105 #line default
1106 #line hidden
1107 WriteLiteral("\t\t\t\t\t<li><a");
11081109 WriteAttribute("href", Tuple.Create(" href=\"", 19050), Tuple.Create("\"", 19101)
1110 , Tuple.Create(Tuple.Create("", 19057), Tuple.Create("/Default.aspx?ID=", 19057), true)
11111112 #line 522 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
1113 , Tuple.Create(Tuple.Create("", 19074), Tuple.Create<System.Object, System.Int32>(MasterConfigurationPage.ID
11141115 #line default
1116 #line hidden
1117 , 19074), false)
1118 );
11191120 WriteLiteral(">Link naar master ");
112111221123 #line 522 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
1124 Write(MasterConfigurationPage.ID);
112511261127 #line default
1128 #line hidden
1129 WriteLiteral("</a></li>\r\n");
113011311132 #line 523 "D:\dynamicweb.net\Solutions\Bluedesk\viba.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\MasterConfigurationPage.parsed.cshtml"
11331134 }
113511361137 #line default
1138 #line hidden
1139 WriteLiteral("\t\t\t</ul>\r\n\r\n\t\t</div>\r\n\r\n\t</section>\r\n\r\n</body>\r\n</html>\r\n");
11401141 }
1142 }
1143 }
1144
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
2 @using System.Linq;
3 @using Dynamicweb;
4 @using Dynamicweb.Content;
5 @using Dynamicweb.Content.Items;
6 @using Bluedesk.DynamicWeb.ItemTypes.Pages;
7 @using Bluedesk.Tools.DynamicWeb.ExtensionMethods;
8 9 @using Bluedesk.Tools.Generic;
10 @using System.Globalization;
11 12 @using Bluedesk.DynamicWeb.ItemTypes;
13 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
14 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
15 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
16 17 @using System;
18 @using Dynamicweb;
19 @using Dynamicweb.Environment;
20 @using Dynamicweb.Frontend;
21 @using System.Web;
22 @using Bluedesk.Tools.Generic;
23 @using System.Globalization;
24 @using Dynamicweb.Content.Items;
25 @using Bluedesk.DynamicWeb.ItemTypes;
26 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
27 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
28 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
29 30 @Title("Configuration page template")
31 32 @{
33 var websitesettings = Dynamicweb.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id);
34 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
35 36 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name;
37 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
38 39 bool isVisualEditor = Dynamicweb.Context.Current.Request.GetBoolean("visualedit");
40 41 if (isVisualEditor)
42 {
43 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
44 }
45 46 string paragraphID = Model.ItemId;
47 MasterConfigurationPage _data = ItemManager.Storage.GetById<MasterConfigurationPage>(paragraphID ?? "0");
48 49 string ItemTypeId = _data.HeaderConfigurationID;
50 int HeaderLayoutID = Dynamicweb.Services.Pages.GetPageForItem("HeaderConfigurationPage", ItemTypeId).ID;
51 52 }
53 54 <!DOCTYPE html>
55 <html prefix="og: http://ogp.me/ns#">
56 <head>
57 58 </head>
59 <body>
60 61 <link href="@appcss" rel="stylesheet" />
62 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
63 64 @using System;
65 @using System.Web;
66 @using System.Linq;
67 @using System.Globalization;
68 69 @using Dynamicweb;
70 @using Dynamicweb.Content.Items;
71 @using Dynamicweb.Environment;
72 @using Dynamicweb.Frontend;
73 @using Dynamicweb.Frontend.Navigation;
74 75 @using Bluedesk.Tools.Generic;
76 77 @using Bluedesk.DynamicWeb.ItemTypes;
78 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
79 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
80 81 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
82 83 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
84 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend;
85 86 @{
87 88 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration");
89 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>();
90 91 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false;
92 93 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : "";
94 95 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration;
96 EcomConfig EcommerceConfiguration = mc.EcomConfiguration;
97 98 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True";
99 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers;
100 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber;
101 if(pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) {
102 WithVATBool = false;
103 }
104 if(pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) {
105 WithVATBool = false;
106 }
107 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower();
108 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower();
109110 bool IsNotContentManager = false;
111 bool isVisualEditor = Pageview.IsVisualEditorMode;
112113 if (isVisualEditor)
114 {
115 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID;
116 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true);
117 }
118119 BaseSettingsObj BaseSettings = new BaseSettingsObj();
120121 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
122 HttpContext.Current.Session["BaseSettings"] = BaseSettings;
123124 //if (HttpContext.Current.Session["BaseSettings"] == null)
125 //{
126127 //}
128 //else
129 //{
130 // BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"];
131 // if (BaseSettings.AreaID != Pageview.AreaID)
132 // {
133 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview);
134 // HttpContext.Current.Session["BaseSettings"] = BaseSettings;
135 // }
136 //}
137138 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration;
139 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons;
140141 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration");
142143 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain();
144 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName;
145 var langName = Pageview.Area.Culture;
146147 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue();
148 var designRoot = BaseSettings.DesignRoot;
149150 var phonenumber = BaseSettings.CorporateSettings.Phonenumber;
151 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty);
152 var emailadress = BaseSettings.CorporateSettings.Emailadress;
153 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right";
154 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm;
155 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor;
156157 bool isOffline = false;
158159 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime;
160 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime;
161 DateTime today = DateTime.Now;
162 var cHour = DateTime.Now.TimeOfDay;
163 int cDay = (int)DateTime.Now.DayOfWeek;
164 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5);
165 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None);
166 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture);
167 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat;
168 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay;
169 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd;
170 if (isNoValidDate || isOvertime)
171 {
172 isOffline = true;
173 }
174175 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false;
176177 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css");
178179 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true);
180 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true);
181 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true);
182183 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon;
184 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16;
185 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32;
186187 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js");
188 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js");
189 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js");
190191 //*** Start Scanapp configuration ***\\
192 bool hideHeader = false;
193 bool hideFooter = false;
194 bool hideBottombar = false;
195196 if (HttpContext.Current.Session["ScanApp"] != null)
197 {
198 hideHeader = mc.ScanAppConfig.ShowHeader;
199 hideFooter = mc.ScanAppConfig.ShowFooter;
200 hideBottombar = mc.ScanAppConfig.ShowBottombar;
201 }
202 // END Scanapp configration **\\
203204 }
205206 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
207 @using System;
208 @using System.Web;
209 @using System.Linq;
210 @using System.Globalization;
211212 @using Dynamicweb;
213 @using Dynamicweb.Content.Items;
214 @using Dynamicweb.Environment;
215 @using Dynamicweb.Frontend;
216 @using Dynamicweb.Frontend.Navigation;
217218 @using Bluedesk.Tools.Generic;
219220 @using Bluedesk.DynamicWeb.ItemTypes;
221 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
222 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
223224 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
225 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
226 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
227228 @helper RenderCSSKeyAndValue(string Key, string Value)
229 {
230 if (!string.IsNullOrWhiteSpace(Value))
231 {
232 <text>@Key : @Value !important;</text>
233 }
234 }
235236 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration)
237 {
238239 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : "";
240 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : "";
241 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : "";
242 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : "";
243244 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative";
245246 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "";
247 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? "";
248249 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? "";
250 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : "";
251252 <text>
253254 --Position: @Position;
255256 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding)
257258 @RenderCSSKeyAndValue("--Top", Top)
259 @RenderCSSKeyAndValue("--Left", Left)
260 @RenderCSSKeyAndValue("--Right", Right)
261 @RenderCSSKeyAndValue("--Bottom", Bottom)
262263 @RenderCSSKeyAndValue("--Color", Color)
264 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize)
265 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle)
266267 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight)
268 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily)
269 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight)
270271 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor)
272 @RenderCSSKeyAndValue("--BorderColor", BorderColor)
273 @RenderCSSKeyAndValue("--BorderSize", BorderSize)
274275 </text>
276277 }
278279 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
280 @using System;
281 @using System.Web;
282 @using System.Linq;
283 @using System.Globalization;
284285 @using Dynamicweb;
286 @using Dynamicweb.Content.Items;
287 @using Dynamicweb.Environment;
288 @using Dynamicweb.Frontend;
289 @using Dynamicweb.Frontend.Navigation;
290291 @using Bluedesk.Tools.Generic;
292293 @using Bluedesk.DynamicWeb.ItemTypes;
294 @using Bluedesk.DynamicWeb.ItemTypes.Settings;
295296 @using Bluedesk.DynamicWeb.ItemTypes.Configuration;
297 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution;
298 @using Bluedesk.DynamicWeb.ItemTypes.Extensions;
299 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration;
300301302 <header style="padding: 25px; display: flex; flex-direction: row;">
303 <div>
304 <h1>Branding Stylesheet</h1>
305 <h2 style="font-weight: normal;">@_data.Title</h2>
306 <button onclick="toggleClass('.slidePanel', 'open'); toggleClass('main', 'blur')" class="togglePanelButton">Open panel</button>
307 </div>
308 <nav style="display: flex; flex-direction: row; margin-left: 50px">
309310 @if (System.Web.HttpContext.Current.Session["PreviousPage"] != null)
311 {
312 <a href="/Default.aspx?ID=@System.Web.HttpContext.Current.Session["PreviousPage"]" class="ConfigurationButton"><i class="icon fa-light fa-reply"></i></a>
313 }
314 <a href="/Default.aspx?ID=1598" class="ConfigurationButton"><i class="icon fa-light fa-grid-horizontal"></i><label>Dashboard</label></a>
315 <a href="/Default.aspx?ID=1055" class="ConfigurationButton"><i class="icon fa-light fa-diagram-cells"></i><label>Masters</label></a>
316 <a href="/Default.aspx?ID=1055" class="ConfigurationButton"><i class="icon fa-light fa-link"></i><label>Buttons</label></a>
317 <a href="/Default.aspx?ID=1009" class="ConfigurationButton"><i class="icon fa-light fa-paintbrush"></i><label>Backgrounds</label></a>
318 <a href="/Default.aspx?ID=1460" class="ConfigurationButton"><i class="icon fa-light fa-megaphone"></i><label>Jumbotrons</label></a>
319 <a href="/Default.aspx?ID=1518" class="ConfigurationButton"><i class="icon fa-light fa-brush"></i><label>Themes</label></a>
320 <a href="/Default.aspx?ID=1450" class="ConfigurationButton"><i class="icon fa-light fa-font"></i><label>Fonts</label></a>
321 <a href="/Default.aspx?ID=1514" class="ConfigurationButton"><i class="icon fa-light fa-computer"></i><label>Devices</label></a>
322323 </nav>
324 </header>
325 <main>
326 <a href="/Default.aspx?ID=@HeaderLayoutID" class="ConfigurationButton"><i class="icon fa-light fa-brush"></i><label>Edit Header configuration</label></a>
327 @RenderGrid(HeaderLayoutID)
328 </main>
329330 <style>
331 .ConfigurationButton {
332 display: flex;
333 flex-direction: column;
334 height: 100px;
335 width: 100px;
336 margin-right: 25px;
337 padding: 25px;
338 background-color: #f1f1f1;
339 justify-content: center;
340 align-items: center;
341 box-sizing: border-box;
342 text-align: center;
343 font-size: 12px;
344 }
345346 .ConfigurationButton .icon {
347 font-size: 25px;
348 }
349 </style>
350351 @Model.Grid("Grid", "Configuration items", "default:true;sort:1", "Configuration")
352353 @if (font_configuration != null)
354 {
355 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>())
356 {
357 <link href="@item["FontLink"]" rel="stylesheet">
358 }
359 }
360361 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous">
362 <script src="https://kit.fontawesome.com/a46eca85e2.js" crossorigin="anonymous"></script>
363364 <style>
365366 body {
367 background-color: #f1f1f1;
368 font-family: 'Barlow', sans-serif;
369 }
370371 .slidePanel {
372 position: fixed;
373 top: 0;
374 bottom: 0;
375 min-width: 500px;
376 box-shadow: -10px 10px 10px rgb(153 153 255 / 10%);
377 background-color: #FFFFFF;
378 z-index: 1000;
379 box-sizing: border-box;
380 transition: all .5s ease-in;
381 }
382383 .slidePanel.open {
384 right: 0;
385 }
386387 .slidePanel {
388 right: -500px;
389 transition: all 0.5s ease-in;
390 }
391392 .slidePanel__container {
393 display: flex;
394 position: relative;
395 height: 100%;
396 }
397398 .togglePanelButton {
399 position: fixed;
400 top: 50px;
401 left: 50px;
402 display: flex;
403 justify-content: center;
404 align-items: center;
405 color: white;
406 background-color: black;
407 padding: 0px 25px;
408 height: 50px;
409 cursor: pointer;
410 z-index: 1000;
411 }
412413 .closeButton {
414 position: absolute;
415 display: flex;
416 top: 25px;
417 right: 25px;
418 font-size: 2rem;
419 text-decoration: none;
420 color: black;
421 }
422423424 .blur {
425 filter: blur(4px);
426 pointer-events: none;
427 }
428429 .sideMenu {
430 display: flex;
431 position: absolute;
432 align-items: center;
433 min-height: 100px;
434 z-index: 1200;
435 top: 0;
436 bottom: 0;
437 right: 100%;
438 }
439440 .sideMenu__link:first-child {
441 margin-top: 10px;
442 }
443444 .sideMenu__link {
445 position: relative;
446 flex-direction: column;
447 display: flex;
448 height: 50px;
449 width: 50px;
450 background-color: #f1f1f1;
451 margin-bottom: 10px;
452 margin-left: 10px;
453 margin-right: 10px;
454 justify-content: space-between;
455 align-items: center;
456 font-size: 10px;
457 padding: 10px;
458 box-sizing: border-box;
459 text-decoration: none;
460 color: rgb(22, 101, 123);
461 }
462463 .sideMenu__link label {
464 font-size: 12px;
465 }
466467 .sideMenu__link .icon {
468 font-size: 24px;
469 }
470471 .sideMenu__container {
472 display: flex;
473 position: relative;
474 flex-direction: column;
475 box-shadow: -10px 10px 10px rgb(153 153 255 / 10%);
476 background-color: white;
477 }
478 </style>
479480 <script>
481 function toggleClass(ClassName, AddedClassName) {
482 var element = document.querySelector(ClassName);
483 if (element.classList.contains(AddedClassName)) {
484 element.classList.remove(AddedClassName);
485 } else {
486 element.classList.add(AddedClassName);
487 }
488 }
489 </script>
490491 <section class="slidePanel" id="slidePanel">
492493 <div class="slidePanel__container">
494495 <a href="javasciprt:void(0);" onclick="toggleClass('.slidePanel', 'open'); toggleClass('main', 'blur')" class="closeButton">
496 <i class="fa-light fa-circle-xmark"></i>
497 </a>
498499 <nav class="sideMenu">
500 <section class="sideMenu__container">
501 <a href="javascript:history.back();" class="sideMenu__link"><i class="icon fa-light fa-reply"></i></a>
502 <a href="/dashboard-configuration" class="sideMenu__link"><i class="icon fa-light fa-grid-horizontal"></i></a>
503 <a href="javasciprt:void(0);" onclick="toggleClass('.slidePanel', 'open'); toggleClass('main', 'blur')" class="sideMenu__link"><i class="icon fa-light fa-diagram-cells"></i></a>
504 <a href="/button-configuration" class="sideMenu__link"><i class="icon fa-light fa-link"></i></a>
505 <a href="/background-configuration" class="sideMenu__link"><i class="icon fa-light fa-paintbrush"></i></a>
506 <a href="/jumbotron-configuration" class="sideMenu__link"><i class="icon fa-light fa-megaphone"></i></a>
507 <a href="/theme-configuration-page/theme-01" class="sideMenu__link"><i class="icon fa-light fa-brush"></i></a>
508 <a href="/font-configuration" class="sideMenu__link"><i class="icon fa-light fa-font"></i></a>
509 <a href="/device-manager" class="sideMenu__link"><i class="icon fa-light fa-computer"></i></a>
510 </section>
511 </nav>
512513 @{
514 MasterConfigurationPage MCPage = Dynamicweb.Services.Items.GetItemById<MasterConfigurationPage>(Model.Area.Item.Id);
515 }
516517 <ul>
518 @foreach (Dynamicweb.Content.Page MasterConfigurationPage in Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId))
519 {
520 MCPage = Dynamicweb.Services.Items.GetItemById<MasterConfigurationPage>(MasterConfigurationPage.ID.ToString());
521522 <li><a href="/Default.aspx?ID=@MasterConfigurationPage.ID">Link naar master @MasterConfigurationPage.ID</a></li>
523524 }
525 </ul>
526527 </div>
528529 </section>
530531 </body>
532 </html>
533