Error compiling template "Designs/IPG_generated/_parsed/BlogPage.parsed.cshtml"
Line 528: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 528: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 570: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 570: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 631: The name 'BP' does not exist in the current context
Line 631: The name 'BP' does not exist in the current context
Line 632: The name 'BP' does not exist in the current context
Line 632: The name 'BP' does not exist in the current context
Line 633: The name 'BP' does not exist in the current context
Line 633: The name 'BP' does not exist in the current context
Line 634: The name 'BP' does not exist in the current context
Line 634: The name 'BP' does not exist in the current context
Line 636: The name 'BP' does not exist in the current context
Line 636: The name 'BP' does not exist in the current context
Line 637: The name 'BP' does not exist in the current context
Line 637: The name 'BP' does not exist in the current context
Line 638: The name 'BP' does not exist in the current context
Line 638: The name 'BP' does not exist in the current context
Line 639: The name 'BP' does not exist in the current context
Line 639: The name 'BP' does not exist in the current context
Line 641: The name 'BP' does not exist in the current context
Line 642: The name 'BP' does not exist in the current context
Line 643: The name 'BP' does not exist in the current context
Line 644: The name 'BP' does not exist in the current context
Line 646: The name 'BP' does not exist in the current context
Line 646: The name 'BP' does not exist in the current context
Line 951: The name 'favico' does not exist in the current context
Line 1047: 'User.GetCurrentExtranetUserId()' is obsolete: 'Use GetCurrentFrontendUserId() instead.'
Line 2273: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 2273: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 2350: The name 'BP' does not exist in the current context
Line 2401: The name 'BP' does not exist in the current context
Line 3081: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 3081: 'Services.Items' is obsolete: 'Use Dynamicweb.Content.Services.Items instead.'
Line 3224: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 3224: 'Services.Pages' is obsolete: 'Use Dynamicweb.Content.Services.Pages instead.'
Line 4705: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4706: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4710: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 1424: The variable 'hidePricesForGuests' 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 1635 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 20 #line 800 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 21 using System.Linq; 22 23 #line default 24 #line hidden 25 26 #line 273 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 27 using System.Web; 28 29 #line default 30 #line hidden 31 32 #line 801 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 33 using System.Data; 34 35 #line default 36 #line hidden 37 38 #line 7 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 39 using System.Data.SqlClient; 40 41 #line default 42 #line hidden 43 44 #line 275 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 45 using System.Globalization; 46 47 #line default 48 #line hidden 49 50 #line 9 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 51 using System.Reflection; 52 53 #line default 54 #line hidden 55 56 #line 1636 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 57 using Dynamicweb; 58 59 #line default 60 #line hidden 61 62 #line 825 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 63 using Dynamicweb.Content.Items; 64 65 #line default 66 #line hidden 67 68 #line 279 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 69 using Dynamicweb.Environment; 70 71 #line default 72 #line hidden 73 74 #line 280 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 75 using Dynamicweb.Frontend; 76 77 #line default 78 #line hidden 79 80 #line 281 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 81 using Dynamicweb.Frontend.Navigation; 82 83 #line default 84 #line hidden 85 86 #line 1533 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 87 using Bluedesk.DynamicWeb.ItemTypes; 88 89 #line default 90 #line hidden 91 92 #line 470 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 93 using Bluedesk.DynamicWeb.ItemTypes.Settings; 94 95 #line default 96 #line hidden 97 98 #line 471 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 99 using Bluedesk.DynamicWeb.ItemTypes.Configuration; 100 101 #line default 102 #line hidden 103 104 #line 283 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 105 using Bluedesk.Tools.Generic; 106 107 #line default 108 #line hidden 109 110 #line 467 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 111 using Bluedesk.Tools.DynamicWeb.DataAccess; 112 113 #line default 114 #line hidden 115 116 #line 472 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 117 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 118 119 #line default 120 #line hidden 121 122 #line 1097 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 123 using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 124 125 #line default 126 #line hidden 127 128 #line 287 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 129 using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 130 131 #line default 132 #line hidden 133 134 #line 1096 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 135 using Bluedesk.DynamicWeb.ItemTypes.Extensions; 136 137 #line default 138 #line hidden 139 140 #line 466 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 141 using Microsoft.Data.SqlClient; 142 143 #line default 144 #line hidden 145 146 #line 804 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 147 using Dynamicweb.Content; 148 149 #line default 150 #line hidden 151 152 #line 1578 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 153 using Dynamicweb.Rendering; 154 155 #line default 156 #line hidden 157 158 #line 1579 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 159 using Dynamicweb.Security.UserManagement; 160 161 #line default 162 #line hidden 163 164 #line 1637 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 165 using Dynamicweb.Ecommerce.CustomerExperienceCenter.Favorites; 166 167 #line default 168 #line hidden 169 170 171 public class RazorEngine_34cfcb6150e24839a9d58b0a92be1c67 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> { 172 173 #line hidden 174 175 #line 293 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 176 public RazorEngine.Templating.TemplateWriter RenderCSSKeyAndValue(string Key, string Value) 177 { 178 #line default 179 #line hidden 180 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 181 182 #line 294 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 183 184 if (!string.IsNullOrWhiteSpace(Value)) 185 { 186 187 188 #line default 189 #line hidden 190 WriteLiteralTo(__razor_helper_writer, "\t\t"); 191 192 193 #line 297 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 194 WriteTo(__razor_helper_writer, Key); 195 196 197 #line default 198 #line hidden 199 WriteLiteralTo(__razor_helper_writer, " : "); 200 201 202 #line 297 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 203 WriteTo(__razor_helper_writer, Value); 204 205 206 #line default 207 #line hidden 208 WriteLiteralTo(__razor_helper_writer, " !important;"); 209 210 WriteLiteralTo(__razor_helper_writer, "\r\n"); 211 212 213 #line 298 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 214 } 215 216 217 #line default 218 #line hidden 219 }); 220 221 #line 299 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 222 } 223 #line default 224 #line hidden 225 226 227 #line 301 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 228 public RazorEngine.Templating.TemplateWriter SetFontCSSVariables(FontConfigurationItemTab FontConfiguration) 229 { 230 #line default 231 #line hidden 232 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 233 234 #line 302 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 235 236 237 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : ""; 238 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : ""; 239 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : ""; 240 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : ""; 241 242 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative"; 243 244 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? ""; 245 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? ""; 246 247 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? ""; 248 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : ""; 249 250 251 252 #line default 253 #line hidden 254 WriteLiteralTo(__razor_helper_writer, "\t"); 255 256 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t\t--Position:\t\t"); 257 258 259 #line 319 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 260 WriteTo(__razor_helper_writer, Position); 261 262 263 #line default 264 #line hidden 265 WriteLiteralTo(__razor_helper_writer, ";\r\n\r\n"); 266 267 WriteLiteralTo(__razor_helper_writer, "\t\t"); 268 269 270 #line 321 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 271 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding)); 272 273 274 #line default 275 #line hidden 276 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 277 278 WriteLiteralTo(__razor_helper_writer, "\t\t"); 279 280 281 #line 323 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 282 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Top", Top)); 283 284 285 #line default 286 #line hidden 287 WriteLiteralTo(__razor_helper_writer, "\r\n"); 288 289 WriteLiteralTo(__razor_helper_writer, "\t\t"); 290 291 292 #line 324 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 293 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Left", Left)); 294 295 296 #line default 297 #line hidden 298 WriteLiteralTo(__razor_helper_writer, "\r\n"); 299 300 WriteLiteralTo(__razor_helper_writer, "\t\t"); 301 302 303 #line 325 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 304 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Right", Right)); 305 306 307 #line default 308 #line hidden 309 WriteLiteralTo(__razor_helper_writer, "\r\n"); 310 311 WriteLiteralTo(__razor_helper_writer, "\t\t"); 312 313 314 #line 326 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 315 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Bottom", Bottom)); 316 317 318 #line default 319 #line hidden 320 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 321 322 WriteLiteralTo(__razor_helper_writer, "\t\t"); 323 324 325 #line 328 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 326 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--Color", Color)); 327 328 329 #line default 330 #line hidden 331 WriteLiteralTo(__razor_helper_writer, "\r\n"); 332 333 WriteLiteralTo(__razor_helper_writer, "\t\t"); 334 335 336 #line 329 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 337 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize)); 338 339 340 #line default 341 #line hidden 342 WriteLiteralTo(__razor_helper_writer, "\r\n"); 343 344 WriteLiteralTo(__razor_helper_writer, "\t\t"); 345 346 347 #line 330 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 348 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle)); 349 350 351 #line default 352 #line hidden 353 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 354 355 WriteLiteralTo(__razor_helper_writer, "\t\t"); 356 357 358 #line 332 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 359 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight)); 360 361 362 #line default 363 #line hidden 364 WriteLiteralTo(__razor_helper_writer, "\r\n"); 365 366 WriteLiteralTo(__razor_helper_writer, "\t\t"); 367 368 369 #line 333 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 370 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily)); 371 372 373 #line default 374 #line hidden 375 WriteLiteralTo(__razor_helper_writer, "\r\n"); 376 377 WriteLiteralTo(__razor_helper_writer, "\t\t"); 378 379 380 #line 334 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 381 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight)); 382 383 384 #line default 385 #line hidden 386 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 387 388 WriteLiteralTo(__razor_helper_writer, "\t\t"); 389 390 391 #line 336 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 392 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor)); 393 394 395 #line default 396 #line hidden 397 WriteLiteralTo(__razor_helper_writer, "\r\n"); 398 399 WriteLiteralTo(__razor_helper_writer, "\t\t"); 400 401 402 #line 337 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 403 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderColor", BorderColor)); 404 405 406 #line default 407 #line hidden 408 WriteLiteralTo(__razor_helper_writer, "\r\n"); 409 410 WriteLiteralTo(__razor_helper_writer, "\t\t"); 411 412 413 #line 338 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 414 WriteTo(__razor_helper_writer, RenderCSSKeyAndValue("--BorderSize", BorderSize)); 415 416 417 #line default 418 #line hidden 419 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n\t"); 420 421 WriteLiteralTo(__razor_helper_writer, "\r\n"); 422 423 424 #line 341 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 425 426 427 428 #line default 429 #line hidden 430 }); 431 432 #line 342 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 433 } 434 #line default 435 #line hidden 436 437 438 #line 1518 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 439 public RazorEngine.Templating.TemplateWriter RenderFooterUSP(string USP_content, string USP_icon) 440 { 441 #line default 442 #line hidden 443 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 444 445 #line 1519 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 446 447 if (!string.IsNullOrWhiteSpace(USP_content)) 448 { 449 var usp_icon_class = (!string.IsNullOrWhiteSpace(USP_icon)) ? USP_icon : "fal fa-check"; 450 451 452 453 #line default 454 #line hidden 455 WriteLiteralTo(__razor_helper_writer, "\t\t<li"); 456 457 WriteLiteralTo(__razor_helper_writer, " class=\"footer-usp__item\""); 458 459 WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t<i"); 460 461 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 52329), Tuple.Create("\"", 52369) 462 463 #line 1525 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 464 , Tuple.Create(Tuple.Create("", 52337), Tuple.Create<System.Object, System.Int32>(usp_icon_class 465 466 #line default 467 #line hidden 468 , 52337), false) 469 , Tuple.Create(Tuple.Create(" ", 52352), Tuple.Create("footer-usp__icon", 52353), true) 470 ); 471 472 WriteLiteralTo(__razor_helper_writer, "></i>\r\n\t\t\t<span>"); 473 474 475 #line 1526 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 476 WriteTo(__razor_helper_writer, USP_content); 477 478 479 #line default 480 #line hidden 481 WriteLiteralTo(__razor_helper_writer, "</span>\r\n\t\t</li>\r\n"); 482 483 484 #line 1528 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 485 } 486 487 488 #line default 489 #line hidden 490 }); 491 492 #line 1529 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 493 } 494 #line default 495 #line hidden 496 497 498 public RazorEngine_34cfcb6150e24839a9d58b0a92be1c67() { 499 } 500 501 public override void Execute() { 502 WriteLiteral("\r\n"); 503 504 WriteLiteral("\r\n"); 505 506 WriteLiteral("\r\n"); 507 508 WriteLiteral("\r\n"); 509 510 WriteLiteral("\r\n"); 511 512 WriteLiteral("\r\n"); 513 514 WriteLiteral("\r\n"); 515 516 WriteLiteral("\r\n"); 517 518 WriteLiteral("\r\n"); 519 520 WriteLiteral("\r\n"); 521 522 WriteLiteral("\r\n"); 523 524 525 #line 51 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 526 527 528 var master_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MasterConfiguration"); 529 MasterConfig mc = master_configuration.Item.ToCodeFirstItem<MasterConfig>(); 530 531 bool HideStandardFooter = mc.FooterConfiguration.HideStandardFooter.ToString() == "True" ? true : false; 532 533 string MasterConfigCssClass = !string.IsNullOrWhiteSpace(mc.CssClass) ? mc.CssClass : ""; 534 535 // GeneralConfig GeneralConfiguration = mc.GeneralConfiguration; 536 EcomConfig EcommerceConfiguration = mc.EcomConfiguration; 537 538 string ecomShowPricesWithVat = (Pageview.Area.EcomPricesWithVat == "True").ToString().ToLower(); 539 string ecomPricesFormatted = (EcommerceConfiguration.FormattedPrices).ToString().ToLower(); 540 541 bool IsNotContentManager = false; 542 bool isVisualEditor = Pageview.IsVisualEditorMode; 543 544 if (isVisualEditor) 545 { 546 System.Web.HttpContext.Current.Session["PreviousPage"] = Pageview.Page.ID; 547 IsNotContentManager = (Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser()?.Groups?.All(g => g.Name != "Content managers") ?? true); 548 } 549 550 BaseSettingsObj BaseSettings = new BaseSettingsObj(); 551 552 if (HttpContext.Current.Session["BaseSettings"] == null) 553 { 554 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview); 555 HttpContext.Current.Session["BaseSettings"] = BaseSettings; 556 } 557 else 558 { 559 BaseSettings = (BaseSettingsObj)HttpContext.Current.Session["BaseSettings"]; 560 if (BaseSettings.AreaID != Pageview.AreaID) 561 { 562 BaseSettings = BaseSettingServices.RenderBaseSettings(Pageview); 563 HttpContext.Current.Session["BaseSettings"] = BaseSettings; 564 } 565 } 566 567 BaseSettingsBrandConfiguration BaseSettingsBrandConfiguration = BaseSettings.BrandConfiguration; 568 BaseSettingsButtons BaseSettingsButtons = BaseSettingsBrandConfiguration.Buttons; 569 570 var font_configuration = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "FontConfiguration"); 571 572 var httpdomain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain(); 573 var lang = Pageview.Area.CultureInfo.TwoLetterISOLanguageName; 574 var langName = Pageview.Area.Culture; 575 576 var csrftoken = application._webapi.Helper.CSRFHelper.TokenHeaderValue(); 577 var designRoot = BaseSettings.DesignRoot; 578 579 var phonenumber = BaseSettings.CorporateSettings.Phonenumber; 580 var formattedPhonenumber = phonenumber.Replace(" ", String.Empty); 581 var emailadress = BaseSettings.CorporateSettings.Emailadress; 582 var buttonIconClass = Pageview.Area.Item["Global_button_icon"] != null ? Pageview.Area.Item["Global_button_icon"].ToString().Replace("+", " ") : "fal fa-arrow-right"; 583 var callmebackformlink = BaseSettings.BrandConfiguration.CallMeBackForm; 584 var mobileThemeColor = BaseSettings.BrandConfiguration.MobileThemeColor; 585 586 bool isOffline = false; 587 588 DateTime workingHoursStart = BaseSettings.CorporateSettings.OpeningTime; 589 DateTime workingHoursEnd = BaseSettings.CorporateSettings.ClosingTime; 590 DateTime today = DateTime.Now; 591 var cHour = DateTime.Now.TimeOfDay; 592 int cDay = (int)DateTime.Now.DayOfWeek; 593 string availableToHour24hFormat = workingHoursEnd.TimeOfDay.ToString().Substring(0, 5); 594 var timeFromInput = DateTime.ParseExact(availableToHour24hFormat, "H:m", null, DateTimeStyles.None); 595 string availableToHour12hFormat = timeFromInput.ToString("hh:mm tt", CultureInfo.InvariantCulture); 596 var availableToHour = lang == "en" ? availableToHour12hFormat : availableToHour24hFormat; 597 bool isOvertime = cHour >= workingHoursEnd.TimeOfDay || cHour <= workingHoursStart.TimeOfDay; 598 bool isNoValidDate = today < workingHoursStart || today > workingHoursEnd; 599 if (isNoValidDate || isOvertime) 600 { 601 isOffline = true; 602 } 603 604 Boolean showBreadcrumbs = Pageview.Page.PropertyItem != null && Pageview.Page.PropertyItem["ShowBreadcrumbs"] != null ? Convert.ToBoolean(Pageview.Page.PropertyItem["ShowBreadcrumbs"]) : false; 605 606 var appcss = Cache.VersionedFile(designRoot + "/dist/app.css"); 607 608 var favicon32 = Cache.VersionedFile(designRoot + "/assets/img/favicon-32.png", true); 609 var favicon16 = Cache.VersionedFile(designRoot + "/assets/img/favicon-16.png", true); 610 var favicon = Cache.VersionedFile(designRoot + "/assets/img/favicon.ico", true); 611 612 favicon = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon) ? BaseSettings.BrandConfiguration.Favicons.Favicon : favicon; 613 favicon16 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon16) ? BaseSettings.BrandConfiguration.Favicons.Favicon16 : favicon16; 614 favicon32 = !string.IsNullOrWhiteSpace(BaseSettings.BrandConfiguration.Favicons.Favicon32) ? BaseSettings.BrandConfiguration.Favicons.Favicon32 : favicon32; 615 616 var polyfillsjs = Cache.VersionedFile(designRoot + "/dist/polyfills.bundle.js"); 617 var appbundlejs = Cache.VersionedFile(designRoot + "/dist/app.bundle.js"); 618 var appAsyncbundlejs = Cache.VersionedFile(designRoot + "/dist/appAsync.bundle.js"); 619 var vuebundlejs = Cache.VersionedFile(designRoot + "/dist/vue.bundle.js"); 620 621 622 623 #line default 624 #line hidden 625 WriteLiteral("\r\n\r\n\r\n"); 626 627 628 #line 149 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 629 630 631 int newsImgHeightInt = BP.ImageHeight != null ? BP.ImageHeight : 400; 632 string newsTitle = BP.Title != null ? BP.Title : ""; 633 string newsImg = BP.Image != null ? "/Admin/Public/GetImage.ashx?Image=" + BP.Image.Replace("?x","&x") + "&Crop=7&Compression=80&Format=webp&Quality=90&Height="+ newsImgHeightInt : ""; 634 string newsImgAlt = BP.ImageAlt != null ? BP.ImageAlt : ""; 635 string newsImgHeight = newsImgHeightInt + "px"; 636 string newsDate = BP.Date != null ? Convert.ToDateTime(BP.Date).ToString("d MMMM yyyy") : ""; 637 string newsDateYear = BP.Date != null ? Convert.ToDateTime(BP.Date).ToString("yyyy") : ""; 638 string newsReadTime = BP.ReadingTime != null ? BP.ReadingTime : ""; 639 string newsCategory = !string.IsNullOrWhiteSpace(BP.CategoryID) ? BP.Category.Label : ""; 640 641 bool hasAuthor = !string.IsNullOrWhiteSpace(BP.AuthorID); 642 string authorName = hasAuthor ? BP.Author?.Name ?? "" : ""; 643 string authorImage = hasAuthor ? BP.Author?.Image ?? "" : ""; 644 string authorDescription = hasAuthor ? BP.Author?.Description ?? "" : ""; 645 646 var tags = BP.TagID != null ? BP.TagID.Split(',').ToList() : null; 647 648 649 #line default 650 #line hidden 651 WriteLiteral("\r\n\r\n<!DOCTYPE html>\r\n<html"); 652 653 WriteAttribute("lang", Tuple.Create(" lang=\"", 7580), Tuple.Create("\"", 7592) 654 655 #line 170 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 656 , Tuple.Create(Tuple.Create("", 7587), Tuple.Create<System.Object, System.Int32>(lang 657 658 #line default 659 #line hidden 660 , 7587), false) 661 ); 662 663 WriteLiteral(" prefix=\"og: http://ogp.me/ns#\""); 664 665 WriteLiteral(">\r\n<head>\r\n\t<meta"); 666 667 WriteLiteral(" charset=\"utf-8\""); 668 669 WriteLiteral(">\r\n\t<meta"); 670 671 WriteLiteral(" http-equiv=\"X-UA-Compatible\""); 672 673 WriteLiteral(" content=\"IE=edge\""); 674 675 WriteLiteral(">\r\n\t<meta"); 676 677 WriteLiteral(" name=\"viewport\""); 678 679 WriteLiteral(" content=\"width=device-width, initial-scale=1\""); 680 681 WriteLiteral(">\r\n\t<meta"); 682 683 WriteLiteral(" name=\"theme-color\""); 684 685 WriteAttribute("content", Tuple.Create(" content=\"", 7812), Tuple.Create("\"", 7839) 686 687 #line 175 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 688 , Tuple.Create(Tuple.Create("", 7822), Tuple.Create<System.Object, System.Int32>(mobileThemeColor 689 690 #line default 691 #line hidden 692 , 7822), false) 693 ); 694 695 WriteLiteral(">\r\n"); 696 697 WriteLiteral("\t"); 698 699 700 #line 176 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 701 Write(Model.MetaTags); 702 703 704 #line default 705 #line hidden 706 WriteLiteral("\r\n\t<title>"); 707 708 709 #line 177 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 710 Write(Model.Title); 711 712 713 #line default 714 #line hidden 715 WriteLiteral("</title>\r\n\r\n"); 716 717 WriteLiteral("\t"); 718 719 720 #line 179 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 721 Write(RenderSnippet("canonical")); 722 723 724 #line default 725 #line hidden 726 WriteLiteral("\r\n"); 727 728 WriteLiteral("\t"); 729 730 731 #line 180 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 732 Write(RenderSnippet("ogTags")); 733 734 735 #line default 736 #line hidden 737 WriteLiteral("\r\n\r\n"); 738 739 740 #line 182 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 741 742 743 #line default 744 #line hidden 745 746 #line 182 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 747 748 string urlProtocol = Dynamicweb.Context.Current.Request.Url.Scheme; 749 List<Dynamicweb.Content.Page> pageTranslations = new List<Dynamicweb.Content.Page>(); 750 bool isMasterPage = Pageview.Area.IsMaster; 751 if (isMasterPage) 752 { 753 pageTranslations.Add(Pageview.Page); 754 if (Pageview.Page.Languages != null) 755 { 756 foreach (var language in Pageview.Page.Languages) 757 { 758 if (language.Active) 759 { 760 pageTranslations.Add(language); 761 } 762 } 763 } 764 } 765 else 766 { 767 pageTranslations.Add(Pageview.Page.MasterPage); 768 if (Pageview.Page.MasterPage != null) 769 { 770 if (Pageview.Page.MasterPage.Languages != null) 771 { 772 foreach (var language in Pageview.Page.MasterPage.Languages) 773 { 774 if (language.Active) 775 { 776 pageTranslations.Add(language); 777 } 778 } 779 } 780 } 781 } 782 foreach (var page in pageTranslations) 783 { 784 if (page != null) 785 { 786 string url = $"Default.aspx?ID={page.ID}"; 787 string groupid = Dynamicweb.Context.Current.Request.QueryString.Get("GroupID"); 788 string productid = Dynamicweb.Context.Current.Request.QueryString.Get("ProductID"); 789 string variantid = Dynamicweb.Context.Current.Request.QueryString.Get("VariantID"); 790 if (!string.IsNullOrWhiteSpace(groupid)) 791 { 792 var groupObj = Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(groupid, page.Area.EcomLanguageId); 793 if (groupObj == null) 794 { 795 continue; 796 } 797 url = $"{url}&GroupID={groupid}"; 798 } 799 if (!string.IsNullOrWhiteSpace(productid)) 800 { 801 var productObj = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, page.Area.EcomLanguageId);; 802 if (productObj == null) 803 { 804 continue; 805 } 806 url = $"{url}&ProductID={productid}"; 807 if (!string.IsNullOrWhiteSpace(variantid)) 808 { 809 url = $"{url}&VariantID={variantid}"; 810 } 811 } 812 813 string currentdomain = Context.Current.Request.Url.DnsSafeHost; 814 if (!string.IsNullOrEmpty(page.Area.DomainLock)) { 815 currentdomain = page.Area.DomainLock; 816 } 817 string friendlyUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(url); 818 string href = $"{urlProtocol}://{currentdomain}{friendlyUrl}"; 819 string hreflang = page.Area.CultureInfo.Name.ToLower(); 820 821 822 #line default 823 #line hidden 824 WriteLiteral("\t\t\t<link"); 825 826 WriteLiteral(" rel=\"alternate\""); 827 828 WriteAttribute("href", Tuple.Create(" href=\"", 10215), Tuple.Create("\"", 10227) 829 830 #line 255 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 831 , Tuple.Create(Tuple.Create("", 10222), Tuple.Create<System.Object, System.Int32>(href 832 833 #line default 834 #line hidden 835 , 10222), false) 836 ); 837 838 WriteAttribute("hreflang", Tuple.Create(" hreflang=\"", 10228), Tuple.Create("\"", 10248) 839 840 #line 255 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 841 , Tuple.Create(Tuple.Create("", 10239), Tuple.Create<System.Object, System.Int32>(hreflang 842 843 #line default 844 #line hidden 845 , 10239), false) 846 ); 847 848 WriteLiteral(" />\r\n"); 849 850 851 #line 256 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 852 } 853 } 854 855 856 #line default 857 #line hidden 858 WriteLiteral("\r\n\r\n\r\n\t<link"); 859 860 WriteLiteral(" rel=\"preconnect\""); 861 862 WriteLiteral(" href=\"https://fonts.googleapis.com\""); 863 864 WriteLiteral(">\r\n\t<link"); 865 866 WriteLiteral(" rel=\"preconnect\""); 867 868 WriteLiteral(" href=\"https://fonts.gstatic.com\""); 869 870 WriteLiteral(" crossorigin>\r\n\t<link"); 871 872 WriteAttribute("href", Tuple.Create(" href=\"", 10409), Tuple.Create("\"", 10423) 873 874 #line 263 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 875 , Tuple.Create(Tuple.Create("", 10416), Tuple.Create<System.Object, System.Int32>(appcss 876 877 #line default 878 #line hidden 879 , 10416), false) 880 ); 881 882 WriteLiteral(" rel=\"stylesheet\""); 883 884 WriteLiteral(" type=\"text/css\""); 885 886 WriteLiteral(" />\r\n\r\n"); 887 888 889 #line 265 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 890 891 892 #line default 893 #line hidden 894 895 #line 265 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 896 897 if (!string.IsNullOrWhiteSpace(favicon32)) { 898 899 #line default 900 #line hidden 901 WriteLiteral(" <link"); 902 903 WriteLiteral(" rel=\"icon\""); 904 905 WriteLiteral(" type=\"image/png\""); 906 907 WriteLiteral(" sizes=\"32x32\""); 908 909 WriteAttribute("href", Tuple.Create(" href=\"", 10563), Tuple.Create("\"", 10580) 910 911 #line 266 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 912 , Tuple.Create(Tuple.Create("", 10570), Tuple.Create<System.Object, System.Int32>(favicon32 913 914 #line default 915 #line hidden 916 , 10570), false) 917 ); 918 919 WriteLiteral("> "); 920 921 922 #line 266 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 923 } 924 if (!string.IsNullOrWhiteSpace(favicon16)) { 925 926 #line default 927 #line hidden 928 WriteLiteral(" <link"); 929 930 WriteLiteral(" rel=\"icon\""); 931 932 WriteLiteral(" type=\"image/png\""); 933 934 WriteLiteral(" sizes=\"16x16\""); 935 936 WriteAttribute("href", Tuple.Create(" href=\"", 10680), Tuple.Create("\"", 10697) 937 938 #line 267 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 939 , Tuple.Create(Tuple.Create("", 10687), Tuple.Create<System.Object, System.Int32>(favicon16 940 941 #line default 942 #line hidden 943 , 10687), false) 944 ); 945 946 WriteLiteral("> "); 947 948 949 #line 267 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 950 } 951 if (!string.IsNullOrWhiteSpace(favico)){ 952 953 #line default 954 #line hidden 955 WriteLiteral(" <link"); 956 957 WriteLiteral(" rel=\"shortcut icon\""); 958 959 WriteAttribute("href", Tuple.Create(" href=\"", 10771), Tuple.Create("\"", 10786) 960 961 #line 268 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 962 , Tuple.Create(Tuple.Create("", 10778), Tuple.Create<System.Object, System.Int32>(favicon 963 964 #line default 965 #line hidden 966 , 10778), false) 967 ); 968 969 WriteLiteral("> "); 970 971 972 #line 268 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 973 } 974 975 976 #line default 977 #line hidden 978 WriteLiteral("\r\n\r\n"); 979 980 981 #line 271 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 982 983 984 #line default 985 #line hidden 986 WriteLiteral("\r\n"); 987 988 WriteLiteral("\r\n"); 989 990 WriteLiteral("\r\n"); 991 992 WriteLiteral("\r\n"); 993 994 WriteLiteral("\r\n"); 995 996 WriteLiteral("\r\n"); 997 998 WriteLiteral("\r\n\r\n\t<script>\r\n\t\twindow.globals = {\r\n\t\t\tpageId: \'"); 999 1000 1001 #line 347 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1002 Write(Pageview.ID); 1003 1004 1005 #line default 1006 #line hidden 1007 WriteLiteral("\',\r\n\t\t\tToken: \'"); 1008 1009 1010 #line 348 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1011 Write(csrftoken); 1012 1013 1014 #line default 1015 #line hidden 1016 WriteLiteral("\',\r\n\t\t\tDW_AREA_CULTURE: \'"); 1017 1018 1019 #line 349 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1020 Write(langName); 1021 1022 1023 #line default 1024 #line hidden 1025 WriteLiteral("\',\r\n\t\t\tDW_AREA_CULTURE_SHORT: \'"); 1026 1027 1028 #line 350 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1029 Write(lang); 1030 1031 1032 #line default 1033 #line hidden 1034 WriteLiteral("\',\r\n\t\t\tglobalIconClass: \'"); 1035 1036 1037 #line 351 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1038 Write(buttonIconClass); 1039 1040 1041 #line default 1042 #line hidden 1043 WriteLiteral("\',\r\n\t\t\tDW_USERID: \'"); 1044 1045 1046 #line 352 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1047 Write(Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId()); 1048 1049 1050 #line default 1051 #line hidden 1052 WriteLiteral("\',\r\n\t\t\tDW_SHOW_PRICES_WITH_VAT: "); 1053 1054 1055 #line 353 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1056 Write(ecomShowPricesWithVat); 1057 1058 1059 #line default 1060 #line hidden 1061 WriteLiteral(",\r\n\t\t\tDW_PRICES_FORMATTED: "); 1062 1063 1064 #line 354 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1065 Write(ecomPricesFormatted); 1066 1067 1068 #line default 1069 #line hidden 1070 WriteLiteral("\r\n\t\t};\r\n\t</script>\r\n\r\n"); 1071 1072 WriteLiteral("\t"); 1073 1074 1075 #line 358 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1076 Write(BaseSettings.System.HeadScript); 1077 1078 1079 #line default 1080 #line hidden 1081 WriteLiteral("\r\n\r\n"); 1082 1083 1084 #line 360 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1085 1086 1087 #line default 1088 #line hidden 1089 1090 #line 360 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1091 1092 var _cookieOptinLevel = Dynamicweb.Environment.CookieManager.GetCookieOptInLevel(); 1093 var _enabledCookieCategories = Dynamicweb.Environment.CookieManager.GetCookieOptInCategories(); 1094 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies")) 1095 { 1096 1097 1098 #line default 1099 #line hidden 1100 1101 #line 365 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1102 Write(BaseSettings.System.HeadScriptAfterConsent); 1103 1104 1105 #line default 1106 #line hidden 1107 1108 #line 365 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1109 ; 1110 } 1111 1112 1113 #line default 1114 #line hidden 1115 WriteLiteral("\r\n\r\n"); 1116 1117 1118 #line 369 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1119 1120 1121 #line default 1122 #line hidden 1123 1124 #line 370 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1125 1126 1127 var reviewName = BaseSettings.Review.Review_Name != null ? BaseSettings.Review.Review_Name : ""; 1128 var reviewBestRating = BaseSettings.Review.Review_Best_Rating != null ? BaseSettings.Review.Review_Best_Rating : ""; 1129 var reviewWorstRating = BaseSettings.Review.Review_Worst_Rating != null ? BaseSettings.Review.Review_Worst_Rating : ""; 1130 var reviewRatingValue = BaseSettings.Review.Review_Rating_Value != null ? BaseSettings.Review.Review_Rating_Value : ""; 1131 var reviewCount = BaseSettings.Review.Review_Count != null ? BaseSettings.Review.Review_Count : ""; 1132 var reviewUrl = BaseSettings.Review.Review_URL != null ? BaseSettings.Review.Review_URL : ""; 1133 1134 var searchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID); 1135 var domain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain(); 1136 1137 1138 #line default 1139 #line hidden 1140 WriteLiteral("\r\n\r\n<script"); 1141 1142 WriteLiteral(" type=\"application/ld+json\""); 1143 1144 WriteLiteral(">\r\n\t[{\r\n\t\""); 1145 1146 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\""); 1147 1148 WriteLiteral("@type\": \"Organization\",\r\n\t\"name\" : \""); 1149 1150 1151 #line 387 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1152 Write(BaseSettings.CorporateSettings.CompanyName); 1153 1154 1155 #line default 1156 #line hidden 1157 WriteLiteral("\",\r\n\t\"url\": \""); 1158 1159 1160 #line 388 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1161 Write(domain); 1162 1163 1164 #line default 1165 #line hidden 1166 WriteLiteral("\",\r\n\t\"sameAs\" : \""); 1167 1168 1169 #line 389 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1170 Write(BaseSettings.SocialMedia.Facebook); 1171 1172 1173 #line default 1174 #line hidden 1175 WriteLiteral("\",\r\n\t\"logo\": \""); 1176 1177 1178 #line 390 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1179 Write(domain); 1180 1181 1182 #line default 1183 #line hidden 1184 1185 #line 390 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1186 Write(BaseSettings.BrandConfiguration.Logos.Logo); 1187 1188 1189 #line default 1190 #line hidden 1191 WriteLiteral("\",\r\n\t\"contactPoint\" : [{\r\n\t\""); 1192 1193 WriteLiteral("@type\" : \"ContactPoint\",\r\n\t\"telephone\" : \""); 1194 1195 1196 #line 393 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1197 Write(BaseSettings.CorporateSettings.Phonenumber); 1198 1199 1200 #line default 1201 #line hidden 1202 WriteLiteral("\",\r\n\t\"contactType\" : \"customer service\" ,\r\n\t\""); 1203 1204 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\""); 1205 1206 WriteLiteral("@id\": \""); 1207 1208 1209 #line 396 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1210 Write(domain); 1211 1212 1213 #line default 1214 #line hidden 1215 WriteLiteral("\",\r\n\t\"name\": \""); 1216 1217 1218 #line 397 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1219 Write(BaseSettings.CorporateSettings.CompanyName); 1220 1221 1222 #line default 1223 #line hidden 1224 WriteLiteral("\"\r\n\t}],\r\n\t\"address\": {\r\n\t\""); 1225 1226 WriteLiteral("@type\": \"PostalAddress\",\r\n\t\"streetAddress\": \""); 1227 1228 1229 #line 401 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1230 Write(BaseSettings.CorporateSettings.Address); 1231 1232 1233 #line default 1234 #line hidden 1235 WriteLiteral("\",\r\n\t\"addressLocality\": \""); 1236 1237 1238 #line 402 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1239 Write(BaseSettings.CorporateSettings.City); 1240 1241 1242 #line default 1243 #line hidden 1244 WriteLiteral("\",\r\n\t\"postalCode\": \""); 1245 1246 1247 #line 403 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1248 Write(BaseSettings.CorporateSettings.Zipcode); 1249 1250 1251 #line default 1252 #line hidden 1253 WriteLiteral("\",\r\n\t\"addressRegion\": \""); 1254 1255 1256 #line 404 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1257 Write(BaseSettings.CorporateSettings.Region); 1258 1259 1260 #line default 1261 #line hidden 1262 WriteLiteral("\",\r\n\t\"addressCountry\": \""); 1263 1264 1265 #line 405 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1266 Write(BaseSettings.CorporateSettings.Country); 1267 1268 1269 #line default 1270 #line hidden 1271 WriteLiteral("\"\r\n\t}\r\n\t},\r\n\t{\r\n\t\""); 1272 1273 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\""); 1274 1275 WriteLiteral("@type\": \"WebSite\",\r\n\t\"name\" : \""); 1276 1277 1278 #line 411 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1279 Write(BaseSettings.CorporateSettings.CompanyName); 1280 1281 1282 #line default 1283 #line hidden 1284 WriteLiteral("\",\r\n\t\"alternateName\" : \""); 1285 1286 1287 #line 412 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1288 Write(BaseSettings.CorporateSettings.AltCompanyName); 1289 1290 1291 #line default 1292 #line hidden 1293 WriteLiteral("\",\r\n\t\"url\": \""); 1294 1295 1296 #line 413 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1297 Write(domain); 1298 1299 1300 #line default 1301 #line hidden 1302 WriteLiteral("\",\r\n\t\"potentialAction\": {\r\n\t\""); 1303 1304 WriteLiteral("@type\": \"SearchAction\",\r\n\t\"target\": \""); 1305 1306 1307 #line 416 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1308 Write(domain); 1309 1310 1311 #line default 1312 #line hidden 1313 WriteLiteral("/Default.aspx?ID="); 1314 1315 1316 #line 416 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1317 Write(searchPageID); 1318 1319 1320 #line default 1321 #line hidden 1322 WriteLiteral("&q={search_term_string}\",\r\n\t\"query-input\": \"required name=search_term_string\"\r\n\t}" + 1323 "\r\n\t}]\r\n</script>\r\n\r\n<script"); 1324 1325 WriteLiteral(" type=\"application/ld+json\""); 1326 1327 WriteLiteral(">\r\n\t{\r\n\t\t\""); 1328 1329 WriteLiteral("@context\": \"https://schema.org\",\r\n\t\t\""); 1330 1331 WriteLiteral("@type\": \"Product\",\r\n\t\t\"name\": \""); 1332 1333 1334 #line 426 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1335 Write(reviewName); 1336 1337 1338 #line default 1339 #line hidden 1340 WriteLiteral("\",\r\n\t\t\"url\":\""); 1341 1342 1343 #line 427 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1344 Write(reviewUrl); 1345 1346 1347 #line default 1348 #line hidden 1349 WriteLiteral("\",\r\n\t\t\"aggregateRating\": {\r\n\t\t\t\""); 1350 1351 WriteLiteral("@type\": \"AggregateRating\",\r\n\t\t\t\"bestRating\": \""); 1352 1353 1354 #line 430 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1355 Write(reviewBestRating); 1356 1357 1358 #line default 1359 #line hidden 1360 WriteLiteral("\",\r\n\t\t\t\"worstRating\": \""); 1361 1362 1363 #line 431 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1364 Write(reviewWorstRating); 1365 1366 1367 #line default 1368 #line hidden 1369 WriteLiteral("\",\r\n\t\t\t\"ratingValue\": \""); 1370 1371 1372 #line 432 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1373 Write(reviewRatingValue); 1374 1375 1376 #line default 1377 #line hidden 1378 WriteLiteral("\",\r\n\t\t\t\"reviewCount\": \""); 1379 1380 1381 #line 433 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1382 Write(reviewCount); 1383 1384 1385 #line default 1386 #line hidden 1387 WriteLiteral("\"\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n"); 1388 1389 WriteLiteral("\t"); 1390 1391 1392 #line 439 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1393 Write(RenderSnippet("DataLayer")); 1394 1395 1396 #line default 1397 #line hidden 1398 WriteLiteral("\r\n"); 1399 1400 WriteLiteral("\t"); 1401 1402 1403 #line 440 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1404 Write(RenderSnippet("GoogleMapsScript")); 1405 1406 1407 #line default 1408 #line hidden 1409 WriteLiteral("\r\n\r\n"); 1410 1411 1412 #line 442 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1413 1414 1415 #line default 1416 #line hidden 1417 WriteLiteral("\r\n"); 1418 1419 1420 #line 444 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1421 1422 1423 // TODO: Add there options to master config for product overview 1424 bool hidePricesForGuests = false; 1425 bool hideShoppingCartForGuests = false; 1426 1427 bool enableShoppingCart = hideShoppingCartForGuests && Pageview.User == null ? false : BaseSettings.Features.ConfigModuleShoppingCart; 1428 bool enableLogin = BaseSettings.Features.ConfigModuleLogin; 1429 bool enableQuickOrder = BaseSettings.Features.ConfigModuleQuickOrder; 1430 bool enableAdvancedSearch = BaseSettings.Features.ConfigModuleAdvancedSearch; 1431 bool enableCallMeBack = BaseSettings.Features.ConfigModuleCallMeBack; 1432 bool enableDyslexicFont = BaseSettings.Features.ConfigModuleDyslexicFont; 1433 bool enableProductCompare = BaseSettings.Features.ConfigModuleProductCompare; 1434 1435 1436 #line default 1437 #line hidden 1438 WriteLiteral("\r\n\r\n\t\r\n\r\n\t<style>\r\n"); 1439 1440 1441 #line 462 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1442 1443 1444 #line default 1445 #line hidden 1446 WriteLiteral("\r\n"); 1447 1448 WriteLiteral("\r\n"); 1449 1450 WriteLiteral("\r\n"); 1451 1452 WriteLiteral("\r\n"); 1453 1454 1455 #line 476 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1456 Write(Title("Configuration page template")); 1457 1458 1459 #line default 1460 #line hidden 1461 WriteLiteral("\r\n\r\n"); 1462 1463 1464 #line 478 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1465 1466 1467 string RoundedCornersValue = "0px"; 1468 string ButtonHeight = BaseSettings.BrandConfiguration.ButtonHeight; 1469 1470 switch (BaseSettings.BrandConfiguration.RoundedCorners) 1471 { 1472 1473 case "rounded": 1474 RoundedCornersValue = BaseSettings.BrandConfiguration.RoundedCornerValue; 1475 break; 1476 1477 case "round": 1478 RoundedCornersValue = ButtonHeight; 1479 break; 1480 1481 default: 1482 RoundedCornersValue = "0px"; 1483 break; 1484 } 1485 1486 string fontawesomeFontFamily = "Font Awesome 5 Pro"; 1487 int fontawesomeFontWeight = 300; 1488 1489 switch (BaseSettings.BrandConfiguration.FontawesomeStyle) 1490 { 1491 1492 case "fal": 1493 fontawesomeFontWeight = 300; 1494 break; 1495 case "far": 1496 fontawesomeFontWeight = 400; 1497 break; 1498 case "fas": 1499 fontawesomeFontWeight = 900; 1500 break; 1501 case "fad": 1502 fontawesomeFontWeight = 900; 1503 fontawesomeFontFamily = "Font Awesome 5 Duotone"; 1504 break; 1505 } 1506 1507 1508 1509 #line default 1510 #line hidden 1511 WriteLiteral("\r\n\r\n"); 1512 1513 1514 #line 522 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1515 Write(BaseSettingServices.RenderButtonCSS("btn__primary", BaseSettingsButtons.PrimaryButtonConfiguration)); 1516 1517 1518 #line default 1519 #line hidden 1520 WriteLiteral("\r\n"); 1521 1522 1523 #line 523 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1524 Write(BaseSettingServices.RenderButtonCSS("btn__secondary", BaseSettingsButtons.SecondaryButtonConfiguration)); 1525 1526 1527 #line default 1528 #line hidden 1529 WriteLiteral("\r\n"); 1530 1531 1532 #line 524 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1533 Write(BaseSettingServices.RenderButtonCSS("btn__contrast", BaseSettingsButtons.ContrastButtonConfiguration)); 1534 1535 1536 #line default 1537 #line hidden 1538 WriteLiteral("\r\n\r\n:root,\r\nbody {\r\n\r\n\t--BaseColorPrimary : "); 1539 1540 1541 #line 529 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1542 Write(BaseSettingsBrandConfiguration.BaseColorPrimary); 1543 1544 1545 #line default 1546 #line hidden 1547 WriteLiteral(";\r\n\t--BaseColorSecondary : "); 1548 1549 1550 #line 530 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1551 Write(BaseSettingsBrandConfiguration.BaseColorSecondary); 1552 1553 1554 #line default 1555 #line hidden 1556 WriteLiteral(";\r\n\t--BaseColorContrast : "); 1557 1558 1559 #line 531 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1560 Write(BaseSettingsBrandConfiguration.BaseColorContrast); 1561 1562 1563 #line default 1564 #line hidden 1565 WriteLiteral(";\r\n\r\n\t--BaseFontPrimary : "); 1566 1567 1568 #line 533 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1569 Write(BaseSettingsBrandConfiguration.PrimaryFontFamily); 1570 1571 1572 #line default 1573 #line hidden 1574 WriteLiteral(";\r\n\t--BaseFontSecondary : "); 1575 1576 1577 #line 534 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1578 Write(BaseSettingsBrandConfiguration.PrimaryFontFamily); 1579 1580 1581 #line default 1582 #line hidden 1583 WriteLiteral(";\r\n\r\n"); 1584 1585 WriteLiteral("\t"); 1586 1587 1588 #line 536 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1589 Write(BaseSettings.BrandConfiguration.BodyInlineStyles); 1590 1591 1592 #line default 1593 #line hidden 1594 WriteLiteral("\r\n\t--StandardUnitSize : 3.2rem;\r\n\t}\r\n\r\n\th1, h2, h3, h4, h5, h6 { "); 1595 1596 1597 #line 540 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1598 Write(BaseSettings.BrandConfiguration.HeaderInlineStyles); 1599 1600 1601 #line default 1602 #line hidden 1603 WriteLiteral(" }\r\n\r\n\th1.cta-paragraph__header { "); 1604 1605 1606 #line 542 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1607 Write(BaseSettings.BrandConfiguration.H1InlineStyles); 1608 1609 1610 #line default 1611 #line hidden 1612 WriteLiteral(" }\r\n\th2.cta-paragraph__header { "); 1613 1614 1615 #line 543 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1616 Write(BaseSettings.BrandConfiguration.H2InlineStyles); 1617 1618 1619 #line default 1620 #line hidden 1621 WriteLiteral(" }\r\n\th3.cta-paragraph__header { "); 1622 1623 1624 #line 544 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1625 Write(BaseSettings.BrandConfiguration.H3InlineStyles); 1626 1627 1628 #line default 1629 #line hidden 1630 WriteLiteral(" }\r\n\th4.cta-paragraph__header { "); 1631 1632 1633 #line 545 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1634 Write(BaseSettings.BrandConfiguration.H4InlineStyles); 1635 1636 1637 #line default 1638 #line hidden 1639 WriteLiteral(" }\r\n\r\n\t.po-block__addtocart .btn,\r\n\t.productdetails__add-to-cart,\r\n\t.searchbox__i" + 1640 "nput {\r\n\tborder-radius: "); 1641 1642 1643 #line 550 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1644 Write(RoundedCornersValue); 1645 1646 1647 #line default 1648 #line hidden 1649 WriteLiteral(";\r\n\t}\r\n\r\n\tmain.blur {\r\n\tfilter: grayscale(50%) blur(15px);\r\n\t-webkit-filter: gray" + 1650 "scale(50%) blur(15px);\r\n\t}\r\n\r\n\t.AdvancedGridButton {\r\n\t--BorderRadius: "); 1651 1652 1653 #line 559 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1654 Write(RoundedCornersValue); 1655 1656 1657 #line default 1658 #line hidden 1659 WriteLiteral(";\r\n\t}\r\n\r\n\t.btn {\r\n\theight: var(--StandardUnitSize);\r\n\t}\r\n\r\n\t.btn__icon {\r\n\r\n\t--fo" + 1660 "ntawesomeFontFamily : \""); 1661 1662 1663 #line 568 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1664 Write(fontawesomeFontFamily); 1665 1666 1667 #line default 1668 #line hidden 1669 WriteLiteral("\";\r\n\t--fontawesomeFontWeight : "); 1670 1671 1672 #line 569 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1673 Write(fontawesomeFontWeight); 1674 1675 1676 #line default 1677 #line hidden 1678 WriteLiteral(";\r\n\r\n\tfont-family: var(--fontawesomeFontFamily);\r\n\tfont-weight: var(--fontawesome" + 1679 "FontWeight);\r\n\r\n\t-moz-osx-font-smoothing: grayscale;\r\n\t-webkit-font-smoothing: a" + 1680 "ntialiased;\r\n\tdisplay: inline-block;\r\n\tfont-style: normal;\r\n\tfont-variant: norma" + 1681 "l;\r\n\ttext-rendering: auto;\r\n\tline-height: 1;\r\n\r\n\t}\r\n\r\n\t.cta-paragraph {\r\n\tbackgr" + 1682 "ound-color: var(--mainBackgroundColor);\r\n\t}\r\n\r\n\t.cta-paragraph__container {\r\n\tba" + 1683 "ckground-color: var(--contentBackgroundColor);\r\n\tborder: var(--contentBorder);\r\n" + 1684 "\t}\r\n\r\n\t.cta-paragraph__subheader,\r\n\t.cta-paragraph__header,\r\n\t.cta-paragraph__te" + 1685 "xt p,\r\n\t.cta-paragraph__text li {\r\n\tcolor: var(--Color);\r\n\tbackground-color: var" + 1686 "(--BackgroundColor);\r\n\tborder-color: var(--BorderColor);\r\n\tposition: var(--Posit" + 1687 "ion);\r\n\ttop: var(--Top);\r\n\tleft: var(--Left);\r\n\tright: var(--Right);\r\n\tbottom: v" + 1688 "ar(--Bottom);\r\n\tpadding: var(--Padding);\r\n\tborder: var(--BorderSize);\r\n\tfont-siz" + 1689 "e: var(--FontSize);\r\n\ttext-transform: var(--FontStyle);\r\n\tline-height: var(--Lin" + 1690 "eHeight);\r\n\tfont-weight: var(--FontWeight);\r\n\tfont-family: var(--FontFamily);\r\n\t" + 1691 "border-radius: var(--BorderRadius);\r\n\t}\r\n\r\n\t.cta-paragraph__content-container {\r" + 1692 "\n\talign-items: var(--ContentElementAlignmentAlignItems);\r\n\ttext-align: var(--Con" + 1693 "tentElementAlignmentTextAlign);\r\n\t}\r\n\r\n\t.cta-paragraph__btn-navigation,\r\n\t.cta-p" + 1694 "aragraph__content-container {\r\n\talign-items : var(--ContainerFitContentAlignment" + 1695 "AlignItems);\r\n\tjustify-content: var(--ContainerFitContentAlignmentJustifyContent" + 1696 ");\r\n\t}\r\n\r\n\t.jumbotron__subheader,\r\n\t.jumbotron__header,\r\n\t.jumbotron__shoutbox-i" + 1697 "ntro p,\r\n\t.jumbotron__shoutbox-intro li,\r\n\t.header--desktop.headerNew {\r\n\tpositi" + 1698 "on: relative;\r\n\t}\r\n\r\n\t.header--desktop.headerNew.stickyheader {\r\n\tposition: fixe" + 1699 "d;\r\n\t}\r\n\r\n\t"); 1700 1701 WriteLiteral(@"@media screen and (min-width: 992px){ 1702 .image-left { 1703 justify-content: flex-end; 1704 flex-direction: row; 1705 } 1706 1707 .image-right { 1708 justify-content: flex-start; 1709 flex-direction: row-reverse; 1710 } 1711 } 1712 1713 .AdvancedGrid__row { 1714 background-color: var(--BackgroundColor); 1715 } 1716 1717 .cta-paragraph__btn-navigation { 1718 padding: 1.2rem 0rem !important; 1719 } 1720 1721 .AdvancedGrid, 1722 .AdvancedGrid__container { 1723 width: 100%; 1724 background-image: var(--BackgroundImage); 1725 min-height: var(--Height); 1726 } 1727 1728 "); 1729 1730 1731 #line 665 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1732 1733 1734 #line default 1735 #line hidden 1736 1737 #line 665 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1738 1739 1740 int PageViewId = Pageview.Page.ID; 1741 int AreaId = Pageview.AreaID; 1742 1743 // HttpContext.Current.Session["PageIdForStyles"] = Pageview.Page.ID; 1744 // HttpContext.Current.Session["AreaIdForStyles"] = Pageview.AreaID; 1745 1746 DataTable AdvancedGridStylesDataTable = null; 1747 1748 AdvancedGridStylesDataTable = DynamicwebData.Query($@" 1749 1750 SELECT 1751 InlineStyles AS Styles 1752 1753 FROM 1754 [dbo].[ItemType_AdvancedGridConfiguration] AS AGC 1755 LEFT JOIN [dbo].[GridRow] AS GR ON GR.GridRowItemId = AGC.Id 1756 1757 WHERE 1758 GR.GridRowPageId = @PageId; 1759 1760 ", new Microsoft.Data.SqlClient.SqlParameter("PageId", PageViewId)); 1761 1762 DataTable BackgroundConfigDataTable = null; 1763 1764 BackgroundConfigDataTable = DynamicwebData.Query($@" 1765 1766 SELECT 1767 distinct(BG.Stylesheet) AS Styles 1768 1769 FROM [dbo].GridRow AS GR 1770 INNER JOIN dbo.Paragraph AS PG ON PG.ParagraphGridRowId = GR.GridRowId 1771 LEFT JOIN dbo.ItemType_CTAParagraph AS CTA ON CTA.Id = PG.ParagraphItemId 1772 LEFT JOIN dbo.ItemType_MultiColumnParagraph AS MCP ON MCP.Id = PG.ParagraphItemId 1773 LEFT JOIN dbo.ItemType_Carousel AS CS ON CS.Id = PG.ParagraphItemId 1774 LEFT JOIN dbo.ItemType_BackgroundConfiguration AS BG ON CTA.BackgroundConfigurationID = BG.Id 1775 OR MCP.BackgroundConfigurationID = BG.Id 1776 OR CS.BackgroundConfigurationID = BG.Id 1777 1778 WHERE GR.GridRowPageID=@PageId 1779 AND bg.Stylesheet Is NOT NULL", new Microsoft.Data.SqlClient.SqlParameter("PageId", PageViewId)); 1780 1781 DataTable ButtonConfigDataTable = null; 1782 1783 ButtonConfigDataTable = DynamicwebData.Query($@" 1784 1785 SELECT 1786 distinct(BCONF.Stylesheet) AS Styles 1787 1788 FROM [dbo].GridRow AS GR 1789 LEFT JOIN [dbo].Paragraph AS P ON P.ParagraphGridRowId = GR.GridRowId 1790 LEFT JOIN [dbo].ItemType_CTAParagraph AS CTAP ON CTAP.Id = P.ParagraphItemId 1791 LEFT JOIN [dbo].ItemType_MultiColumnParagraph AS MCP ON MCP.Id = P.ParagraphItemId 1792 LEFT JOIN [dbo].[ItemType_ParagraphColumn] AS PC ON MCP.ParagraphListID = PC.Id 1793 LEFT JOIN [dbo].ItemType_Carousel AS CS ON CS.Id = P.ParagraphItemId 1794 LEFT JOIN [dbo].[ItemType_CarouselItem] AS CI ON CS.CarouselListID = CI.Id 1795 LEFT JOIN [dbo].[ItemType_JumbotronContainer] AS JC ON JC.Id = P.ParagraphItemId 1796 LEFT JOIN [dbo].[ItemType_JumbotronListItem] AS JLI ON JLI.Id = JC.JumbotronListID 1797 LEFT JOIN [dbo].[ItemType_CTAButton] AS CTAB ON 1798 CTAP.ButtonID = CTAB.Id 1799 OR CTAP.ExtraButtonID = CTAB.Id 1800 OR MCP.ButtonID = CTAB.Id 1801 OR PC.ButtonID = CTAB.Id 1802 OR PC.ExtraButtonID = CTAB.Id 1803 OR CS.ButtonID = CTAB.Id 1804 OR CI.ButtonID = CTAB.Id 1805 OR CI.ExtraButtonID = CTAB.Id 1806 OR JLI.ButtonID = CTAB.Id 1807 LEFT JOIN [dbo].[ItemType_ButtonConfiguration] AS BCONF ON CTAB.ButtonConfigurationID = BCONF.Id 1808 1809 WHERE 1810 GR.GridRowPageID = @PageId 1811 AND GR.GridRowActive = 1 1812 AND CTAB.ButtonConfigurationID Is NOT NULL", new Microsoft.Data.SqlClient.SqlParameter("PageId", PageViewId)); 1813 1814 DataTable MasterConfigDataTable = null; 1815 1816 MasterConfigDataTable = DynamicwebData.Query($@" 1817 1818 SELECT 1819 MC.CustomCSS 1820 1821 FROM 1822 [dbo].[Page] AS P 1823 INNER JOIN [dbo].[ItemType_MasterConfig] AS MC ON P.PageItemId = MC.Id 1824 1825 WHERE 1826 p.PageItemType = 'MasterConfig' 1827 AND PageAreaId = @AreaId;", new Microsoft.Data.SqlClient.SqlParameter("AreaId", AreaId)); 1828 1829 if (AdvancedGridStylesDataTable != null && AdvancedGridStylesDataTable.Rows.Count > 0) 1830 { 1831 for (int i = 0; i < AdvancedGridStylesDataTable.Rows.Count; i++) 1832 { 1833 1834 1835 #line default 1836 #line hidden 1837 1838 #line 760 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1839 Write(AdvancedGridStylesDataTable.Rows[i]["Styles"].ToString()); 1840 1841 1842 #line default 1843 #line hidden 1844 1845 #line 760 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1846 ; 1847 } 1848 } 1849 1850 if (BackgroundConfigDataTable != null && BackgroundConfigDataTable.Rows.Count > 0) 1851 { 1852 for (int i = 0; i < BackgroundConfigDataTable.Rows.Count; i++) 1853 { 1854 1855 1856 #line default 1857 #line hidden 1858 1859 #line 768 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1860 Write(BackgroundConfigDataTable.Rows[i]["Styles"].ToString()); 1861 1862 1863 #line default 1864 #line hidden 1865 1866 #line 768 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1867 ; 1868 } 1869 } 1870 1871 if (ButtonConfigDataTable != null && ButtonConfigDataTable.Rows.Count > 0) 1872 { 1873 for (int i = 0; i < ButtonConfigDataTable.Rows.Count; i++) 1874 { 1875 1876 1877 #line default 1878 #line hidden 1879 1880 #line 776 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1881 Write(ButtonConfigDataTable.Rows[i]["Styles"].ToString()); 1882 1883 1884 #line default 1885 #line hidden 1886 1887 #line 776 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1888 ; 1889 } 1890 } 1891 1892 1893 1894 #line default 1895 #line hidden 1896 1897 #line 780 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1898 Write(MasterConfigDataTable.Rows[0]["CustomCSS"].ToString()); 1899 1900 1901 #line default 1902 #line hidden 1903 1904 #line 780 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1905 ; 1906 1907 1908 #line default 1909 #line hidden 1910 WriteLiteral("\r\n\r\n\t</style>\r\n\r\n</head>\r\n<body"); 1911 1912 WriteAttribute("class", Tuple.Create(" class=\"", 26999), Tuple.Create("\"", 27028) 1913 1914 #line 786 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1915 , Tuple.Create(Tuple.Create("", 27007), Tuple.Create<System.Object, System.Int32>(MasterConfigCssClass 1916 1917 #line default 1918 #line hidden 1919 , 27007), false) 1920 ); 1921 1922 WriteLiteral(">\r\n\r\n"); 1923 1924 WriteLiteral("\t"); 1925 1926 1927 #line 788 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1928 Write(BaseSettings.System.BodyScript); 1929 1930 1931 #line default 1932 #line hidden 1933 WriteLiteral("\r\n"); 1934 1935 1936 #line 789 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1937 1938 1939 #line default 1940 #line hidden 1941 1942 #line 789 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1943 1944 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies")) 1945 { 1946 1947 1948 #line default 1949 #line hidden 1950 1951 #line 792 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1952 Write(BaseSettings.System.BodyScriptAfterConsent); 1953 1954 1955 #line default 1956 #line hidden 1957 1958 #line 792 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1959 ; 1960 } 1961 1962 1963 #line default 1964 #line hidden 1965 WriteLiteral("\r\n\r\n"); 1966 1967 WriteLiteral("\t"); 1968 1969 1970 #line 796 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1971 Write(BaseSettings.System.TailScript); 1972 1973 1974 #line default 1975 #line hidden 1976 WriteLiteral("\r\n\r\n"); 1977 1978 1979 #line 798 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1980 1981 1982 #line default 1983 #line hidden 1984 WriteLiteral("\r\n"); 1985 1986 WriteLiteral("\r\n"); 1987 1988 1989 #line 807 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 1990 1991 1992 DataTable DataTableObj = AdvancedGridServices.GetHeaderGridDataTable(Pageview.AreaID, Pageview.Page.ID); 1993 1994 WrapperObj Header = AdvancedGridServices.RenderWrapper(DataTableObj, "header", "header", Pageview.AreaID, Pageview.Page.ID); 1995 WrapperObj Footer = AdvancedGridServices.RenderWrapper(DataTableObj, "footer", "footer", Pageview.AreaID, Pageview.Page.ID); 1996 1997 // var homepage = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).FirstOrDefault(p => p.ItemType == "HomePage" && p.Active) ?? Dynamicweb.Services.Pages.GetFirstPageForArea(Pageview.AreaID); 1998 1999 bool userLoggedIn = false; 2000 if (enableLogin) { userLoggedIn = Pageview.User == null ? false : true; } 2001 2002 string HeaderContainerSize = mc.HeaderConfiguration.ContainerSize + "px"; 2003 2004 2005 2006 #line default 2007 #line hidden 2008 WriteLiteral("\r\n\r\n"); 2009 2010 WriteLiteral(@" 2011 <script> 2012 2013 function setImagesSizes(Classname) { 2014 var Images = document.querySelectorAll(Classname); 2015 for (var index = 0; index < Images.length; index++) { 2016 if (!Images[index].hasAttribute(""height"")) { 2017 Images[index].setAttribute(""height"", Images[index].offsetHeight); 2018 } 2019 if (!Images[index].hasAttribute(""width"")) { 2020 Images[index].setAttribute(""width"", Images[index].offsetWidth); 2021 } 2022 } 2023 } 2024 2025 window.addEventListener('load', function () { 2026 setImagesSizes(""img""); 2027 setImagesSizes("".mc-header__logo-image""); 2028 }); 2029 2030 </script> 2031 2032 2033 <style> 2034 "); 2035 2036 WriteLiteral("\t"); 2037 2038 2039 #line 850 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2040 Write(Header.CSS); 2041 2042 2043 #line default 2044 #line hidden 2045 WriteLiteral("\r\n"); 2046 2047 WriteLiteral("\t"); 2048 2049 2050 #line 851 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2051 Write(Footer.CSS); 2052 2053 2054 #line default 2055 #line hidden 2056 WriteLiteral("\r\n</style>\r\n\r\n"); 2057 2058 2059 #line 854 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2060 Write(Header.Template); 2061 2062 2063 #line default 2064 #line hidden 2065 WriteLiteral("\r\n\r\n\r\n<!-- DO NOT REMOVE -->\r\n<div"); 2066 2067 WriteLiteral(" id=\"quick-order\""); 2068 2069 WriteLiteral("></div>\r\n<div"); 2070 2071 WriteLiteral(" id=\"backdrop-megamenu\""); 2072 2073 WriteLiteral("></div>\r\n<mega-menu"); 2074 2075 WriteLiteral(" id=\"mega-menu\""); 2076 2077 WriteLiteral("></mega-menu>\r\n<!-- DO NOT REMOVE -->\r\n\r\n"); 2078 2079 2080 #line 863 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2081 if (isVisualEditor && IsNotContentManager) 2082 { 2083 2084 2085 #line default 2086 #line hidden 2087 2088 #line 865 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2089 Write(AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "header")); 2090 2091 2092 #line default 2093 #line hidden 2094 2095 #line 865 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2096 2097 } 2098 2099 2100 #line default 2101 #line hidden 2102 WriteLiteral(@" 2103 <style> 2104 .visual-editor__navigation { 2105 position: absolute; 2106 top: 10px; 2107 left: 10px; 2108 display: flex; 2109 flex-direction: row; 2110 z-index: 100000000; 2111 } 2112 2113 .visual-editor__button { 2114 height: 50px; 2115 min-width: 150px; 2116 right: auto; 2117 left: auto; 2118 background-color: white; 2119 box-shadow: -10px 10px 10px rgb(28 28 84 / 25%); 2120 display: flex; 2121 justify-content: center; 2122 align-items: center; 2123 padding: 25px; 2124 margin-right: 25px; 2125 } 2126 2127 .visual-editor__button-icon { 2128 margin-right: 25px; 2129 } 2130 2131 .header { 2132 --HeaderContainerDisplay: none; 2133 } 2134 2135 .header__container { 2136 padding: 0; 2137 } 2138 2139 .header__container, .header__stickyheader-container { 2140 max-width: none; 2141 } 2142 2143 .header .AdvancedGrid__container { 2144 max-width: "); 2145 2146 2147 #line 909 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2148 Write(HeaderContainerSize); 2149 2150 2151 #line default 2152 #line hidden 2153 WriteLiteral(";\r\n\t\tmargin: 0 auto;\r\n\t}\r\n\r\n\t.header .AdvancedGrid__column {\r\n\t\tbackground-color:" + 2154 " var(--BackgroundColor);\r\n\t\tflex-grow: var(--FlexGrow);\r\n\t}\r\n\r\n\t.AdvancedGrid__r" + 2155 "ow {\r\n\t\talign-items: center;\r\n\t}\r\n</style>\r\n\r\n"); 2156 2157 2158 #line 923 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2159 2160 2161 #line default 2162 #line hidden 2163 WriteLiteral("\r\n"); 2164 2165 2166 #line 927 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2167 2168 var pid = ModuleOnlyParagraph.GetParagraphIDByTag<ModuleOnlyParagraph>("SideBarForm", Pageview.AreaID); 2169 2170 if (pid > 0) 2171 { 2172 2173 2174 #line default 2175 #line hidden 2176 WriteLiteral("\t\t<section"); 2177 2178 WriteLiteral(" id=\"vue-side-bar-form\""); 2179 2180 WriteLiteral(" data-paragraphid=\""); 2181 2182 2183 #line 932 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2184 Write(pid); 2185 2186 2187 #line default 2188 #line hidden 2189 WriteLiteral("\""); 2190 2191 WriteLiteral(" data-telephone=\""); 2192 2193 2194 #line 932 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2195 Write(phonenumber); 2196 2197 2198 #line default 2199 #line hidden 2200 WriteLiteral("\""); 2201 2202 WriteLiteral(" data-formatphonenumber=\""); 2203 2204 2205 #line 932 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2206 Write(formattedPhonenumber); 2207 2208 2209 #line default 2210 #line hidden 2211 WriteLiteral("\""); 2212 2213 WriteLiteral(" data-isoffline=\""); 2214 2215 2216 #line 932 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2217 Write(isOffline); 2218 2219 2220 #line default 2221 #line hidden 2222 WriteLiteral("\""); 2223 2224 WriteLiteral("></section>\r\n"); 2225 2226 2227 #line 933 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2228 } 2229 2230 2231 #line default 2232 #line hidden 2233 WriteLiteral("\r\n\r\n\r\n"); 2234 2235 2236 #line 937 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2237 2238 2239 #line default 2240 #line hidden 2241 2242 #line 937 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2243 if (@enableProductCompare) 2244 { 2245 2246 2247 #line default 2248 #line hidden 2249 WriteLiteral("\t\t<div"); 2250 2251 WriteLiteral(" id=\"vue-compare-list\""); 2252 2253 WriteLiteral("></div>\r\n"); 2254 2255 2256 #line 940 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2257 } 2258 2259 2260 #line default 2261 #line hidden 2262 WriteLiteral("\r\n"); 2263 2264 2265 #line 942 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2266 2267 2268 #line default 2269 #line hidden 2270 2271 #line 942 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2272 2273 var Home = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "Home"); 2274 2275 2276 #line default 2277 #line hidden 2278 WriteLiteral("\r\n\r\n\t<main>\r\n\r\n"); 2279 2280 WriteLiteral("\t\t"); 2281 2282 2283 #line 948 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2284 Write(Model.Grid("grid", "Before breadcrumb", "", "AdvancedGrid")); 2285 2286 2287 #line default 2288 #line hidden 2289 WriteLiteral("\r\n\r\n"); 2290 2291 2292 #line 950 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2293 2294 2295 #line default 2296 #line hidden 2297 2298 #line 950 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2299 if (showBreadcrumbs) 2300 { 2301 var navigationSettings = new NavigationSettings(); 2302 navigationSettings.ExpandMode = ExpandMode.PathOnly; 2303 navigationSettings.StartLevel = 1; 2304 navigationSettings.StopLevel = 99; 2305 navigationSettings.Parameters.Add("PageTitle", Model.Title); 2306 navigationSettings.IncludeFoldersAndHidden = true; 2307 2308 2309 2310 #line default 2311 #line hidden 2312 2313 #line 959 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2314 Write(Navigation.RenderNavigation("Navigation/Breadcrumbs.cshtml", navigationSettings)); 2315 2316 2317 #line default 2318 #line hidden 2319 2320 #line 959 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2321 2322 2323 } 2324 2325 2326 #line default 2327 #line hidden 2328 WriteLiteral("\r\n\t\t<div"); 2329 2330 WriteLiteral(" class=\"newspage\""); 2331 2332 WriteLiteral(">\r\n\t\t\t<div"); 2333 2334 WriteLiteral(" class=\"container\""); 2335 2336 WriteLiteral(">\r\n\t\t\t\t<section"); 2337 2338 WriteLiteral(" class=\"newspage__innerwrapper\""); 2339 2340 WriteLiteral(">\r\n"); 2341 2342 2343 #line 966 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2344 2345 2346 #line default 2347 #line hidden 2348 2349 #line 966 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2350 if (BP.BlogSummaryLinks.Any()) 2351 { 2352 2353 2354 #line default 2355 #line hidden 2356 WriteLiteral("\t\t\t\t\t\t<aside"); 2357 2358 WriteLiteral(" class=\"newspage__sidebar\""); 2359 2360 WriteLiteral(">\r\n\t\t\t\t\t\t\t<p"); 2361 2362 WriteLiteral(" class=\"newspage__sidebar-title\""); 2363 2364 WriteLiteral(">"); 2365 2366 2367 #line 969 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2368 Write(Translate("BlogPage.SummaryTitle", "In this article")); 2369 2370 2371 #line default 2372 #line hidden 2373 WriteLiteral("</p>\r\n\t\t\t\t\t\t\t<nav>\r\n\t\t\t\t\t\t\t\t<ol"); 2374 2375 WriteLiteral(" class=\"newspage__sidebar-list\""); 2376 2377 WriteLiteral(">\r\n"); 2378 2379 2380 #line 972 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2381 2382 2383 #line default 2384 #line hidden 2385 2386 #line 972 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2387 var index = 1; 2388 2389 #line default 2390 #line hidden 2391 WriteLiteral("\r\n"); 2392 2393 2394 #line 973 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2395 2396 2397 #line default 2398 #line hidden 2399 2400 #line 973 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2401 foreach (BlogSummaryLink item in BP.BlogSummaryLinks) 2402 { 2403 2404 2405 #line default 2406 #line hidden 2407 WriteLiteral("\t\t\t\t\t\t\t\t\t\t<li"); 2408 2409 WriteLiteral(" class=\"newspage__sidebar-list-item\""); 2410 2411 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t\t<a"); 2412 2413 WriteAttribute("href", Tuple.Create(" href=\"", 32023), Tuple.Create("\"", 32040) 2414 2415 #line 976 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2416 , Tuple.Create(Tuple.Create("", 32030), Tuple.Create<System.Object, System.Int32>(item.Link 2417 2418 #line default 2419 #line hidden 2420 , 32030), false) 2421 ); 2422 2423 WriteLiteral(" class=\"newspage__sidebar-list-item--link\""); 2424 2425 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span"); 2426 2427 WriteLiteral(" class=\"newspage__sidebar-list-item--counter\""); 2428 2429 WriteLiteral(">"); 2430 2431 2432 #line 977 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2433 Write(index); 2434 2435 2436 #line default 2437 #line hidden 2438 WriteLiteral("</span>\r\n"); 2439 2440 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t\t"); 2441 2442 2443 #line 978 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2444 Write(item.Name); 2445 2446 2447 #line default 2448 #line hidden 2449 WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t</li>\r\n"); 2450 2451 2452 #line 981 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2453 index++; 2454 } 2455 2456 2457 #line default 2458 #line hidden 2459 WriteLiteral("\t\t\t\t\t\t\t\t</ol>\r\n\t\t\t\t\t\t\t</nav>\r\n\t\t\t\t\t\t\t<div"); 2460 2461 WriteLiteral(" class=\"newspage__sharebtn__container\""); 2462 2463 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<button"); 2464 2465 WriteLiteral(" type=\"button\""); 2466 2467 WriteLiteral(" class=\"newspage__sharebtn\""); 2468 2469 WriteLiteral(" data-tooltip=\'"); 2470 2471 2472 #line 986 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2473 Write(Translate("BlogPage.ShareTooltip", "Link copied")); 2474 2475 2476 #line default 2477 #line hidden 2478 WriteLiteral("\'"); 2479 2480 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t<i"); 2481 2482 WriteLiteral(" class=\"newspage__sharebtn__icon fas fa-share-alt\""); 2483 2484 WriteLiteral("></i>\r\n\t\t\t\t\t\t\t\t\t<span"); 2485 2486 WriteLiteral(" class=\"newspage__sharebtn__text\""); 2487 2488 WriteLiteral(">"); 2489 2490 2491 #line 988 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2492 Write(Translate("BlogPage.ShareButton", "Share article")); 2493 2494 2495 #line default 2496 #line hidden 2497 WriteLiteral("</span>\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</aside>\r\n"); 2498 2499 2500 #line 992 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2501 } 2502 2503 2504 #line default 2505 #line hidden 2506 WriteLiteral("\r\n\t\t\t\t\t<article"); 2507 2508 WriteLiteral(" class=\"newspage__article\""); 2509 2510 WriteLiteral(">\r\n\t\t\t\t\t\t<header"); 2511 2512 WriteLiteral(" class=\"newspage__header\""); 2513 2514 WriteLiteral(">\r\n\t\t\t\t\t\t\t<figure"); 2515 2516 WriteLiteral(" class=\"newspage__header__image\""); 2517 2518 WriteAttribute("style", Tuple.Create(" style=\"", 32826), Tuple.Create("\"", 32864) 2519 , Tuple.Create(Tuple.Create("", 32834), Tuple.Create("--imageheight:", 32834), true) 2520 2521 #line 996 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2522 , Tuple.Create(Tuple.Create(" ", 32848), Tuple.Create<System.Object, System.Int32>(newsImgHeight 2523 2524 #line default 2525 #line hidden 2526 , 32849), false) 2527 , Tuple.Create(Tuple.Create("", 32863), Tuple.Create(";", 32863), true) 2528 ); 2529 2530 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<source"); 2531 2532 WriteLiteral(" media=\"(max-width: 768px)\""); 2533 2534 WriteAttribute("srcset", Tuple.Create(" srcset=\"", 32910), Tuple.Create("\"", 32937) 2535 2536 #line 997 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2537 , Tuple.Create(Tuple.Create("", 32919), Tuple.Create<System.Object, System.Int32>(newsImg 2538 2539 #line default 2540 #line hidden 2541 , 32919), false) 2542 , Tuple.Create(Tuple.Create("", 32927), Tuple.Create("&Width=550", 32927), true) 2543 ); 2544 2545 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<source"); 2546 2547 WriteLiteral(" media=\"(max-width: 994px)\""); 2548 2549 WriteAttribute("srcset", Tuple.Create(" srcset=\"", 32983), Tuple.Create("\"", 33010) 2550 2551 #line 998 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2552 , Tuple.Create(Tuple.Create("", 32992), Tuple.Create<System.Object, System.Int32>(newsImg 2553 2554 #line default 2555 #line hidden 2556 , 32992), false) 2557 , Tuple.Create(Tuple.Create("", 33000), Tuple.Create("&Width=800", 33000), true) 2558 ); 2559 2560 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<source"); 2561 2562 WriteLiteral(" media=\"(max-width: 1200px)\""); 2563 2564 WriteAttribute("srcset", Tuple.Create(" srcset=\"", 33057), Tuple.Create("\"", 33084) 2565 2566 #line 999 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2567 , Tuple.Create(Tuple.Create("", 33066), Tuple.Create<System.Object, System.Int32>(newsImg 2568 2569 #line default 2570 #line hidden 2571 , 33066), false) 2572 , Tuple.Create(Tuple.Create("", 33074), Tuple.Create("&Width=700", 33074), true) 2573 ); 2574 2575 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<img"); 2576 2577 WriteAttribute("src", Tuple.Create(" src=\"", 33100), Tuple.Create("\"", 33124) 2578 2579 #line 1000 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2580 , Tuple.Create(Tuple.Create("", 33106), Tuple.Create<System.Object, System.Int32>(newsImg 2581 2582 #line default 2583 #line hidden 2584 , 33106), false) 2585 , Tuple.Create(Tuple.Create("", 33114), Tuple.Create("&Width=900", 33114), true) 2586 ); 2587 2588 WriteAttribute("alt", Tuple.Create(" alt=\"", 33125), Tuple.Create("\"", 33142) 2589 2590 #line 1000 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2591 , Tuple.Create(Tuple.Create("", 33131), Tuple.Create<System.Object, System.Int32>(newsImgAlt 2592 2593 #line default 2594 #line hidden 2595 , 33131), false) 2596 ); 2597 2598 WriteLiteral(">\r\n\t\t\t\t\t\t\t</figure>\r\n"); 2599 2600 2601 #line 1002 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2602 2603 2604 #line default 2605 #line hidden 2606 2607 #line 1002 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2608 if (hasAuthor) 2609 { 2610 2611 2612 #line default 2613 #line hidden 2614 WriteLiteral("\t\t\t\t\t\t\t\t<div"); 2615 2616 WriteLiteral(" class=\"newspage__header__author\""); 2617 2618 WriteLiteral(">\r\n"); 2619 2620 2621 #line 1005 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2622 2623 2624 #line default 2625 #line hidden 2626 2627 #line 1005 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2628 if (!string.IsNullOrWhiteSpace(authorImage)) 2629 { 2630 2631 2632 #line default 2633 #line hidden 2634 WriteLiteral("\t\t\t\t\t\t\t\t\t\t<figure"); 2635 2636 WriteLiteral(" class=\"newspage__header__author-img\""); 2637 2638 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t\t<img"); 2639 2640 WriteAttribute("src", Tuple.Create(" src=\"", 33386), Tuple.Create("\"", 33404) 2641 2642 #line 1008 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2643 , Tuple.Create(Tuple.Create("", 33392), Tuple.Create<System.Object, System.Int32>(authorImage 2644 2645 #line default 2646 #line hidden 2647 , 33392), false) 2648 ); 2649 2650 WriteAttribute("alt", Tuple.Create(" alt=\"", 33405), Tuple.Create("\"", 33422) 2651 2652 #line 1008 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2653 , Tuple.Create(Tuple.Create("", 33411), Tuple.Create<System.Object, System.Int32>(authorName 2654 2655 #line default 2656 #line hidden 2657 , 33411), false) 2658 ); 2659 2660 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t</figure>\r\n"); 2661 2662 2663 #line 1010 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2664 } 2665 2666 2667 #line default 2668 #line hidden 2669 WriteLiteral("\t\t\t\t\t\t\t\t\t"); 2670 2671 2672 #line 1011 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2673 if (!string.IsNullOrWhiteSpace(authorName)) 2674 { 2675 2676 2677 #line default 2678 #line hidden 2679 WriteLiteral("\t\t\t\t\t\t\t\t\t\t<p"); 2680 2681 WriteLiteral(" class=\"newspage__header__author-name\""); 2682 2683 WriteLiteral(">"); 2684 2685 2686 #line 1013 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2687 Write(authorName); 2688 2689 2690 #line default 2691 #line hidden 2692 WriteLiteral("</p>\r\n"); 2693 2694 2695 #line 1014 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2696 } 2697 2698 2699 #line default 2700 #line hidden 2701 WriteLiteral("\t\t\t\t\t\t\t\t</div>\r\n"); 2702 2703 2704 #line 1016 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2705 } 2706 2707 2708 #line default 2709 #line hidden 2710 WriteLiteral("\t\t\t\t\t\t\t<div"); 2711 2712 WriteLiteral(" class=\"newspage__header__meta\""); 2713 2714 WriteLiteral(">\r\n"); 2715 2716 2717 #line 1018 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2718 2719 2720 #line default 2721 #line hidden 2722 2723 #line 1018 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2724 if (!string.IsNullOrWhiteSpace(newsCategory) && newsDateYear != "0001") 2725 { 2726 2727 2728 #line default 2729 #line hidden 2730 WriteLiteral("\t\t\t\t\t\t\t\t\t<p"); 2731 2732 WriteLiteral(" class=\"newspage__header__meta--info\""); 2733 2734 WriteLiteral(">"); 2735 2736 2737 #line 1020 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2738 Write(string.Format(Translate("BlogPage.DateCategoryLine", "{0} in {1}"), newsDate, newsCategory)); 2739 2740 2741 #line default 2742 #line hidden 2743 WriteLiteral("</p>\r\n"); 2744 2745 2746 #line 1021 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2747 } 2748 2749 2750 #line default 2751 #line hidden 2752 WriteLiteral("\t\t\t\t\t\t\t\t<div"); 2753 2754 WriteLiteral(" class=\"newspage__header__meta--data\""); 2755 2756 WriteLiteral(">\r\n"); 2757 2758 2759 #line 1023 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2760 2761 2762 #line default 2763 #line hidden 2764 2765 #line 1023 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2766 if (!string.IsNullOrWhiteSpace(newsReadTime)) 2767 { 2768 2769 2770 #line default 2771 #line hidden 2772 WriteLiteral("\t\t\t\t\t\t\t\t\t\t<p"); 2773 2774 WriteLiteral(" class=\"newspage__header__meta-time\""); 2775 2776 WriteLiteral("><i"); 2777 2778 WriteLiteral(" class=\"fal fa-clock\""); 2779 2780 WriteLiteral("></i> "); 2781 2782 2783 #line 1025 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2784 Write(string.Format(Translate("BlogPage.ReadingTime", "{0} reading time"), newsReadTime)); 2785 2786 2787 #line default 2788 #line hidden 2789 WriteLiteral("</p>\r\n"); 2790 2791 2792 #line 1026 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2793 } 2794 2795 2796 #line default 2797 #line hidden 2798 WriteLiteral("\t\t\t\t\t\t\t\t\t<button"); 2799 2800 WriteLiteral(" type=\"button\""); 2801 2802 WriteLiteral(" class=\"newspage__sharebtn newspage__sharebtn--inline newspage__header__meta-shar" + 2803 "e\""); 2804 2805 WriteLiteral(" data-tooltip=\'"); 2806 2807 2808 #line 1027 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2809 Write(Translate("BlogPage.ShareTooltip", "Link copied")); 2810 2811 2812 #line default 2813 #line hidden 2814 WriteLiteral("\'"); 2815 2816 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t<i"); 2817 2818 WriteLiteral(" class=\"newspage__sharebtn__icon fas fa-share-alt\""); 2819 2820 WriteLiteral("></i>\r\n\t\t\t\t\t\t\t\t\t\t<span"); 2821 2822 WriteLiteral(" class=\"newspage__sharebtn__text\""); 2823 2824 WriteLiteral(">"); 2825 2826 2827 #line 1029 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2828 Write(Translate("BlogPage.ShareButton", "Share article")); 2829 2830 2831 #line default 2832 #line hidden 2833 WriteLiteral("</span>\r\n\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<h1"); 2834 2835 WriteLiteral(" class=\"newspage__header__title\""); 2836 2837 WriteLiteral(">"); 2838 2839 2840 #line 1033 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2841 Write(newsTitle); 2842 2843 2844 #line default 2845 #line hidden 2846 WriteLiteral("</h1>\r\n\t\t\t\t\t\t</header>\r\n\r\n"); 2847 2848 WriteLiteral("\t\t\t\t\t\t"); 2849 2850 2851 #line 1036 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2852 Write(Model.Grid("grid2", "Article content", "", "AdvancedGrid")); 2853 2854 2855 #line default 2856 #line hidden 2857 WriteLiteral("\r\n\r\n"); 2858 2859 2860 #line 1038 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2861 2862 2863 #line default 2864 #line hidden 2865 2866 #line 1038 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2867 if (hasAuthor) 2868 { 2869 2870 2871 #line default 2872 #line hidden 2873 WriteLiteral("\t\t\t\t\t\t\t<footer"); 2874 2875 WriteLiteral(" class=\"newspage__author-bio\""); 2876 2877 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<div"); 2878 2879 WriteLiteral(" class=\"newspage__author-bio__header\""); 2880 2881 WriteLiteral(">\r\n"); 2882 2883 2884 #line 1042 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2885 2886 2887 #line default 2888 #line hidden 2889 2890 #line 1042 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2891 if (!string.IsNullOrWhiteSpace(authorImage)) 2892 { 2893 2894 2895 #line default 2896 #line hidden 2897 WriteLiteral("\t\t\t\t\t\t\t\t\t\t<figure"); 2898 2899 WriteLiteral(" class=\"newspage__author-bio__image\""); 2900 2901 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t\t<img"); 2902 2903 WriteAttribute("src", Tuple.Create(" src=\"", 35056), Tuple.Create("\"", 35074) 2904 2905 #line 1045 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2906 , Tuple.Create(Tuple.Create("", 35062), Tuple.Create<System.Object, System.Int32>(authorImage 2907 2908 #line default 2909 #line hidden 2910 , 35062), false) 2911 ); 2912 2913 WriteAttribute("alt", Tuple.Create(" alt=\"", 35075), Tuple.Create("\"", 35092) 2914 2915 #line 1045 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2916 , Tuple.Create(Tuple.Create("", 35081), Tuple.Create<System.Object, System.Int32>(authorName 2917 2918 #line default 2919 #line hidden 2920 , 35081), false) 2921 ); 2922 2923 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t</figure>\r\n"); 2924 2925 2926 #line 1047 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2927 } 2928 2929 2930 #line default 2931 #line hidden 2932 WriteLiteral("\t\t\t\t\t\t\t\t\t<div"); 2933 2934 WriteLiteral(" class=\"newspage__author-bio__meta\""); 2935 2936 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t\t\t<p>"); 2937 2938 2939 #line 1049 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2940 Write(Translate("BlogPage.AboutAuthor", "About the author")); 2941 2942 2943 #line default 2944 #line hidden 2945 WriteLiteral("</p>\r\n"); 2946 2947 2948 #line 1050 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2949 2950 2951 #line default 2952 #line hidden 2953 2954 #line 1050 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2955 if (!string.IsNullOrWhiteSpace(authorName)) 2956 { 2957 2958 2959 #line default 2960 #line hidden 2961 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t<p"); 2962 2963 WriteLiteral(" class=\"newspage__author-bio__authorname\""); 2964 2965 WriteLiteral(">"); 2966 2967 2968 #line 1052 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2969 Write(authorName); 2970 2971 2972 #line default 2973 #line hidden 2974 WriteLiteral("</p>\r\n"); 2975 2976 2977 #line 1053 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2978 } 2979 2980 2981 #line default 2982 #line hidden 2983 WriteLiteral("\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n"); 2984 2985 2986 #line 1056 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2987 2988 2989 #line default 2990 #line hidden 2991 2992 #line 1056 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 2993 if (!string.IsNullOrWhiteSpace(authorDescription)) 2994 { 2995 2996 2997 #line default 2998 #line hidden 2999 WriteLiteral("\t\t\t\t\t\t\t\t\t<div"); 3000 3001 WriteLiteral(" class=\"newspage__author-bio__content\""); 3002 3003 WriteLiteral(">\r\n"); 3004 3005 WriteLiteral("\t\t\t\t\t\t\t\t\t\t"); 3006 3007 3008 #line 1059 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3009 Write(authorDescription); 3010 3011 3012 #line default 3013 #line hidden 3014 WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t</div>\r\n"); 3015 3016 3017 #line 1061 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3018 } 3019 3020 3021 #line default 3022 #line hidden 3023 WriteLiteral("\t\t\t\t\t\t\t</footer>\r\n"); 3024 3025 3026 #line 1063 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3027 } 3028 3029 3030 #line default 3031 #line hidden 3032 WriteLiteral("\r\n"); 3033 3034 3035 #line 1065 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3036 3037 3038 #line default 3039 #line hidden 3040 3041 #line 1065 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3042 if (tags != null && tags.Any()) 3043 { 3044 3045 3046 #line default 3047 #line hidden 3048 WriteLiteral("\t\t\t\t\t\t\t<div"); 3049 3050 WriteLiteral(" class=\"newspage__tags__wrapper\""); 3051 3052 WriteLiteral(">\r\n\t\t\t\t\t\t\t\t<p"); 3053 3054 WriteLiteral(" class=\"newspage__tags__title\""); 3055 3056 WriteLiteral(">"); 3057 3058 3059 #line 1068 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3060 Write(Translate("BlogPage.TagsTitle", "Tags")); 3061 3062 3063 #line default 3064 #line hidden 3065 WriteLiteral("</p>\r\n\t\t\t\t\t\t\t\t<ul"); 3066 3067 WriteLiteral(" class=\"newspage__tags__list\""); 3068 3069 WriteLiteral(">\r\n"); 3070 3071 3072 #line 1070 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3073 3074 3075 #line default 3076 #line hidden 3077 3078 #line 1070 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3079 foreach (var tag in tags) 3080 { 3081 BlogTag tagConfig = Dynamicweb.Services.Items.GetItemById<BlogTag>(tag); 3082 if (tagConfig != null) 3083 { 3084 3085 3086 #line default 3087 #line hidden 3088 WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t<li"); 3089 3090 WriteLiteral(" class=\"newspage__tags__list-item\""); 3091 3092 WriteLiteral(">"); 3093 3094 3095 #line 1075 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3096 Write(tagConfig.Label); 3097 3098 3099 #line default 3100 #line hidden 3101 WriteLiteral("</li>\r\n"); 3102 3103 3104 #line 1076 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3105 } 3106 } 3107 3108 3109 #line default 3110 #line hidden 3111 WriteLiteral("\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</div>\r\n"); 3112 3113 3114 #line 1080 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3115 } 3116 3117 3118 #line default 3119 #line hidden 3120 WriteLiteral("\r\n\t\t\t\t\t</article>\r\n\r\n\t\t\t\t</section>\r\n\t\t\t\t<section"); 3121 3122 WriteLiteral(" class=\"newspage__aftercontent\""); 3123 3124 WriteLiteral(">\r\n"); 3125 3126 WriteLiteral("\t\t\t\t\t"); 3127 3128 3129 #line 1086 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3130 Write(Model.Grid("grid3", "After article", "", "AdvancedGrid")); 3131 3132 3133 #line default 3134 #line hidden 3135 WriteLiteral("\r\n\t\t\t\t</section>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t</main>\r\n\r\n"); 3136 3137 3138 #line 1093 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3139 3140 3141 #line default 3142 #line hidden 3143 WriteLiteral("\r\n"); 3144 3145 3146 #line 1099 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3147 3148 3149 string footerLogo = BaseSettings.BrandConfiguration.Logos.FooterLogo; 3150 string footerDescription = BaseSettings.CorporateSettings.FooterDescription; 3151 3152 var fb = BaseSettings.SocialMedia.Facebook; 3153 var twitter = BaseSettings.SocialMedia.Twitter; 3154 var linkedin = BaseSettings.SocialMedia.LinkedIn; 3155 var instagram = BaseSettings.SocialMedia.Instagram; 3156 var youtube = BaseSettings.SocialMedia.Youtube; 3157 var pinterest = BaseSettings.SocialMedia.Pinterest ?? ""; 3158 3159 var companyName = BaseSettings.CorporateSettings.CompanyName; 3160 var Emailadress = BaseSettings.CorporateSettings.Emailadress; 3161 var Phonenumber = BaseSettings.CorporateSettings.Phonenumber; 3162 var Address = BaseSettings.CorporateSettings.Address; 3163 var Zipcode = BaseSettings.CorporateSettings.Zipcode; 3164 var City = BaseSettings.CorporateSettings.City; 3165 var Country = BaseSettings.CorporateSettings.Country; 3166 3167 var selectedPaymentLogos = BaseSettings.BrandConfiguration.Logos.FooterPaymentLogos; 3168 3169 bool footer__newsletter_signup_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString()) && mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString() == "True" ? true : false; 3170 bool footer__USP_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.UspDisplay.ToString()) && mc.FooterConfiguration.UspDisplay.ToString() == "True" ? true : false; 3171 3172 string footer__background_color = mc.FooterConfiguration.BackgroundColor?.GetColorCode(Pageview.AreaID) ?? "#000000"; 3173 string footer__color = mc.FooterConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "#FFFFFF"; 3174 3175 string footer__top_image = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.TopImage.ToString()) ? mc.FooterConfiguration.TopImage.ToString() : ""; 3176 3177 3178 3179 3180 3181 #line default 3182 #line hidden 3183 WriteLiteral("\r\n\r\n<div"); 3184 3185 WriteLiteral(" id=\"scroll-to-top\""); 3186 3187 WriteLiteral(" class=\"scroll-to-top\""); 3188 3189 WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 38446), Tuple.Create("\"", 38493) 3190 3191 #line 1133 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3192 , Tuple.Create(Tuple.Create("", 38459), Tuple.Create<System.Object, System.Int32>(Translate("Naar boven", "To Top") 3193 3194 #line default 3195 #line hidden 3196 , 38459), false) 3197 ); 3198 3199 WriteLiteral(">\r\n\t<span"); 3200 3201 WriteLiteral(" class=\"scroll-to-top__text\""); 3202 3203 WriteLiteral(">\r\n"); 3204 3205 WriteLiteral("\t\t"); 3206 3207 3208 #line 1135 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3209 Write(Translate("Naar boven", "To Top")); 3210 3211 3212 #line default 3213 #line hidden 3214 WriteLiteral("\r\n\t</span>\r\n\t<i"); 3215 3216 WriteLiteral(" class=\"fal fa-arrow-to-top scroll-to-top__icon\""); 3217 3218 WriteLiteral("></i>\r\n</div>\r\n\r\n"); 3219 3220 3221 #line 1140 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3222 if (Pageview.Page.ParentPageId > 0) 3223 { 3224 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList(); 3225 var parentpageItemType = Pageview.Page.Parent.ItemType; 3226 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage"; 3227 3228 if (siblings.Count() > 1 && isParentPageOverviewpage) 3229 { 3230 var prevPage = siblings.OrderByDescending(p => p.Sort).FirstOrDefault(p => p.Sort < Pageview.Page.Sort); 3231 var nextPage = siblings.OrderBy(p => p.Sort).FirstOrDefault(p => p.Sort > Pageview.Page.Sort); 3232 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId; 3233 3234 3235 3236 #line default 3237 #line hidden 3238 WriteLiteral("\t\t<section"); 3239 3240 WriteLiteral(" class=\"page-navigation\""); 3241 3242 WriteLiteral(">\r\n"); 3243 3244 3245 #line 1153 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3246 3247 3248 #line default 3249 #line hidden 3250 3251 #line 1153 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3252 if (prevPage != null) 3253 { 3254 var back = "/Default.aspx?ID=" + prevPage.ID; 3255 3256 3257 #line default 3258 #line hidden 3259 WriteLiteral("\t\t\t\t<a"); 3260 3261 WriteAttribute("href", Tuple.Create(" href=\"", 39407), Tuple.Create("\"", 39419) 3262 3263 #line 1156 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3264 , Tuple.Create(Tuple.Create("", 39414), Tuple.Create<System.Object, System.Int32>(back 3265 3266 #line default 3267 #line hidden 3268 , 39414), false) 3269 ); 3270 3271 WriteLiteral(" class=\"page-navigation__item\""); 3272 3273 WriteLiteral(">\r\n\t\t\t\t\t<i"); 3274 3275 WriteLiteral(" class=\"fal fa-arrow-alt-to-left page-navigation__item--icon\""); 3276 3277 WriteLiteral("></i>\r\n\t\t\t\t\t<label"); 3278 3279 WriteLiteral(" class=\"page-navigation__item-label\""); 3280 3281 WriteLiteral(">"); 3282 3283 3284 #line 1158 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3285 Write(Translate("pagenavigation.previous", "Previous")); 3286 3287 3288 #line default 3289 #line hidden 3290 WriteLiteral("</label>\r\n\t\t\t\t</a>\r\n"); 3291 3292 3293 #line 1160 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3294 } 3295 3296 3297 #line default 3298 #line hidden 3299 WriteLiteral("\r\n\t\t\t<a"); 3300 3301 WriteAttribute("href", Tuple.Create(" href=\"", 39658), Tuple.Create("\"", 39674) 3302 3303 #line 1162 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3304 , Tuple.Create(Tuple.Create("", 39665), Tuple.Create<System.Object, System.Int32>(overview 3305 3306 #line default 3307 #line hidden 3308 , 39665), false) 3309 ); 3310 3311 WriteLiteral(" class=\"page-navigation__item\""); 3312 3313 WriteLiteral(">\r\n\t\t\t\t<label"); 3314 3315 WriteLiteral(" class=\"page-navigation__item-label\""); 3316 3317 WriteLiteral(">"); 3318 3319 3320 #line 1163 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3321 Write(Translate("pagenavigation.Overview", "To overview")); 3322 3323 3324 #line default 3325 #line hidden 3326 WriteLiteral("</label>\r\n\t\t\t\t<i"); 3327 3328 WriteLiteral(" class=\"fas fa-th page-navigation__item--icon\""); 3329 3330 WriteLiteral("></i>\r\n\t\t\t</a>\r\n\r\n"); 3331 3332 3333 #line 1167 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3334 3335 3336 #line default 3337 #line hidden 3338 3339 #line 1167 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3340 if (nextPage != null) 3341 { 3342 var forward = "/Default.aspx?ID=" + nextPage.ID; 3343 3344 3345 #line default 3346 #line hidden 3347 WriteLiteral("\t\t\t\t<a"); 3348 3349 WriteAttribute("href", Tuple.Create(" href=\"", 39980), Tuple.Create("\"", 39995) 3350 3351 #line 1170 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3352 , Tuple.Create(Tuple.Create("", 39987), Tuple.Create<System.Object, System.Int32>(forward 3353 3354 #line default 3355 #line hidden 3356 , 39987), false) 3357 ); 3358 3359 WriteLiteral(" class=\"page-navigation__item\""); 3360 3361 WriteLiteral(">\r\n\t\t\t\t\t<label"); 3362 3363 WriteLiteral(" class=\"page-navigation__item-label\""); 3364 3365 WriteLiteral(">"); 3366 3367 3368 #line 1171 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3369 Write(Translate("pagenavigation.next", "Next")); 3370 3371 3372 #line default 3373 #line hidden 3374 WriteLiteral("</label>\r\n\t\t\t\t\t<i"); 3375 3376 WriteLiteral(" class=\"fal fa-arrow-alt-to-right page-navigation__item--icon\""); 3377 3378 WriteLiteral("></i>\r\n\t\t\t\t</a>\r\n"); 3379 3380 3381 #line 1174 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3382 } 3383 3384 3385 #line default 3386 #line hidden 3387 WriteLiteral("\t\t</section>\r\n"); 3388 3389 3390 #line 1176 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3391 } 3392 } 3393 3394 3395 3396 #line default 3397 #line hidden 3398 3399 #line 1302 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3400 3401 3402 3403 #line default 3404 #line hidden 3405 WriteLiteral("\r\n\r\n\r\n"); 3406 3407 3408 #line 1306 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3409 Write(Footer.Template); 3410 3411 3412 #line default 3413 #line hidden 3414 WriteLiteral("\r\n\r\n"); 3415 3416 3417 #line 1308 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3418 if (isVisualEditor && IsNotContentManager) 3419 { 3420 3421 3422 #line default 3423 #line hidden 3424 WriteLiteral("\t<nav"); 3425 3426 WriteLiteral(" class=\"footer-layout\""); 3427 3428 WriteLiteral(">\r\n"); 3429 3430 WriteLiteral("\t\t"); 3431 3432 3433 #line 1311 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3434 Write(AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "footer")); 3435 3436 3437 #line default 3438 #line hidden 3439 WriteLiteral("\r\n\t</nav>\r\n"); 3440 3441 3442 #line 1313 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3443 3444 3445 3446 #line default 3447 #line hidden 3448 WriteLiteral("\t<style>\r\n\t\t.footer-layout {\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 25px;\r\n\t\t}\r\n\t</s" + 3449 "tyle>\r\n"); 3450 3451 3452 #line 1320 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3453 } 3454 3455 3456 #line default 3457 #line hidden 3458 WriteLiteral("\r\n"); 3459 3460 3461 #line 1322 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3462 if (!string.IsNullOrWhiteSpace(footer__top_image) && HideStandardFooter == false) 3463 { 3464 3465 3466 #line default 3467 #line hidden 3468 WriteLiteral("\t<figure"); 3469 3470 WriteLiteral(" class=\"footer__top-image\""); 3471 3472 WriteLiteral(">\r\n\t\t<img"); 3473 3474 WriteAttribute("src", Tuple.Create(" src=\"", 44716), Tuple.Create("\"", 44740) 3475 3476 #line 1325 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3477 , Tuple.Create(Tuple.Create("", 44722), Tuple.Create<System.Object, System.Int32>(footer__top_image 3478 3479 #line default 3480 #line hidden 3481 , 44722), false) 3482 ); 3483 3484 WriteLiteral(" alt=\"\""); 3485 3486 WriteLiteral(" />\r\n\t</figure>\r\n"); 3487 3488 3489 #line 1327 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3490 } 3491 3492 3493 #line default 3494 #line hidden 3495 WriteLiteral("\r\n"); 3496 3497 3498 #line 1329 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3499 if (HideStandardFooter == false) 3500 { 3501 3502 3503 3504 #line default 3505 #line hidden 3506 WriteLiteral("\t<footer"); 3507 3508 WriteLiteral(" class=\"footer\""); 3509 3510 WriteAttribute("style", Tuple.Create(" style=\"", 44833), Tuple.Create("\"", 44918) 3511 , Tuple.Create(Tuple.Create("", 44841), Tuple.Create("--footer-bg-color:", 44841), true) 3512 3513 #line 1332 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3514 , Tuple.Create(Tuple.Create(" ", 44859), Tuple.Create<System.Object, System.Int32>(footer__background_color 3515 3516 #line default 3517 #line hidden 3518 , 44860), false) 3519 , Tuple.Create(Tuple.Create("", 44885), Tuple.Create(";", 44885), true) 3520 , Tuple.Create(Tuple.Create(" ", 44886), Tuple.Create("--footer-color:", 44887), true) 3521 3522 #line 1332 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3523 , Tuple.Create(Tuple.Create(" ", 44902), Tuple.Create<System.Object, System.Int32>(footer__color 3524 3525 #line default 3526 #line hidden 3527 , 44903), false) 3528 , Tuple.Create(Tuple.Create("", 44917), Tuple.Create(";", 44917), true) 3529 ); 3530 3531 WriteLiteral(">\r\n\r\n"); 3532 3533 3534 #line 1334 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3535 3536 3537 #line default 3538 #line hidden 3539 3540 #line 1334 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3541 if (footer__USP_display) 3542 { 3543 if (!string.IsNullOrWhiteSpace(BaseSettings.USP.USP_1) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_2) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_3) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_4) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_5)) 3544 { 3545 3546 3547 #line default 3548 #line hidden 3549 WriteLiteral("\t\t\t\t<div"); 3550 3551 WriteLiteral(" class=\"footer-usp__wrapper\""); 3552 3553 WriteLiteral(">\r\n\t\t\t\t\t<div"); 3554 3555 WriteLiteral(" class=\"container\""); 3556 3557 WriteLiteral(">\r\n\t\t\t\t\t\t<ul"); 3558 3559 WriteLiteral(" class=\"footer-usp__list flex-wrap\""); 3560 3561 WriteLiteral(">\r\n"); 3562 3563 WriteLiteral("\t\t\t\t\t\t\t"); 3564 3565 3566 #line 1341 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3567 Write(RenderFooterUSP(BaseSettings.USP.USP_1, BaseSettings.USP.USP_1_icon)); 3568 3569 3570 #line default 3571 #line hidden 3572 WriteLiteral("\r\n"); 3573 3574 WriteLiteral("\t\t\t\t\t\t\t"); 3575 3576 3577 #line 1342 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3578 Write(RenderFooterUSP(BaseSettings.USP.USP_2, BaseSettings.USP.USP_2_icon)); 3579 3580 3581 #line default 3582 #line hidden 3583 WriteLiteral("\r\n"); 3584 3585 WriteLiteral("\t\t\t\t\t\t\t"); 3586 3587 3588 #line 1343 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3589 Write(RenderFooterUSP(BaseSettings.USP.USP_3, BaseSettings.USP.USP_3_icon)); 3590 3591 3592 #line default 3593 #line hidden 3594 WriteLiteral("\r\n"); 3595 3596 WriteLiteral("\t\t\t\t\t\t\t"); 3597 3598 3599 #line 1344 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3600 Write(RenderFooterUSP(BaseSettings.USP.USP_4, BaseSettings.USP.USP_4_icon)); 3601 3602 3603 #line default 3604 #line hidden 3605 WriteLiteral("\r\n"); 3606 3607 WriteLiteral("\t\t\t\t\t\t\t"); 3608 3609 3610 #line 1345 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3611 Write(RenderFooterUSP(BaseSettings.USP.USP_5, BaseSettings.USP.USP_5_icon)); 3612 3613 3614 #line default 3615 #line hidden 3616 WriteLiteral("\r\n\r\n\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n"); 3617 3618 3619 #line 1350 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3620 } 3621 } 3622 3623 3624 #line default 3625 #line hidden 3626 WriteLiteral("\r\n"); 3627 3628 3629 #line 1353 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3630 3631 3632 #line default 3633 #line hidden 3634 3635 #line 1353 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3636 if (footer__newsletter_signup_display) 3637 { 3638 3639 3640 #line default 3641 #line hidden 3642 WriteLiteral("\t\t\t<div>\r\n"); 3643 3644 3645 #line 1356 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3646 3647 3648 #line default 3649 #line hidden 3650 WriteLiteral("\r\n"); 3651 3652 3653 #line 1359 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3654 3655 var newsletterFormID = ModuleOnlyParagraph.GetParagraphIDByTag<ModuleOnlyParagraph>("Footer.Newsletter"); 3656 3657 if (newsletterFormID > 0) 3658 { 3659 3660 3661 #line default 3662 #line hidden 3663 WriteLiteral("\t\t<section"); 3664 3665 WriteLiteral(" class=\"footer__newsletter-container\""); 3666 3667 WriteLiteral(">\r\n\t\t\t<div"); 3668 3669 WriteLiteral(" class=\"container footer__newsletter\""); 3670 3671 WriteLiteral(">\r\n\t\t\t\t<label"); 3672 3673 WriteLiteral(" class=\"footer__newsletter-label\""); 3674 3675 WriteLiteral(">\r\n"); 3676 3677 WriteLiteral("\t\t\t\t\t"); 3678 3679 3680 #line 1367 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3681 Write(Translate("Footer.SignUpNewsletter", "Sign up for the digital newsletter")); 3682 3683 3684 #line default 3685 #line hidden 3686 WriteLiteral("\r\n\t\t\t\t</label>\r\n"); 3687 3688 WriteLiteral("\t\t\t\t"); 3689 3690 3691 #line 1369 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3692 Write(RenderParagraphContent(newsletterFormID)); 3693 3694 3695 #line default 3696 #line hidden 3697 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t</section>\r\n"); 3698 3699 3700 #line 1372 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3701 } 3702 3703 3704 #line default 3705 #line hidden 3706 WriteLiteral("\r\n\r\n\t\t\t</div>\r\n"); 3707 3708 3709 #line 1376 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3710 } 3711 3712 3713 #line default 3714 #line hidden 3715 WriteLiteral("\r\n"); 3716 3717 3718 #line 1378 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3719 3720 3721 #line default 3722 #line hidden 3723 3724 #line 1378 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3725 if (!string.IsNullOrWhiteSpace(mc.FooterConfiguration.BackgroundGradient)) 3726 { 3727 3728 3729 #line default 3730 #line hidden 3731 WriteLiteral("\t\t\t<style>\r\n\t\t\t.footer {\r\n"); 3732 3733 WriteLiteral("\t\t\t\t"); 3734 3735 3736 #line 1382 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3737 Write(mc.FooterConfiguration.BackgroundGradient); 3738 3739 3740 #line default 3741 #line hidden 3742 WriteLiteral(";\r\n\t\t\t}\r\n\t\t\t</style>\r\n"); 3743 3744 3745 #line 1385 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3746 } 3747 3748 3749 #line default 3750 #line hidden 3751 WriteLiteral("\r\n\t\t<section"); 3752 3753 WriteLiteral(" class=\"container footer__content\""); 3754 3755 WriteLiteral(">\r\n\r\n\t\t\t<div"); 3756 3757 WriteLiteral(" class=\"footer__link\""); 3758 3759 WriteLiteral(">\r\n"); 3760 3761 3762 #line 1390 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3763 3764 3765 #line default 3766 #line hidden 3767 3768 #line 1390 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3769 3770 var footerColumnOneNavigationSettings = new NavigationSettings(); 3771 footerColumnOneNavigationSettings.ExpandMode = ExpandMode.All; 3772 footerColumnOneNavigationSettings.StartLevel = 1; 3773 footerColumnOneNavigationSettings.StopLevel = 4; 3774 footerColumnOneNavigationSettings.RootNavigationTag = "footer-column-1"; 3775 var footerColumnOneNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnOneNavigationSettings); 3776 3777 if (!string.IsNullOrEmpty(footerColumnOneNavigation)) 3778 { 3779 3780 3781 #line default 3782 #line hidden 3783 WriteLiteral("\t\t\t\t\t\t<p"); 3784 3785 WriteLiteral(" class=\"footer__link-header\""); 3786 3787 WriteLiteral(">"); 3788 3789 3790 #line 1400 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3791 Write(Translate("Footer.Column1.Header", "What you need to know")); 3792 3793 3794 #line default 3795 #line hidden 3796 WriteLiteral("</p>\r\n"); 3797 3798 3799 #line 1401 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3800 3801 3802 #line default 3803 #line hidden 3804 3805 #line 1401 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3806 Write(footerColumnOneNavigation); 3807 3808 3809 #line default 3810 #line hidden 3811 3812 #line 1401 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3813 3814 } 3815 3816 3817 #line default 3818 #line hidden 3819 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t\t<div"); 3820 3821 WriteLiteral(" class=\"footer__link\""); 3822 3823 WriteLiteral(">\r\n"); 3824 3825 3826 #line 1406 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3827 3828 3829 #line default 3830 #line hidden 3831 3832 #line 1406 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3833 3834 var footerColumnTwoNavigationSettings = new NavigationSettings(); 3835 footerColumnTwoNavigationSettings.ExpandMode = ExpandMode.All; 3836 footerColumnTwoNavigationSettings.StartLevel = 1; 3837 footerColumnTwoNavigationSettings.StopLevel = 4; 3838 footerColumnTwoNavigationSettings.RootNavigationTag = "footer-column-2"; 3839 var footerColumnTwoNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnTwoNavigationSettings); 3840 3841 if (!string.IsNullOrEmpty(footerColumnTwoNavigation)) 3842 { 3843 3844 3845 #line default 3846 #line hidden 3847 WriteLiteral("\t\t\t\t\t\t<p"); 3848 3849 WriteLiteral(" class=\"footer__link-header\""); 3850 3851 WriteLiteral(">"); 3852 3853 3854 #line 1416 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3855 Write(Translate("Footer.Column2.Header", "Category two")); 3856 3857 3858 #line default 3859 #line hidden 3860 WriteLiteral("</p>\r\n"); 3861 3862 3863 #line 1417 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3864 3865 3866 #line default 3867 #line hidden 3868 3869 #line 1417 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3870 Write(footerColumnTwoNavigation); 3871 3872 3873 #line default 3874 #line hidden 3875 3876 #line 1417 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3877 3878 } 3879 3880 3881 #line default 3882 #line hidden 3883 WriteLiteral("\r\n\t\t\t</div>\r\n\t\t\t<div"); 3884 3885 WriteLiteral(" class=\"footer__link\""); 3886 3887 WriteLiteral(">\r\n"); 3888 3889 3890 #line 1422 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3891 3892 3893 #line default 3894 #line hidden 3895 3896 #line 1422 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3897 3898 var footerColumnThreeNavigationSettings = new NavigationSettings(); 3899 footerColumnThreeNavigationSettings.ExpandMode = ExpandMode.All; 3900 footerColumnThreeNavigationSettings.StartLevel = 1; 3901 footerColumnThreeNavigationSettings.StopLevel = 4; 3902 footerColumnThreeNavigationSettings.RootNavigationTag = "footer-column-3"; 3903 var footerColumnThreeNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnThreeNavigationSettings); 3904 3905 if (!string.IsNullOrEmpty(footerColumnThreeNavigation)) 3906 { 3907 3908 3909 #line default 3910 #line hidden 3911 WriteLiteral("\t\t\t\t\t\t<p"); 3912 3913 WriteLiteral(" class=\"footer__link-header\""); 3914 3915 WriteLiteral(">"); 3916 3917 3918 #line 1432 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3919 Write(Translate("Footer.Column3.Header", "Category three")); 3920 3921 3922 #line default 3923 #line hidden 3924 WriteLiteral("</p>\r\n"); 3925 3926 3927 #line 1433 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3928 3929 3930 #line default 3931 #line hidden 3932 3933 #line 1433 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3934 Write(footerColumnThreeNavigation); 3935 3936 3937 #line default 3938 #line hidden 3939 3940 #line 1433 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3941 3942 } 3943 3944 3945 #line default 3946 #line hidden 3947 WriteLiteral("\r\n\t\t\t</div>\r\n\r\n"); 3948 3949 3950 #line 1438 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3951 3952 3953 #line default 3954 #line hidden 3955 3956 #line 1438 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3957 if (!string.IsNullOrWhiteSpace(footerLogo) || !string.IsNullOrWhiteSpace(footerDescription)) 3958 { 3959 3960 3961 #line default 3962 #line hidden 3963 WriteLiteral("\t\t\t\t<div"); 3964 3965 WriteLiteral(" class=\"footer__description-container\""); 3966 3967 WriteLiteral(">\r\n"); 3968 3969 3970 #line 1441 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3971 3972 3973 #line default 3974 #line hidden 3975 3976 #line 1441 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3977 if (!string.IsNullOrWhiteSpace(footerLogo)) 3978 { 3979 3980 3981 #line default 3982 #line hidden 3983 WriteLiteral("\t\t\t\t\t\t<img"); 3984 3985 WriteLiteral(" class=\"footer__logo\""); 3986 3987 WriteLiteral(" loading=\"lazy\""); 3988 3989 WriteAttribute("src", Tuple.Create(" src=\"", 49177), Tuple.Create("\"", 49283) 3990 , Tuple.Create(Tuple.Create("", 49183), Tuple.Create("/Admin/Public/GetImage.ashx?Image=", 49183), true) 3991 3992 #line 1443 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 3993 , Tuple.Create(Tuple.Create("", 49217), Tuple.Create<System.Object, System.Int32>(footerLogo 3994 3995 #line default 3996 #line hidden 3997 , 49217), false) 3998 , Tuple.Create(Tuple.Create("", 49228), Tuple.Create("&Crop=5&Format=webp&Quality=99&Compression=80&Width=400", 49228), true) 3999 ); 4000 4001 WriteLiteral(" alt=\"Footer logo\""); 4002 4003 WriteLiteral(" width=\"400\""); 4004 4005 WriteLiteral(" height=\"200\""); 4006 4007 WriteLiteral(" />\r\n"); 4008 4009 4010 #line 1444 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4011 } 4012 4013 4014 #line default 4015 #line hidden 4016 WriteLiteral("\r\n"); 4017 4018 4019 #line 1446 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4020 4021 4022 #line default 4023 #line hidden 4024 4025 #line 1446 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4026 if (!string.IsNullOrWhiteSpace(footerDescription)) 4027 { 4028 4029 4030 #line default 4031 #line hidden 4032 WriteLiteral("\t\t\t\t\t\t<div"); 4033 4034 WriteLiteral(" class=\"footer__description\""); 4035 4036 WriteLiteral(">\r\n"); 4037 4038 WriteLiteral("\t\t\t\t\t\t\t"); 4039 4040 4041 #line 1449 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4042 Write(footerDescription); 4043 4044 4045 #line default 4046 #line hidden 4047 WriteLiteral("\r\n\t\t\t\t\t\t</div>\r\n"); 4048 4049 4050 #line 1451 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4051 } 4052 4053 4054 #line default 4055 #line hidden 4056 WriteLiteral("\t\t\t\t</div>\r\n"); 4057 4058 4059 #line 1453 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4060 } 4061 4062 4063 #line default 4064 #line hidden 4065 WriteLiteral("\r\n\t\t</section>\r\n\r\n\t\t<section"); 4066 4067 WriteLiteral(" class=\"footer__copyright\""); 4068 4069 WriteLiteral(">\r\n\r\n\t\t\t<div"); 4070 4071 WriteLiteral(" class=\"container bottombar__container\""); 4072 4073 WriteLiteral(">\r\n"); 4074 4075 4076 #line 1460 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4077 4078 4079 #line default 4080 #line hidden 4081 4082 #line 1460 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4083 4084 var copyRightMenuNavigationSettings = new NavigationSettings(); 4085 copyRightMenuNavigationSettings.ExpandMode = ExpandMode.All; 4086 copyRightMenuNavigationSettings.StartLevel = 1; 4087 copyRightMenuNavigationSettings.StopLevel = 4; 4088 copyRightMenuNavigationSettings.RootNavigationTag = "bottombar"; 4089 var copyRightMenuNavigation = Navigation.RenderNavigation("Navigation/CleanNavigation.cshtml", copyRightMenuNavigationSettings); 4090 4091 if (!string.IsNullOrEmpty(copyRightMenuNavigation)) 4092 { 4093 4094 4095 #line default 4096 #line hidden 4097 4098 #line 1470 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4099 Write(copyRightMenuNavigation); 4100 4101 4102 #line default 4103 #line hidden 4104 4105 #line 1470 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4106 ; 4107 } 4108 4109 4110 #line default 4111 #line hidden 4112 WriteLiteral("\r\n\r\n"); 4113 4114 4115 #line 1474 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4116 4117 4118 #line default 4119 #line hidden 4120 4121 #line 1474 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4122 if (!string.IsNullOrWhiteSpace(twitter) || !string.IsNullOrWhiteSpace(fb) || !string.IsNullOrWhiteSpace(linkedin) || !string.IsNullOrWhiteSpace(youtube) || !string.IsNullOrWhiteSpace(instagram) || !string.IsNullOrWhiteSpace(pinterest)) 4123 { 4124 4125 4126 #line default 4127 #line hidden 4128 WriteLiteral("\t\t\t\t\t<section"); 4129 4130 WriteLiteral(" class=\"footer__social-container\""); 4131 4132 WriteLiteral(">\r\n\r\n\t\t\t\t\t\t<span"); 4133 4134 WriteLiteral(" class=\"footer__icon-labels\""); 4135 4136 WriteLiteral(">"); 4137 4138 4139 #line 1478 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4140 Write(Translate("Footer.FollowUs", "Volg ons op:")); 4141 4142 4143 #line default 4144 #line hidden 4145 WriteLiteral("</span>\r\n\r\n\t\t\t\t\t\t<div"); 4146 4147 WriteLiteral(" class=\"footer__social-icon-container\""); 4148 4149 WriteLiteral(">\r\n"); 4150 4151 4152 #line 1481 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4153 4154 4155 #line default 4156 #line hidden 4157 4158 #line 1481 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4159 if (!string.IsNullOrWhiteSpace(twitter)) 4160 { 4161 4162 4163 #line default 4164 #line hidden 4165 WriteLiteral("\t\t\t\t\t\t\t\t<a"); 4166 4167 WriteAttribute("href", Tuple.Create(" href=\"", 50717), Tuple.Create("\"", 50732) 4168 4169 #line 1483 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4170 , Tuple.Create(Tuple.Create("", 50724), Tuple.Create<System.Object, System.Int32>(twitter 4171 4172 #line default 4173 #line hidden 4174 , 50724), false) 4175 ); 4176 4177 WriteLiteral(" target=\"_blank\""); 4178 4179 WriteLiteral(" title=\"twitter\""); 4180 4181 WriteLiteral(" class=\"footer__social\""); 4182 4183 WriteLiteral(" rel=\"noreferrer\""); 4184 4185 WriteLiteral("><i"); 4186 4187 WriteLiteral(" class=\"fab fa-twitter\""); 4188 4189 WriteLiteral("></i></a>\r\n"); 4190 4191 4192 #line 1484 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4193 } 4194 4195 4196 #line default 4197 #line hidden 4198 WriteLiteral("\t\t\t\t\t\t\t"); 4199 4200 4201 #line 1485 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4202 if (!string.IsNullOrWhiteSpace(fb)) 4203 { 4204 4205 4206 #line default 4207 #line hidden 4208 WriteLiteral("\t\t\t\t\t\t\t\t<a"); 4209 4210 WriteAttribute("href", Tuple.Create(" href=\"", 50917), Tuple.Create("\"", 50927) 4211 4212 #line 1487 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4213 , Tuple.Create(Tuple.Create("", 50924), Tuple.Create<System.Object, System.Int32>(fb 4214 4215 #line default 4216 #line hidden 4217 , 50924), false) 4218 ); 4219 4220 WriteLiteral(" target=\"_blank\""); 4221 4222 WriteLiteral(" title=\"facebook\""); 4223 4224 WriteLiteral(" class=\"footer__social\""); 4225 4226 WriteLiteral(" rel=\"noreferrer\""); 4227 4228 WriteLiteral("><i"); 4229 4230 WriteLiteral(" class=\"fab fa-facebook-square\""); 4231 4232 WriteLiteral("></i></a>\r\n"); 4233 4234 4235 #line 1488 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4236 } 4237 4238 4239 #line default 4240 #line hidden 4241 WriteLiteral("\t\t\t\t\t\t\t"); 4242 4243 4244 #line 1489 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4245 if (!string.IsNullOrWhiteSpace(linkedin)) 4246 { 4247 4248 4249 #line default 4250 #line hidden 4251 WriteLiteral("\t\t\t\t\t\t\t\t<a"); 4252 4253 WriteAttribute("href", Tuple.Create(" href=\"", 51127), Tuple.Create("\"", 51143) 4254 4255 #line 1491 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4256 , Tuple.Create(Tuple.Create("", 51134), Tuple.Create<System.Object, System.Int32>(linkedin 4257 4258 #line default 4259 #line hidden 4260 , 51134), false) 4261 ); 4262 4263 WriteLiteral(" target=\"_blank\""); 4264 4265 WriteLiteral(" title=\"LinkedIn\""); 4266 4267 WriteLiteral(" class=\"footer__social\""); 4268 4269 WriteLiteral(" rel=\"noreferrer\""); 4270 4271 WriteLiteral("><i"); 4272 4273 WriteLiteral(" class=\"fab fa-linkedin\""); 4274 4275 WriteLiteral("></i></a>\r\n"); 4276 4277 4278 #line 1492 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4279 } 4280 4281 4282 #line default 4283 #line hidden 4284 WriteLiteral("\t\t\t\t\t\t\t"); 4285 4286 4287 #line 1493 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4288 if (!string.IsNullOrWhiteSpace(youtube)) 4289 { 4290 4291 4292 #line default 4293 #line hidden 4294 WriteLiteral("\t\t\t\t\t\t\t\t<a"); 4295 4296 WriteAttribute("href", Tuple.Create(" href=\"", 51335), Tuple.Create("\"", 51350) 4297 4298 #line 1495 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4299 , Tuple.Create(Tuple.Create("", 51342), Tuple.Create<System.Object, System.Int32>(youtube 4300 4301 #line default 4302 #line hidden 4303 , 51342), false) 4304 ); 4305 4306 WriteLiteral(" target=\"_blank\""); 4307 4308 WriteLiteral(" title=\"YouTube\""); 4309 4310 WriteLiteral(" class=\"footer__social\""); 4311 4312 WriteLiteral(" rel=\"noreferrer\""); 4313 4314 WriteLiteral("><i"); 4315 4316 WriteLiteral(" class=\"fab fa-youtube\""); 4317 4318 WriteLiteral("></i></a>\r\n"); 4319 4320 4321 #line 1496 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4322 } 4323 4324 4325 #line default 4326 #line hidden 4327 WriteLiteral("\t\t\t\t\t\t\t"); 4328 4329 4330 #line 1497 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4331 if (!string.IsNullOrWhiteSpace(instagram)) 4332 { 4333 4334 4335 #line default 4336 #line hidden 4337 WriteLiteral("\t\t\t\t\t\t\t\t<a"); 4338 4339 WriteAttribute("href", Tuple.Create(" href=\"", 51542), Tuple.Create("\"", 51559) 4340 4341 #line 1499 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4342 , Tuple.Create(Tuple.Create("", 51549), Tuple.Create<System.Object, System.Int32>(instagram 4343 4344 #line default 4345 #line hidden 4346 , 51549), false) 4347 ); 4348 4349 WriteLiteral(" target=\"_blank\""); 4350 4351 WriteLiteral(" title=\"Instagram\""); 4352 4353 WriteLiteral(" class=\"footer__social\""); 4354 4355 WriteLiteral(" rel=\"noreferrer\""); 4356 4357 WriteLiteral("><i"); 4358 4359 WriteLiteral(" class=\"fab fa-instagram\""); 4360 4361 WriteLiteral("></i></a>\r\n"); 4362 4363 4364 #line 1500 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4365 } 4366 4367 4368 #line default 4369 #line hidden 4370 WriteLiteral("\t\t\t\t\t\t\t"); 4371 4372 4373 #line 1501 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4374 if (!string.IsNullOrWhiteSpace(pinterest)) 4375 { 4376 4377 4378 #line default 4379 #line hidden 4380 WriteLiteral("\t\t\t\t\t\t\t\t<a"); 4381 4382 WriteAttribute("href", Tuple.Create(" href=\"", 51755), Tuple.Create("\"", 51772) 4383 4384 #line 1503 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4385 , Tuple.Create(Tuple.Create("", 51762), Tuple.Create<System.Object, System.Int32>(pinterest 4386 4387 #line default 4388 #line hidden 4389 , 51762), false) 4390 ); 4391 4392 WriteLiteral(" target=\"_blank\""); 4393 4394 WriteLiteral(" title=\"Pinterest\""); 4395 4396 WriteLiteral(" class=\"footer__social\""); 4397 4398 WriteLiteral(" rel=\"noreferrer\""); 4399 4400 WriteLiteral("><i"); 4401 4402 WriteLiteral(" class=\"fab fa-pinterest\""); 4403 4404 WriteLiteral("></i></a>\r\n"); 4405 4406 4407 #line 1504 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4408 } 4409 4410 4411 #line default 4412 #line hidden 4413 WriteLiteral("\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t</section>\r\n"); 4414 4415 4416 #line 1508 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4417 } 4418 4419 4420 #line default 4421 #line hidden 4422 WriteLiteral("\t\t\t</div>\r\n\r\n\t\t</section>\r\n\r\n\t\t<section"); 4423 4424 WriteLiteral(" class=\"footer-paymentoptions\""); 4425 4426 WriteLiteral(" data-paymentmethods=\""); 4427 4428 4429 #line 1513 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4430 Write(selectedPaymentLogos); 4431 4432 4433 #line default 4434 #line hidden 4435 WriteLiteral("\""); 4436 4437 WriteLiteral("></section>\r\n\t</footer>\r\n"); 4438 4439 4440 #line 1515 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4441 4442 } 4443 4444 4445 #line default 4446 #line hidden 4447 WriteLiteral("\r\n"); 4448 4449 WriteLiteral("\r\n"); 4450 4451 4452 #line 1531 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4453 4454 4455 #line default 4456 #line hidden 4457 WriteLiteral("\r\n"); 4458 4459 4460 #line 1535 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4461 4462 bool displayPrices = mc.EcomConfiguration.HidePricesForGuests ? Pageview.User != null : true; 4463 string ShowZeroPrices = (!mc.EcomConfiguration.HideZeroPrices).ToString().ToLower(); 4464 4465 4466 #line default 4467 #line hidden 4468 WriteLiteral("\r\n\r\n<section"); 4469 4470 WriteLiteral(" id=\"vue-modal\""); 4471 4472 WriteLiteral("\r\n\tdata-show-prices=\""); 4473 4474 4475 #line 1541 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4476 Write(displayPrices.ToString().ToLower()); 4477 4478 4479 #line default 4480 #line hidden 4481 WriteLiteral("\""); 4482 4483 WriteLiteral(" \r\n\tdata-show-zero-prices=\""); 4484 4485 4486 #line 1542 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4487 Write(ShowZeroPrices); 4488 4489 4490 #line default 4491 #line hidden 4492 WriteLiteral("\""); 4493 4494 WriteLiteral(">\r\n</section>\r\n\r\n\r\n\r\n<section"); 4495 4496 WriteLiteral(" id=\"vue-bottom-bar\""); 4497 4498 WriteLiteral("\r\n\t\t data-phonenumber=\""); 4499 4500 4501 #line 1548 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4502 Write(formattedPhonenumber); 4503 4504 4505 #line default 4506 #line hidden 4507 WriteLiteral("\""); 4508 4509 WriteLiteral("\r\n\t\t data-isoffline=\""); 4510 4511 4512 #line 1549 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4513 Write(isOffline); 4514 4515 4516 #line default 4517 #line hidden 4518 WriteLiteral("\""); 4519 4520 WriteLiteral("\r\n\t\t data-emailadress=\""); 4521 4522 4523 #line 1550 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4524 Write(emailadress); 4525 4526 4527 #line default 4528 #line hidden 4529 WriteLiteral("\""); 4530 4531 WriteLiteral("\r\n\t\t data-currentpageid=\""); 4532 4533 4534 #line 1551 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4535 Write(BaseSettings.System.HomepageID); 4536 4537 4538 #line default 4539 #line hidden 4540 WriteLiteral("\""); 4541 4542 WriteLiteral("\r\n\t\t data-enable-login=\""); 4543 4544 4545 #line 1552 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4546 Write(enableLogin); 4547 4548 4549 #line default 4550 #line hidden 4551 WriteLiteral("\""); 4552 4553 WriteLiteral("\r\n\t\t data-enable-shoppingcart=\""); 4554 4555 4556 #line 1553 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4557 Write(enableShoppingCart); 4558 4559 4560 #line default 4561 #line hidden 4562 WriteLiteral("\""); 4563 4564 WriteLiteral("\r\n\t\t data-enable-advancedsearch=\""); 4565 4566 4567 #line 1554 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4568 Write(enableAdvancedSearch); 4569 4570 4571 #line default 4572 #line hidden 4573 WriteLiteral("\""); 4574 4575 WriteLiteral("></section>\r\n\r\n"); 4576 4577 4578 #line 1556 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4579 4580 int SearchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID); 4581 var SearchPlaceholder = Translate("Searchbox.PlaceholderValue", "Search..."); 4582 var SearchPlaceholderHover = Translate("Search.PlaceholderValue2", "Zoekt u misschien een ...?"); 4583 var SearchPrefill = Dynamicweb.Context.Current.Request["q"]; 4584 var SearchboxClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "open" : ""; 4585 var SearchtoggleClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "close" : ""; 4586 4587 4588 #line default 4589 #line hidden 4590 WriteLiteral("\r\n\r\n<section"); 4591 4592 WriteLiteral(" class=\"bottombar__searchbox__wrapper\""); 4593 4594 WriteLiteral(">\r\n\t<form"); 4595 4596 WriteLiteral(" class=\"searchbox__form\""); 4597 4598 WriteLiteral(" method=\"get\""); 4599 4600 WriteLiteral(" action=\"/Default.aspx\""); 4601 4602 WriteLiteral(" style=\"display: flex; flex-grow: 1;\""); 4603 4604 WriteLiteral(">\r\n\t<input"); 4605 4606 WriteLiteral(" type=\"text\""); 4607 4608 WriteLiteral(" name=\"q\""); 4609 4610 WriteAttribute("value", Tuple.Create(" value=\"", 53989), Tuple.Create("\"", 54011) 4611 4612 #line 1567 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4613 , Tuple.Create(Tuple.Create("", 53997), Tuple.Create<System.Object, System.Int32>(SearchPrefill 4614 4615 #line default 4616 #line hidden 4617 , 53997), false) 4618 ); 4619 4620 WriteLiteral(" class=\"searchbox__input\""); 4621 4622 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 54037), Tuple.Create("\"", 54069) 4623 4624 #line 1567 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4625 , Tuple.Create(Tuple.Create("", 54051), Tuple.Create<System.Object, System.Int32>(SearchPlaceholder 4626 4627 #line default 4628 #line hidden 4629 , 54051), false) 4630 ); 4631 4632 WriteLiteral(" aria-label=\"Search through site content\""); 4633 4634 WriteLiteral(" data-placeholder=\""); 4635 4636 4637 #line 1567 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4638 Write(SearchPlaceholder); 4639 4640 4641 #line default 4642 #line hidden 4643 WriteLiteral("\""); 4644 4645 WriteLiteral(" data-hoverplaceholder=\""); 4646 4647 4648 #line 1567 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4649 Write(SearchPlaceholderHover); 4650 4651 4652 #line default 4653 #line hidden 4654 WriteLiteral("\""); 4655 4656 WriteLiteral(" style=\"display: flex; flex-grow: 1;\""); 4657 4658 WriteLiteral(" />\r\n\t<div"); 4659 4660 WriteLiteral(" class=\"searchbox__button\""); 4661 4662 WriteLiteral(">\r\n\t\t<button"); 4663 4664 WriteLiteral(" type=\"submit\""); 4665 4666 WriteLiteral(" class=\"searchbox__form__submit icon icon--medium icon__search input__icon\""); 4667 4668 WriteLiteral(" aria-label=\"Search\""); 4669 4670 WriteLiteral(">\r\n\t\t\t<i"); 4671 4672 WriteLiteral(" class=\"fal fa-search\""); 4673 4674 WriteLiteral("></i>\r\n\t\t</button>\r\n\t</div>\r\n\t<input"); 4675 4676 WriteLiteral(" type=\"hidden\""); 4677 4678 WriteLiteral(" name=\"ID\""); 4679 4680 WriteAttribute("value", Tuple.Create(" value=\"", 54481), Tuple.Create("\"", 54502) 4681 4682 #line 1573 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4683 , Tuple.Create(Tuple.Create("", 54489), Tuple.Create<System.Object, System.Int32>(SearchPageID 4684 4685 #line default 4686 #line hidden 4687 , 54489), false) 4688 ); 4689 4690 WriteLiteral(" />\r\n</form>\r\n\r\n</section>\r\n\r\n"); 4691 4692 4693 #line 1578 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4694 4695 4696 #line default 4697 #line hidden 4698 WriteLiteral("\r\n"); 4699 4700 4701 #line 1581 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4702 4703 UserImpersonation impersonationMode = User.ImpersonationMode; 4704 User currentUser = Pageview.User; 4705 User secondaryUser = Pageview.User?.CurrentSecondaryUser ?? null; 4706 bool isImpersonating = Pageview.User?.CurrentSecondaryUser != null; 4707 int impersonationPageId = GetPageIdByNavigationTag("CustomerImpersonation"); 4708 4709 if(isImpersonating && impersonationMode == UserImpersonation.Full) { 4710 currentUser = Pageview.User.CurrentSecondaryUser; 4711 secondaryUser = Pageview.User; 4712 } 4713 4714 4715 #line default 4716 #line hidden 4717 WriteLiteral("\r\n\r\n"); 4718 4719 4720 #line 1594 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4721 if(currentUser != null && currentUser.GetUsersICanSetAsSecondary().Count > 0) 4722 { 4723 4724 4725 #line default 4726 #line hidden 4727 WriteLiteral("\t<div"); 4728 4729 WriteLiteral(" class=\"impersonation\""); 4730 4731 WriteLiteral(">\r\n\t\t<div"); 4732 4733 WriteLiteral(" class=\"impersonation__header\""); 4734 4735 WriteLiteral(">\r\n\t\t\t<p"); 4736 4737 WriteLiteral(" class=\"impersonation__title\""); 4738 4739 WriteLiteral(">\r\n"); 4740 4741 WriteLiteral("\t\t\t\t"); 4742 4743 4744 #line 1599 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4745 Write(Translate("Impersonate.Modal.Title", "Impersonation")); 4746 4747 4748 #line default 4749 #line hidden 4750 WriteLiteral("\r\n"); 4751 4752 4753 #line 1600 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4754 4755 4756 #line default 4757 #line hidden 4758 4759 #line 1600 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4760 if (isImpersonating) 4761 { 4762 4763 4764 #line default 4765 #line hidden 4766 WriteLiteral("\t\t\t\t\t<span"); 4767 4768 WriteLiteral(" title=\"On\""); 4769 4770 WriteLiteral(" class=\"impersonation__indicator\""); 4771 4772 WriteLiteral("></span>\r\n"); 4773 4774 4775 #line 1603 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4776 } 4777 4778 4779 #line default 4780 #line hidden 4781 WriteLiteral("\t\t\t</p>\r\n\t\t\t<i"); 4782 4783 WriteLiteral(" class=\"fal fa-chevron-up impersonation__header-icon\""); 4784 4785 WriteLiteral("></i>\r\n\t\t</div>\r\n\t\t<div"); 4786 4787 WriteLiteral(" class=\"impersonation__body\""); 4788 4789 WriteLiteral(">\r\n"); 4790 4791 4792 #line 1608 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4793 4794 4795 #line default 4796 #line hidden 4797 4798 #line 1608 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4799 if (isImpersonating) 4800 { 4801 4802 4803 #line default 4804 #line hidden 4805 WriteLiteral("\t\t\t\t<p>"); 4806 4807 4808 #line 1610 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4809 Write(string.Format(Translate("Impersonate.CurrentImpersonation", "You ({0}) are currently impersonating {1}"), string.Format("<strong>{0}</strong>", currentUser.UserName), string.Format("<strong>{0}</strong>", secondaryUser.UserName))); 4810 4811 4812 #line default 4813 #line hidden 4814 WriteLiteral("</p>\r\n"); 4815 4816 4817 #line 1611 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4818 4819 4820 4821 #line default 4822 #line hidden 4823 WriteLiteral("\t\t\t\t<form"); 4824 4825 WriteLiteral(" method=\"post\""); 4826 4827 WriteLiteral(" name=\"stopImpersonation\""); 4828 4829 WriteLiteral(">\r\n\t\t\t\t\t<input"); 4830 4831 WriteLiteral(" name=\"DwExtranetRemoveSecondaryUser\""); 4832 4833 WriteLiteral(" id=\"DwExtranetRemoveSecondaryUser\""); 4834 4835 WriteLiteral(" type=\"hidden\""); 4836 4837 WriteLiteral(">\t\t\r\n\t\t\t\t\t<div"); 4838 4839 WriteLiteral(" class=\"mt-4\""); 4840 4841 WriteLiteral(">\r\n\t\t\t\t\t\t<button"); 4842 4843 WriteLiteral(" class=\"btn btn__primary\""); 4844 4845 WriteLiteral(" type=\"submit\""); 4846 4847 WriteLiteral(">\r\n\t\t\t\t\t\t\t<span"); 4848 4849 WriteLiteral(" class=\"btn__text\""); 4850 4851 WriteLiteral(">"); 4852 4853 4854 #line 1616 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4855 Write(Translate("Impersonate.StopBtn", "Stop impersonation")); 4856 4857 4858 #line default 4859 #line hidden 4860 WriteLiteral("</span>\r\n\t\t\t\t\t\t\t<i"); 4861 4862 WriteLiteral(" class=\"fas fa-ban btn__icon\""); 4863 4864 WriteLiteral("></i>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n"); 4865 4866 4867 #line 1621 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4868 } else { 4869 4870 4871 #line default 4872 #line hidden 4873 WriteLiteral("\t\t\t\t<p>"); 4874 4875 4876 #line 1622 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4877 Write(Translate("Impersonate.Modal.Content", "Take a look at the list of customers you can impersonate.")); 4878 4879 4880 #line default 4881 #line hidden 4882 WriteLiteral("</p>\r\n"); 4883 4884 WriteLiteral("\t\t\t\t<div"); 4885 4886 WriteLiteral(" class=\"w-full flex mt-2\""); 4887 4888 WriteLiteral(">\r\n\t\t\t\t\t<a"); 4889 4890 WriteAttribute("href", Tuple.Create(" href=\"", 56439), Tuple.Create("\"", 56482) 4891 , Tuple.Create(Tuple.Create("", 56446), Tuple.Create("Default.aspx?ID=", 56446), true) 4892 4893 #line 1624 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4894 , Tuple.Create(Tuple.Create("", 56462), Tuple.Create<System.Object, System.Int32>(impersonationPageId 4895 4896 #line default 4897 #line hidden 4898 , 56462), false) 4899 ); 4900 4901 WriteLiteral(" class=\"btn btn__primary\""); 4902 4903 WriteLiteral(">\r\n\t\t\t\t\t\t<span"); 4904 4905 WriteLiteral(" class=\"btn__text\""); 4906 4907 WriteLiteral(">"); 4908 4909 4910 #line 1625 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4911 Write(Translate("Impersonate.Modal.ViewList", "View List")); 4912 4913 4914 #line default 4915 #line hidden 4916 WriteLiteral("</span>\r\n\t\t\t\t\t\t<i"); 4917 4918 WriteLiteral(" class=\"fal fa-chevron-right btn__icon\""); 4919 4920 WriteLiteral("></i>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t</div>\r\n"); 4921 4922 4923 #line 1629 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4924 } 4925 4926 4927 #line default 4928 #line hidden 4929 WriteLiteral("\t\t</div>\r\n\t</div>\r\n"); 4930 4931 4932 #line 1632 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4933 } 4934 4935 4936 #line default 4937 #line hidden 4938 WriteLiteral("\r\n"); 4939 4940 4941 #line 1634 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4942 4943 4944 #line default 4945 #line hidden 4946 WriteLiteral("\r\n"); 4947 4948 4949 #line 1639 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4950 4951 var favListService = new FavoriteListService(); 4952 IEnumerable<FavoriteList> favoriteLists = Pageview.User != null ? favListService.GetLists(Pageview.User.ID) : null; 4953 int favoritelistsPageId = GetPageIdByNavigationTag("CustomerFavorites"); 4954 4955 4956 #line default 4957 #line hidden 4958 WriteLiteral("\r\n\r\n"); 4959 4960 4961 #line 1645 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4962 if(favoriteLists != null && Pageview.User != null) 4963 { 4964 4965 4966 #line default 4967 #line hidden 4968 WriteLiteral(" <div"); 4969 4970 WriteLiteral(" class=\"offcanvas__backdrop\""); 4971 4972 WriteLiteral(" name=\"favoritelist\""); 4973 4974 WriteLiteral("></div>\r\n"); 4975 4976 WriteLiteral(" <aside"); 4977 4978 WriteLiteral(" class=\"offcanvas\""); 4979 4980 WriteLiteral(" data-listcount=\""); 4981 4982 4983 #line 1648 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 4984 Write(favoriteLists.Count()); 4985 4986 4987 #line default 4988 #line hidden 4989 WriteLiteral("\""); 4990 4991 WriteLiteral(" name=\"favoritelist\""); 4992 4993 WriteLiteral(">\r\n <header"); 4994 4995 WriteLiteral(" class=\"offcanvas__header\""); 4996 4997 WriteLiteral(">\r\n <span"); 4998 4999 WriteLiteral(" class=\"offcanvas__title\""); 5000 5001 WriteLiteral(">"); 5002 5003 5004 #line 1650 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5005 Write(Translate("OffCanvasMenu.FavoritesTitle", "Add to favorite list")); 5006 5007 5008 #line default 5009 #line hidden 5010 WriteLiteral("</span>\r\n <button"); 5011 5012 WriteLiteral(" class=\"offcanvas__close\""); 5013 5014 WriteAttribute("aria-label", Tuple.Create(" aria-label=\"", 57579), Tuple.Create("\"", 57639) 5015 5016 #line 1651 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5017 , Tuple.Create(Tuple.Create("", 57592), Tuple.Create<System.Object, System.Int32>(Translate("OffCanvasMenu.Close", "Close menu") 5018 5019 #line default 5020 #line hidden 5021 , 57592), false) 5022 ); 5023 5024 WriteLiteral(">\r\n <i"); 5025 5026 WriteLiteral(" class=\"fal fa-times\""); 5027 5028 WriteLiteral("></i>\r\n </button>\r\n </header>\r\n <div"); 5029 5030 WriteLiteral(" class=\"offcanvas__body\""); 5031 5032 WriteLiteral(">\r\n <p>"); 5033 5034 5035 #line 1656 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5036 Write(Translate("OffCanvasMenu.FavoritesContent", "Select the list you want to add the product to")); 5037 5038 5039 #line default 5040 #line hidden 5041 WriteLiteral("</p>\r\n <ul"); 5042 5043 WriteLiteral(" class=\"favorites__list\""); 5044 5045 WriteLiteral(">\r\n"); 5046 5047 5048 #line 1658 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5049 5050 5051 #line default 5052 #line hidden 5053 5054 #line 1658 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5055 foreach(FavoriteList list in favoriteLists) { 5056 5057 5058 #line default 5059 #line hidden 5060 WriteLiteral(" <li"); 5061 5062 WriteLiteral(" class=\"favorites__list-item\""); 5063 5064 WriteLiteral(" data-listid=\""); 5065 5066 5067 #line 1659 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5068 Write(list.ListId); 5069 5070 5071 #line default 5072 #line hidden 5073 WriteLiteral("\""); 5074 5075 WriteLiteral(">\r\n <span"); 5076 5077 WriteLiteral(" class=\"favorites__list-itemname\""); 5078 5079 WriteLiteral(">"); 5080 5081 5082 #line 1660 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5083 Write(list.Name); 5084 5085 5086 #line default 5087 #line hidden 5088 WriteLiteral("</span>\r\n <i"); 5089 5090 WriteLiteral(" class=\"fas fa-plus\""); 5091 5092 WriteLiteral("></i>\r\n </li>\r\n"); 5093 5094 5095 #line 1663 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5096 } 5097 5098 5099 #line default 5100 #line hidden 5101 WriteLiteral(" </ul>\r\n </div>\r\n <footer"); 5102 5103 WriteLiteral(" class=\"offcanvas__footer\""); 5104 5105 WriteLiteral(">\r\n <a"); 5106 5107 WriteAttribute("href", Tuple.Create(" href=\"", 58347), Tuple.Create("\"", 58391) 5108 , Tuple.Create(Tuple.Create("", 58354), Tuple.Create("/Default.aspx?ID=", 58354), true) 5109 5110 #line 1667 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5111 , Tuple.Create(Tuple.Create("", 58371), Tuple.Create<System.Object, System.Int32>(favoritelistsPageId 5112 5113 #line default 5114 #line hidden 5115 , 58371), false) 5116 ); 5117 5118 WriteLiteral(" class=\"btn btn__primary\""); 5119 5120 WriteLiteral(">\r\n <span"); 5121 5122 WriteLiteral(" class=\"btn__text\""); 5123 5124 WriteLiteral(">"); 5125 5126 5127 #line 1668 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5128 Write(Translate("OffCanvasMenu.FavoritesManageLists", "Manage lists")); 5129 5130 5131 #line default 5132 #line hidden 5133 WriteLiteral("</span>\r\n <i"); 5134 5135 WriteLiteral(" class=\"far fa-chevron-right btn__icon\""); 5136 5137 WriteLiteral("></i>\r\n </a>\r\n </footer>\r\n </aside>\r\n"); 5138 5139 5140 #line 1673 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5141 } 5142 5143 5144 #line default 5145 #line hidden 5146 WriteLiteral("\r\n\t\r\n\r\n\t<div"); 5147 5148 WriteLiteral(" id=\"backdrop\""); 5149 5150 WriteLiteral("></div>\r\n\r\n\t<script"); 5151 5152 WriteAttribute("src", Tuple.Create(" src=\"", 58696), Tuple.Create("\"", 58714) 5153 5154 #line 1679 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5155 , Tuple.Create(Tuple.Create("", 58702), Tuple.Create<System.Object, System.Int32>(polyfillsjs 5156 5157 #line default 5158 #line hidden 5159 , 58702), false) 5160 ); 5161 5162 WriteLiteral("></script>\r\n\t<script"); 5163 5164 WriteAttribute("src", Tuple.Create(" src=\"", 58735), Tuple.Create("\"", 58753) 5165 5166 #line 1680 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5167 , Tuple.Create(Tuple.Create("", 58741), Tuple.Create<System.Object, System.Int32>(appbundlejs 5168 5169 #line default 5170 #line hidden 5171 , 58741), false) 5172 ); 5173 5174 WriteLiteral("></script>\r\n\t<script defer"); 5175 5176 WriteAttribute("src", Tuple.Create(" src=\"", 58780), Tuple.Create("\"", 58798) 5177 5178 #line 1681 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5179 , Tuple.Create(Tuple.Create("", 58786), Tuple.Create<System.Object, System.Int32>(vuebundlejs 5180 5181 #line default 5182 #line hidden 5183 , 58786), false) 5184 ); 5185 5186 WriteLiteral("></script>\r\n\t<script defer"); 5187 5188 WriteAttribute("src", Tuple.Create(" src=\"", 58825), Tuple.Create("\"", 58848) 5189 5190 #line 1682 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5191 , Tuple.Create(Tuple.Create("", 58831), Tuple.Create<System.Object, System.Int32>(appAsyncbundlejs 5192 5193 #line default 5194 #line hidden 5195 , 58831), false) 5196 ); 5197 5198 WriteLiteral("></script>\r\n\r\n"); 5199 5200 5201 #line 1684 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5202 5203 5204 #line default 5205 #line hidden 5206 5207 #line 1684 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5208 if (font_configuration != null) 5209 { 5210 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>()) 5211 { 5212 if (item["FontLink"] != null) 5213 { 5214 string FontName = item["FontName"].ToString().Replace(" ", ""); 5215 string cssFile = $"files/Templates/Designs/Backyard/GoogleFont/{FontName}/{FontName}.css"; 5216 5217 5218 #line default 5219 #line hidden 5220 WriteLiteral("\t\t\t\t<link"); 5221 5222 WriteAttribute("href", Tuple.Create(" href=\"", 59287), Tuple.Create("\"", 59302) 5223 5224 #line 1692 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5225 , Tuple.Create(Tuple.Create("", 59294), Tuple.Create<System.Object, System.Int32>(cssFile 5226 5227 #line default 5228 #line hidden 5229 , 59294), false) 5230 ); 5231 5232 WriteLiteral(" rel=\"stylesheet\""); 5233 5234 WriteLiteral(">\r\n"); 5235 5236 5237 #line 1693 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5238 } 5239 } 5240 } 5241 5242 5243 #line default 5244 #line hidden 5245 WriteLiteral("\r\n\t<link"); 5246 5247 WriteLiteral(" rel=\"stylesheet\""); 5248 5249 WriteLiteral(" href=\"https://pro.fontawesome.com/releases/v5.15.4/css/all.css\""); 5250 5251 WriteLiteral(" integrity=\"sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+k" + 5252 "QU\""); 5253 5254 WriteLiteral(" crossorigin=\"anonymous\""); 5255 5256 WriteLiteral(">\r\n\r\n"); 5257 5258 5259 #line 1699 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5260 5261 5262 #line default 5263 #line hidden 5264 5265 #line 1699 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5266 if (isVisualEditor && IsNotContentManager) 5267 { 5268 5269 5270 5271 #line default 5272 #line hidden 5273 WriteLiteral("\t<style>\r\n\t\tbody {\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\tfont-family: \'Barlow\', sans" + 5274 "-serif;\r\n\t\t}\r\n\r\n\t\t.slidePanel {\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 0;\r\n\t\t\tbottom: 0;\r" + 5275 "\n\t\t\tmin-width: 500px;\r\n\t\t\tbox-shadow: -10px 10px 10px rgb(153 153 255 / 10%);\r\n\t" + 5276 "\t\tbackground-color: #FFFFFF;\r\n\t\t\tz-index: 1000;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\t" + 5277 "transition: all .5s ease-in;\r\n\t\t}\r\n\r\n\t\t\t.slidePanel.open {\r\n\t\t\t\tright: 0;\r\n\t\t\t}\r" + 5278 "\n\r\n\t\t.slidePanel {\r\n\t\t\tright: -500px;\r\n\t\t\ttransition: all 0.5s ease-in;\r\n\t\t}\r\n\r\n" + 5279 "\t\t.slidePanel__container {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: relative;\r\n\t\t\theight" + 5280 ": 100%;\r\n\t\t}\r\n\r\n\t\t.togglePanelButton {\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 50px;\r\n\t\t\tl" + 5281 "eft: 50px;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: cent" + 5282 "er;\r\n\t\t\tcolor: white;\r\n\t\t\tbackground-color: black;\r\n\t\t\tpadding: 0px 25px;\r\n\t\t\the" + 5283 "ight: 50px;\r\n\t\t\tcursor: pointer;\r\n\t\t\tz-index: 1000;\r\n\t\t}\r\n\r\n\t\t.closeButton {\r\n\t\t" + 5284 "\tposition: absolute;\r\n\t\t\tdisplay: flex;\r\n\t\t\ttop: 25px;\r\n\t\t\tright: 25px;\r\n\t\t\tfont" + 5285 "-size: 2rem;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tcolor: black;\r\n\t\t}\r\n\r\n\t\t.blur {\r\n\t\t\t" + 5286 "filter: blur(4px);\r\n\t\t\tpointer-events: none;\r\n\t\t}\r\n\r\n\t\t.sideMenu {\r\n\t\t\tdisplay: " + 5287 "flex;\r\n\t\t\tposition: absolute;\r\n\t\t\talign-items: center;\r\n\t\t\tmin-height: 100px;\r\n\t" + 5288 "\t\tz-index: 1200;\r\n\t\t\ttop: 0;\r\n\t\t\tbottom: 0;\r\n\t\t\tright: 100%;\r\n\t\t\tflex-direction:" + 5289 " column;\r\n\t\t\tjustify-content: center;\r\n\t\t}\r\n\r\n\t\t.sideMenu__link:first-child {\r\n\t" + 5290 "\t\tmargin-top: 10px;\r\n\t\t}\r\n\r\n\t\t.sideMenu__link {\r\n\t\t\tposition: relative;\r\n\t\t\tflex" + 5291 "-direction: column;\r\n\t\t\tdisplay: flex;\r\n\t\t\theight: 50px;\r\n\t\t\twidth: 50px;\r\n\t\t\tba" + 5292 "ckground-color: #f1f1f1;\r\n\t\t\tmargin-bottom: 10px;\r\n\t\t\tmargin-left: 10px;\r\n\t\t\tmar" + 5293 "gin-right: 10px;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\talign-items: center;\r\n\t" + 5294 "\t\tfont-size: 10px;\r\n\t\t\tpadding: 10px;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\ttext-decor" + 5295 "ation: none;\r\n\t\t\tcolor: rgb(22, 101, 123);\r\n\t\t\tfont-size: 24px;\r\n\t\t}\r\n\t\t\t.sideMe" + 5296 "nu__link:hover {\r\n\t\t\t\tbackground-color: #c9c9c9;\r\n\t\t\t\tcolor: white;\r\n\t\t\t\ttransit" + 5297 "ion: all ease-in 0.5s;\r\n\t\t\t}\r\n\t\t\t.sideMenu__link label {\r\n\t\t\t\tfont-size: 12px;\r\n" + 5298 "\t\t\t}\r\n\r\n\t\t.sideMenu__container {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: relative;\r\n\t\t\t" + 5299 "flex-direction: column;\r\n\t\t\tbox-shadow: -10px 10px 10px rgb(153 153 255 / 10%);\r" + 5300 "\n\t\t\tbackground-color: white;\r\n\t\t}\r\n\r\n\t\t.toolbar.close {\r\n\t\t\tdisplay: none;\r\n\t\t}\r" + 5301 "\n\r\n\t\t#toolbarVE {\r\n\t\t\tposition: fixed !important;\r\n\t\t\tz-index: 100;\r\n\t\t\tbackgrou" + 5302 "nd-color: #CCC;\r\n\t\t\tborder: 2px solid #F1F1F1;\r\n\t\t\ttext-align: center;\r\n\t\t\tright" + 5303 ": 0px;\r\n\t\t\ttop: 300px;\r\n\t\t}\r\n\r\n\t\t#toolbarVEHeader {\r\n\t\t\tpadding: 10px;\r\n\t\t\tcurso" + 5304 "r: move;\r\n\t\t\tz-index: 10;\r\n\t\t\tbackground-color: #6e6e6e;\r\n\t\t\tcolor: #fff;\r\n\t\t}\r\n" + 5305 "\t</style>\r\n"); 5306 5307 5308 #line 1840 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5309 5310 5311 5312 #line default 5313 #line hidden 5314 WriteLiteral("\t<div"); 5315 5316 WriteLiteral(" class=\"toolbarVE\""); 5317 5318 WriteLiteral(" id=\"toolbar\""); 5319 5320 WriteLiteral(" style=\"top: 150px; left: auto; width: 70px; position: fixed !important; right: 0" + 5321 "px !important; \""); 5322 5323 WriteLiteral(">\r\n\t\t<div"); 5324 5325 WriteLiteral(" id=\"toolbarVEHeader\""); 5326 5327 WriteLiteral(">\r\n\t\t\t<a"); 5328 5329 WriteLiteral(" href=\"javascript:void(0);\""); 5330 5331 WriteLiteral(" onclick=\"toggleClass(\'.toolbar\', \'close\');\""); 5332 5333 WriteLiteral(" style=\"color: #FFF;\""); 5334 5335 WriteLiteral("><i"); 5336 5337 WriteLiteral(" class=\"icon fa-light fa-circle-xmark\""); 5338 5339 WriteLiteral("></i></a>\r\n\t\t</div>\r\n\t\t<section"); 5340 5341 WriteLiteral(" class=\"sideMenu__container\""); 5342 5343 WriteLiteral(">\r\n\t\t\t<a"); 5344 5345 WriteLiteral(" href=\"javascript:history.back();\""); 5346 5347 WriteLiteral(" class=\"sideMenu__link\""); 5348 5349 WriteLiteral("><i"); 5350 5351 WriteLiteral(" class=\"icon fa-light fa-reply\""); 5352 5353 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5354 5355 WriteLiteral(" href=\"/dashboard-configuration\""); 5356 5357 WriteLiteral(" class=\"sideMenu__link\""); 5358 5359 WriteLiteral("><i"); 5360 5361 WriteLiteral(" class=\"icon fa-light fa-grid-horizontal\""); 5362 5363 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5364 5365 WriteLiteral(" href=\"/button-configuration\""); 5366 5367 WriteLiteral(" class=\"sideMenu__link\""); 5368 5369 WriteLiteral("><i"); 5370 5371 WriteLiteral(" class=\"icon fa-light fa-diagram-cells\""); 5372 5373 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5374 5375 WriteLiteral(" href=\"/button-configuration\""); 5376 5377 WriteLiteral(" class=\"sideMenu__link\""); 5378 5379 WriteLiteral("><i"); 5380 5381 WriteLiteral(" class=\"icon fa-light fa-link\""); 5382 5383 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5384 5385 WriteLiteral(" href=\"/background-configuration\""); 5386 5387 WriteLiteral(" class=\"sideMenu__link\""); 5388 5389 WriteLiteral("><i"); 5390 5391 WriteLiteral(" class=\"icon fa-light fa-paintbrush\""); 5392 5393 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5394 5395 WriteLiteral(" href=\"/jumbotron-configuration\""); 5396 5397 WriteLiteral(" class=\"sideMenu__link\""); 5398 5399 WriteLiteral("><i"); 5400 5401 WriteLiteral(" class=\"icon fa-light fa-megaphone\""); 5402 5403 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5404 5405 WriteLiteral(" href=\"/theme-configuration-page/theme-01\""); 5406 5407 WriteLiteral(" class=\"sideMenu__link\""); 5408 5409 WriteLiteral("><i"); 5410 5411 WriteLiteral(" class=\"icon fa-light fa-brush\""); 5412 5413 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5414 5415 WriteLiteral(" href=\"/font-configuration\""); 5416 5417 WriteLiteral(" class=\"sideMenu__link\""); 5418 5419 WriteLiteral("><i"); 5420 5421 WriteLiteral(" class=\"icon fa-light fa-font\""); 5422 5423 WriteLiteral("></i></a>\r\n\t\t\t<a"); 5424 5425 WriteLiteral(" href=\"/device-manager\""); 5426 5427 WriteLiteral(" class=\"sideMenu__link\""); 5428 5429 WriteLiteral("><i"); 5430 5431 WriteLiteral(" class=\"icon fa-light fa-computer\""); 5432 5433 WriteLiteral("></i></a>\r\n\t\t</section>\r\n\t</div>\r\n"); 5434 5435 5436 #line 1857 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5437 5438 5439 5440 #line default 5441 #line hidden 5442 WriteLiteral(@" <script> 5443 function toggleClass(ClassName, AddedClassName) { 5444 var element = document.querySelector(ClassName); 5445 if (element.classList.contains(AddedClassName)) { 5446 element.classList.remove(AddedClassName); 5447 } else { 5448 element.classList.add(AddedClassName); 5449 } 5450 } 5451 </script> 5452 "); 5453 5454 5455 #line 1868 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5456 5457 5458 5459 #line default 5460 #line hidden 5461 WriteLiteral(@" <script> 5462 //Make the DIV element draggagle: 5463 dragElement(document.getElementById(""toolbar"")); 5464 5465 function dragElement(elmnt) { 5466 var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; 5467 if (document.getElementById(elmnt.id + ""Header"")) { 5468 /* if present, the header is where you move the DIV from:*/ 5469 document.getElementById(elmnt.id + ""Header"").onmousedown = dragMouseDown; 5470 } else { 5471 /* otherwise, move the DIV from anywhere inside the DIV:*/ 5472 elmnt.onmousedown = dragMouseDown; 5473 } 5474 5475 function dragMouseDown(e) { 5476 e = e || window.event; 5477 e.preventDefault(); 5478 // get the mouse cursor position at startup: 5479 pos3 = e.clientX; 5480 pos4 = e.clientY; 5481 document.onmouseup = closeDragElement; 5482 // call a function whenever the cursor moves: 5483 document.onmousemove = elementDrag; 5484 } 5485 5486 function elementDrag(e) { 5487 e = e || window.event; 5488 e.preventDefault(); 5489 // calculate the new cursor position: 5490 pos1 = pos3 - e.clientX; 5491 pos2 = pos4 - e.clientY; 5492 pos3 = e.clientX; 5493 pos4 = e.clientY; 5494 // set the element's new position: 5495 elmnt.style.top = (elmnt.offsetTop - pos2) + ""px""; 5496 elmnt.style.left = (elmnt.offsetLeft - pos1) + ""px""; 5497 } 5498 5499 function closeDragElement() { 5500 /* stop moving when mouse button is released:*/ 5501 document.onmouseup = null; 5502 document.onmousemove = null; 5503 } 5504 } 5505 </script> 5506 "); 5507 5508 5509 #line 1914 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5510 5511 5512 5513 #line default 5514 #line hidden 5515 5516 #line 1941 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5517 5518 5519 5520 5521 #line default 5522 #line hidden 5523 WriteLiteral("\t<script"); 5524 5525 WriteLiteral(" src=\"https://kit.fontawesome.com/a46eca85e2.js\""); 5526 5527 WriteLiteral(" crossorigin=\"anonymous\""); 5528 5529 WriteLiteral("></script>\r\n"); 5530 5531 5532 #line 1944 "D:\dynamicweb.net\Solutions\IPG\Production\files\Templates\Designs\IPG_generated\_parsed\BlogPage.parsed.cshtml" 5533 5534 } 5535 5536 5537 #line default 5538 #line hidden 5539 WriteLiteral("\r\n\r\n</body>\r\n</html>\r\n"); 5540 5541 } 5542 } 5543 } 5544

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 2 3 @using System; 4 @using System.Web; 5 @using System.Linq; 6 @using System.Data; 7 @using System.Data.SqlClient; 8 @using System.Globalization; 9 @using System.Reflection; 10 11 @using Dynamicweb; 12 @using Dynamicweb.Content.Items; 13 @using Dynamicweb.Environment; 14 @using Dynamicweb.Frontend; 15 @using Dynamicweb.Frontend.Navigation; 16 17 @using Bluedesk.DynamicWeb.ItemTypes; 18 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 19 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 20 21 @using Bluedesk.Tools.Generic; 22 @using Bluedesk.Tools.DynamicWeb.DataAccess; 23 24 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 25 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 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 @{ 150 151 int newsImgHeightInt = BP.ImageHeight != null ? BP.ImageHeight : 400; 152 string newsTitle = BP.Title != null ? BP.Title : ""; 153 string newsImg = BP.Image != null ? "/Admin/Public/GetImage.ashx?Image=" + BP.Image.Replace("?x","&x") + "&Crop=7&Compression=80&Format=webp&Quality=90&Height="+ newsImgHeightInt : ""; 154 string newsImgAlt = BP.ImageAlt != null ? BP.ImageAlt : ""; 155 string newsImgHeight = newsImgHeightInt + "px"; 156 string newsDate = BP.Date != null ? Convert.ToDateTime(BP.Date).ToString("d MMMM yyyy") : ""; 157 string newsDateYear = BP.Date != null ? Convert.ToDateTime(BP.Date).ToString("yyyy") : ""; 158 string newsReadTime = BP.ReadingTime != null ? BP.ReadingTime : ""; 159 string newsCategory = !string.IsNullOrWhiteSpace(BP.CategoryID) ? BP.Category.Label : ""; 160 161 bool hasAuthor = !string.IsNullOrWhiteSpace(BP.AuthorID); 162 string authorName = hasAuthor ? BP.Author?.Name ?? "" : ""; 163 string authorImage = hasAuthor ? BP.Author?.Image ?? "" : ""; 164 string authorDescription = hasAuthor ? BP.Author?.Description ?? "" : ""; 165 166 var tags = BP.TagID != null ? BP.TagID.Split(',').ToList() : null; 167 } 168 169 <!DOCTYPE html> 170 <html lang="@lang" prefix="og: http://ogp.me/ns#"> 171 <head> 172 <meta charset="utf-8"> 173 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 174 <meta name="viewport" content="width=device-width, initial-scale=1"> 175 <meta name="theme-color" content="@mobileThemeColor"> 176 @Model.MetaTags 177 <title>@Model.Title</title> 178 179 @RenderSnippet("canonical") 180 @RenderSnippet("ogTags") 181 182 @{ 183 string urlProtocol = Dynamicweb.Context.Current.Request.Url.Scheme; 184 List<Dynamicweb.Content.Page> pageTranslations = new List<Dynamicweb.Content.Page>(); 185 bool isMasterPage = Pageview.Area.IsMaster; 186 if (isMasterPage) 187 { 188 pageTranslations.Add(Pageview.Page); 189 if (Pageview.Page.Languages != null) 190 { 191 foreach (var language in Pageview.Page.Languages) 192 { 193 if (language.Active) 194 { 195 pageTranslations.Add(language); 196 } 197 } 198 } 199 } 200 else 201 { 202 pageTranslations.Add(Pageview.Page.MasterPage); 203 if (Pageview.Page.MasterPage != null) 204 { 205 if (Pageview.Page.MasterPage.Languages != null) 206 { 207 foreach (var language in Pageview.Page.MasterPage.Languages) 208 { 209 if (language.Active) 210 { 211 pageTranslations.Add(language); 212 } 213 } 214 } 215 } 216 } 217 foreach (var page in pageTranslations) 218 { 219 if (page != null) 220 { 221 string url = $"Default.aspx?ID={page.ID}"; 222 string groupid = Dynamicweb.Context.Current.Request.QueryString.Get("GroupID"); 223 string productid = Dynamicweb.Context.Current.Request.QueryString.Get("ProductID"); 224 string variantid = Dynamicweb.Context.Current.Request.QueryString.Get("VariantID"); 225 if (!string.IsNullOrWhiteSpace(groupid)) 226 { 227 var groupObj = Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(groupid, page.Area.EcomLanguageId); 228 if (groupObj == null) 229 { 230 continue; 231 } 232 url = $"{url}&GroupID={groupid}"; 233 } 234 if (!string.IsNullOrWhiteSpace(productid)) 235 { 236 var productObj = Dynamicweb.Ecommerce.Services.Products.GetProductById(productid, variantid, page.Area.EcomLanguageId);; 237 if (productObj == null) 238 { 239 continue; 240 } 241 url = $"{url}&ProductID={productid}"; 242 if (!string.IsNullOrWhiteSpace(variantid)) 243 { 244 url = $"{url}&VariantID={variantid}"; 245 } 246 } 247 248 string currentdomain = Context.Current.Request.Url.DnsSafeHost; 249 if (!string.IsNullOrEmpty(page.Area.DomainLock)) { 250 currentdomain = page.Area.DomainLock; 251 } 252 string friendlyUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(url); 253 string href = $"{urlProtocol}://{currentdomain}{friendlyUrl}"; 254 string hreflang = page.Area.CultureInfo.Name.ToLower(); 255 <link rel="alternate" href="@href" hreflang="@hreflang" /> 256 } 257 } 258 } 259 260 261 <link rel="preconnect" href="https://fonts.googleapis.com"> 262 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> 263 <link href="@appcss" rel="stylesheet" type="text/css" /> 264 265 @{ 266 if (!string.IsNullOrWhiteSpace(favicon32)) { <link rel="icon" type="image/png" sizes="32x32" href="@favicon32"> } 267 if (!string.IsNullOrWhiteSpace(favicon16)) { <link rel="icon" type="image/png" sizes="16x16" href="@favicon16"> } 268 if (!string.IsNullOrWhiteSpace(favico)){ <link rel="shortcut icon" href="@favicon"> } 269 } 270 271 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 272 @using System; 273 @using System.Web; 274 @using System.Linq; 275 @using System.Globalization; 276 277 @using Dynamicweb; 278 @using Dynamicweb.Content.Items; 279 @using Dynamicweb.Environment; 280 @using Dynamicweb.Frontend; 281 @using Dynamicweb.Frontend.Navigation; 282 283 @using Bluedesk.Tools.Generic; 284 285 @using Bluedesk.DynamicWeb.ItemTypes; 286 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 287 @using Bluedesk.DynamicWeb.ItemTypes.Settings.Configuration; 288 289 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 290 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 291 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 292 293 @helper RenderCSSKeyAndValue(string Key, string Value) 294 { 295 if (!string.IsNullOrWhiteSpace(Value)) 296 { 297 <text>@Key : @Value !important;</text> 298 } 299 } 300 301 @helper SetFontCSSVariables(FontConfigurationItemTab FontConfiguration) 302 { 303 304 string Top = FontConfiguration.top != 0 ? FontConfiguration.top.ToString() + "px" : ""; 305 string Left = FontConfiguration.left != 0 ? FontConfiguration.left.ToString() + "px" : ""; 306 string Right = FontConfiguration.right != 0 ? FontConfiguration.right.ToString() + "px" : ""; 307 string Bottom = FontConfiguration.bottom != 0 ? FontConfiguration.bottom.ToString() + "px" : ""; 308 309 string Position = FontConfiguration.PositionAbsolute ? "absolute" : "relative"; 310 311 string Color = FontConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? ""; 312 string BackgroundColor = FontConfiguration.Backgroundcolor?.GetColorCode(Pageview.AreaID) ?? ""; 313 314 string BorderColor = FontConfiguration.BorderColor?.GetColorCode(Pageview.AreaID) ?? ""; 315 string BorderSize = FontConfiguration.BorderSize != 0 ? FontConfiguration.BorderSize.ToString() + "px" : ""; 316 317 <text> 318 319 --Position: @Position; 320 321 @RenderCSSKeyAndValue("--Padding", FontConfiguration.Padding) 322 323 @RenderCSSKeyAndValue("--Top", Top) 324 @RenderCSSKeyAndValue("--Left", Left) 325 @RenderCSSKeyAndValue("--Right", Right) 326 @RenderCSSKeyAndValue("--Bottom", Bottom) 327 328 @RenderCSSKeyAndValue("--Color", Color) 329 @RenderCSSKeyAndValue("--FontSize", FontConfiguration.FontSize) 330 @RenderCSSKeyAndValue("--FontStyle", FontConfiguration.FontStyle) 331 332 @RenderCSSKeyAndValue("--FontWeight", FontConfiguration.FontWeight) 333 @RenderCSSKeyAndValue("--FontFamily", FontConfiguration.FontConfiguration.FontFamily) 334 @RenderCSSKeyAndValue("--LineHeight", FontConfiguration.LineHeight) 335 336 @RenderCSSKeyAndValue("--BackgroundColor", BackgroundColor) 337 @RenderCSSKeyAndValue("--BorderColor", BorderColor) 338 @RenderCSSKeyAndValue("--BorderSize", BorderSize) 339 340 </text> 341 342 } 343 344 345 <script> 346 window.globals = { 347 pageId: '@Pageview.ID', 348 Token: '@csrftoken', 349 DW_AREA_CULTURE: '@langName', 350 DW_AREA_CULTURE_SHORT: '@lang', 351 globalIconClass: '@buttonIconClass', 352 DW_USERID: '@Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId()', 353 DW_SHOW_PRICES_WITH_VAT: @ecomShowPricesWithVat, 354 DW_PRICES_FORMATTED: @ecomPricesFormatted 355 }; 356 </script> 357 358 @BaseSettings.System.HeadScript 359 360 @{ 361 var _cookieOptinLevel = Dynamicweb.Environment.CookieManager.GetCookieOptInLevel(); 362 var _enabledCookieCategories = Dynamicweb.Environment.CookieManager.GetCookieOptInCategories(); 363 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies")) 364 { 365 @BaseSettings.System.HeadScriptAfterConsent; 366 } 367 } 368 369 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 370 @{ 371 372 var reviewName = BaseSettings.Review.Review_Name != null ? BaseSettings.Review.Review_Name : ""; 373 var reviewBestRating = BaseSettings.Review.Review_Best_Rating != null ? BaseSettings.Review.Review_Best_Rating : ""; 374 var reviewWorstRating = BaseSettings.Review.Review_Worst_Rating != null ? BaseSettings.Review.Review_Worst_Rating : ""; 375 var reviewRatingValue = BaseSettings.Review.Review_Rating_Value != null ? BaseSettings.Review.Review_Rating_Value : ""; 376 var reviewCount = BaseSettings.Review.Review_Count != null ? BaseSettings.Review.Review_Count : ""; 377 var reviewUrl = BaseSettings.Review.Review_URL != null ? BaseSettings.Review.Review_URL : ""; 378 379 var searchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID); 380 var domain = Dynamicweb.Environment.Helpers.LinkHelper.GetHttpDomain(); 381 } 382 383 <script type="application/ld+json"> 384 [{ 385 "@@context": "https://schema.org", 386 "@@type": "Organization", 387 "name" : "@BaseSettings.CorporateSettings.CompanyName", 388 "url": "@domain", 389 "sameAs" : "@BaseSettings.SocialMedia.Facebook", 390 "logo": "@domain@BaseSettings.BrandConfiguration.Logos.Logo", 391 "contactPoint" : [{ 392 "@@type" : "ContactPoint", 393 "telephone" : "@BaseSettings.CorporateSettings.Phonenumber", 394 "contactType" : "customer service" , 395 "@@context": "https://schema.org", 396 "@@id": "@domain", 397 "name": "@BaseSettings.CorporateSettings.CompanyName" 398 }], 399 "address": { 400 "@@type": "PostalAddress", 401 "streetAddress": "@BaseSettings.CorporateSettings.Address", 402 "addressLocality": "@BaseSettings.CorporateSettings.City", 403 "postalCode": "@BaseSettings.CorporateSettings.Zipcode", 404 "addressRegion": "@BaseSettings.CorporateSettings.Region", 405 "addressCountry": "@BaseSettings.CorporateSettings.Country" 406 } 407 }, 408 { 409 "@@context": "https://schema.org", 410 "@@type": "WebSite", 411 "name" : "@BaseSettings.CorporateSettings.CompanyName", 412 "alternateName" : "@BaseSettings.CorporateSettings.AltCompanyName", 413 "url": "@domain", 414 "potentialAction": { 415 "@@type": "SearchAction", 416 "target": "@domain/Default.aspx?ID=@searchPageID&q={search_term_string}", 417 "query-input": "required name=search_term_string" 418 } 419 }] 420 </script> 421 422 <script type="application/ld+json"> 423 { 424 "@@context": "https://schema.org", 425 "@@type": "Product", 426 "name": "@reviewName", 427 "url":"@reviewUrl", 428 "aggregateRating": { 429 "@@type": "AggregateRating", 430 "bestRating": "@reviewBestRating", 431 "worstRating": "@reviewWorstRating", 432 "ratingValue": "@reviewRatingValue", 433 "reviewCount": "@reviewCount" 434 } 435 } 436 </script> 437 438 439 @RenderSnippet("DataLayer") 440 @RenderSnippet("GoogleMapsScript") 441 442 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 443 444 @{ 445 446 // TODO: Add there options to master config for product overview 447 bool hidePricesForGuests = false; 448 bool hideShoppingCartForGuests = false; 449 450 bool enableShoppingCart = hideShoppingCartForGuests && Pageview.User == null ? false : BaseSettings.Features.ConfigModuleShoppingCart; 451 bool enableLogin = BaseSettings.Features.ConfigModuleLogin; 452 bool enableQuickOrder = BaseSettings.Features.ConfigModuleQuickOrder; 453 bool enableAdvancedSearch = BaseSettings.Features.ConfigModuleAdvancedSearch; 454 bool enableCallMeBack = BaseSettings.Features.ConfigModuleCallMeBack; 455 bool enableDyslexicFont = BaseSettings.Features.ConfigModuleDyslexicFont; 456 bool enableProductCompare = BaseSettings.Features.ConfigModuleProductCompare; 457 } 458 459 460 461 <style> 462 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 463 @using Dynamicweb; 464 465 @using System.Data; 466 @using Microsoft.Data.SqlClient; 467 @using Bluedesk.Tools.DynamicWeb.DataAccess; 468 469 @using Bluedesk.DynamicWeb.ItemTypes; 470 @using Bluedesk.DynamicWeb.ItemTypes.Settings; 471 @using Bluedesk.DynamicWeb.ItemTypes.Configuration; 472 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution; 473 474 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 475 476 @Title("Configuration page template") 477 478 @{ 479 480 string RoundedCornersValue = "0px"; 481 string ButtonHeight = BaseSettings.BrandConfiguration.ButtonHeight; 482 483 switch (BaseSettings.BrandConfiguration.RoundedCorners) 484 { 485 486 case "rounded": 487 RoundedCornersValue = BaseSettings.BrandConfiguration.RoundedCornerValue; 488 break; 489 490 case "round": 491 RoundedCornersValue = ButtonHeight; 492 break; 493 494 default: 495 RoundedCornersValue = "0px"; 496 break; 497 } 498 499 string fontawesomeFontFamily = "Font Awesome 5 Pro"; 500 int fontawesomeFontWeight = 300; 501 502 switch (BaseSettings.BrandConfiguration.FontawesomeStyle) 503 { 504 505 case "fal": 506 fontawesomeFontWeight = 300; 507 break; 508 case "far": 509 fontawesomeFontWeight = 400; 510 break; 511 case "fas": 512 fontawesomeFontWeight = 900; 513 break; 514 case "fad": 515 fontawesomeFontWeight = 900; 516 fontawesomeFontFamily = "Font Awesome 5 Duotone"; 517 break; 518 } 519 520 } 521 522 @BaseSettingServices.RenderButtonCSS("btn__primary", BaseSettingsButtons.PrimaryButtonConfiguration) 523 @BaseSettingServices.RenderButtonCSS("btn__secondary", BaseSettingsButtons.SecondaryButtonConfiguration) 524 @BaseSettingServices.RenderButtonCSS("btn__contrast", BaseSettingsButtons.ContrastButtonConfiguration) 525 526 :root, 527 body { 528 529 --BaseColorPrimary : @BaseSettingsBrandConfiguration.BaseColorPrimary; 530 --BaseColorSecondary : @BaseSettingsBrandConfiguration.BaseColorSecondary; 531 --BaseColorContrast : @BaseSettingsBrandConfiguration.BaseColorContrast; 532 533 --BaseFontPrimary : @BaseSettingsBrandConfiguration.PrimaryFontFamily; 534 --BaseFontSecondary : @BaseSettingsBrandConfiguration.PrimaryFontFamily; 535 536 @BaseSettings.BrandConfiguration.BodyInlineStyles 537 --StandardUnitSize : 3.2rem; 538 } 539 540 h1, h2, h3, h4, h5, h6 { @BaseSettings.BrandConfiguration.HeaderInlineStyles } 541 542 h1.cta-paragraph__header { @BaseSettings.BrandConfiguration.H1InlineStyles } 543 h2.cta-paragraph__header { @BaseSettings.BrandConfiguration.H2InlineStyles } 544 h3.cta-paragraph__header { @BaseSettings.BrandConfiguration.H3InlineStyles } 545 h4.cta-paragraph__header { @BaseSettings.BrandConfiguration.H4InlineStyles } 546 547 .po-block__addtocart .btn, 548 .productdetails__add-to-cart, 549 .searchbox__input { 550 border-radius: @RoundedCornersValue; 551 } 552 553 main.blur { 554 filter: grayscale(50%) blur(15px); 555 -webkit-filter: grayscale(50%) blur(15px); 556 } 557 558 .AdvancedGridButton { 559 --BorderRadius: @RoundedCornersValue; 560 } 561 562 .btn { 563 height: var(--StandardUnitSize); 564 } 565 566 .btn__icon { 567 568 --fontawesomeFontFamily : "@fontawesomeFontFamily"; 569 --fontawesomeFontWeight : @fontawesomeFontWeight; 570 571 font-family: var(--fontawesomeFontFamily); 572 font-weight: var(--fontawesomeFontWeight); 573 574 -moz-osx-font-smoothing: grayscale; 575 -webkit-font-smoothing: antialiased; 576 display: inline-block; 577 font-style: normal; 578 font-variant: normal; 579 text-rendering: auto; 580 line-height: 1; 581 582 } 583 584 .cta-paragraph { 585 background-color: var(--mainBackgroundColor); 586 } 587 588 .cta-paragraph__container { 589 background-color: var(--contentBackgroundColor); 590 border: var(--contentBorder); 591 } 592 593 .cta-paragraph__subheader, 594 .cta-paragraph__header, 595 .cta-paragraph__text p, 596 .cta-paragraph__text li { 597 color: var(--Color); 598 background-color: var(--BackgroundColor); 599 border-color: var(--BorderColor); 600 position: var(--Position); 601 top: var(--Top); 602 left: var(--Left); 603 right: var(--Right); 604 bottom: var(--Bottom); 605 padding: var(--Padding); 606 border: var(--BorderSize); 607 font-size: var(--FontSize); 608 text-transform: var(--FontStyle); 609 line-height: var(--LineHeight); 610 font-weight: var(--FontWeight); 611 font-family: var(--FontFamily); 612 border-radius: var(--BorderRadius); 613 } 614 615 .cta-paragraph__content-container { 616 align-items: var(--ContentElementAlignmentAlignItems); 617 text-align: var(--ContentElementAlignmentTextAlign); 618 } 619 620 .cta-paragraph__btn-navigation, 621 .cta-paragraph__content-container { 622 align-items : var(--ContainerFitContentAlignmentAlignItems); 623 justify-content: var(--ContainerFitContentAlignmentJustifyContent); 624 } 625 626 .jumbotron__subheader, 627 .jumbotron__header, 628 .jumbotron__shoutbox-intro p, 629 .jumbotron__shoutbox-intro li, 630 .header--desktop.headerNew { 631 position: relative; 632 } 633 634 .header--desktop.headerNew.stickyheader { 635 position: fixed; 636 } 637 638 @@media screen and (min-width: 992px){ 639 .image-left { 640 justify-content: flex-end; 641 flex-direction: row; 642 } 643 644 .image-right { 645 justify-content: flex-start; 646 flex-direction: row-reverse; 647 } 648 } 649 650 .AdvancedGrid__row { 651 background-color: var(--BackgroundColor); 652 } 653 654 .cta-paragraph__btn-navigation { 655 padding: 1.2rem 0rem !important; 656 } 657 658 .AdvancedGrid, 659 .AdvancedGrid__container { 660 width: 100%; 661 background-image: var(--BackgroundImage); 662 min-height: var(--Height); 663 } 664 665 @{ 666 667 int PageViewId = Pageview.Page.ID; 668 int AreaId = Pageview.AreaID; 669 670 // HttpContext.Current.Session["PageIdForStyles"] = Pageview.Page.ID; 671 // HttpContext.Current.Session["AreaIdForStyles"] = Pageview.AreaID; 672 673 DataTable AdvancedGridStylesDataTable = null; 674 675 AdvancedGridStylesDataTable = DynamicwebData.Query($@" 676 677 SELECT 678 InlineStyles AS Styles 679 680 FROM 681 [dbo].[ItemType_AdvancedGridConfiguration] AS AGC 682 LEFT JOIN [dbo].[GridRow] AS GR ON GR.GridRowItemId = AGC.Id 683 684 WHERE 685 GR.GridRowPageId = @PageId; 686 687 ", new Microsoft.Data.SqlClient.SqlParameter("PageId", PageViewId)); 688 689 DataTable BackgroundConfigDataTable = null; 690 691 BackgroundConfigDataTable = DynamicwebData.Query($@" 692 693 SELECT 694 distinct(BG.Stylesheet) AS Styles 695 696 FROM [dbo].GridRow AS GR 697 INNER JOIN dbo.Paragraph AS PG ON PG.ParagraphGridRowId = GR.GridRowId 698 LEFT JOIN dbo.ItemType_CTAParagraph AS CTA ON CTA.Id = PG.ParagraphItemId 699 LEFT JOIN dbo.ItemType_MultiColumnParagraph AS MCP ON MCP.Id = PG.ParagraphItemId 700 LEFT JOIN dbo.ItemType_Carousel AS CS ON CS.Id = PG.ParagraphItemId 701 LEFT JOIN dbo.ItemType_BackgroundConfiguration AS BG ON CTA.BackgroundConfigurationID = BG.Id 702 OR MCP.BackgroundConfigurationID = BG.Id 703 OR CS.BackgroundConfigurationID = BG.Id 704 705 WHERE GR.GridRowPageID=@PageId 706 AND bg.Stylesheet Is NOT NULL", new Microsoft.Data.SqlClient.SqlParameter("PageId", PageViewId)); 707 708 DataTable ButtonConfigDataTable = null; 709 710 ButtonConfigDataTable = DynamicwebData.Query($@" 711 712 SELECT 713 distinct(BCONF.Stylesheet) AS Styles 714 715 FROM [dbo].GridRow AS GR 716 LEFT JOIN [dbo].Paragraph AS P ON P.ParagraphGridRowId = GR.GridRowId 717 LEFT JOIN [dbo].ItemType_CTAParagraph AS CTAP ON CTAP.Id = P.ParagraphItemId 718 LEFT JOIN [dbo].ItemType_MultiColumnParagraph AS MCP ON MCP.Id = P.ParagraphItemId 719 LEFT JOIN [dbo].[ItemType_ParagraphColumn] AS PC ON MCP.ParagraphListID = PC.Id 720 LEFT JOIN [dbo].ItemType_Carousel AS CS ON CS.Id = P.ParagraphItemId 721 LEFT JOIN [dbo].[ItemType_CarouselItem] AS CI ON CS.CarouselListID = CI.Id 722 LEFT JOIN [dbo].[ItemType_JumbotronContainer] AS JC ON JC.Id = P.ParagraphItemId 723 LEFT JOIN [dbo].[ItemType_JumbotronListItem] AS JLI ON JLI.Id = JC.JumbotronListID 724 LEFT JOIN [dbo].[ItemType_CTAButton] AS CTAB ON 725 CTAP.ButtonID = CTAB.Id 726 OR CTAP.ExtraButtonID = CTAB.Id 727 OR MCP.ButtonID = CTAB.Id 728 OR PC.ButtonID = CTAB.Id 729 OR PC.ExtraButtonID = CTAB.Id 730 OR CS.ButtonID = CTAB.Id 731 OR CI.ButtonID = CTAB.Id 732 OR CI.ExtraButtonID = CTAB.Id 733 OR JLI.ButtonID = CTAB.Id 734 LEFT JOIN [dbo].[ItemType_ButtonConfiguration] AS BCONF ON CTAB.ButtonConfigurationID = BCONF.Id 735 736 WHERE 737 GR.GridRowPageID = @PageId 738 AND GR.GridRowActive = 1 739 AND CTAB.ButtonConfigurationID Is NOT NULL", new Microsoft.Data.SqlClient.SqlParameter("PageId", PageViewId)); 740 741 DataTable MasterConfigDataTable = null; 742 743 MasterConfigDataTable = DynamicwebData.Query($@" 744 745 SELECT 746 MC.CustomCSS 747 748 FROM 749 [dbo].[Page] AS P 750 INNER JOIN [dbo].[ItemType_MasterConfig] AS MC ON P.PageItemId = MC.Id 751 752 WHERE 753 p.PageItemType = 'MasterConfig' 754 AND PageAreaId = @AreaId;", new Microsoft.Data.SqlClient.SqlParameter("AreaId", AreaId)); 755 756 if (AdvancedGridStylesDataTable != null && AdvancedGridStylesDataTable.Rows.Count > 0) 757 { 758 for (int i = 0; i < AdvancedGridStylesDataTable.Rows.Count; i++) 759 { 760 @AdvancedGridStylesDataTable.Rows[i]["Styles"].ToString(); 761 } 762 } 763 764 if (BackgroundConfigDataTable != null && BackgroundConfigDataTable.Rows.Count > 0) 765 { 766 for (int i = 0; i < BackgroundConfigDataTable.Rows.Count; i++) 767 { 768 @BackgroundConfigDataTable.Rows[i]["Styles"].ToString(); 769 } 770 } 771 772 if (ButtonConfigDataTable != null && ButtonConfigDataTable.Rows.Count > 0) 773 { 774 for (int i = 0; i < ButtonConfigDataTable.Rows.Count; i++) 775 { 776 @ButtonConfigDataTable.Rows[i]["Styles"].ToString(); 777 } 778 } 779 780 @MasterConfigDataTable.Rows[0]["CustomCSS"].ToString(); 781 } 782 783 </style> 784 785 </head> 786 <body class="@MasterConfigCssClass"> 787 788 @BaseSettings.System.BodyScript 789 @{ 790 if (_cookieOptinLevel.ToString() == "All" || _enabledCookieCategories.Contains("Marketing_Cookies")) 791 { 792 @BaseSettings.System.BodyScriptAfterConsent; 793 } 794 } 795 796 @BaseSettings.System.TailScript 797 798 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 799 800 @using System.Linq; 801 @using System.Data; 802 803 @using Dynamicweb; 804 @using Dynamicweb.Content; 805 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 806 807 @{ 808 809 DataTable DataTableObj = AdvancedGridServices.GetHeaderGridDataTable(Pageview.AreaID, Pageview.Page.ID); 810 811 WrapperObj Header = AdvancedGridServices.RenderWrapper(DataTableObj, "header", "header", Pageview.AreaID, Pageview.Page.ID); 812 WrapperObj Footer = AdvancedGridServices.RenderWrapper(DataTableObj, "footer", "footer", Pageview.AreaID, Pageview.Page.ID); 813 814 // var homepage = Dynamicweb.Services.Pages.GetRootPagesForArea(Pageview.AreaID).FirstOrDefault(p => p.ItemType == "HomePage" && p.Active) ?? Dynamicweb.Services.Pages.GetFirstPageForArea(Pageview.AreaID); 815 816 bool userLoggedIn = false; 817 if (enableLogin) { userLoggedIn = Pageview.User == null ? false : true; } 818 819 string HeaderContainerSize = mc.HeaderConfiguration.ContainerSize + "px"; 820 821 } 822 823 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 824 @using Dynamicweb; 825 @using Dynamicweb.Content.Items; 826 827 <script> 828 829 function setImagesSizes(Classname) { 830 var Images = document.querySelectorAll(Classname); 831 for (var index = 0; index < Images.length; index++) { 832 if (!Images[index].hasAttribute("height")) { 833 Images[index].setAttribute("height", Images[index].offsetHeight); 834 } 835 if (!Images[index].hasAttribute("width")) { 836 Images[index].setAttribute("width", Images[index].offsetWidth); 837 } 838 } 839 } 840 841 window.addEventListener('load', function () { 842 setImagesSizes("img"); 843 setImagesSizes(".mc-header__logo-image"); 844 }); 845 846 </script> 847 848 849 <style> 850 @Header.CSS 851 @Footer.CSS 852 </style> 853 854 @Header.Template 855 856 857 <!-- DO NOT REMOVE --> 858 <div id="quick-order"></div> 859 <div id="backdrop-megamenu"></div> 860 <mega-menu id="mega-menu"></mega-menu> 861 <!-- DO NOT REMOVE --> 862 863 @if (isVisualEditor && IsNotContentManager) 864 { 865 @AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "header") 866 } 867 868 <style> 869 .visual-editor__navigation { 870 position: absolute; 871 top: 10px; 872 left: 10px; 873 display: flex; 874 flex-direction: row; 875 z-index: 100000000; 876 } 877 878 .visual-editor__button { 879 height: 50px; 880 min-width: 150px; 881 right: auto; 882 left: auto; 883 background-color: white; 884 box-shadow: -10px 10px 10px rgb(28 28 84 / 25%); 885 display: flex; 886 justify-content: center; 887 align-items: center; 888 padding: 25px; 889 margin-right: 25px; 890 } 891 892 .visual-editor__button-icon { 893 margin-right: 25px; 894 } 895 896 .header { 897 --HeaderContainerDisplay: none; 898 } 899 900 .header__container { 901 padding: 0; 902 } 903 904 .header__container, .header__stickyheader-container { 905 max-width: none; 906 } 907 908 .header .AdvancedGrid__container { 909 max-width: @HeaderContainerSize; 910 margin: 0 auto; 911 } 912 913 .header .AdvancedGrid__column { 914 background-color: var(--BackgroundColor); 915 flex-grow: var(--FlexGrow); 916 } 917 918 .AdvancedGrid__row { 919 align-items: center; 920 } 921 </style> 922 923 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 924 @using Dynamicweb; 925 @using Bluedesk.DynamicWeb.ItemTypes; 926 927 @{ 928 var pid = ModuleOnlyParagraph.GetParagraphIDByTag<ModuleOnlyParagraph>("SideBarForm", Pageview.AreaID); 929 930 if (pid > 0) 931 { 932 <section id="vue-side-bar-form" data-paragraphid="@pid" data-telephone="@phonenumber" data-formatphonenumber="@formattedPhonenumber" data-isoffline="@isOffline"></section> 933 } 934 } 935 936 937 @if (@enableProductCompare) 938 { 939 <div id="vue-compare-list"></div> 940 } 941 942 @{ 943 var Home = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "Home"); 944 } 945 946 <main> 947 948 @Model.Grid("grid", "Before breadcrumb", "", "AdvancedGrid") 949 950 @if (showBreadcrumbs) 951 { 952 var navigationSettings = new NavigationSettings(); 953 navigationSettings.ExpandMode = ExpandMode.PathOnly; 954 navigationSettings.StartLevel = 1; 955 navigationSettings.StopLevel = 99; 956 navigationSettings.Parameters.Add("PageTitle", Model.Title); 957 navigationSettings.IncludeFoldersAndHidden = true; 958 959 @Navigation.RenderNavigation("Navigation/Breadcrumbs.cshtml", navigationSettings) 960 961 } 962 963 <div class="newspage"> 964 <div class="container"> 965 <section class="newspage__innerwrapper"> 966 @if (BP.BlogSummaryLinks.Any()) 967 { 968 <aside class="newspage__sidebar"> 969 <p class="newspage__sidebar-title">@Translate("BlogPage.SummaryTitle", "In this article")</p> 970 <nav> 971 <ol class="newspage__sidebar-list"> 972 @{ var index = 1; } 973 @foreach (BlogSummaryLink item in BP.BlogSummaryLinks) 974 { 975 <li class="newspage__sidebar-list-item"> 976 <a href="@item.Link" class="newspage__sidebar-list-item--link"> 977 <span class="newspage__sidebar-list-item--counter">@index</span> 978 @item.Name 979 </a> 980 </li> 981 index++; 982 } 983 </ol> 984 </nav> 985 <div class="newspage__sharebtn__container"> 986 <button type="button" class="newspage__sharebtn" data-tooltip='@Translate("BlogPage.ShareTooltip", "Link copied")'> 987 <i class="newspage__sharebtn__icon fas fa-share-alt"></i> 988 <span class="newspage__sharebtn__text">@Translate("BlogPage.ShareButton", "Share article")</span> 989 </button> 990 </div> 991 </aside> 992 } 993 994 <article class="newspage__article"> 995 <header class="newspage__header"> 996 <figure class="newspage__header__image" style="--imageheight: @newsImgHeight;"> 997 <source media="(max-width: 768px)" srcset="@newsImg&Width=550"> 998 <source media="(max-width: 994px)" srcset="@newsImg&Width=800"> 999 <source media="(max-width: 1200px)" srcset="@newsImg&Width=700"> 1000 <img src="@newsImg&Width=900" alt="@newsImgAlt"> 1001 </figure> 1002 @if (hasAuthor) 1003 { 1004 <div class="newspage__header__author"> 1005 @if (!string.IsNullOrWhiteSpace(authorImage)) 1006 { 1007 <figure class="newspage__header__author-img"> 1008 <img src="@authorImage" alt="@authorName"> 1009 </figure> 1010 } 1011 @if (!string.IsNullOrWhiteSpace(authorName)) 1012 { 1013 <p class="newspage__header__author-name">@authorName</p> 1014 } 1015 </div> 1016 } 1017 <div class="newspage__header__meta"> 1018 @if (!string.IsNullOrWhiteSpace(newsCategory) && newsDateYear != "0001") 1019 { 1020 <p class="newspage__header__meta--info">@string.Format(Translate("BlogPage.DateCategoryLine", "{0} in {1}"), newsDate, newsCategory)</p> 1021 } 1022 <div class="newspage__header__meta--data"> 1023 @if (!string.IsNullOrWhiteSpace(newsReadTime)) 1024 { 1025 <p class="newspage__header__meta-time"><i class="fal fa-clock"></i> @string.Format(Translate("BlogPage.ReadingTime", "{0} reading time"), newsReadTime)</p> 1026 } 1027 <button type="button" class="newspage__sharebtn newspage__sharebtn--inline newspage__header__meta-share" data-tooltip='@Translate("BlogPage.ShareTooltip", "Link copied")'> 1028 <i class="newspage__sharebtn__icon fas fa-share-alt"></i> 1029 <span class="newspage__sharebtn__text">@Translate("BlogPage.ShareButton", "Share article")</span> 1030 </button> 1031 </div> 1032 </div> 1033 <h1 class="newspage__header__title">@newsTitle</h1> 1034 </header> 1035 1036 @Model.Grid("grid2", "Article content", "", "AdvancedGrid") 1037 1038 @if (hasAuthor) 1039 { 1040 <footer class="newspage__author-bio"> 1041 <div class="newspage__author-bio__header"> 1042 @if (!string.IsNullOrWhiteSpace(authorImage)) 1043 { 1044 <figure class="newspage__author-bio__image"> 1045 <img src="@authorImage" alt="@authorName"> 1046 </figure> 1047 } 1048 <div class="newspage__author-bio__meta"> 1049 <p>@Translate("BlogPage.AboutAuthor", "About the author")</p> 1050 @if (!string.IsNullOrWhiteSpace(authorName)) 1051 { 1052 <p class="newspage__author-bio__authorname">@authorName</p> 1053 } 1054 </div> 1055 </div> 1056 @if (!string.IsNullOrWhiteSpace(authorDescription)) 1057 { 1058 <div class="newspage__author-bio__content"> 1059 @authorDescription 1060 </div> 1061 } 1062 </footer> 1063 } 1064 1065 @if (tags != null && tags.Any()) 1066 { 1067 <div class="newspage__tags__wrapper"> 1068 <p class="newspage__tags__title">@Translate("BlogPage.TagsTitle", "Tags")</p> 1069 <ul class="newspage__tags__list"> 1070 @foreach (var tag in tags) 1071 { 1072 BlogTag tagConfig = Dynamicweb.Services.Items.GetItemById<BlogTag>(tag); 1073 if (tagConfig != null) 1074 { 1075 <li class="newspage__tags__list-item">@tagConfig.Label</li> 1076 } 1077 } 1078 </ul> 1079 </div> 1080 } 1081 1082 </article> 1083 1084 </section> 1085 <section class="newspage__aftercontent"> 1086 @Model.Grid("grid3", "After article", "", "AdvancedGrid") 1087 </section> 1088 </div> 1089 </div> 1090 1091 </main> 1092 1093 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 1094 @using Dynamicweb; 1095 @using Bluedesk.DynamicWeb.ItemTypes; 1096 @using Bluedesk.DynamicWeb.ItemTypes.Extensions; 1097 @using Bluedesk.DynamicWeb.ItemTypes.BaseSolution.Frontend; 1098 1099 @{ 1100 1101 string footerLogo = BaseSettings.BrandConfiguration.Logos.FooterLogo; 1102 string footerDescription = BaseSettings.CorporateSettings.FooterDescription; 1103 1104 var fb = BaseSettings.SocialMedia.Facebook; 1105 var twitter = BaseSettings.SocialMedia.Twitter; 1106 var linkedin = BaseSettings.SocialMedia.LinkedIn; 1107 var instagram = BaseSettings.SocialMedia.Instagram; 1108 var youtube = BaseSettings.SocialMedia.Youtube; 1109 var pinterest = BaseSettings.SocialMedia.Pinterest ?? ""; 1110 1111 var companyName = BaseSettings.CorporateSettings.CompanyName; 1112 var Emailadress = BaseSettings.CorporateSettings.Emailadress; 1113 var Phonenumber = BaseSettings.CorporateSettings.Phonenumber; 1114 var Address = BaseSettings.CorporateSettings.Address; 1115 var Zipcode = BaseSettings.CorporateSettings.Zipcode; 1116 var City = BaseSettings.CorporateSettings.City; 1117 var Country = BaseSettings.CorporateSettings.Country; 1118 1119 var selectedPaymentLogos = BaseSettings.BrandConfiguration.Logos.FooterPaymentLogos; 1120 1121 bool footer__newsletter_signup_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString()) && mc.FooterConfiguration.NewsLetterSignUpDisplay.ToString() == "True" ? true : false; 1122 bool footer__USP_display = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.UspDisplay.ToString()) && mc.FooterConfiguration.UspDisplay.ToString() == "True" ? true : false; 1123 1124 string footer__background_color = mc.FooterConfiguration.BackgroundColor?.GetColorCode(Pageview.AreaID) ?? "#000000"; 1125 string footer__color = mc.FooterConfiguration.Color?.GetColorCode(Pageview.AreaID) ?? "#FFFFFF"; 1126 1127 string footer__top_image = !string.IsNullOrWhiteSpace(mc.FooterConfiguration.TopImage.ToString()) ? mc.FooterConfiguration.TopImage.ToString() : ""; 1128 1129 1130 1131 } 1132 1133 <div id="scroll-to-top" class="scroll-to-top" aria-label="@Translate("Naar boven", "To Top")"> 1134 <span class="scroll-to-top__text"> 1135 @Translate("Naar boven", "To Top") 1136 </span> 1137 <i class="fal fa-arrow-to-top scroll-to-top__icon"></i> 1138 </div> 1139 1140 @if (Pageview.Page.ParentPageId > 0) 1141 { 1142 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList(); 1143 var parentpageItemType = Pageview.Page.Parent.ItemType; 1144 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage"; 1145 1146 if (siblings.Count() > 1 && isParentPageOverviewpage) 1147 { 1148 var prevPage = siblings.OrderByDescending(p => p.Sort).FirstOrDefault(p => p.Sort < Pageview.Page.Sort); 1149 var nextPage = siblings.OrderBy(p => p.Sort).FirstOrDefault(p => p.Sort > Pageview.Page.Sort); 1150 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId; 1151 1152 <section class="page-navigation"> 1153 @if (prevPage != null) 1154 { 1155 var back = "/Default.aspx?ID=" + prevPage.ID; 1156 <a href="@back" class="page-navigation__item"> 1157 <i class="fal fa-arrow-alt-to-left page-navigation__item--icon"></i> 1158 <label class="page-navigation__item-label">@Translate("pagenavigation.previous", "Previous")</label> 1159 </a> 1160 } 1161 1162 <a href="@overview" class="page-navigation__item"> 1163 <label class="page-navigation__item-label">@Translate("pagenavigation.Overview", "To overview")</label> 1164 <i class="fas fa-th page-navigation__item--icon"></i> 1165 </a> 1166 1167 @if (nextPage != null) 1168 { 1169 var forward = "/Default.aspx?ID=" + nextPage.ID; 1170 <a href="@forward" class="page-navigation__item"> 1171 <label class="page-navigation__item-label">@Translate("pagenavigation.next", "Next")</label> 1172 <i class="fal fa-arrow-alt-to-right page-navigation__item--icon"></i> 1173 </a> 1174 } 1175 </section> 1176 } 1177 } 1178 1179 @* 1180 1181 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 1182 @using Dynamicweb; 1183 @using Bluedesk.Tools.DynamicWeb.ExtensionMethods; 1184 @using Bluedesk.DynamicWeb.ItemTypes; 1185 1186 @{ 1187 1188 if (Pageview.Page.ParentPageId > 0) 1189 { 1190 1191 // Paging 1192 1193 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList(); 1194 var currentID = Pageview.Page.ID; 1195 var parentpageItemType = Pageview.Page.Parent.ItemType; 1196 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage"; 1197 1198 1199 var siblingsCount = siblings.Count; 1200 1201 int previousIdx = 0; 1202 int nextIdx = siblingsCount - 1; 1203 int idx = 0; 1204 1205 for (int i = 0; i < siblingsCount; i++) 1206 { 1207 if (siblings[i].ID == currentID && siblings[i].PropertyItem != null) 1208 { 1209 idx = i; 1210 } 1211 } 1212 1213 previousIdx = idx == previousIdx ? previousIdx : idx - 1; 1214 nextIdx = idx == nextIdx ? nextIdx : idx + 1; 1215 1216 var previousID = siblings[previousIdx].ID; 1217 var nextID = siblings[nextIdx].ID; 1218 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId; 1219 1220 if (siblingsCount > 1) 1221 { 1222 1223 <section class="page-navigation"> 1224 1225 @if (!(previousID == currentID || previousID == 0)) 1226 { 1227 var back = "/Default.aspx?ID=" + previousID; 1228 <a href="@back" class="page-navigation__item"> 1229 <i class="fal fa-arrow-alt-to-left page-navigation__item--icon"></i> 1230 <label class="page-navigation__item-label">@Translate("pagenavigation.previous", "Previous")</label> 1231 </a> 1232 } 1233 1234 <a href="@overview" class="page-navigation__item"> 1235 <label class="page-navigation__item-label">@Translate("pagenavigation.Overview", "To overview")</label> 1236 <i class="fas fa-th page-navigation__item--icon"></i> 1237 </a> 1238 1239 @if (!(nextID == currentID || nextID == 0)) 1240 { 1241 var forward = "/Default.aspx?ID=" + nextID; 1242 <a href="@forward" class="page-navigation__item"> 1243 <label class="page-navigation__item-label">@Translate("pagenavigation.next", "Next")</label> 1244 <i class="fal fa-arrow-alt-to-right page-navigation__item--icon"></i> 1245 </a> 1246 } 1247 1248 </section> 1249 1250 } 1251 1252 } 1253 else 1254 { 1255 // No action 1256 } 1257 1258 } 1259 1260 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 1261 @using Dynamicweb; 1262 1263 @if (Pageview.Page.ParentPageId > 0) 1264 { 1265 var siblings = Dynamicweb.Services.Pages.GetPagesByParentID(Pageview.Page.ParentPageId).Where(p => p.Active).ToList(); 1266 var parentpageItemType = Pageview.Page.Parent.ItemType; 1267 bool isParentPageOverviewpage = parentpageItemType == "OverviewPage"; 1268 1269 if (siblings.Count() > 1 && isParentPageOverviewpage) 1270 { 1271 var prevPage = siblings.OrderByDescending(p => p.Sort).FirstOrDefault(p => p.Sort < Pageview.Page.Sort); 1272 var nextPage = siblings.OrderBy(p => p.Sort).FirstOrDefault(p => p.Sort > Pageview.Page.Sort); 1273 var overview = "/Default.aspx?ID=" + Pageview.Page.ParentPageId; 1274 1275 <section class="page-navigation"> 1276 @if (prevPage != null) 1277 { 1278 var back = "/Default.aspx?ID=" + prevPage.ID; 1279 <a href="@back" class="page-navigation__item"> 1280 <i class="fal fa-arrow-alt-to-left page-navigation__item--icon"></i> 1281 <label class="page-navigation__item-label">@Translate("pagenavigation.previous", "Previous")</label> 1282 </a> 1283 } 1284 1285 <a href="@overview" class="page-navigation__item"> 1286 <label class="page-navigation__item-label">@Translate("pagenavigation.Overview", "To overview")</label> 1287 <i class="fas fa-th page-navigation__item--icon"></i> 1288 </a> 1289 1290 @if (nextPage != null) 1291 { 1292 var forward = "/Default.aspx?ID=" + nextPage.ID; 1293 <a href="@forward" class="page-navigation__item"> 1294 <label class="page-navigation__item-label">@Translate("pagenavigation.next", "Next")</label> 1295 <i class="fal fa-arrow-alt-to-right page-navigation__item--icon"></i> 1296 </a> 1297 } 1298 </section> 1299 } 1300 } 1301 1302 *@ 1303 1304 1305 1306 @Footer.Template 1307 1308 @if (isVisualEditor && IsNotContentManager) 1309 { 1310 <nav class="footer-layout"> 1311 @AdvancedGridServices.RenderVisualEditorNavigation(DataTableObj, "footer") 1312 </nav> 1313 1314 <style> 1315 .footer-layout { 1316 position: absolute; 1317 bottom: 25px; 1318 } 1319 </style> 1320 } 1321 1322 @if (!string.IsNullOrWhiteSpace(footer__top_image) && HideStandardFooter == false) 1323 { 1324 <figure class="footer__top-image"> 1325 <img src="@footer__top_image" alt="" /> 1326 </figure> 1327 } 1328 1329 @if (HideStandardFooter == false) 1330 { 1331 1332 <footer class="footer" style="--footer-bg-color: @footer__background_color; --footer-color: @footer__color;"> 1333 1334 @if (footer__USP_display) 1335 { 1336 if (!string.IsNullOrWhiteSpace(BaseSettings.USP.USP_1) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_2) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_3) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_4) || !string.IsNullOrWhiteSpace(BaseSettings.USP.USP_5)) 1337 { 1338 <div class="footer-usp__wrapper"> 1339 <div class="container"> 1340 <ul class="footer-usp__list flex-wrap"> 1341 @RenderFooterUSP(BaseSettings.USP.USP_1, BaseSettings.USP.USP_1_icon) 1342 @RenderFooterUSP(BaseSettings.USP.USP_2, BaseSettings.USP.USP_2_icon) 1343 @RenderFooterUSP(BaseSettings.USP.USP_3, BaseSettings.USP.USP_3_icon) 1344 @RenderFooterUSP(BaseSettings.USP.USP_4, BaseSettings.USP.USP_4_icon) 1345 @RenderFooterUSP(BaseSettings.USP.USP_5, BaseSettings.USP.USP_5_icon) 1346 1347 </ul> 1348 </div> 1349 </div> 1350 } 1351 } 1352 1353 @if (footer__newsletter_signup_display) 1354 { 1355 <div> 1356 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 1357 @using Dynamicweb; 1358 1359 @{ 1360 var newsletterFormID = ModuleOnlyParagraph.GetParagraphIDByTag<ModuleOnlyParagraph>("Footer.Newsletter"); 1361 1362 if (newsletterFormID > 0) 1363 { 1364 <section class="footer__newsletter-container"> 1365 <div class="container footer__newsletter"> 1366 <label class="footer__newsletter-label"> 1367 @Translate("Footer.SignUpNewsletter", "Sign up for the digital newsletter") 1368 </label> 1369 @RenderParagraphContent(newsletterFormID) 1370 </div> 1371 </section> 1372 } 1373 } 1374 1375 </div> 1376 } 1377 1378 @if (!string.IsNullOrWhiteSpace(mc.FooterConfiguration.BackgroundGradient)) 1379 { 1380 <style> 1381 .footer { 1382 @mc.FooterConfiguration.BackgroundGradient; 1383 } 1384 </style> 1385 } 1386 1387 <section class="container footer__content"> 1388 1389 <div class="footer__link"> 1390 @{ 1391 var footerColumnOneNavigationSettings = new NavigationSettings(); 1392 footerColumnOneNavigationSettings.ExpandMode = ExpandMode.All; 1393 footerColumnOneNavigationSettings.StartLevel = 1; 1394 footerColumnOneNavigationSettings.StopLevel = 4; 1395 footerColumnOneNavigationSettings.RootNavigationTag = "footer-column-1"; 1396 var footerColumnOneNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnOneNavigationSettings); 1397 1398 if (!string.IsNullOrEmpty(footerColumnOneNavigation)) 1399 { 1400 <p class="footer__link-header">@Translate("Footer.Column1.Header", "What you need to know")</p> 1401 @footerColumnOneNavigation 1402 } 1403 } 1404 </div> 1405 <div class="footer__link"> 1406 @{ 1407 var footerColumnTwoNavigationSettings = new NavigationSettings(); 1408 footerColumnTwoNavigationSettings.ExpandMode = ExpandMode.All; 1409 footerColumnTwoNavigationSettings.StartLevel = 1; 1410 footerColumnTwoNavigationSettings.StopLevel = 4; 1411 footerColumnTwoNavigationSettings.RootNavigationTag = "footer-column-2"; 1412 var footerColumnTwoNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnTwoNavigationSettings); 1413 1414 if (!string.IsNullOrEmpty(footerColumnTwoNavigation)) 1415 { 1416 <p class="footer__link-header">@Translate("Footer.Column2.Header", "Category two")</p> 1417 @footerColumnTwoNavigation 1418 } 1419 } 1420 </div> 1421 <div class="footer__link"> 1422 @{ 1423 var footerColumnThreeNavigationSettings = new NavigationSettings(); 1424 footerColumnThreeNavigationSettings.ExpandMode = ExpandMode.All; 1425 footerColumnThreeNavigationSettings.StartLevel = 1; 1426 footerColumnThreeNavigationSettings.StopLevel = 4; 1427 footerColumnThreeNavigationSettings.RootNavigationTag = "footer-column-3"; 1428 var footerColumnThreeNavigation = Navigation.RenderNavigation("Navigation/BottomNavigation.cshtml", footerColumnThreeNavigationSettings); 1429 1430 if (!string.IsNullOrEmpty(footerColumnThreeNavigation)) 1431 { 1432 <p class="footer__link-header">@Translate("Footer.Column3.Header", "Category three")</p> 1433 @footerColumnThreeNavigation 1434 } 1435 } 1436 </div> 1437 1438 @if (!string.IsNullOrWhiteSpace(footerLogo) || !string.IsNullOrWhiteSpace(footerDescription)) 1439 { 1440 <div class="footer__description-container"> 1441 @if (!string.IsNullOrWhiteSpace(footerLogo)) 1442 { 1443 <img class="footer__logo" loading="lazy" src="/Admin/Public/GetImage.ashx?Image=@footerLogo&Crop=5&Format=webp&Quality=99&Compression=80&Width=400" alt="Footer logo" width="400" height="200" /> 1444 } 1445 1446 @if (!string.IsNullOrWhiteSpace(footerDescription)) 1447 { 1448 <div class="footer__description"> 1449 @footerDescription 1450 </div> 1451 } 1452 </div> 1453 } 1454 1455 </section> 1456 1457 <section class="footer__copyright"> 1458 1459 <div class="container bottombar__container"> 1460 @{ 1461 var copyRightMenuNavigationSettings = new NavigationSettings(); 1462 copyRightMenuNavigationSettings.ExpandMode = ExpandMode.All; 1463 copyRightMenuNavigationSettings.StartLevel = 1; 1464 copyRightMenuNavigationSettings.StopLevel = 4; 1465 copyRightMenuNavigationSettings.RootNavigationTag = "bottombar"; 1466 var copyRightMenuNavigation = Navigation.RenderNavigation("Navigation/CleanNavigation.cshtml", copyRightMenuNavigationSettings); 1467 1468 if (!string.IsNullOrEmpty(copyRightMenuNavigation)) 1469 { 1470 @copyRightMenuNavigation; 1471 } 1472 } 1473 1474 @if (!string.IsNullOrWhiteSpace(twitter) || !string.IsNullOrWhiteSpace(fb) || !string.IsNullOrWhiteSpace(linkedin) || !string.IsNullOrWhiteSpace(youtube) || !string.IsNullOrWhiteSpace(instagram) || !string.IsNullOrWhiteSpace(pinterest)) 1475 { 1476 <section class="footer__social-container"> 1477 1478 <span class="footer__icon-labels">@Translate("Footer.FollowUs", "Volg ons op:")</span> 1479 1480 <div class="footer__social-icon-container"> 1481 @if (!string.IsNullOrWhiteSpace(twitter)) 1482 { 1483 <a href="@twitter" target="_blank" title="twitter" class="footer__social" rel="noreferrer"><i class="fab fa-twitter"></i></a> 1484 } 1485 @if (!string.IsNullOrWhiteSpace(fb)) 1486 { 1487 <a href="@fb" target="_blank" title="facebook" class="footer__social" rel="noreferrer"><i class="fab fa-facebook-square"></i></a> 1488 } 1489 @if (!string.IsNullOrWhiteSpace(linkedin)) 1490 { 1491 <a href="@linkedin" target="_blank" title="LinkedIn" class="footer__social" rel="noreferrer"><i class="fab fa-linkedin"></i></a> 1492 } 1493 @if (!string.IsNullOrWhiteSpace(youtube)) 1494 { 1495 <a href="@youtube" target="_blank" title="YouTube" class="footer__social" rel="noreferrer"><i class="fab fa-youtube"></i></a> 1496 } 1497 @if (!string.IsNullOrWhiteSpace(instagram)) 1498 { 1499 <a href="@instagram" target="_blank" title="Instagram" class="footer__social" rel="noreferrer"><i class="fab fa-instagram"></i></a> 1500 } 1501 @if (!string.IsNullOrWhiteSpace(pinterest)) 1502 { 1503 <a href="@pinterest" target="_blank" title="Pinterest" class="footer__social" rel="noreferrer"><i class="fab fa-pinterest"></i></a> 1504 } 1505 </div> 1506 1507 </section> 1508 } 1509 </div> 1510 1511 </section> 1512 1513 <section class="footer-paymentoptions" data-paymentmethods="@selectedPaymentLogos"></section> 1514 </footer> 1515 1516 } 1517 1518 @helper RenderFooterUSP(string USP_content, string USP_icon) 1519 { 1520 if (!string.IsNullOrWhiteSpace(USP_content)) 1521 { 1522 var usp_icon_class = (!string.IsNullOrWhiteSpace(USP_icon)) ? USP_icon : "fal fa-check"; 1523 1524 <li class="footer-usp__item"> 1525 <i class="@usp_icon_class footer-usp__icon"></i> 1526 <span>@USP_content</span> 1527 </li> 1528 } 1529 } 1530 1531 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 1532 @using Dynamicweb; 1533 @using Bluedesk.DynamicWeb.ItemTypes; 1534 1535 @{ 1536 bool displayPrices = mc.EcomConfiguration.HidePricesForGuests ? Pageview.User != null : true; 1537 string ShowZeroPrices = (!mc.EcomConfiguration.HideZeroPrices).ToString().ToLower(); 1538 } 1539 1540 <section id="vue-modal" 1541 data-show-prices="@displayPrices.ToString().ToLower()" 1542 data-show-zero-prices="@ShowZeroPrices"> 1543 </section> 1544 1545 1546 1547 <section id="vue-bottom-bar" 1548 data-phonenumber="@formattedPhonenumber" 1549 data-isoffline="@isOffline" 1550 data-emailadress="@emailadress" 1551 data-currentpageid="@BaseSettings.System.HomepageID" 1552 data-enable-login="@enableLogin" 1553 data-enable-shoppingcart="@enableShoppingCart" 1554 data-enable-advancedsearch="@enableAdvancedSearch"></section> 1555 1556 @{ 1557 int SearchPageID = Bluedesk.Tools.DynamicWeb.Generic.PageHelper.GetPageIDByNavigationTag("searchresults", Pageview.AreaID); 1558 var SearchPlaceholder = Translate("Searchbox.PlaceholderValue", "Search..."); 1559 var SearchPlaceholderHover = Translate("Search.PlaceholderValue2", "Zoekt u misschien een ...?"); 1560 var SearchPrefill = Dynamicweb.Context.Current.Request["q"]; 1561 var SearchboxClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "open" : ""; 1562 var SearchtoggleClass = !string.IsNullOrWhiteSpace(SearchPrefill) ? "close" : ""; 1563 } 1564 1565 <section class="bottombar__searchbox__wrapper"> 1566 <form class="searchbox__form" method="get" action="/Default.aspx" style="display: flex; flex-grow: 1;"> 1567 <input type="text" name="q" value="@SearchPrefill" class="searchbox__input" placeholder="@SearchPlaceholder" aria-label="Search through site content" data-placeholder="@SearchPlaceholder" data-hoverplaceholder="@SearchPlaceholderHover" style="display: flex; flex-grow: 1;" /> 1568 <div class="searchbox__button"> 1569 <button type="submit" class="searchbox__form__submit icon icon--medium icon__search input__icon" aria-label="Search"> 1570 <i class="fal fa-search"></i> 1571 </button> 1572 </div> 1573 <input type="hidden" name="ID" value="@SearchPageID" /> 1574 </form> 1575 1576 </section> 1577 1578 @using Dynamicweb.Rendering 1579 @using Dynamicweb.Security.UserManagement 1580 1581 @{ 1582 UserImpersonation impersonationMode = User.ImpersonationMode; 1583 User currentUser = Pageview.User; 1584 User secondaryUser = Pageview.User?.CurrentSecondaryUser ?? null; 1585 bool isImpersonating = Pageview.User?.CurrentSecondaryUser != null; 1586 int impersonationPageId = GetPageIdByNavigationTag("CustomerImpersonation"); 1587 1588 if(isImpersonating && impersonationMode == UserImpersonation.Full) { 1589 currentUser = Pageview.User.CurrentSecondaryUser; 1590 secondaryUser = Pageview.User; 1591 } 1592 } 1593 1594 @if(currentUser != null && currentUser.GetUsersICanSetAsSecondary().Count > 0) 1595 { 1596 <div class="impersonation"> 1597 <div class="impersonation__header"> 1598 <p class="impersonation__title"> 1599 @Translate("Impersonate.Modal.Title", "Impersonation") 1600 @if (isImpersonating) 1601 { 1602 <span title="On" class="impersonation__indicator"></span> 1603 } 1604 </p> 1605 <i class="fal fa-chevron-up impersonation__header-icon"></i> 1606 </div> 1607 <div class="impersonation__body"> 1608 @if (isImpersonating) 1609 { 1610 <p>@string.Format(Translate("Impersonate.CurrentImpersonation", "You ({0}) are currently impersonating {1}"), string.Format("<strong>{0}</strong>", currentUser.UserName), string.Format("<strong>{0}</strong>", secondaryUser.UserName))</p> 1611 1612 <form method="post" name="stopImpersonation"> 1613 <input name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" type="hidden"> 1614 <div class="mt-4"> 1615 <button class="btn btn__primary" type="submit"> 1616 <span class="btn__text">@Translate("Impersonate.StopBtn", "Stop impersonation")</span> 1617 <i class="fas fa-ban btn__icon"></i> 1618 </button> 1619 </div> 1620 </form> 1621 } else { 1622 <p>@Translate("Impersonate.Modal.Content", "Take a look at the list of customers you can impersonate.")</p> 1623 <div class="w-full flex mt-2"> 1624 <a href="Default.aspx?ID=@impersonationPageId" class="btn btn__primary"> 1625 <span class="btn__text">@Translate("Impersonate.Modal.ViewList", "View List")</span> 1626 <i class="fal fa-chevron-right btn__icon"></i> 1627 </a> 1628 </div> 1629 } 1630 </div> 1631 </div> 1632 } 1633 1634 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 1635 @using System; 1636 @using Dynamicweb; 1637 @using Dynamicweb.Ecommerce.CustomerExperienceCenter.Favorites; 1638 1639 @{ 1640 var favListService = new FavoriteListService(); 1641 IEnumerable<FavoriteList> favoriteLists = Pageview.User != null ? favListService.GetLists(Pageview.User.ID) : null; 1642 int favoritelistsPageId = GetPageIdByNavigationTag("CustomerFavorites"); 1643 } 1644 1645 @if(favoriteLists != null && Pageview.User != null) 1646 { 1647 <div class="offcanvas__backdrop" name="favoritelist"></div> 1648 <aside class="offcanvas" data-listcount="@favoriteLists.Count()" name="favoritelist"> 1649 <header class="offcanvas__header"> 1650 <span class="offcanvas__title">@Translate("OffCanvasMenu.FavoritesTitle", "Add to favorite list")</span> 1651 <button class="offcanvas__close" aria-label="@Translate("OffCanvasMenu.Close", "Close menu")"> 1652 <i class="fal fa-times"></i> 1653 </button> 1654 </header> 1655 <div class="offcanvas__body"> 1656 <p>@Translate("OffCanvasMenu.FavoritesContent", "Select the list you want to add the product to")</p> 1657 <ul class="favorites__list"> 1658 @foreach(FavoriteList list in favoriteLists) { 1659 <li class="favorites__list-item" data-listid="@list.ListId"> 1660 <span class="favorites__list-itemname">@list.Name</span> 1661 <i class="fas fa-plus"></i> 1662 </li> 1663 } 1664 </ul> 1665 </div> 1666 <footer class="offcanvas__footer"> 1667 <a href="/Default.aspx?ID=@favoritelistsPageId" class="btn btn__primary"> 1668 <span class="btn__text">@Translate("OffCanvasMenu.FavoritesManageLists", "Manage lists")</span> 1669 <i class="far fa-chevron-right btn__icon"></i> 1670 </a> 1671 </footer> 1672 </aside> 1673 } 1674 1675 1676 1677 <div id="backdrop"></div> 1678 1679 <script src="@polyfillsjs"></script> 1680 <script src="@appbundlejs"></script> 1681 <script defer src="@vuebundlejs"></script> 1682 <script defer src="@appAsyncbundlejs"></script> 1683 1684 @if (font_configuration != null) 1685 { 1686 foreach (var item in font_configuration.Item.ToCodeFirstItem<Bluedesk.DynamicWeb.ItemTypes.Pages.ConfigurationPagesParent>().GetChildConfigs<FontConfiguration>()) 1687 { 1688 if (item["FontLink"] != null) 1689 { 1690 string FontName = item["FontName"].ToString().Replace(" ", ""); 1691 string cssFile = $"files/Templates/Designs/Backyard/GoogleFont/{FontName}/{FontName}.css"; 1692 <link href="@cssFile" rel="stylesheet"> 1693 } 1694 } 1695 } 1696 1697 <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-rqn26AG5Pj86AF4SO72RK5fyefcQ/x32DNQfChxWvbXIyXFePlEktwD18fEz+kQU" crossorigin="anonymous"> 1698 1699 @if (isVisualEditor && IsNotContentManager) 1700 { 1701 1702 <style> 1703 body { 1704 background-color: #f1f1f1; 1705 font-family: 'Barlow', sans-serif; 1706 } 1707 1708 .slidePanel { 1709 position: fixed; 1710 top: 0; 1711 bottom: 0; 1712 min-width: 500px; 1713 box-shadow: -10px 10px 10px rgb(153 153 255 / 10%); 1714 background-color: #FFFFFF; 1715 z-index: 1000; 1716 box-sizing: border-box; 1717 transition: all .5s ease-in; 1718 } 1719 1720 .slidePanel.open { 1721 right: 0; 1722 } 1723 1724 .slidePanel { 1725 right: -500px; 1726 transition: all 0.5s ease-in; 1727 } 1728 1729 .slidePanel__container { 1730 display: flex; 1731 position: relative; 1732 height: 100%; 1733 } 1734 1735 .togglePanelButton { 1736 position: fixed; 1737 top: 50px; 1738 left: 50px; 1739 display: flex; 1740 justify-content: center; 1741 align-items: center; 1742 color: white; 1743 background-color: black; 1744 padding: 0px 25px; 1745 height: 50px; 1746 cursor: pointer; 1747 z-index: 1000; 1748 } 1749 1750 .closeButton { 1751 position: absolute; 1752 display: flex; 1753 top: 25px; 1754 right: 25px; 1755 font-size: 2rem; 1756 text-decoration: none; 1757 color: black; 1758 } 1759 1760 .blur { 1761 filter: blur(4px); 1762 pointer-events: none; 1763 } 1764 1765 .sideMenu { 1766 display: flex; 1767 position: absolute; 1768 align-items: center; 1769 min-height: 100px; 1770 z-index: 1200; 1771 top: 0; 1772 bottom: 0; 1773 right: 100%; 1774 flex-direction: column; 1775 justify-content: center; 1776 } 1777 1778 .sideMenu__link:first-child { 1779 margin-top: 10px; 1780 } 1781 1782 .sideMenu__link { 1783 position: relative; 1784 flex-direction: column; 1785 display: flex; 1786 height: 50px; 1787 width: 50px; 1788 background-color: #f1f1f1; 1789 margin-bottom: 10px; 1790 margin-left: 10px; 1791 margin-right: 10px; 1792 justify-content: space-between; 1793 align-items: center; 1794 font-size: 10px; 1795 padding: 10px; 1796 box-sizing: border-box; 1797 text-decoration: none; 1798 color: rgb(22, 101, 123); 1799 font-size: 24px; 1800 } 1801 .sideMenu__link:hover { 1802 background-color: #c9c9c9; 1803 color: white; 1804 transition: all ease-in 0.5s; 1805 } 1806 .sideMenu__link label { 1807 font-size: 12px; 1808 } 1809 1810 .sideMenu__container { 1811 display: flex; 1812 position: relative; 1813 flex-direction: column; 1814 box-shadow: -10px 10px 10px rgb(153 153 255 / 10%); 1815 background-color: white; 1816 } 1817 1818 .toolbar.close { 1819 display: none; 1820 } 1821 1822 #toolbarVE { 1823 position: fixed !important; 1824 z-index: 100; 1825 background-color: #CCC; 1826 border: 2px solid #F1F1F1; 1827 text-align: center; 1828 right: 0px; 1829 top: 300px; 1830 } 1831 1832 #toolbarVEHeader { 1833 padding: 10px; 1834 cursor: move; 1835 z-index: 10; 1836 background-color: #6e6e6e; 1837 color: #fff; 1838 } 1839 </style> 1840 1841 <div class="toolbarVE" id="toolbar" style="top: 150px; left: auto; width: 70px; position: fixed !important; right: 0px !important; "> 1842 <div id="toolbarVEHeader"> 1843 <a href="javascript:void(0);" onclick="toggleClass('.toolbar', 'close');" style="color: #FFF;"><i class="icon fa-light fa-circle-xmark"></i></a> 1844 </div> 1845 <section class="sideMenu__container"> 1846 <a href="javascript:history.back();" class="sideMenu__link"><i class="icon fa-light fa-reply"></i></a> 1847 <a href="/dashboard-configuration" class="sideMenu__link"><i class="icon fa-light fa-grid-horizontal"></i></a> 1848 <a href="/button-configuration" class="sideMenu__link"><i class="icon fa-light fa-diagram-cells"></i></a> 1849 <a href="/button-configuration" class="sideMenu__link"><i class="icon fa-light fa-link"></i></a> 1850 <a href="/background-configuration" class="sideMenu__link"><i class="icon fa-light fa-paintbrush"></i></a> 1851 <a href="/jumbotron-configuration" class="sideMenu__link"><i class="icon fa-light fa-megaphone"></i></a> 1852 <a href="/theme-configuration-page/theme-01" class="sideMenu__link"><i class="icon fa-light fa-brush"></i></a> 1853 <a href="/font-configuration" class="sideMenu__link"><i class="icon fa-light fa-font"></i></a> 1854 <a href="/device-manager" class="sideMenu__link"><i class="icon fa-light fa-computer"></i></a> 1855 </section> 1856 </div> 1857 1858 <script> 1859 function toggleClass(ClassName, AddedClassName) { 1860 var element = document.querySelector(ClassName); 1861 if (element.classList.contains(AddedClassName)) { 1862 element.classList.remove(AddedClassName); 1863 } else { 1864 element.classList.add(AddedClassName); 1865 } 1866 } 1867 </script> 1868 1869 <script> 1870 //Make the DIV element draggagle: 1871 dragElement(document.getElementById("toolbar")); 1872 1873 function dragElement(elmnt) { 1874 var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; 1875 if (document.getElementById(elmnt.id + "Header")) { 1876 /* if present, the header is where you move the DIV from:*/ 1877 document.getElementById(elmnt.id + "Header").onmousedown = dragMouseDown; 1878 } else { 1879 /* otherwise, move the DIV from anywhere inside the DIV:*/ 1880 elmnt.onmousedown = dragMouseDown; 1881 } 1882 1883 function dragMouseDown(e) { 1884 e = e || window.event; 1885 e.preventDefault(); 1886 // get the mouse cursor position at startup: 1887 pos3 = e.clientX; 1888 pos4 = e.clientY; 1889 document.onmouseup = closeDragElement; 1890 // call a function whenever the cursor moves: 1891 document.onmousemove = elementDrag; 1892 } 1893 1894 function elementDrag(e) { 1895 e = e || window.event; 1896 e.preventDefault(); 1897 // calculate the new cursor position: 1898 pos1 = pos3 - e.clientX; 1899 pos2 = pos4 - e.clientY; 1900 pos3 = e.clientX; 1901 pos4 = e.clientY; 1902 // set the element's new position: 1903 elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; 1904 elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; 1905 } 1906 1907 function closeDragElement() { 1908 /* stop moving when mouse button is released:*/ 1909 document.onmouseup = null; 1910 document.onmousemove = null; 1911 } 1912 } 1913 </script> 1914 1915 @*<section class="slidePanel" id="slidePanel"> 1916 1917 <div class="slidePanel__container"> 1918 1919 <a href="javasciprt:void(0);" onclick="toggleClass('.slidePanel', 'open'); toggleClass('main', 'blur')" class="closeButton"> 1920 <i class="fal fa-circle-xmark"></i> 1921 </a> 1922 1923 1924 <nav class="sideMenu" id="sideMenu"> 1925 1926 <section class="sideMenu__container"> 1927 <a href="javascript:history.back();" class="sideMenu__link"><i class="fal fa-reply"></i></a> 1928 <a href="/dashboard-configuration" class="sideMenu__link"><i class="fal fa-grid-horizontal"></i></a> 1929 <a href="/button-configuration" class="sideMenu__link"><i class="fal fa-diagram-cells"></i></a> 1930 <a href="/button-configuration" class="sideMenu__link"><i class="fal fa-link"></i></a> 1931 <a href="/background-configuration" class="sideMenu__link"><i class="fal fa-paintbrush"></i></a> 1932 <a href="/jumbotron-configuration" class="sideMenu__link"><i class="fal fa-megaphone"></i></a> 1933 <a href="/theme-configuration-page/theme-01" class="sideMenu__link"><i class="fal fa-brush"></i></a> 1934 <a href="/font-configuration" class="sideMenu__link"><i class="fal fa-font"></i></a> 1935 <a href="/device-manager" class="sideMenu__link"><i class="fal fa-computer"></i></a> 1936 </section> 1937 </nav> 1938 1939 </div> 1940 1941 </section>*@ 1942 1943 <script src="https://kit.fontawesome.com/a46eca85e2.js" crossorigin="anonymous"></script> 1944 1945 } 1946 1947 1948 </body> 1949 </html> 1950