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

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 2 @using Dynamicweb; 3 @using Bluedesk.Tools.Generic; 4 @using System.Globalization; 5 @using Dynamicweb.Content.Items; 6 @using Bluedesk.DynamicWeb.ItemTypes; 7 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 8 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 9 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 10 11 @Title("Configuration page template") 12 13 @{ 14 var websitesettings = Dynamicweb.Content.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id); 15 var font_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration"); 16 17 var designRoot = "/Files/Templates/Designs/" + Pageview.Area.Layout.Design.Name; 18 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css"); 19 20 } 21 22 <!DOCTYPE html> 23 <html prefix="og: http://ogp.me/ns#"> 24 <head> 25 26 </head> 27 <body style="background-color: #f1f1f1;"> 28 29 <link href="@appcss" rel="stylesheet" /> 30 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 31 32 @using System; 33 @using System.Linq; 34 @using System.Globalization; 35 36 @using Dynamicweb; 37 @using Dynamicweb.Content.Items; 38 @using Dynamicweb.Environment; 39 @using Dynamicweb.Frontend; 40 @using Dynamicweb.Frontend.Navigation; 41 42 @using Bluedesk.Tools.Generic; 43 44 @using Bluedesk.DynamicWeb.ItemTypes; 45 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 46 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 47 48 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 49 50 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 51 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 52 53 @{ 54 55 var master_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration"); 56 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>(); 57 58 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false; 59 60 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : ""; 61 62 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration; 63 EcomConfig EcommerceConfiguration = mc.EcomConfiguration; 64 65 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True"; 66 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers; 67 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber; 68 if(pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) { 69 WithVATBool = false; 70 } 71 if(pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) { 72 WithVATBool = false; 73 } 74 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower(); 75 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower(); 76 77 bool IsNotContentManager = false; 78 bool isVisualEditor = Pageview.IsVisualEditorMode; 79 80 if (isVisualEditor) 81 { 82 Dynamicweb.Context.Current.Session["PreviousPage"] = Pageview.Page.ID; 83 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true); 84 } 85 86 BaseSettingsObj BaseSettings = new BaseSettingsObj(); 87 88 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview); 89 Dynamicweb.Context.Current.Session["BaseSettings"] = BaseSettings; 90 91 //if (Dynamicweb.Context.Current.Session["BaseSettings"] == null) 92 //{ 93 94 //} 95 //else 96 //{ 97 // BaseSettings = (BaseSettingsObj)Dynamicweb.Context.Current.Session["BaseSettings"]; 98 // if (BaseSettings.AreaID != Pageview.AreaID) 99 // { 100 // BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview); 101 // Dynamicweb.Context.Current.Session["BaseSettings"] = BaseSettings; 102 // } 103 //} 104 105 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration; 106 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons; 107 108 var font_configuration = Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration"); 109 110 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain(); 111 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 112 var langName = Pageview.Area.Culture; 113 114 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue(); 115 var designRoot = BaseSettings.DesignRoot; 116 117 var phonenumber = BaseSettings.CorporateSettings.Phonenumber; 118 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty); 119 var emailadress = BaseSettings.CorporateSettings.Emailadress; 120 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right"; 121 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm; 122 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor; 123 124 bool isOffline = false; 125 126 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime; 127 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime; 128 DateTime today = DateTime.Now; 129 var cHour = DateTime.Now.TimeOfDay; 130 int cDay = (int)DateTime.Now.DayOfWeek; 131 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5); 132 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None); 133 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture); 134 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat; 135 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay; 136 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd; 137 if (isNoValidDate || isOvertime) 138 { 139 isOffline = true; 140 } 141 142 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false; 143 144 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css"); 145 146 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true); 147 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true); 148 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true); 149 150 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon; 151 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16; 152 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32; 153 154 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js"); 155 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js"); 156 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js"); 157 158 //*** Start Scanapp configuration ***\\ 159 bool hideHeader = false; 160 bool hideFooter = false; 161 bool hideBottombar = false; 162 163 if (Dynamicweb.Context.Current.Session["ScanApp"] != null) 164 { 165 hideHeader = mc.ScanAppConfig.ShowHeader; 166 hideFooter = mc.ScanAppConfig.ShowFooter; 167 hideBottombar = mc.ScanAppConfig.ShowBottombar; 168 } 169 // END Scanapp configration **\\ 170 171 } 172 173 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 174 @using System; 175 @using System.Linq; 176 @using System.Globalization; 177 178 @using Dynamicweb; 179 @using Dynamicweb.Content.Items; 180 @using Dynamicweb.Environment; 181 @using Dynamicweb.Frontend; 182 @using Dynamicweb.Frontend.Navigation; 183 184 @using Bluedesk.Tools.Generic; 185 186 @using Bluedesk.DynamicWeb.ItemTypes; 187 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 188 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 189 190 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 191 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 192 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 193 194 @helper RenderCSSKeyAndValue(string Key, string Value) 195 { 196 if (!string.IsNullOrWhiteSpace(Value)) 197 { 198 <text>@Key : @Value !important;</text> 199 } 200 } 201 202 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration) 203 { 204 205 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : ""; 206 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : ""; 207 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : ""; 208 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : ""; 209 210 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative"; 211 212 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? ""; 213 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? ""; 214 215 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? ""; 216 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : ""; 217 218 <text> 219 220 --Position: @Position; 221 222 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding) 223 224 @RenderCSSKeyAndValue("--Top", Top) 225 @RenderCSSKeyAndValue("--Left", Left) 226 @RenderCSSKeyAndValue("--Right", Right) 227 @RenderCSSKeyAndValue("--Bottom", Bottom) 228 229 @RenderCSSKeyAndValue("--Color", Color) 230 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize) 231 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle) 232 233 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight) 234 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily) 235 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight) 236 237 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor) 238 @RenderCSSKeyAndValue("--BorderColor", BorderColor) 239 @RenderCSSKeyAndValue("--BorderSize", BorderSize) 240 241 </text> 242 243 } 244 245 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 246 @using System; 247 @using System.Linq; 248 @using System.Globalization; 249 250 @using Dynamicweb; 251 @using Dynamicweb.Content.Items; 252 @using Dynamicweb.Environment; 253 @using Dynamicweb.Frontend; 254 @using Dynamicweb.Frontend.Navigation; 255 256 @using Bluedesk.Tools.Generic; 257 258 @using Bluedesk.DynamicWeb.ItemTypes; 259 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 260 261 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 262 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 263 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 264 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 265 266 267 <header style="padding: 25px; display: flex; flex-direction: Column;"> 268 <div> 269 <h1>@Model.Title</h1> 270 <h2 style="font-weight: normal;"></h2> 271 </div> 272 <nav style="display: flex; flex-direction: row; margin-left: 50px"> 273 <a href="/Default.aspx?ID=1598" class="ConfigurationButton"><i class="icon fa-light fa-grid-horizontal"></i><label>Dashboard</label></a> 274 <a href="/Default.aspx?ID=1055" class="ConfigurationButton"><i class="icon fa-light fa-diagram-cells"></i><label>Masters</label></a> 275 <a href="/Default.aspx?ID=1055" class="ConfigurationButton"><i class="icon fa-light fa-link"></i><label>Buttons</label></a> 276 <a href="/Default.aspx?ID=1009" class="ConfigurationButton"><i class="icon fa-light fa-paintbrush"></i><label>Backgrounds</label></a> 277 <a href="/Default.aspx?ID=1460" class="ConfigurationButton"><i class="icon fa-light fa-megaphone"></i><label>Jumbotrons</label></a> 278 <a href="/Default.aspx?ID=1518" class="ConfigurationButton"><i class="icon fa-light fa-brush"></i><label>Themes</label></a> 279 <a href="/Default.aspx?ID=1450" class="ConfigurationButton"><i class="icon fa-light fa-font"></i><label>Fonts</label></a> 280 <a href="/Default.aspx?ID=1514" class="ConfigurationButton"><i class="icon fa-light fa-computer"></i><label>Devices</label></a> 281 </nav> 282 </header> 283 284 <style> 285 .ConfigurationButton { 286 display: flex; 287 flex-direction: column; 288 height: 150px; 289 width: 150px; 290 margin-right: 25px; 291 padding: 25px; 292 background-color: #ffffff; 293 justify-content: center; 294 align-items: center; 295 box-sizing: border-box; 296 text-align: center; 297 font-size: 12px; 298 box-shadow: rgb(153 153 255 / 10%) 10px 10px 10px; 299 } 300 301 .ConfigurationButton .icon { 302 font-size: 35px; 303 } 304 </style> 305 306 @Model.Grid("Grid", "Configuration items", "default:true;sort:1", "Configuration") 307 308 @if (font_configuration != null) 309 { 310 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>()) 311 { 312 <link href="@item["FontLink"]" rel="stylesheet"> 313 } 314 } 315 316 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous"> 317 <script src="https://kit.fontawesome.com/a46eca85e2.js" crossorigin="anonymous"></script> 318 319 </body> 320 </html> 321