Error compiling template "Designs/VanBuuren_generated/_parsed/ProductOverviewPage.parsed.cshtml"
Line 402: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 402: 'Services.Items' is obsolete: 'Use Dynamicweb.Content.Services.Items instead.'
Line 403: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 403: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 470: 'User.GetCurrentExtranetUserId()' is obsolete: 'Use GetCurrentFrontendUserId() instead.'
Line 516: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 516: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 547: A local variable or function named 'websitesettings' is already defined in this scope

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 181 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 20 #line 183 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 21 using System.Linq; 22 23 #line default 24 #line hidden 25 26 #line 186 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 27 using Dynamicweb; 28 29 #line default 30 #line hidden 31 32 #line 192 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 33 using Bluedesk.Tools.Generic; 34 35 #line default 36 #line hidden 37 38 #line 184 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 39 using System.Globalization; 40 41 #line default 42 #line hidden 43 44 #line 187 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 45 using Dynamicweb.Content.Items; 46 47 #line default 48 #line hidden 49 50 #line 194 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 51 using Bluedesk.DynamicWeb.ItemTypes; 52 53 #line default 54 #line hidden 55 56 #line 195 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 57 using Bluedesk.DynamicWeb.ItemTypes.Settings; 58 59 #line default 60 #line hidden 61 62 #line 182 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 63 using System.Web; 64 65 #line default 66 #line hidden 67 68 #line 188 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 69 using Dynamicweb.Environment; 70 71 #line default 72 #line hidden 73 74 #line 189 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 75 using Dynamicweb.Frontend; 76 77 #line default 78 #line hidden 79 80 #line 190 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 81 using Dynamicweb.Frontend.Navigation; 82 83 #line default 84 #line hidden 85 86 #line 200 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 87 using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 88 89 #line default 90 #line hidden 91 92 #line 197 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 93 using Bluedesk.DynamicWeb.ItemTypes.Configuration; 94 95 #line default 96 #line hidden 97 98 #line 198 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 99 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 100 101 #line default 102 #line hidden 103 104 #line 66 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 105 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 106 107 #line default 108 #line hidden 109 110 #line 199 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 111 using Bluedesk.DynamicWeb.ItemTypes.Extensions; 112 113 #line default 114 #line hidden 115 116 117 public class RazorEngine_45b0d533a5924909a87358d54af72a7c : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 118 119 #line hidden 120 121 #line 129 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 130 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 133 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 133 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 134 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 160 } 161 162 163 #line default 164 #line hidden 165 }); 166 167 #line 135 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 168 } 169 #line default 170 #line hidden 171 172 173 #line 137 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 138 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 155 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 157 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 159 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 160 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 161 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 162 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 164 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 165 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 166 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 168 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 169 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 170 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 172 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 173 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 174 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 177 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 371 372 373 374 #line default 375 #line hidden 376 }); 377 378 #line 178 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 379 } 380 #line default 381 #line hidden 382 383 384 public RazorEngine_45b0d533a5924909a87358d54af72a7c() { 385 } 386 387 public override void Execute() { 388 WriteLiteral("\r\n"); 389 390 391 #line 9 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.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 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 409 var langName = Pageview.Area.Culture; 410 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue(); 411 412 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right"; 413 414 415 #line default 416 #line hidden 417 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n<html"); 418 419 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\""); 420 421 WriteLiteral(">\r\n<head>\r\n\t<script>\r\n\t\twindow.globals = {\r\n\t\t\tpageId: \'"); 422 423 424 #line 30 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 425 Write(Pageview.ID); 426 427 428 #line default 429 #line hidden 430 WriteLiteral("\',\r\n\t\t\tToken: \'"); 431 432 433 #line 31 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 434 Write(csrftoken); 435 436 437 #line default 438 #line hidden 439 WriteLiteral("\',\r\n\t\t\tDW_AREA_CULTURE: \'"); 440 441 442 #line 32 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 443 Write(langName); 444 445 446 #line default 447 #line hidden 448 WriteLiteral("\',\r\n\t\t\tDW_AREA_CULTURE_SHORT: \'"); 449 450 451 #line 33 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 452 Write(lang); 453 454 455 #line default 456 #line hidden 457 WriteLiteral("\',\r\n\t\t\tglobalIconClass: \'"); 458 459 460 #line 34 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 461 Write(buttonIconClass); 462 463 464 #line default 465 #line hidden 466 WriteLiteral("\',\r\n\t\t\tDW_USERID: \'"); 467 468 469 #line 35 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 470 Write(Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId()); 471 472 473 #line default 474 #line hidden 475 WriteLiteral("\'\r\n\t\t\t};\r\n\t</script>\r\n</head>\r\n<body>\r\n\t<link"); 476 477 WriteAttribute("href", Tuple.Create(" href=\"", 1448), Tuple.Create("\"", 1462) 478 479 #line 40 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 480 , Tuple.Create(Tuple.Create("", 1455), Tuple.Create<System.Object, System.Int32>(appcss 481 482 #line default 483 #line hidden 484 , 1455), false) 485 ); 486 487 WriteLiteral(" rel=\"stylesheet\""); 488 489 WriteLiteral(" />\r\n"); 490 491 492 #line 41 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 493 494 495 #line default 496 #line hidden 497 WriteLiteral("\r\n"); 498 499 WriteLiteral("\r\n"); 500 501 WriteLiteral("\r\n"); 502 503 WriteLiteral("\r\n"); 504 505 WriteLiteral("\r\n"); 506 507 WriteLiteral("\r\n"); 508 509 WriteLiteral("\r\n"); 510 511 512 #line 68 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 513 514 515 // Hydrated once per request: the product detail template (rendered before the master) reads the same MasterConfig. 516 MasterConfig mc = application._webapi.Helper.RenderCache.GetForRequest("MasterConfig_" + Pageview.AreaID, () => Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration").Item.ToCodeFirstItem<MasterConfig>()); 517 518 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : ""; 519 520 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration; 521 EcomConfig EcommerceConfiguration = mc.EcomConfiguration; 522 523 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True"; 524 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers; 525 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber; 526 if (pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) 527 { 528 WithVATBool = false; 529 } 530 if (pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) 531 { 532 WithVATBool = false; 533 } 534 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower(); 535 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower(); 536 537 bool IsNotContentManager = false; 538 bool isVisualEditor = Pageview.IsVisualEditorMode; 539 540 if (isVisualEditor) 541 { 542 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID; 543 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true); 544 } 545 546 // Recaptcha configuration 547 var websitesettings = Dynamicweb.Content.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id); 548 string recaptchaType = websitesettings.RecaptchaType; 549 string recaptchaKey = websitesettings.RecaptchaKey; 550 551 552 #line default 553 #line hidden 554 WriteLiteral("\r\n\r\n"); 555 556 557 #line 107 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 558 559 560 #line default 561 #line hidden 562 WriteLiteral("\r\n"); 563 564 WriteLiteral("\r\n"); 565 566 WriteLiteral("\r\n"); 567 568 WriteLiteral("\r\n"); 569 570 WriteLiteral("\r\n"); 571 572 WriteLiteral("\r\n"); 573 574 WriteLiteral("\r\n"); 575 576 577 #line 180 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 578 579 580 #line default 581 #line hidden 582 WriteLiteral("\r\n"); 583 584 WriteLiteral("\r\n"); 585 586 WriteLiteral("\r\n"); 587 588 WriteLiteral("\r\n"); 589 590 WriteLiteral("\r\n\r\n\t<header"); 591 592 WriteLiteral(" style=\"padding: 25px; display: flex; flex-direction: row;\""); 593 594 WriteLiteral(">\r\n\t\t<div>\r\n\t\t\t<h1>Branding Stylesheet</h1>\r\n\t\t\t<h2"); 595 596 WriteLiteral(" style=\"font-weight: normal;\""); 597 598 WriteLiteral(">"); 599 600 601 #line 206 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 602 Write(Model.Title); 603 604 605 #line default 606 #line hidden 607 WriteLiteral("</h2>\r\n\t\t</div>\r\n\t\t<nav"); 608 609 WriteLiteral(" style=\"display: flex; flex-direction: row; margin-left: 50px\""); 610 611 WriteLiteral(">\r\n\t\t\t<a"); 612 613 WriteLiteral(" href=\"javascript:history.back();\""); 614 615 WriteLiteral(" class=\"ConfigurationButton\""); 616 617 WriteLiteral("><i"); 618 619 WriteLiteral(" class=\"icon fa-light fa-reply\""); 620 621 WriteLiteral("></i><label>Terug</label></a>\r\n\t\t\t<a"); 622 623 WriteLiteral(" href=\"/Default.aspx?ID=1598\""); 624 625 WriteLiteral(" class=\"ConfigurationButton\""); 626 627 WriteLiteral("><i"); 628 629 WriteLiteral(" class=\"icon fa-light fa-diagram-cells\""); 630 631 WriteLiteral("></i><label>Dashboard</label></a>\r\n\t\t\t<a"); 632 633 WriteLiteral(" href=\"/Default.aspx?ID=1055\""); 634 635 WriteLiteral(" class=\"ConfigurationButton\""); 636 637 WriteLiteral("><i"); 638 639 WriteLiteral(" class=\"icon fa-light fa-diagram-cells\""); 640 641 WriteLiteral("></i><label>Masters</label></a>\r\n\t\t\t<a"); 642 643 WriteLiteral(" href=\"/Default.aspx?ID=1055\""); 644 645 WriteLiteral(" class=\"ConfigurationButton\""); 646 647 WriteLiteral("><i"); 648 649 WriteLiteral(" class=\"icon fa-light fa-link\""); 650 651 WriteLiteral("></i><label>Buttons</label></a>\r\n\t\t\t<a"); 652 653 WriteLiteral(" href=\"/Default.aspx?ID=1009\""); 654 655 WriteLiteral(" class=\"ConfigurationButton\""); 656 657 WriteLiteral("><i"); 658 659 WriteLiteral(" class=\"icon fa-light fa-paintbrush\""); 660 661 WriteLiteral("></i><label>Backgrounds</label></a>\r\n\t\t\t<a"); 662 663 WriteLiteral(" href=\"/Default.aspx?ID=1460\""); 664 665 WriteLiteral(" class=\"ConfigurationButton\""); 666 667 WriteLiteral("><i"); 668 669 WriteLiteral(" class=\"icon fa-light fa-megaphone\""); 670 671 WriteLiteral("></i><label>Jumbotrons</label></a>\r\n\t\t\t<a"); 672 673 WriteLiteral(" href=\"/Default.aspx?ID=1518\""); 674 675 WriteLiteral(" class=\"ConfigurationButton\""); 676 677 WriteLiteral("><i"); 678 679 WriteLiteral(" class=\"icon fa-light fa-brush\""); 680 681 WriteLiteral("></i><label>Themes</label></a>\r\n\t\t\t<a"); 682 683 WriteLiteral(" href=\"/Default.aspx?ID=1450\""); 684 685 WriteLiteral(" class=\"ConfigurationButton\""); 686 687 WriteLiteral("><i"); 688 689 WriteLiteral(" class=\"icon fa-light fa-font\""); 690 691 WriteLiteral("></i><label>Fonts</label></a>\r\n\t\t\t<a"); 692 693 WriteLiteral(" href=\"/Default.aspx?ID=1514\""); 694 695 WriteLiteral(" class=\"ConfigurationButton\""); 696 697 WriteLiteral("><i"); 698 699 WriteLiteral(" class=\"icon fa-light fa-computer\""); 700 701 WriteLiteral(@"></i><label>Devices</label></a> 702 </nav> 703 </header> 704 705 <style> 706 .ConfigurationButton { 707 display: flex; 708 flex-direction: column; 709 height: 100px; 710 width: 100px; 711 margin-right: 25px; 712 padding: 25px; 713 background-color: #f1f1f1; 714 justify-content: center; 715 align-items: center; 716 box-sizing: border-box; 717 text-align: center; 718 font-size: 12px; 719 } 720 721 .ConfigurationButton .icon { 722 font-size: 25px; 723 } 724 </style> 725 726 "); 727 728 729 #line 242 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 730 731 732 #line default 733 #line hidden 734 735 #line 242 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 736 737 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js"); 738 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js"); 739 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js"); 740 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js"); 741 742 743 #line default 744 #line hidden 745 WriteLiteral("\r\n\r\n\t<script"); 746 747 WriteAttribute("src", Tuple.Create(" src=\"", 9724), Tuple.Create("\"", 9742) 748 749 #line 249 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 750 , Tuple.Create(Tuple.Create("", 9730), Tuple.Create<System.Object, System.Int32>(polyfillsjs 751 752 #line default 753 #line hidden 754 , 9730), false) 755 ); 756 757 WriteLiteral("></script>\r\n\t<script"); 758 759 WriteAttribute("src", Tuple.Create(" src=\"", 9763), Tuple.Create("\"", 9781) 760 761 #line 250 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 762 , Tuple.Create(Tuple.Create("", 9769), Tuple.Create<System.Object, System.Int32>(appbundlejs 763 764 #line default 765 #line hidden 766 , 9769), false) 767 ); 768 769 WriteLiteral("></script>\r\n\t<script defer"); 770 771 WriteAttribute("src", Tuple.Create(" src=\"", 9808), Tuple.Create("\"", 9826) 772 773 #line 251 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 774 , Tuple.Create(Tuple.Create("", 9814), Tuple.Create<System.Object, System.Int32>(vuebundlejs 775 776 #line default 777 #line hidden 778 , 9814), false) 779 ); 780 781 WriteLiteral("></script>\r\n\t<script defer"); 782 783 WriteAttribute("src", Tuple.Create(" src=\"", 9853), Tuple.Create("\"", 9876) 784 785 #line 252 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 786 , Tuple.Create(Tuple.Create("", 9859), Tuple.Create<System.Object, System.Int32>(appAsyncbundlejs 787 788 #line default 789 #line hidden 790 , 9859), false) 791 ); 792 793 WriteLiteral("></script>\r\n\r\n"); 794 795 796 #line 254 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 797 798 799 #line default 800 #line hidden 801 802 #line 254 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 803 if (font_configuration != null) 804 { 805 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>()) 806 { 807 808 809 #line default 810 #line hidden 811 WriteLiteral("\t\t\t<link"); 812 813 WriteAttribute("href", Tuple.Create(" href=\"", 10109), Tuple.Create("\"", 10134) 814 815 #line 258 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 816 , Tuple.Create(Tuple.Create("", 10116), Tuple.Create<System.Object, System.Int32>(item[" FontLink"] 817 818 #line default 819 #line hidden 820 , 10116), false) 821 ); 822 823 WriteLiteral(" rel=\"stylesheet\""); 824 825 WriteLiteral(">\r\n"); 826 827 828 #line 259 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 829 } 830 } 831 832 833 #line default 834 #line hidden 835 WriteLiteral("\r\n\t<h2><i"); 836 837 WriteLiteral(" class=\"fa-regular fa-cart-shopping\""); 838 839 WriteLiteral("></i> Product detail configuration page</h2>\r\n\t<div"); 840 841 WriteLiteral(" style=\"display: flex; flex-direction: column; padding: 25px; background-color:#f" + 842 "1f1f1;\""); 843 844 WriteLiteral(">\r\n"); 845 846 WriteLiteral("\t\t"); 847 848 849 #line 264 "D:\Dynamicweb.NET\vanBuuren\Production\host\files\Templates\Designs\VanBuuren_generated\_parsed\ProductOverviewPage.parsed.cshtml" 850 Write(Model.Grid("grid2", "Product Overview Page", "default:true;sort:1", "AdvancedGrid")); 851 852 853 #line default 854 #line hidden 855 WriteLiteral("\r\n\t</div>\r\n\r\n\t<link"); 856 857 WriteLiteral(" rel=\"stylesheet\""); 858 859 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\""); 860 861 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" + 862 "QU\""); 863 864 WriteLiteral(" crossorigin=\"anonymous\""); 865 866 WriteLiteral(">\r\n\t<script"); 867 868 WriteLiteral(" src=\"https://kit.fontawesome.com/a46eca85e2.js\""); 869 870 WriteLiteral(" crossorigin=\"anonymous\""); 871 872 WriteLiteral("></script>\r\n\r\n</body>\r\n</html>\r\n"); 873 874 } 875 } 876 } 877

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 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 19 var langName = Pageview.Area.Culture; 20 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue(); 21 22 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right"; 23 } 24 25 <!DOCTYPE html> 26 <html prefix="og: http://ogp.me/ns#"> 27 <head> 28 <script> 29 window.globals = { 30 pageId: '@Pageview.ID', 31 Token: '@csrftoken', 32 DW_AREA_CULTURE: '@langName', 33 DW_AREA_CULTURE_SHORT: '@lang', 34 globalIconClass: '@buttonIconClass', 35 DW_USERID: '@Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId()' 36 }; 37 </script> 38 </head> 39 <body> 40 <link href="@appcss" rel="stylesheet" /> 41 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 42 43 @using System; 44 @using System.Web; 45 @using System.Linq; 46 @using System.Globalization; 47 48 @using Dynamicweb; 49 @using Dynamicweb.Content.Items; 50 @using Dynamicweb.Environment; 51 @using Dynamicweb.Frontend; 52 @using Dynamicweb.Frontend.Navigation; 53 54 @using Bluedesk.Tools.Generic; 55 56 @using Bluedesk.DynamicWeb.ItemTypes; 57 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 58 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 59 60 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 61 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 62 63 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 64 65 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 66 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 67 68 @{ 69 70 // Hydrated once per request: the product detail template (rendered before the master) reads the same MasterConfig. 71 MasterConfig mc = application._webapi.Helper.RenderCache.GetForRequest("MasterConfig_" + Pageview.AreaID, () => Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration").Item.ToCodeFirstItem<MasterConfig>()); 72 73 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : ""; 74 75 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration; 76 EcomConfig EcommerceConfiguration = mc.EcomConfiguration; 77 78 bool WithVATBool = Pageview.Area.EcomPricesWithVat == "True"; 79 bool pricesWithoutVatForUsers = EcommerceConfiguration.ShowPricesWithoutVatForUsers; 80 bool pricesWithoutVatForValidVat = EcommerceConfiguration.ShowPricesWithoutVatWhenValidVatNumber; 81 if (pricesWithoutVatForUsers && !pricesWithoutVatForValidVat && Pageview.User != null) 82 { 83 WithVATBool = false; 84 } 85 if (pricesWithoutVatForValidVat && Pageview.User != null && !string.IsNullOrWhiteSpace(Pageview.User.VatRegNumber)) 86 { 87 WithVATBool = false; 88 } 89 string ecomShowPricesWithVat = WithVATBool.ToString().ToLower(); 90 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower(); 91 92 bool IsNotContentManager = false; 93 bool isVisualEditor = Pageview.IsVisualEditorMode; 94 95 if (isVisualEditor) 96 { 97 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID; 98 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true); 99 } 100 101 // Recaptcha configuration 102 var websitesettings = Dynamicweb.Content.Services.Items.GetItemById<WebsiteSettings>(Model.Area.Item.Id); 103 string recaptchaType = websitesettings.RecaptchaType; 104 string recaptchaKey = websitesettings.RecaptchaKey; 105 } 106 107 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 108 @using System; 109 @using System.Web; 110 @using System.Linq; 111 @using System.Globalization; 112 113 @using Dynamicweb; 114 @using Dynamicweb.Content.Items; 115 @using Dynamicweb.Environment; 116 @using Dynamicweb.Frontend; 117 @using Dynamicweb.Frontend.Navigation; 118 119 @using Bluedesk.Tools.Generic; 120 121 @using Bluedesk.DynamicWeb.ItemTypes; 122 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 123 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 124 125 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 126 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 127 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 128 129 @helper RenderCSSKeyAndValue(string Key, string Value) 130 { 131 if (!string.IsNullOrWhiteSpace(Value)) 132 { 133 <text>@Key : @Value !important;</text> 134 } 135 } 136 137 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration) 138 { 139 140 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : ""; 141 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : ""; 142 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : ""; 143 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : ""; 144 145 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative"; 146 147 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? ""; 148 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? ""; 149 150 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? ""; 151 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : ""; 152 153 <text> 154 155 --Position: @Position; 156 157 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding) 158 159 @RenderCSSKeyAndValue("--Top", Top) 160 @RenderCSSKeyAndValue("--Left", Left) 161 @RenderCSSKeyAndValue("--Right", Right) 162 @RenderCSSKeyAndValue("--Bottom", Bottom) 163 164 @RenderCSSKeyAndValue("--Color", Color) 165 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize) 166 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle) 167 168 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight) 169 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily) 170 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight) 171 172 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor) 173 @RenderCSSKeyAndValue("--BorderColor", BorderColor) 174 @RenderCSSKeyAndValue("--BorderSize", BorderSize) 175 176 </text> 177 178 } 179 180 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 181 @using System; 182 @using System.Web; 183 @using System.Linq; 184 @using System.Globalization; 185 186 @using Dynamicweb; 187 @using Dynamicweb.Content.Items; 188 @using Dynamicweb.Environment; 189 @using Dynamicweb.Frontend; 190 @using Dynamicweb.Frontend.Navigation; 191 192 @using Bluedesk.Tools.Generic; 193 194 @using Bluedesk.DynamicWeb.ItemTypes; 195 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 196 197 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 198 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 199 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 200 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 201 202 203 <header style="padding: 25px; display: flex; flex-direction: row;"> 204 <div> 205 <h1>Branding Stylesheet</h1> 206 <h2 style="font-weight: normal;">@Model.Title</h2> 207 </div> 208 <nav style="display: flex; flex-direction: row; margin-left: 50px"> 209 <a href="javascript:history.back();" class="ConfigurationButton"><i class="icon fa-light fa-reply"></i><label>Terug</label></a> 210 <a href="/Default.aspx?ID=1598" class="ConfigurationButton"><i class="icon fa-light fa-diagram-cells"></i><label>Dashboard</label></a> 211 <a href="/Default.aspx?ID=1055" class="ConfigurationButton"><i class="icon fa-light fa-diagram-cells"></i><label>Masters</label></a> 212 <a href="/Default.aspx?ID=1055" class="ConfigurationButton"><i class="icon fa-light fa-link"></i><label>Buttons</label></a> 213 <a href="/Default.aspx?ID=1009" class="ConfigurationButton"><i class="icon fa-light fa-paintbrush"></i><label>Backgrounds</label></a> 214 <a href="/Default.aspx?ID=1460" class="ConfigurationButton"><i class="icon fa-light fa-megaphone"></i><label>Jumbotrons</label></a> 215 <a href="/Default.aspx?ID=1518" class="ConfigurationButton"><i class="icon fa-light fa-brush"></i><label>Themes</label></a> 216 <a href="/Default.aspx?ID=1450" class="ConfigurationButton"><i class="icon fa-light fa-font"></i><label>Fonts</label></a> 217 <a href="/Default.aspx?ID=1514" class="ConfigurationButton"><i class="icon fa-light fa-computer"></i><label>Devices</label></a> 218 </nav> 219 </header> 220 221 <style> 222 .ConfigurationButton { 223 display: flex; 224 flex-direction: column; 225 height: 100px; 226 width: 100px; 227 margin-right: 25px; 228 padding: 25px; 229 background-color: #f1f1f1; 230 justify-content: center; 231 align-items: center; 232 box-sizing: border-box; 233 text-align: center; 234 font-size: 12px; 235 } 236 237 .ConfigurationButton .icon { 238 font-size: 25px; 239 } 240 </style> 241 242 @{ 243 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js"); 244 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js"); 245 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js"); 246 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js"); 247 } 248 249 <script src="@polyfillsjs"></script> 250 <script src="@appbundlejs"></script> 251 <script defer src="@vuebundlejs"></script> 252 <script defer src="@appAsyncbundlejs"></script> 253 254 @if (font_configuration != null) 255 { 256 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>()) 257 { 258 <link href="@item[" FontLink"]" rel="stylesheet"> 259 } 260 } 261 262 <h2><i class="fa-regular fa-cart-shopping"></i> Product detail configuration page</h2> 263 <div style="display: flex; flex-direction: column; padding: 25px; background-color:#f1f1f1;"> 264 @Model.Grid("grid2", "Product Overview Page", "default:true;sort:1", "AdvancedGrid") 265 </div> 266 267 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous"> 268 <script src="https://kit.fontawesome.com/a46eca85e2.js" crossorigin="anonymous"></script> 269 270 </body> 271 </html> 272