Error compiling template "Designs/ClientBase_generated/_parsed/LayoutConfigurationPage.parsed.cshtml"
Line 402: 'Services' está obsoleto: 'Use Dynamicweb.Content.Services instead.'
Line 402: 'Services.Items' está obsoleto: 'Use Dynamicweb.Content.Services.Items instead.'
Line 403: 'Services' está obsoleto: 'Use Dynamicweb.Content.Services instead.'
Line 403: 'Services.Pages' está obsoleto: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 453: 'Services' está obsoleto: 'Use Dynamicweb.Content.Services instead.'
Line 453: 'Services.Pages' está obsoleto: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 506: Una variable o función local denominada 'font_configuration' ya se ha definido en este ámbito
Line 506: 'Services' está obsoleto: 'Use Dynamicweb.Content.Services instead.'
Line 506: 'Services.Pages' está obsoleto: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 513: Una variable o función local denominada 'designRoot' ya se ha definido en este ámbito
Line 542: Una variable o función local denominada 'appcss' ya se ha definido en este ámbito
Line 522: La variable 'isOffline' está asignada pero su valor nunca se usa

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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.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\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 99 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 100 101 #line default 102 #line hidden 103 104 #line 48 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 105 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 106 107 #line default 108 #line hidden 109 110 #line 262 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 111 using Bluedesk.DynamicWeb.ItemTypes.Extensions; 112 113 #line default 114 #line hidden 115 116 117 public class RazorEngine_36c73530653c4219b12f278f8ed0d29c : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 118 119 #line hidden 120 121 #line 192 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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 => { 127 128 #line 193 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 129 130 if (!string.IsNullOrWhiteSpace(Value)) 131 { 132 133 134 #line default 135 #line hidden 136 WriteLiteralTo(__razor_helper_writer, "\t\t"); 137 138 139 #line 196 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 140 WriteTo(__razor_helper_writer, Key); 141 142 143 #line default 144 #line hidden 145 WriteLiteralTo(__razor_helper_writer, " : "); 146 147 148 #line 196 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 149 WriteTo(__razor_helper_writer, Value); 150 151 152 #line default 153 #line hidden 154 WriteLiteralTo(__razor_helper_writer, " !important;"); 155 156 WriteLiteralTo(__razor_helper_writer, "\r\n"); 157 158 159 #line 197 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 160 } 161 162 163 #line default 164 #line hidden 165 }); 166 167 #line 198 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 168 } 169 #line default 170 #line hidden 171 172 173 #line 200 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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 => { 179 180 #line 201 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 181 182 183 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : ""; 184 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : ""; 185 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : ""; 186 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : ""; 187 188 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative"; 189 190 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? ""; 191 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? ""; 192 193 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? ""; 194 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : ""; 195 196 197 198 #line default 199 #line hidden 200 WriteLiteralTo(__razor_helper_writer, "\t"); 201 202 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t\t--Position:\t\t"); 203 204 205 #line 218 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 206 WriteTo(__razor_helper_writer, Position); 207 208 209 #line default 210 #line hidden 211 WriteLiteralTo(__razor_helper_writer, ";\r\n\r\n"); 212 213 WriteLiteralTo(__razor_helper_writer, "\t\t"); 214 215 216 #line 220 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 217 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding)); 218 219 220 #line default 221 #line hidden 222 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 223 224 WriteLiteralTo(__razor_helper_writer, "\t\t"); 225 226 227 #line 222 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 228 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Top", Top)); 229 230 231 #line default 232 #line hidden 233 WriteLiteralTo(__razor_helper_writer, "\r\n"); 234 235 WriteLiteralTo(__razor_helper_writer, "\t\t"); 236 237 238 #line 223 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 239 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Left", Left)); 240 241 242 #line default 243 #line hidden 244 WriteLiteralTo(__razor_helper_writer, "\r\n"); 245 246 WriteLiteralTo(__razor_helper_writer, "\t\t"); 247 248 249 #line 224 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 250 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Right", Right)); 251 252 253 #line default 254 #line hidden 255 WriteLiteralTo(__razor_helper_writer, "\r\n"); 256 257 WriteLiteralTo(__razor_helper_writer, "\t\t"); 258 259 260 #line 225 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 261 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Bottom", Bottom)); 262 263 264 #line default 265 #line hidden 266 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 267 268 WriteLiteralTo(__razor_helper_writer, "\t\t"); 269 270 271 #line 227 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 272 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Color", Color)); 273 274 275 #line default 276 #line hidden 277 WriteLiteralTo(__razor_helper_writer, "\r\n"); 278 279 WriteLiteralTo(__razor_helper_writer, "\t\t"); 280 281 282 #line 228 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 283 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize)); 284 285 286 #line default 287 #line hidden 288 WriteLiteralTo(__razor_helper_writer, "\r\n"); 289 290 WriteLiteralTo(__razor_helper_writer, "\t\t"); 291 292 293 #line 229 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 294 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle)); 295 296 297 #line default 298 #line hidden 299 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 300 301 WriteLiteralTo(__razor_helper_writer, "\t\t"); 302 303 304 #line 231 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 305 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight)); 306 307 308 #line default 309 #line hidden 310 WriteLiteralTo(__razor_helper_writer, "\r\n"); 311 312 WriteLiteralTo(__razor_helper_writer, "\t\t"); 313 314 315 #line 232 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 316 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily)); 317 318 319 #line default 320 #line hidden 321 WriteLiteralTo(__razor_helper_writer, "\r\n"); 322 323 WriteLiteralTo(__razor_helper_writer, "\t\t"); 324 325 326 #line 233 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 327 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight)); 328 329 330 #line default 331 #line hidden 332 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 333 334 WriteLiteralTo(__razor_helper_writer, "\t\t"); 335 336 337 #line 235 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 338 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor)); 339 340 341 #line default 342 #line hidden 343 WriteLiteralTo(__razor_helper_writer, "\r\n"); 344 345 WriteLiteralTo(__razor_helper_writer, "\t\t"); 346 347 348 #line 236 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 349 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderColor", BorderColor)); 350 351 352 #line default 353 #line hidden 354 WriteLiteralTo(__razor_helper_writer, "\r\n"); 355 356 WriteLiteralTo(__razor_helper_writer, "\t\t"); 357 358 359 #line 237 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 360 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderSize", BorderSize)); 361 362 363 #line default 364 #line hidden 365 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t"); 366 367 WriteLiteralTo(__razor_helper_writer, "\r\n"); 368 369 370 #line 240 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 371 372 373 374 #line default 375 #line hidden 376 }); 377 378 #line 241 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 379 } 380 #line default 381 #line hidden 382 383 384 public RazorEngine_36c73530653c4219b12f278f8ed0d29c() { 385 } 386 387 public override void Execute() { 388 WriteLiteral("\r\n"); 389 390 391 #line 9 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 392 Write(Title("Configuration page template")); 393 394 395 #line default 396 #line hidden 397 WriteLiteral("\r\n\r\n"); 398 399 400 #line 11 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 401 402 var websitesettings = Dynamicweb.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id); 403 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration"); 404 405 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name; 406 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css"); 407 408 409 #line default 410 #line hidden 411 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n<html"); 412 413 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\""); 414 415 WriteLiteral(">\r\n<head>\r\n\r\n</head>\r\n<body>\r\n\t<link"); 416 417 WriteAttribute("href", Tuple.Create(" href=\"", 795), Tuple.Create("\"", 809) 418 419 #line 25 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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 421 422 #line default 423 #line hidden 424 , 802), false) 425 ); 426 427 WriteLiteral(" rel=\"stylesheet\""); 428 429 WriteLiteral(" />\r\n"); 430 431 432 #line 26 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 433 434 435 #line default 436 #line hidden 437 WriteLiteral("\r\n"); 438 439 WriteLiteral("\r\n"); 440 441 WriteLiteral("\r\n"); 442 443 WriteLiteral("\r\n"); 444 445 WriteLiteral("\r\n"); 446 447 WriteLiteral("\r\n"); 448 449 450 #line 50 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 451 452 453 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration"); 454 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>(); 455 456 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false; 457 458 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : ""; 459 460 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration; 461 EcomConfig EcommerceConfiguration = mc.EcomConfiguration; 462 463 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(); 474 475 bool IsNotContentManager = false; 476 bool isVisualEditor = Pageview.IsVisualEditorMode; 477 478 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 } 483 484 BaseSettingsObj BaseSettings = new BaseSettingsObj(); 485 486 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview); 487 HttpContext.Current.Session["BaseSettings"] = BaseSettings; 488 489 //if (HttpContext.Current.Session["BaseSettings"] == null) 490 //{ 491 492 //} 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 //} 502 503 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration; 504 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons; 505 506 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration"); 507 508 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain(); 509 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 510 var langName = Pageview.Area.Culture; 511 512 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue(); 513 var designRoot = BaseSettings.DesignRoot; 514 515 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; 521 522 bool isOffline = false; 523 524 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 } 539 540 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false; 541 542 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css"); 543 544 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); 547 548 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; 551 552 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"); 555 556 //*** Start Scanapp configuration ***\\ 557 bool hideHeader = false; 558 bool hideFooter = false; 559 bool hideBottombar = false; 560 561 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 **\\ 568 569 570 571 #line default 572 #line hidden 573 WriteLiteral("\r\n\r\n"); 574 575 576 #line 170 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 577 578 579 #line default 580 #line hidden 581 WriteLiteral("\r\n"); 582 583 WriteLiteral("\r\n"); 584 585 WriteLiteral("\r\n"); 586 587 WriteLiteral("\r\n"); 588 589 WriteLiteral("\r\n"); 590 591 WriteLiteral("\r\n"); 592 593 WriteLiteral("\r\n"); 594 595 596 #line 243 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 597 598 599 #line default 600 #line hidden 601 WriteLiteral("\r\n"); 602 603 WriteLiteral("\r\n"); 604 605 WriteLiteral("\r\n"); 606 607 WriteLiteral("\r\n"); 608 609 WriteLiteral("\r\n\r\n\t<header"); 610 611 WriteLiteral(" style=\"padding: 25px;\""); 612 613 WriteLiteral(">\r\n\t\t<h1>Header Configuration</h1>\r\n\t</header>\r\n\r\n\t<h2><i"); 614 615 WriteLiteral(" class=\"fas fa-desktop-alt\""); 616 617 WriteLiteral("></i> Desktop</h2>\r\n\t<div"); 618 619 WriteLiteral(" style=\"display: flex; flex-direction: column; padding: 25px; background-color:#f" + 620 "1f1f1;\""); 621 622 WriteLiteral(">\r\n"); 623 624 WriteLiteral("\t\t"); 625 626 627 #line 272 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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")); 629 630 631 #line default 632 #line hidden 633 WriteLiteral("\r\n\t</div>\r\n\r\n\t<h2><i"); 634 635 WriteLiteral(" class=\"fas fa-mobile-alt\""); 636 637 WriteLiteral("></i> Mobile</h2>\r\n\t<div"); 638 639 WriteLiteral(" style=\"display: flex; flex-direction: column; padding: 25px; background-color:#f" + 640 "1f1f1;\""); 641 642 WriteLiteral(">\r\n"); 643 644 WriteLiteral("\t\t"); 645 646 647 #line 277 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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")); 649 650 651 #line default 652 #line hidden 653 WriteLiteral("\r\n\t</div>\r\n\r\n"); 654 655 656 #line 280 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 657 658 659 #line default 660 #line hidden 661 662 #line 280 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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 { 667 668 669 #line default 670 #line hidden 671 WriteLiteral("\t\t\t<link"); 672 673 WriteAttribute("href", Tuple.Create(" href=\"", 11486), Tuple.Create("\"", 11510) 674 675 #line 284 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.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"] 677 678 #line default 679 #line hidden 680 , 11493), false) 681 ); 682 683 WriteLiteral(" rel=\"stylesheet\""); 684 685 WriteLiteral(">\r\n"); 686 687 688 #line 285 "D:\dynamicweb.net\Solutions\Bluedesk\koksgroup.cloud.dynamicweb-cms.com\files\Templates\Designs\ClientBase_generated\_parsed\LayoutConfigurationPage.parsed.cshtml" 689 } 690 } 691 692 693 #line default 694 #line hidden 695 WriteLiteral("\r\n\t<link"); 696 697 WriteLiteral(" rel=\"stylesheet\""); 698 699 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\""); 700 701 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" + 702 "QU\""); 703 704 WriteLiteral(" crossorigin=\"anonymous\""); 705 706 WriteLiteral(">\r\n\r\n</body>\r\n</html>\r\n"); 707 708 } 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 //} 101 102 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration; 103 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons; 104 105 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration"); 106 107 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain(); 108 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 109 var langName = Pageview.Area.Culture; 110 111 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue(); 112 var designRoot = BaseSettings.DesignRoot; 113 114 var phonenumber = BaseSettings.CorporateSettings.Phonenumber; 115 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty); 116 var emailadress = BaseSettings.CorporateSettings.Emailadress; 117 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right"; 118 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm; 119 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor; 120 121 bool isOffline = false; 122 123 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime; 124 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime; 125 DateTime today = DateTime.Now; 126 var cHour = DateTime.Now.TimeOfDay; 127 int cDay = (int)DateTime.Now.DayOfWeek; 128 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5); 129 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None); 130 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture); 131 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat; 132 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay; 133 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd; 134 if (isNoValidDate || isOvertime) 135 { 136 isOffline = true; 137 } 138 139 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false; 140 141 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css"); 142 143 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true); 144 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true); 145 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true); 146 147 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon; 148 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16; 149 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32; 150 151 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js"); 152 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js"); 153 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js"); 154 155 //*** Start Scanapp configuration ***\\ 156 bool hideHeader = false; 157 bool hideFooter = false; 158 bool hideBottombar = false; 159 160 if (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 **\\ 167 168 } 169 170 @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; 175 176 @using Dynamicweb; 177 @using Dynamicweb.Content.Items; 178 @using Dynamicweb.Environment; 179 @using Dynamicweb.Frontend; 180 @using Dynamicweb.Frontend.Navigation; 181 182 @using Bluedesk.Tools.Generic; 183 184 @using Bluedesk.DynamicWeb.ItemTypes; 185 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 186 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 187 188 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 189 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 190 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 191 192 @helper RenderCSSKeyAndValue(string Key, string Value) 193 { 194 if (!string.IsNullOrWhiteSpace(Value)) 195 { 196 <text>@Key : @Value !important;</text> 197 } 198 } 199 200 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration) 201 { 202 203 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" : ""; 207 208 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative"; 209 210 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? ""; 211 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? ""; 212 213 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? ""; 214 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : ""; 215 216 <text> 217 218 --Position: @Position; 219 220 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding) 221 222 @RenderCSSKeyAndValue("--Top", Top) 223 @RenderCSSKeyAndValue("--Left", Left) 224 @RenderCSSKeyAndValue("--Right", Right) 225 @RenderCSSKeyAndValue("--Bottom", Bottom) 226 227 @RenderCSSKeyAndValue("--Color", Color) 228 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize) 229 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle) 230 231 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight) 232 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily) 233 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight) 234 235 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor) 236 @RenderCSSKeyAndValue("--BorderColor", BorderColor) 237 @RenderCSSKeyAndValue("--BorderSize", BorderSize) 238 239 </text> 240 241 } 242 243 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 244 @using System; 245 @using System.Web; 246 @using System.Linq; 247 @using System.Globalization; 248 249 @using Dynamicweb; 250 @using Dynamicweb.Content.Items; 251 @using Dynamicweb.Environment; 252 @using Dynamicweb.Frontend; 253 @using Dynamicweb.Frontend.Navigation; 254 255 @using Bluedesk.Tools.Generic; 256 257 @using Bluedesk.DynamicWeb.ItemTypes; 258 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 259 260 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 261 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 262 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 263 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 264 265 266 <header style="padding: 25px;"> 267 <h1>Header Configuration</h1> 268 </header> 269 270 <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> 274 275 <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> 279 280 @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 } 287 288 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous"> 289 290 </body> 291 </html> 292