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

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