Error compiling template "Designs/PacificBag/_parsed/leftMenu.parsed.cshtml"
Line 1246: 'Group.GetGroupById(string)' is obsolete: 'Use Services.ProductGroups.GetGroup instead.'
Line 2856: There is no argument given that corresponds to the required formal parameter 'image' of 'RazorEngine_f7e52346568740b39a8d7ccb944bb98a.PageTitle(string, string)'

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 2 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 20 #line 3 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 21 using System.Linq; 22 23 #line default 24 #line hidden 25 26 #line 527 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 27 using Dynamicweb.Rendering; 28 29 #line default 30 #line hidden 31 32 #line 5 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 33 using Dynamicweb.Content; 34 35 #line default 36 #line hidden 37 38 #line 93 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 39 using System.Text.RegularExpressions; 40 41 #line default 42 #line hidden 43 44 #line 7 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 45 using System.Web.UI.HtmlControls; 46 47 #line default 48 #line hidden 49 50 #line 91 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 51 using System.Runtime; 52 53 #line default 54 #line hidden 55 56 #line 94 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 57 using Dynamicweb.Core; 58 59 #line default 60 #line hidden 61 62 63 public class RazorEngine_f7e52346568740b39a8d7ccb944bb98a : RazorTemplateBase<RazorTemplateModel<Template>> { 64 65 #line hidden 66 67 #line 8 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 68 69 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "PacificBag") 70 { 71 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 72 string currDevice = currentPageview.Device.ToString(); 73 string alternativeImage = !String.IsNullOrEmpty(currentPageview.Area.Item["NoImage"].ToString()) ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg"; 74 string widthString = ""; 75 string heightString = ""; 76 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 77 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 78 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 79 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 80 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 81 82 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 83 { 84 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 85 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 86 } 87 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 88 { 89 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 90 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 91 } 92 93 if (getImageWidth != 0) 94 { 95 widthString = "&amp;Width=" + getImageWidth; 96 } 97 if (getImageHeight != 0) 98 { 99 heightString = "&amp;Height=" + getImageHeight; 100 } 101 102 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 103 return output; 104 } 105 106 public static string GetImageWhiteSpace(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "PacificBag") 107 { 108 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 109 string currDevice = currentPageview.Device.ToString(); 110 string alternativeImage = "/Files/Templates/Designs/" + designName + "/images/white80.png"; 111 string widthString = ""; 112 string heightString = ""; 113 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 114 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 115 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 116 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 117 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 118 119 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 120 { 121 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 122 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 123 } 124 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 125 { 126 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 127 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 128 } 129 130 if (getImageWidth != 0) 131 { 132 widthString = "&amp;Width=" + getImageWidth; 133 } 134 if (getImageHeight != 0) 135 { 136 heightString = "&amp;Height=" + getImageHeight; 137 } 138 139 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 140 return output; 141 } 142 143 #line default 144 #line hidden 145 146 147 #line 83 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 148 149 public string GetCurrentUrl() 150 { 151 string currentUrl = Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString() + "://" + Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString() + Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value.ToString(); 152 153 return currentUrl; 154 } 155 156 #line default 157 #line hidden 158 159 160 #line 97 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 161 public RazorEngine.Templating.TemplateWriter OgMeta(string designName) 162 { 163 #line default 164 #line hidden 165 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 166 167 #line 98 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 168 169 if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["ProductID"])) 170 { 171 172 173 #line default 174 #line hidden 175 176 #line 101 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 177 WriteTo(__razor_helper_writer, SnippetStart("OGMeta")); 178 179 180 #line default 181 #line hidden 182 WriteLiteralTo(__razor_helper_writer, "<meta"); 183 184 WriteLiteralTo(__razor_helper_writer, " property=\"og:title\""); 185 186 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\'", 5655), Tuple.Create("\'", 5684) 187 188 #line 101 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 189 , Tuple.Create(Tuple.Create("", 5665), Tuple.Create<System.Object, System.Int32>(GetString("Title") 190 191 #line default 192 #line hidden 193 , 5665), false) 194 ); 195 196 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 197 198 WriteLiteralTo(__razor_helper_writer, " <meta"); 199 200 WriteLiteralTo(__razor_helper_writer, " property=\"og:image\""); 201 202 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\'", 5719), Tuple.Create("\'", 5932) 203 204 #line 102 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 205 , Tuple.Create(Tuple.Create("", 5729), Tuple.Create<System.Object, System.Int32>(Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString() 206 207 #line default 208 #line hidden 209 , 5729), false) 210 , Tuple.Create(Tuple.Create("", 5804), Tuple.Create("://", 5804), true) 211 212 #line 102 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 213 , Tuple.Create(Tuple.Create("", 5807), Tuple.Create<System.Object, System.Int32>(Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString() 214 215 #line default 216 #line hidden 217 , 5807), false) 218 , Tuple.Create(Tuple.Create("", 5880), Tuple.Create("/Files/Templates/Designs/", 5880), true) 219 220 #line 102 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 221 , Tuple.Create(Tuple.Create("", 5905), Tuple.Create<System.Object, System.Int32>(designName 222 223 #line default 224 #line hidden 225 , 5905), false) 226 , Tuple.Create(Tuple.Create("", 5916), Tuple.Create("/images/logo.png", 5916), true) 227 ); 228 229 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 230 231 WriteLiteralTo(__razor_helper_writer, " <meta"); 232 233 WriteLiteralTo(__razor_helper_writer, " property=\"og:site_name\""); 234 235 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\'", 5973), Tuple.Create("\'", 6018) 236 237 #line 103 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 238 , Tuple.Create(Tuple.Create("", 5983), Tuple.Create<System.Object, System.Int32>(GetString("Item.Area.CompanyName") 239 240 #line default 241 #line hidden 242 , 5983), false) 243 ); 244 245 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 246 247 WriteLiteralTo(__razor_helper_writer, " <meta"); 248 249 WriteLiteralTo(__razor_helper_writer, " property=\"og:url\""); 250 251 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\'", 6053), Tuple.Create("\'", 6287) 252 253 #line 104 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 254 , Tuple.Create(Tuple.Create("", 6063), Tuple.Create<System.Object, System.Int32>(Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString() 255 256 #line default 257 #line hidden 258 , 6063), false) 259 , Tuple.Create(Tuple.Create("", 6138), Tuple.Create("://", 6138), true) 260 261 #line 104 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 262 , Tuple.Create(Tuple.Create("", 6141), Tuple.Create<System.Object, System.Int32>(Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString() 263 264 #line default 265 #line hidden 266 , 6141), false) 267 268 #line 104 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 269 , Tuple.Create(Tuple.Create("", 6214), Tuple.Create<System.Object, System.Int32>(Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value.ToString() 270 271 #line default 272 #line hidden 273 , 6214), false) 274 ); 275 276 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 277 278 WriteLiteralTo(__razor_helper_writer, " <meta"); 279 280 WriteLiteralTo(__razor_helper_writer, " property=\"og:description\""); 281 282 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\'", 6330), Tuple.Create("\'", 6381) 283 284 #line 105 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 285 , Tuple.Create(Tuple.Create("", 6340), Tuple.Create<System.Object, System.Int32>(StripHtml(GetString("Meta.Description")) 286 287 #line default 288 #line hidden 289 , 6340), false) 290 ); 291 292 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 293 294 WriteLiteralTo(__razor_helper_writer, " <meta"); 295 296 WriteLiteralTo(__razor_helper_writer, " property=\"og:type\""); 297 298 WriteLiteralTo(__razor_helper_writer, " content=\"article\""); 299 300 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 301 302 WriteLiteralTo(__razor_helper_writer, " <meta"); 303 304 WriteLiteralTo(__razor_helper_writer, " property=\"og:locale\""); 305 306 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\'", 6472), Tuple.Create("\'", 6574) 307 308 #line 107 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 309 , Tuple.Create(Tuple.Create("", 6482), Tuple.Create<System.Object, System.Int32>(Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString().Replace("-", "_") 310 311 #line default 312 #line hidden 313 , 6482), false) 314 ); 315 316 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 317 318 319 #line 108 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 320 321 322 #line default 323 #line hidden 324 325 #line 108 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 326 WriteTo(__razor_helper_writer, SnippetEnd("OGMeta")); 327 328 329 #line default 330 #line hidden 331 332 #line 108 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 333 334 } 335 336 337 #line default 338 #line hidden 339 }); 340 341 #line 110 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 342 } 343 #line default 344 #line hidden 345 346 347 #line 111 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 348 public RazorEngine.Templating.TemplateWriter HtmlHead(string designName) 349 { 350 #line default 351 #line hidden 352 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 353 354 #line 112 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 355 356 string designFolder = GetString("Template:DesignBaseUrl"); 357 string robots = ""; 358 string ipCountry = Dna.IP.Frontend.GetCountryCode(); 359 var googleReCaptchaSiteKey = GetString("Item.Area.GoogleReCaptchaSiteKey"); 360 string countryCodeModule = !string.IsNullOrEmpty(ipCountry) ? ipCountry : "US"; 361 string userCountryCode = (Pageview.User != null && !string.IsNullOrEmpty(Pageview.User.Country)) ? Pageview.User.Country : ipCountry; 362 string userState = Pageview.User != null ? Pageview.User.State : string.Empty; 363 string userAccountsNumber = (System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString(); 364 robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoIndex")) ? CommaSplittedString(robots, "noindex") : ""; 365 robots += (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoFollow")) ? CommaSplittedString(robots, "nofollow") : ""; 366 367 368 369 #line default 370 #line hidden 371 WriteLiteralTo(__razor_helper_writer, @" <head> 372 373 374 375 <!-- Google Tag Manager --> 376 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 377 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 378 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 379 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 380 })(window,document,'script','dataLayer','GTM-W3WZTZK');</script> 381 <!-- End Google Tag Manager --> 382 383 384 <title>"); 385 386 387 #line 137 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 388 WriteTo(__razor_helper_writer, GetValue("Title")); 389 390 391 #line default 392 #line hidden 393 WriteLiteralTo(__razor_helper_writer, "</title>\r\n <meta"); 394 395 WriteLiteralTo(__razor_helper_writer, " http-equiv=\"content-type\""); 396 397 WriteLiteralTo(__razor_helper_writer, " content=\"text/html; charset=utf-8\""); 398 399 WriteLiteralTo(__razor_helper_writer, ">\r\n <meta"); 400 401 WriteLiteralTo(__razor_helper_writer, " name=\"viewport\""); 402 403 WriteLiteralTo(__razor_helper_writer, " content=\"initial-scale=1.0, width=device-width, user-scalable=no\""); 404 405 WriteLiteralTo(__razor_helper_writer, ">\r\n <meta"); 406 407 WriteLiteralTo(__razor_helper_writer, " http-equiv=\"X-UA-Compatible\""); 408 409 WriteLiteralTo(__razor_helper_writer, " content=\"IE=edge\""); 410 411 WriteLiteralTo(__razor_helper_writer, ">\r\n <meta"); 412 413 WriteLiteralTo(__razor_helper_writer, " name=\"SKYPE_TOOLBAR\""); 414 415 WriteLiteralTo(__razor_helper_writer, " content=\"SKYPE_TOOLBAR_PARSER_COMPATIBLE\""); 416 417 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 418 419 420 #line 142 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 421 422 423 #line default 424 #line hidden 425 426 #line 142 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 427 if (!string.IsNullOrEmpty(robots)) 428 { 429 430 431 #line default 432 #line hidden 433 WriteLiteralTo(__razor_helper_writer, " <meta"); 434 435 WriteLiteralTo(__razor_helper_writer, " name=\"robots\""); 436 437 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 8430), Tuple.Create("\"", 8447) 438 439 #line 144 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 440 , Tuple.Create(Tuple.Create("", 8440), Tuple.Create<System.Object, System.Int32>(robots 441 442 #line default 443 #line hidden 444 , 8440), false) 445 ); 446 447 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 448 449 450 #line 145 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 451 } 452 453 454 #line default 455 #line hidden 456 WriteLiteralTo(__razor_helper_writer, " "); 457 458 459 #line 146 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 460 WriteTo(__razor_helper_writer, OgMeta(designName)); 461 462 463 #line default 464 #line hidden 465 WriteLiteralTo(__razor_helper_writer, "\r\n"); 466 467 WriteLiteralTo(__razor_helper_writer, " "); 468 469 470 #line 147 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 471 WriteTo(__razor_helper_writer, RenderSnippet("OGMeta")); 472 473 474 #line default 475 #line hidden 476 WriteLiteralTo(__razor_helper_writer, "\r\n"); 477 478 WriteLiteralTo(__razor_helper_writer, " "); 479 480 481 #line 148 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 482 WriteTo(__razor_helper_writer, GetString("MetaTags")); 483 484 485 #line default 486 #line hidden 487 WriteLiteralTo(__razor_helper_writer, "\r\n"); 488 489 WriteLiteralTo(__razor_helper_writer, " "); 490 491 492 #line 149 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 493 WriteTo(__razor_helper_writer, GetString("CopyRightNotice")); 494 495 496 #line default 497 #line hidden 498 WriteLiteralTo(__razor_helper_writer, "\r\n"); 499 500 WriteLiteralTo(__razor_helper_writer, " "); 501 502 503 #line 150 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 504 WriteTo(__razor_helper_writer, GetString("Stylesheets")); 505 506 507 #line default 508 #line hidden 509 WriteLiteralTo(__razor_helper_writer, "\r\n"); 510 511 WriteLiteralTo(__razor_helper_writer, " "); 512 513 514 #line 151 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 515 WriteTo(__razor_helper_writer, RenderSnippet("outScripts")); 516 517 518 #line default 519 #line hidden 520 WriteLiteralTo(__razor_helper_writer, "\r\n"); 521 522 WriteLiteralTo(__razor_helper_writer, " "); 523 524 525 #line 152 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 526 WriteTo(__razor_helper_writer, GetString("Javascripts")); 527 528 529 #line default 530 #line hidden 531 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n <link"); 532 533 WriteLiteralTo(__razor_helper_writer, " rel=\"shortcut icon\""); 534 535 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 8707), Tuple.Create("\"", 8747) 536 537 #line 154 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 538 , Tuple.Create(Tuple.Create("", 8714), Tuple.Create<System.Object, System.Int32>(designFolder 539 540 #line default 541 #line hidden 542 , 8714), false) 543 , Tuple.Create(Tuple.Create("", 8729), Tuple.Create("images/favicon.ico", 8729), true) 544 ); 545 546 WriteLiteralTo(__razor_helper_writer, " type=\"image/x-icon\""); 547 548 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 549 550 551 #line 155 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 552 553 554 #line default 555 #line hidden 556 557 #line 155 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 558 559 var minify = GetBoolean("Item.Area.Minify_CSS_And_JavaScript"); 560 var styleBundle = Dna.Optimizer.Renderer.RenderStyles(string.Format("{0}css", designFolder), "-main-styles", null, new[] { "exceptions" }, minify, true, true); 561 var scriptBundle = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js", designFolder), "-main-scripts", null, new[] { "exceptions" }, minify, true, true); 562 563 564 #line default 565 #line hidden 566 WriteLiteralTo(__razor_helper_writer, "\r\n <link"); 567 568 WriteLiteralTo(__razor_helper_writer, " rel=\"stylesheet\""); 569 570 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 9219), Tuple.Create("\"", 9238) 571 572 #line 160 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 573 , Tuple.Create(Tuple.Create("", 9226), Tuple.Create<System.Object, System.Int32>(styleBundle 574 575 #line default 576 #line hidden 577 , 9226), false) 578 ); 579 580 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 581 582 583 #line 161 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 584 585 586 #line default 587 #line hidden 588 589 #line 161 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 590 if (googleReCaptchaSiteKey.IsNotNullOrEmpty()) 591 { 592 593 594 #line default 595 #line hidden 596 WriteLiteralTo(__razor_helper_writer, " <script"); 597 598 WriteLiteralTo(__razor_helper_writer, " src=\"https://www.google.com/recaptcha/api.js\""); 599 600 WriteLiteralTo(__razor_helper_writer, " async=\"\""); 601 602 WriteLiteralTo(__razor_helper_writer, " defer=\"\""); 603 604 WriteLiteralTo(__razor_helper_writer, "></script> \r\n"); 605 606 607 #line 164 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 608 } 609 610 611 #line default 612 #line hidden 613 WriteLiteralTo(__razor_helper_writer, " <script"); 614 615 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 9411), Tuple.Create("\"", 9430) 616 617 #line 165 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 618 , Tuple.Create(Tuple.Create("", 9417), Tuple.Create<System.Object, System.Int32>(scriptBundle 619 620 #line default 621 #line hidden 622 , 9417), false) 623 ); 624 625 WriteLiteralTo(__razor_helper_writer, "></script>\r\n"); 626 627 WriteLiteralTo(__razor_helper_writer, " "); 628 629 630 #line 166 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 631 WriteTo(__razor_helper_writer, SnippetStart("outScripts")); 632 633 634 #line default 635 #line hidden 636 WriteLiteralTo(__razor_helper_writer, " "); 637 638 639 #line 166 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 640 WriteTo(__razor_helper_writer, SnippetEnd("outScripts")); 641 642 643 #line default 644 #line hidden 645 WriteLiteralTo(__razor_helper_writer, "\r\n <!--[if lte IE 9]>\r\n <script src=\"//html5shim.googlecode.com/svn/trunk" + 646 "/html5.js\"></script>\r\n <script src=\"//cdnjs.cloudflare.com/ajax/libs/respon" + 647 "d.js/1.1.0/respond.min.js\"></script>\r\n <![endif]-->\r\n <script>\r\n"); 648 649 WriteLiteralTo(__razor_helper_writer, " "); 650 651 652 #line 172 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 653 WriteTo(__razor_helper_writer, RenderSnippet("jsVariables")); 654 655 656 #line default 657 #line hidden 658 WriteLiteralTo(__razor_helper_writer, "\r\n"); 659 660 WriteLiteralTo(__razor_helper_writer, " "); 661 662 663 #line 173 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 664 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 665 666 667 #line default 668 #line hidden 669 WriteLiteralTo(__razor_helper_writer, " "); 670 671 672 #line 173 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 673 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 674 675 676 #line default 677 #line hidden 678 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n var obj_pages = {\r\n str_miniCart: \'"); 679 680 681 #line 176 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 682 WriteTo(__razor_helper_writer, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.MiniCart"))); 683 684 685 #line default 686 #line hidden 687 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_login: \'"); 688 689 690 #line 177 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 691 WriteTo(__razor_helper_writer, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Login"))); 692 693 694 #line default 695 #line hidden 696 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_globalTranslates: \'"); 697 698 699 #line 178 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 700 WriteTo(__razor_helper_writer, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.GlobalTranslates"))); 701 702 703 #line default 704 #line hidden 705 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_contactPopup : \'"); 706 707 708 #line 179 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 709 WriteTo(__razor_helper_writer, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.ContactUs_Popup"))); 710 711 712 #line default 713 #line hidden 714 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_cartInformation: \'"); 715 716 717 #line 180 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 718 WriteTo(__razor_helper_writer, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Cart_Information"))); 719 720 721 #line default 722 #line hidden 723 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_typeAhead : \'"); 724 725 726 #line 181 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 727 WriteTo(__razor_helper_writer, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.TypeAhead"))); 728 729 730 #line default 731 #line hidden 732 WriteLiteralTo(__razor_helper_writer, "\'\r\n },\r\n obj_user = {\r\n str_country: \'"); 733 734 735 #line 184 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 736 WriteTo(__razor_helper_writer, userCountryCode); 737 738 739 #line default 740 #line hidden 741 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_state: \'"); 742 743 744 #line 185 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 745 WriteTo(__razor_helper_writer, userState); 746 747 748 #line default 749 #line hidden 750 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_accountsNumber:\'"); 751 752 753 #line 186 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 754 WriteTo(__razor_helper_writer, userAccountsNumber); 755 756 757 #line default 758 #line hidden 759 WriteLiteralTo(__razor_helper_writer, "\'\r\n },\r\n obj_settings = {\r\n str_contactTimeout: \'"); 760 761 762 #line 189 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 763 WriteTo(__razor_helper_writer, GetString("Item.Area.Time")); 764 765 766 #line default 767 #line hidden 768 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_cartQty: \'"); 769 770 771 #line 190 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 772 WriteTo(__razor_helper_writer, GetString("Ecom:Order.OrderLines.TotalProductQuantity")); 773 774 775 #line default 776 #line hidden 777 WriteLiteralTo(__razor_helper_writer, "\'\r\n },\r\n obj_translates = {\r\n str_seeAll: \'"); 778 779 780 #line 193 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 781 WriteTo(__razor_helper_writer, Translate("seeAllThe", "See all the")); 782 783 784 #line default 785 #line hidden 786 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_results: \'"); 787 788 789 #line 194 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 790 WriteTo(__razor_helper_writer, Translate("results", "results")); 791 792 793 #line default 794 #line hidden 795 WriteLiteralTo(__razor_helper_writer, "\',\r\n str_invalidAddress: \'"); 796 797 798 #line 195 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 799 WriteTo(__razor_helper_writer, Translate("invalidAddress", "Something isn’t correct with your address. Please check that each *required line has appropriate information in it, e.g. Address line 1 has an actual street address.")); 800 801 802 #line default 803 #line hidden 804 WriteLiteralTo(__razor_helper_writer, "\'\r\n };\r\n $(function () {\r\n"); 805 806 WriteLiteralTo(__razor_helper_writer, " "); 807 808 809 #line 198 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 810 WriteTo(__razor_helper_writer, UserDoesNotExist()); 811 812 813 #line default 814 #line hidden 815 WriteLiteralTo(__razor_helper_writer, "\r\n"); 816 817 WriteLiteralTo(__razor_helper_writer, " "); 818 819 820 #line 199 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 821 WriteTo(__razor_helper_writer, RenderSnippet("jsOnLoadVariables")); 822 823 824 #line default 825 #line hidden 826 WriteLiteralTo(__razor_helper_writer, "\r\n"); 827 828 WriteLiteralTo(__razor_helper_writer, " "); 829 830 831 #line 200 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 832 WriteTo(__razor_helper_writer, SnippetStart("jsOnLoadVariables")); 833 834 835 #line default 836 #line hidden 837 WriteLiteralTo(__razor_helper_writer, " "); 838 839 840 #line 200 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 841 WriteTo(__razor_helper_writer, SnippetEnd("jsOnLoadVariables")); 842 843 844 #line default 845 #line hidden 846 WriteLiteralTo(__razor_helper_writer, "\r\n"); 847 848 WriteLiteralTo(__razor_helper_writer, " "); 849 850 851 #line 201 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 852 WriteTo(__razor_helper_writer, RenderSnippet("jsOnLoad")); 853 854 855 #line default 856 #line hidden 857 WriteLiteralTo(__razor_helper_writer, "\r\n"); 858 859 WriteLiteralTo(__razor_helper_writer, " "); 860 861 862 #line 202 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 863 WriteTo(__razor_helper_writer, SnippetStart("jsOnLoad")); 864 865 866 #line default 867 #line hidden 868 WriteLiteralTo(__razor_helper_writer, " "); 869 870 871 #line 202 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 872 WriteTo(__razor_helper_writer, SnippetEnd("jsOnLoad")); 873 874 875 #line default 876 #line hidden 877 WriteLiteralTo(__razor_helper_writer, "\r\n });\r\n"); 878 879 880 #line 204 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 881 882 883 #line default 884 #line hidden 885 886 #line 204 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 887 if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalytics"))) 888 { 889 890 891 #line default 892 #line hidden 893 WriteLiteralTo(__razor_helper_writer, " "); 894 895 WriteLiteralTo(__razor_helper_writer, @" 896 (function (i, s, o, g, r, a, m) { 897 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 898 (i[r].q = i[r].q || []).push(arguments) 899 }, i[r].l = 1 * new Date(); a = s.createElement(o), 900 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 901 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 902 903 ga('create', '"); 904 905 906 #line 214 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 907 WriteTo(__razor_helper_writer, GetString("Item.Area.GoogleAnalytics")); 908 909 910 #line default 911 #line hidden 912 WriteLiteralTo(__razor_helper_writer, "\', \'auto\');\r\n ga(\'send\', \'pageview\');\r\n "); 913 914 WriteLiteralTo(__razor_helper_writer, "\r\n"); 915 916 917 #line 217 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 918 } 919 920 921 #line default 922 #line hidden 923 WriteLiteralTo(__razor_helper_writer, " </script>\r\n"); 924 925 926 #line 219 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 927 928 929 #line default 930 #line hidden 931 932 #line 219 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 933 934 var googleAdwords = GetString("Item.Area.GoogleAdwords"); 935 936 937 #line default 938 #line hidden 939 WriteLiteralTo(__razor_helper_writer, "\r\n"); 940 941 942 #line 222 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 943 944 945 #line default 946 #line hidden 947 948 #line 222 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 949 if (!string.IsNullOrWhiteSpace(googleAdwords)) 950 { 951 952 953 #line default 954 #line hidden 955 WriteLiteralTo(__razor_helper_writer, " <script"); 956 957 WriteLiteralTo(__razor_helper_writer, " async=\"\""); 958 959 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 12515), Tuple.Create("\"", 12579) 960 , Tuple.Create(Tuple.Create("", 12521), Tuple.Create("https://www.googletagmanager.com/gtag/js?id=", 12521), true) 961 962 #line 224 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 963 , Tuple.Create(Tuple.Create("", 12565), Tuple.Create<System.Object, System.Int32>(googleAdwords 964 965 #line default 966 #line hidden 967 , 12565), false) 968 ); 969 970 WriteLiteralTo(__razor_helper_writer, "></script>\r\n"); 971 972 WriteLiteralTo(__razor_helper_writer, " <script>\r\n window.dataLayer = window.dataLayer || [];\r\n funct" + 973 "ion gtag(){dataLayer.push(arguments);}\r\n gtag(\'js\', new Date());\r\n \r\n " + 974 " gtag(\'config\', \'"); 975 976 977 #line 230 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 978 WriteTo(__razor_helper_writer, googleAdwords); 979 980 981 #line default 982 #line hidden 983 WriteLiteralTo(__razor_helper_writer, "\');\r\n </script>\r\n"); 984 985 986 #line 232 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 987 } 988 989 990 #line default 991 #line hidden 992 WriteLiteralTo(__razor_helper_writer, " \r\n"); 993 994 WriteLiteralTo(__razor_helper_writer, " "); 995 996 997 #line 234 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 998 WriteTo(__razor_helper_writer, RenderSnippet("eCommerceTracking")); 999 1000 1001 #line default 1002 #line hidden 1003 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1004 1005 WriteLiteralTo(__razor_helper_writer, " "); 1006 1007 1008 #line 235 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1009 WriteTo(__razor_helper_writer, SnippetStart("eCommerceTracking")); 1010 1011 1012 #line default 1013 #line hidden 1014 WriteLiteralTo(__razor_helper_writer, " "); 1015 1016 1017 #line 235 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1018 WriteTo(__razor_helper_writer, SnippetEnd("eCommerceTracking")); 1019 1020 1021 #line default 1022 #line hidden 1023 WriteLiteralTo(__razor_helper_writer, "\r\n </head>\r\n"); 1024 1025 1026 #line 237 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1027 1028 1029 #line default 1030 #line hidden 1031 }); 1032 1033 #line 237 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1034 } 1035 #line default 1036 #line hidden 1037 1038 1039 #line 238 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1040 public RazorEngine.Templating.TemplateWriter RenderPageImageVideo(string image, string video) 1041 { 1042 #line default 1043 #line hidden 1044 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1045 1046 #line 239 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1047 1048 if (!String.IsNullOrWhiteSpace(video)) 1049 { 1050 image = "/Admin/Public/GetImage.ashx?Image=" + image + "&Height=1080&Crop=5"; 1051 1052 1053 1054 #line default 1055 #line hidden 1056 WriteLiteralTo(__razor_helper_writer, " <section"); 1057 1058 WriteLiteralTo(__razor_helper_writer, " id=\"topMediaContainer\""); 1059 1060 WriteLiteralTo(__razor_helper_writer, " data-image=\""); 1061 1062 1063 #line 244 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1064 WriteTo(__razor_helper_writer, image); 1065 1066 1067 #line default 1068 #line hidden 1069 WriteLiteralTo(__razor_helper_writer, "\""); 1070 1071 WriteLiteralTo(__razor_helper_writer, " data-video=\""); 1072 1073 1074 #line 244 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1075 WriteTo(__razor_helper_writer, video); 1076 1077 1078 #line default 1079 #line hidden 1080 WriteLiteralTo(__razor_helper_writer, "\""); 1081 1082 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1083 1084 1085 #line 245 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1086 1087 1088 #line default 1089 #line hidden 1090 1091 #line 245 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1092 if (!String.IsNullOrWhiteSpace(image)) 1093 { 1094 1095 1096 #line default 1097 #line hidden 1098 WriteLiteralTo(__razor_helper_writer, " <img"); 1099 1100 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 13330), Tuple.Create("\"", 13342) 1101 1102 #line 247 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1103 , Tuple.Create(Tuple.Create("", 13336), Tuple.Create<System.Object, System.Int32>(image 1104 1105 #line default 1106 #line hidden 1107 , 13336), false) 1108 ); 1109 1110 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 1111 1112 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1113 1114 1115 #line 248 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1116 } 1117 1118 1119 #line default 1120 #line hidden 1121 WriteLiteralTo(__razor_helper_writer, " "); 1122 1123 1124 #line 249 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1125 if (!String.IsNullOrWhiteSpace(video)) 1126 { 1127 1128 1129 #line default 1130 #line hidden 1131 WriteLiteralTo(__razor_helper_writer, " <span"); 1132 1133 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 1134 1135 WriteLiteralTo(__razor_helper_writer, ">"); 1136 1137 1138 #line 251 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1139 WriteTo(__razor_helper_writer, video); 1140 1141 1142 #line default 1143 #line hidden 1144 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 1145 1146 1147 #line 252 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1148 } 1149 1150 1151 #line default 1152 #line hidden 1153 WriteLiteralTo(__razor_helper_writer, " </section>\r\n"); 1154 1155 1156 #line 254 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1157 1158 1159 #line default 1160 #line hidden 1161 1162 #line 254 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1163 WriteTo(__razor_helper_writer, SnippetStart("jsOnLoad")); 1164 1165 1166 #line default 1167 #line hidden 1168 1169 #line 254 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1170 1171 1172 1173 #line default 1174 #line hidden 1175 WriteLiteralTo(__razor_helper_writer, " "); 1176 1177 WriteLiteralTo(__razor_helper_writer, "onLoadTopMediaContainer(\""); 1178 1179 1180 #line 255 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1181 WriteTo(__razor_helper_writer, GetString("Item.Page.ButtonText")); 1182 1183 1184 #line default 1185 #line hidden 1186 WriteLiteralTo(__razor_helper_writer, "\", \""); 1187 1188 1189 #line 255 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1190 WriteTo(__razor_helper_writer, GetString("Item.Page.ButtonLink")); 1191 1192 1193 #line default 1194 #line hidden 1195 WriteLiteralTo(__razor_helper_writer, "\");\r\n"); 1196 1197 1198 #line 256 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1199 1200 1201 #line default 1202 #line hidden 1203 1204 #line 256 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1205 WriteTo(__razor_helper_writer, SnippetEnd("jsOnLoad")); 1206 1207 1208 #line default 1209 #line hidden 1210 1211 #line 256 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1212 1213 } 1214 1215 1216 #line default 1217 #line hidden 1218 }); 1219 1220 #line 258 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1221 } 1222 #line default 1223 #line hidden 1224 1225 1226 #line 260 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1227 public RazorEngine.Templating.TemplateWriter RenderPageHeading(string heading, string subHeading, string image, string video, bool leftAlign) 1228 { 1229 #line default 1230 #line hidden 1231 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1232 1233 #line 261 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1234 1235 image = !String.IsNullOrWhiteSpace(image) ? "/Admin/Public/GetImage.ashx?Image=" + image + "&Height=1080&Crop=5" : ""; 1236 string topMediaContainerClass = GetBoolean("Item.Page.BigHeader") ? "bigHeader" : String.Empty; 1237 topMediaContainerClass += GetBoolean("Item.Page.NoWhiteText") ? " noWhiteText" : String.Empty; 1238 var request = System.Web.HttpContext.Current.Request.Params; 1239 string buttonText = GetString("Item.Page.ButtonText"), 1240 buttonLink = GetString("Item.Page.ButtonLink"); 1241 1242 // Group Image - Banner 1243 var isGroupBanner = false; 1244 if (request["groupid"] != null) 1245 { 1246 var group = Dynamicweb.Ecommerce.Products.Group.GetGroupById(request["groupid"].ToString()); 1247 1248 if(group != null){ 1249 if (group.ParentGroups.Count > 0) 1250 { 1251 group = group.ParentGroups[0]; 1252 } 1253 1254 var groupName = group.Name; 1255 var groupImage = !string.IsNullOrWhiteSpace(group.LargeImage) ? group.LargeImage : group.SmallImage; 1256 var groupDescription = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerDescription").Value.ToString(); 1257 var bannerTextColor = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerTextColor").Value.ToString(); 1258 var bannerTextBackgroundColor = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerTextBackgroundColor").Value.ToString(); 1259 var bannerTextBackgroundOpacity = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerTextBackgroundOpacity").Value.ToString(); 1260 1261 if (!string.IsNullOrWhiteSpace(groupImage)) 1262 { 1263 isGroupBanner = true; 1264 image = "/Admin/Public/GetImage.ashx?Image=/Files" + groupImage + "&Height=1080&Crop=5"; 1265 1266 1267 1268 #line default 1269 #line hidden 1270 WriteLiteralTo(__razor_helper_writer, " <section"); 1271 1272 WriteLiteralTo(__razor_helper_writer, " id=\"pageHeadingContainer\""); 1273 1274 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 15636), Tuple.Create("\"", 15679) 1275 , Tuple.Create(Tuple.Create("", 15644), Tuple.Create("groupBanner", 15644), true) 1276 1277 #line 293 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1278 , Tuple.Create(Tuple.Create(" ", 15655), Tuple.Create<System.Object, System.Int32>(topMediaContainerClass 1279 1280 #line default 1281 #line hidden 1282 , 15656), false) 1283 ); 1284 1285 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 15680), Tuple.Create("\"", 15718) 1286 , Tuple.Create(Tuple.Create("", 15688), Tuple.Create("background-image:url(\'", 15688), true) 1287 1288 #line 293 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1289 , Tuple.Create(Tuple.Create("", 15710), Tuple.Create<System.Object, System.Int32>(image 1290 1291 #line default 1292 #line hidden 1293 , 15710), false) 1294 , Tuple.Create(Tuple.Create("", 15716), Tuple.Create("\')", 15716), true) 1295 ); 1296 1297 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1298 1299 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-md-6 col-md-offset-3\""); 1300 1301 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1302 1303 WriteLiteralTo(__razor_helper_writer, " id=\"bannerTextBackground\""); 1304 1305 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 15828), Tuple.Create("\"", 15913) 1306 , Tuple.Create(Tuple.Create("", 15836), Tuple.Create("background:", 15836), true) 1307 1308 #line 295 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1309 , Tuple.Create(Tuple.Create(" ", 15847), Tuple.Create<System.Object, System.Int32>(bannerTextBackgroundColor 1310 1311 #line default 1312 #line hidden 1313 , 15848), false) 1314 , Tuple.Create(Tuple.Create("", 15874), Tuple.Create(";", 15874), true) 1315 , Tuple.Create(Tuple.Create(" ", 15875), Tuple.Create("opacity:", 15876), true) 1316 1317 #line 295 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1318 , Tuple.Create(Tuple.Create(" ", 15884), Tuple.Create<System.Object, System.Int32>(bannerTextBackgroundOpacity 1319 1320 #line default 1321 #line hidden 1322 , 15885), false) 1323 ); 1324 1325 WriteLiteralTo(__razor_helper_writer, "></div>\r\n <h2"); 1326 1327 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 15940), Tuple.Create("\"", 15972) 1328 , Tuple.Create(Tuple.Create("", 15948), Tuple.Create("color:", 15948), true) 1329 1330 #line 296 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1331 , Tuple.Create(Tuple.Create(" ", 15954), Tuple.Create<System.Object, System.Int32>(bannerTextColor 1332 1333 #line default 1334 #line hidden 1335 , 15955), false) 1336 , Tuple.Create(Tuple.Create("", 15971), Tuple.Create(";", 15971), true) 1337 ); 1338 1339 WriteLiteralTo(__razor_helper_writer, ">"); 1340 1341 1342 #line 296 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1343 WriteTo(__razor_helper_writer, groupName); 1344 1345 1346 #line default 1347 #line hidden 1348 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n <p"); 1349 1350 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 16007), Tuple.Create("\"", 16050) 1351 , Tuple.Create(Tuple.Create("", 16015), Tuple.Create("color:", 16015), true) 1352 1353 #line 297 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1354 , Tuple.Create(Tuple.Create(" ", 16021), Tuple.Create<System.Object, System.Int32>(bannerTextColor 1355 1356 #line default 1357 #line hidden 1358 , 16022), false) 1359 , Tuple.Create(Tuple.Create(" ", 16038), Tuple.Create("!important;", 16039), true) 1360 ); 1361 1362 WriteLiteralTo(__razor_helper_writer, ">"); 1363 1364 1365 #line 297 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1366 WriteTo(__razor_helper_writer, groupDescription); 1367 1368 1369 #line default 1370 #line hidden 1371 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n </section>\r\n"); 1372 1373 1374 #line 300 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1375 } 1376 } 1377 } 1378 1379 if (!String.IsNullOrWhiteSpace(image) && String.IsNullOrWhiteSpace(video) && !isGroupBanner) 1380 { 1381 string layoutType = !string.IsNullOrWhiteSpace(subHeading) ? "twoColumn" : "oneColumn"; 1382 string headerClass = leftAlign ? "text-left" : ""; 1383 1384 1385 1386 #line default 1387 #line hidden 1388 WriteLiteralTo(__razor_helper_writer, " <section"); 1389 1390 WriteLiteralTo(__razor_helper_writer, " id=\"pageHeadingContainer\""); 1391 1392 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 16452), Tuple.Create("\"", 16483) 1393 1394 #line 309 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1395 , Tuple.Create(Tuple.Create("", 16460), Tuple.Create<System.Object, System.Int32>(topMediaContainerClass 1396 1397 #line default 1398 #line hidden 1399 , 16460), false) 1400 ); 1401 1402 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 16484), Tuple.Create("\"", 16522) 1403 , Tuple.Create(Tuple.Create("", 16492), Tuple.Create("background-image:url(\'", 16492), true) 1404 1405 #line 309 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1406 , Tuple.Create(Tuple.Create("", 16514), Tuple.Create<System.Object, System.Int32>(image 1407 1408 #line default 1409 #line hidden 1410 , 16514), false) 1411 , Tuple.Create(Tuple.Create("", 16520), Tuple.Create("\')", 16520), true) 1412 ); 1413 1414 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1415 1416 WriteLiteralTo(__razor_helper_writer, " id=\"pageHeadingContent\""); 1417 1418 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 16564), Tuple.Create("\"", 16593) 1419 , Tuple.Create(Tuple.Create("", 16572), Tuple.Create("container", 16572), true) 1420 1421 #line 310 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1422 , Tuple.Create(Tuple.Create(" ", 16581), Tuple.Create<System.Object, System.Int32>(layoutType 1423 1424 #line default 1425 #line hidden 1426 , 16582), false) 1427 ); 1428 1429 WriteLiteralTo(__razor_helper_writer, ">\r\n <p"); 1430 1431 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 16613), Tuple.Create("\"", 16636) 1432 , Tuple.Create(Tuple.Create("", 16621), Tuple.Create("h1", 16621), true) 1433 1434 #line 311 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1435 , Tuple.Create(Tuple.Create(" ", 16623), Tuple.Create<System.Object, System.Int32>(headerClass 1436 1437 #line default 1438 #line hidden 1439 , 16624), false) 1440 ); 1441 1442 WriteLiteralTo(__razor_helper_writer, ">"); 1443 1444 1445 #line 311 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1446 WriteTo(__razor_helper_writer, heading); 1447 1448 1449 #line default 1450 #line hidden 1451 WriteLiteralTo(__razor_helper_writer, "</p>\r\n <p>"); 1452 1453 1454 #line 312 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1455 WriteTo(__razor_helper_writer, subHeading); 1456 1457 1458 #line default 1459 #line hidden 1460 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1461 1462 1463 #line 313 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1464 1465 1466 #line default 1467 #line hidden 1468 1469 #line 313 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1470 if (!string.IsNullOrEmpty(buttonLink)) 1471 { 1472 1473 1474 #line default 1475 #line hidden 1476 WriteLiteralTo(__razor_helper_writer, " <a"); 1477 1478 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-bg pull-left\""); 1479 1480 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 16807), Tuple.Create("\"", 16825) 1481 1482 #line 315 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1483 , Tuple.Create(Tuple.Create("", 16814), Tuple.Create<System.Object, System.Int32>(buttonLink 1484 1485 #line default 1486 #line hidden 1487 , 16814), false) 1488 ); 1489 1490 WriteLiteralTo(__razor_helper_writer, ">"); 1491 1492 1493 #line 315 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1494 WriteTo(__razor_helper_writer, buttonText); 1495 1496 1497 #line default 1498 #line hidden 1499 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1500 1501 1502 #line 316 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1503 } 1504 1505 1506 #line default 1507 #line hidden 1508 WriteLiteralTo(__razor_helper_writer, " </p>\r\n </div>\r\n </section>\r\n"); 1509 1510 1511 #line 320 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1512 } 1513 1514 1515 #line default 1516 #line hidden 1517 }); 1518 1519 #line 321 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1520 } 1521 #line default 1522 #line hidden 1523 1524 1525 #line 322 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1526 public RazorEngine.Templating.TemplateWriter UserDoesNotExist() 1527 { 1528 #line default 1529 #line hidden 1530 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1531 1532 #line 323 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1533 1534 if (Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && !Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 1535 { 1536 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Password"]) && !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Username"])) 1537 { 1538 1539 1540 #line default 1541 #line hidden 1542 1543 #line 328 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1544 WriteTo(__razor_helper_writer, SnippetStart("jsOnLoad")); 1545 1546 1547 #line default 1548 #line hidden 1549 1550 #line 328 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1551 1552 1553 1554 #line default 1555 #line hidden 1556 WriteLiteralTo(__razor_helper_writer, " "); 1557 1558 WriteLiteralTo(__razor_helper_writer, "var showLogin = true;\r\n"); 1559 1560 WriteLiteralTo(__razor_helper_writer, " "); 1561 1562 WriteLiteralTo(__razor_helper_writer, "alert(\""); 1563 1564 1565 #line 330 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1566 WriteTo(__razor_helper_writer, Translate("userNotFoundInTheDatabase", "User not found in the database")); 1567 1568 1569 #line default 1570 #line hidden 1571 WriteLiteralTo(__razor_helper_writer, "\");\r\n"); 1572 1573 1574 #line 331 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1575 1576 1577 #line default 1578 #line hidden 1579 1580 #line 331 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1581 WriteTo(__razor_helper_writer, SnippetEnd("jsOnLoad")); 1582 1583 1584 #line default 1585 #line hidden 1586 1587 #line 331 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1588 1589 } 1590 } 1591 1592 1593 #line default 1594 #line hidden 1595 }); 1596 1597 #line 334 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1598 } 1599 #line default 1600 #line hidden 1601 1602 1603 #line 335 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1604 public RazorEngine.Templating.TemplateWriter Logo(string cssclass, string companyName, string designName) 1605 { 1606 #line default 1607 #line hidden 1608 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1609 1610 #line 336 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1611 1612 string logo = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "/Admin/Public/GetImage.ashx?Image=/Files/Templates/Designs/"+designName+"/images/logo.png&Width=220" : "/Files/Templates/Designs/"+designName+"/images/logo.png"; 1613 1614 1615 1616 #line default 1617 #line hidden 1618 WriteLiteralTo(__razor_helper_writer, " <figure"); 1619 1620 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 17834), Tuple.Create("\"", 17851) 1621 1622 #line 339 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1623 , Tuple.Create(Tuple.Create("", 17842), Tuple.Create<System.Object, System.Int32>(cssclass 1624 1625 #line default 1626 #line hidden 1627 , 17842), false) 1628 ); 1629 1630 WriteLiteralTo(__razor_helper_writer, " id=\"logo\""); 1631 1632 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 1633 1634 WriteLiteralTo(__razor_helper_writer, " href=\"/\""); 1635 1636 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 1637 1638 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 1639 1640 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 17916), Tuple.Create("\"", 17927) 1641 1642 #line 341 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1643 , Tuple.Create(Tuple.Create("", 17922), Tuple.Create<System.Object, System.Int32>(logo 1644 1645 #line default 1646 #line hidden 1647 , 17922), false) 1648 ); 1649 1650 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 17928), Tuple.Create("\"", 17946) 1651 1652 #line 341 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1653 , Tuple.Create(Tuple.Create("", 17934), Tuple.Create<System.Object, System.Int32>(companyName 1654 1655 #line default 1656 #line hidden 1657 , 17934), false) 1658 ); 1659 1660 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 17947), Tuple.Create("\"", 17967) 1661 1662 #line 341 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1663 , Tuple.Create(Tuple.Create("", 17955), Tuple.Create<System.Object, System.Int32>(companyName 1664 1665 #line default 1666 #line hidden 1667 , 17955), false) 1668 ); 1669 1670 WriteLiteralTo(__razor_helper_writer, ">\r\n </a>\r\n </figure>\r\n"); 1671 1672 1673 #line 344 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1674 1675 1676 #line default 1677 #line hidden 1678 }); 1679 1680 #line 344 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1681 } 1682 #line default 1683 #line hidden 1684 1685 1686 #line 345 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1687 public RazorEngine.Templating.TemplateWriter DemoBanner() 1688 { 1689 #line default 1690 #line hidden 1691 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1692 1693 #line 346 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1694 1695 if (GetBoolean("Item.Area.Banner") && System.Web.HttpContext.Current.Request.Cookies["demoMode"] == null) 1696 { 1697 1698 1699 #line default 1700 #line hidden 1701 WriteLiteralTo(__razor_helper_writer, " <div"); 1702 1703 WriteLiteralTo(__razor_helper_writer, " class=\"demoMode\""); 1704 1705 WriteLiteralTo(__razor_helper_writer, ">Demo</div>\r\n"); 1706 1707 1708 #line 350 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1709 } 1710 1711 1712 #line default 1713 #line hidden 1714 }); 1715 1716 #line 351 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1717 } 1718 #line default 1719 #line hidden 1720 1721 1722 #line 352 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1723 public RazorEngine.Templating.TemplateWriter Copyright() 1724 { 1725 #line default 1726 #line hidden 1727 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1728 1729 #line 353 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1730 1731 1732 1733 #line default 1734 #line hidden 1735 WriteLiteralTo(__razor_helper_writer, " <div"); 1736 1737 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 copyright\""); 1738 1739 WriteLiteralTo(__razor_helper_writer, ">&copy; "); 1740 1741 1742 #line 354 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1743 WriteTo(__razor_helper_writer, DateTime.Now.Year); 1744 1745 1746 #line default 1747 #line hidden 1748 WriteLiteralTo(__razor_helper_writer, " "); 1749 1750 1751 #line 354 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1752 WriteTo(__razor_helper_writer, GetString("Item.Area.CompanyName")); 1753 1754 1755 #line default 1756 #line hidden 1757 WriteLiteralTo(__razor_helper_writer, " "); 1758 1759 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 1760 1761 1762 #line 355 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1763 1764 1765 #line default 1766 #line hidden 1767 }); 1768 1769 #line 355 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1770 } 1771 #line default 1772 #line hidden 1773 1774 1775 #line 357 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1776 public RazorEngine.Templating.TemplateWriter RenderSearchBar() 1777 { 1778 #line default 1779 #line hidden 1780 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1781 1782 #line 358 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1783 1784 var resultsPage = GetInteger("Item.Area.SearchResults"); 1785 var q = (System.Web.HttpContext.Current.Request["q"] ?? "").ToString(); 1786 1787 1788 1789 #line default 1790 #line hidden 1791 WriteLiteralTo(__razor_helper_writer, " <div"); 1792 1793 WriteLiteralTo(__razor_helper_writer, " id=\"searchContainer\""); 1794 1795 WriteLiteralTo(__razor_helper_writer, " class=\"col-sm-offset-4 col-sm-8 col-xs-12\""); 1796 1797 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1798 1799 WriteLiteralTo(__razor_helper_writer, " class=\"searchContainer col-xs-12\""); 1800 1801 WriteLiteralTo(__razor_helper_writer, ">\r\n <form"); 1802 1803 WriteLiteralTo(__razor_helper_writer, " action=\"/Default.aspx\""); 1804 1805 WriteLiteralTo(__razor_helper_writer, " id=\"searchForm\""); 1806 1807 WriteLiteralTo(__razor_helper_writer, ">\r\n <fieldset"); 1808 1809 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 Select mandatory pull-right hidden\""); 1810 1811 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 1812 1813 WriteLiteralTo(__razor_helper_writer, " for=\"searchSubmit\""); 1814 1815 WriteLiteralTo(__razor_helper_writer, " class=\"hide\""); 1816 1817 WriteLiteralTo(__razor_helper_writer, ">"); 1818 1819 1820 #line 366 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1821 WriteTo(__razor_helper_writer, Translate("search", "Search")); 1822 1823 1824 #line default 1825 #line hidden 1826 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <select"); 1827 1828 WriteLiteralTo(__razor_helper_writer, " name=\"ID\""); 1829 1830 WriteLiteralTo(__razor_helper_writer, ">\r\n <option"); 1831 1832 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 18905), Tuple.Create("\"", 18925) 1833 1834 #line 368 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1835 , Tuple.Create(Tuple.Create("", 18913), Tuple.Create<System.Object, System.Int32>(resultsPage 1836 1837 #line default 1838 #line hidden 1839 , 18913), false) 1840 ); 1841 1842 WriteLiteralTo(__razor_helper_writer, " selected=\"\""); 1843 1844 WriteLiteralTo(__razor_helper_writer, ">"); 1845 1846 1847 #line 368 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1848 WriteTo(__razor_helper_writer, Translate("productSearch", "Product Search")); 1849 1850 1851 #line default 1852 #line hidden 1853 WriteLiteralTo(__razor_helper_writer, "</option>\r\n </select>\r\n </fieldset>\r\n <fieldset"); 1854 1855 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 TextInput mandatory noPadding\""); 1856 1857 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 1858 1859 WriteLiteralTo(__razor_helper_writer, " for=\"searchSubmit\""); 1860 1861 WriteLiteralTo(__razor_helper_writer, " class=\"hide\""); 1862 1863 WriteLiteralTo(__razor_helper_writer, ">"); 1864 1865 1866 #line 372 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1867 WriteTo(__razor_helper_writer, Translate("search", "Search")); 1868 1869 1870 #line default 1871 #line hidden 1872 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <input"); 1873 1874 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\'", 19210), Tuple.Create("\'", 19254) 1875 1876 #line 373 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1877 , Tuple.Create(Tuple.Create("", 19224), Tuple.Create<System.Object, System.Int32>(Translate("search", "Search") 1878 1879 #line default 1880 #line hidden 1881 , 19224), false) 1882 ); 1883 1884 WriteLiteralTo(__razor_helper_writer, " id=\"searchSubmit\""); 1885 1886 WriteLiteralTo(__razor_helper_writer, " data-error=\'"); 1887 1888 1889 #line 373 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1890 WriteTo(__razor_helper_writer, Translate("searchText", "Search for something")); 1891 1892 1893 #line default 1894 #line hidden 1895 WriteLiteralTo(__razor_helper_writer, "\'"); 1896 1897 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 1898 1899 WriteLiteralTo(__razor_helper_writer, " name=\"q\""); 1900 1901 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 19356), Tuple.Create("\"", 19366) 1902 1903 #line 373 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1904 , Tuple.Create(Tuple.Create("", 19364), Tuple.Create<System.Object, System.Int32>(q 1905 1906 #line default 1907 #line hidden 1908 , 19364), false) 1909 ); 1910 1911 WriteLiteralTo(__razor_helper_writer, ">\r\n </fieldset>\r\n <input"); 1912 1913 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 1914 1915 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 1916 1917 WriteLiteralTo(__razor_helper_writer, " value=\"send\""); 1918 1919 WriteLiteralTo(__razor_helper_writer, ">\r\n </form>\r\n </div>\r\n <div"); 1920 1921 WriteLiteralTo(__razor_helper_writer, " id=\"autocompleteWrap\""); 1922 1923 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</div>\r\n </div>\r\n"); 1924 1925 1926 #line 380 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1927 1928 1929 #line default 1930 #line hidden 1931 }); 1932 1933 #line 380 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1934 } 1935 #line default 1936 #line hidden 1937 1938 1939 #line 382 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1940 1941 private string CommaSplittedString(string CommaSplittedString, string NewString) 1942 { 1943 1944 if (!string.IsNullOrEmpty(CommaSplittedString)) 1945 { 1946 CommaSplittedString += ", "; 1947 } 1948 CommaSplittedString += NewString; 1949 1950 return CommaSplittedString; 1951 } 1952 public static string StripHtml(string source) 1953 { 1954 return Regex.Replace(source, "<.*?>", string.Empty); 1955 } 1956 1957 #line default 1958 #line hidden 1959 1960 1961 #line 529 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1962 public RazorEngine.Templating.TemplateWriter Breadcrumb() { 1963 #line default 1964 #line hidden 1965 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1966 1967 #line 529 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1968 1969 if (!string.IsNullOrEmpty(GetString("DwNavigation(breadCrumbsMenu2)"))) 1970 { 1971 1972 1973 #line default 1974 #line hidden 1975 WriteLiteralTo(__razor_helper_writer, " <div"); 1976 1977 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 1978 1979 WriteLiteralTo(__razor_helper_writer, ">\r\n <nav"); 1980 1981 WriteLiteralTo(__razor_helper_writer, " id=\"breadMenuContainer\""); 1982 1983 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 1984 1985 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 1986 1987 WriteLiteralTo(__razor_helper_writer, " id=\"breadCrumbsMenu\""); 1988 1989 WriteLiteralTo(__razor_helper_writer, ">\r\n <li><a"); 1990 1991 WriteLiteralTo(__razor_helper_writer, " href=\"/\""); 1992 1993 WriteLiteralTo(__razor_helper_writer, ">"); 1994 1995 1996 #line 535 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 1997 WriteTo(__razor_helper_writer, Translate("home", "Home")); 1998 1999 2000 #line default 2001 #line hidden 2002 WriteLiteralTo(__razor_helper_writer, "</a></li>\r\n"); 2003 2004 WriteLiteralTo(__razor_helper_writer, " "); 2005 2006 2007 #line 536 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2008 WriteTo(__razor_helper_writer, GetValue("DwNavigation(breadCrumbsMenu2)")); 2009 2010 2011 #line default 2012 #line hidden 2013 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2014 2015 2016 #line 537 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2017 2018 2019 #line default 2020 #line hidden 2021 2022 #line 537 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2023 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 2024 { 2025 2026 2027 #line default 2028 #line hidden 2029 WriteLiteralTo(__razor_helper_writer, " <li>\r\n &nbsp;»&nbsp;\r\n"); 2030 2031 WriteLiteralTo(__razor_helper_writer, " "); 2032 2033 2034 #line 541 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2035 WriteTo(__razor_helper_writer, GetString("Title")); 2036 2037 2038 #line default 2039 #line hidden 2040 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n"); 2041 2042 2043 #line 543 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2044 } 2045 2046 2047 #line default 2048 #line hidden 2049 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </nav>\r\n </div>\r\n"); 2050 2051 2052 #line 547 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2053 } 2054 2055 2056 #line default 2057 #line hidden 2058 }); 2059 2060 #line 548 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2061 } 2062 #line default 2063 #line hidden 2064 2065 2066 #line 550 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2067 public RazorEngine.Templating.TemplateWriter PageTitle(string image, string video) 2068 { 2069 #line default 2070 #line hidden 2071 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2072 2073 #line 551 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2074 2075 if (String.IsNullOrWhiteSpace(image) && String.IsNullOrWhiteSpace(video) && !GetBoolean("Item.Page.HidePageTitle")) 2076 { 2077 string heading = GetString("Item.Page.PageHeading"), 2078 title = !String.IsNullOrEmpty(heading) ? heading : GetString("DwPageName"); 2079 2080 2081 #line default 2082 #line hidden 2083 WriteLiteralTo(__razor_helper_writer, " <div"); 2084 2085 WriteLiteralTo(__razor_helper_writer, " class=\"container pageTitle\""); 2086 2087 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2088 2089 WriteLiteralTo(__razor_helper_writer, " class=\"h1\""); 2090 2091 WriteLiteralTo(__razor_helper_writer, ">"); 2092 2093 2094 #line 557 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2095 WriteTo(__razor_helper_writer, title); 2096 2097 2098 #line default 2099 #line hidden 2100 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n"); 2101 2102 2103 #line 559 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2104 } 2105 2106 2107 #line default 2108 #line hidden 2109 }); 2110 2111 #line 560 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2112 } 2113 #line default 2114 #line hidden 2115 2116 2117 #line 562 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2118 public RazorEngine.Templating.TemplateWriter CentralContent(string rightClass = "col-xs-12 noPadding") { 2119 #line default 2120 #line hidden 2121 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2122 2123 #line 562 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2124 2125 if (!string.IsNullOrEmpty(GetString("DwContent(fullWidthContent)"))) 2126 { 2127 2128 2129 #line default 2130 #line hidden 2131 WriteLiteralTo(__razor_helper_writer, " <section"); 2132 2133 WriteLiteralTo(__razor_helper_writer, " id=\"fullWidthContainer\""); 2134 2135 WriteLiteralTo(__razor_helper_writer, " class=\"container-fluid fullWidthSection\""); 2136 2137 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2138 2139 WriteLiteralTo(__razor_helper_writer, " id=\"fullWidthContent\""); 2140 2141 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 2142 2143 WriteLiteralTo(__razor_helper_writer, ">"); 2144 2145 2146 #line 566 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2147 WriteTo(__razor_helper_writer, GetValue("DwContent(fullWidthContent)")); 2148 2149 2150 #line default 2151 #line hidden 2152 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </section>\r\n"); 2153 2154 2155 #line 568 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2156 } 2157 2158 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent)"))) 2159 { 2160 2161 2162 #line default 2163 #line hidden 2164 WriteLiteralTo(__razor_helper_writer, " <div"); 2165 2166 WriteLiteralTo(__razor_helper_writer, " class=\"container\""); 2167 2168 WriteLiteralTo(__razor_helper_writer, ">\r\n <section"); 2169 2170 WriteLiteralTo(__razor_helper_writer, " id=\"centralContainer\""); 2171 2172 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding-xs\""); 2173 2174 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2175 2176 WriteLiteralTo(__razor_helper_writer, " id=\"centralContent\""); 2177 2178 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 2179 2180 WriteLiteralTo(__razor_helper_writer, ">"); 2181 2182 2183 #line 574 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2184 WriteTo(__razor_helper_writer, GetValue("DwContent(centralContent)")); 2185 2186 2187 #line default 2188 #line hidden 2189 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </section>\r\n </div>\r\n"); 2190 2191 2192 #line 577 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2193 } 2194 2195 if (!string.IsNullOrEmpty(GetString("DwContent(fullWidthContent2)"))) 2196 { 2197 2198 2199 #line default 2200 #line hidden 2201 WriteLiteralTo(__razor_helper_writer, " <section"); 2202 2203 WriteLiteralTo(__razor_helper_writer, " id=\"fullWidthContainer2\""); 2204 2205 WriteLiteralTo(__razor_helper_writer, " class=\"container-fluid fullWidthSection\""); 2206 2207 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2208 2209 WriteLiteralTo(__razor_helper_writer, " id=\"fullWidthContent2\""); 2210 2211 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 2212 2213 WriteLiteralTo(__razor_helper_writer, ">"); 2214 2215 2216 #line 582 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2217 WriteTo(__razor_helper_writer, GetValue("DwContent(fullWidthContent2)")); 2218 2219 2220 #line default 2221 #line hidden 2222 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </section>\r\n"); 2223 2224 2225 #line 584 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2226 } 2227 2228 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent2)"))) 2229 { 2230 2231 2232 #line default 2233 #line hidden 2234 WriteLiteralTo(__razor_helper_writer, " <div"); 2235 2236 WriteLiteralTo(__razor_helper_writer, " class=\"container\""); 2237 2238 WriteLiteralTo(__razor_helper_writer, ">\r\n <section"); 2239 2240 WriteLiteralTo(__razor_helper_writer, " id=\"centralContainer2\""); 2241 2242 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding-xs\""); 2243 2244 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2245 2246 WriteLiteralTo(__razor_helper_writer, " id=\"centralContent2\""); 2247 2248 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 2249 2250 WriteLiteralTo(__razor_helper_writer, ">"); 2251 2252 2253 #line 590 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2254 WriteTo(__razor_helper_writer, GetValue("DwContent(centralContent2)")); 2255 2256 2257 #line default 2258 #line hidden 2259 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </section>\r\n </div>\r\n"); 2260 2261 2262 #line 593 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2263 } 2264 2265 2266 #line default 2267 #line hidden 2268 }); 2269 2270 #line 594 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2271 } 2272 #line default 2273 #line hidden 2274 2275 2276 public RazorEngine_f7e52346568740b39a8d7ccb944bb98a() { 2277 } 2278 2279 public override void Execute() { 2280 2281 #line 8 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2282 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 2283 2284 #line default 2285 #line hidden 2286 WriteLiteral("\r\n"); 2287 2288 WriteLiteral("\r\n"); 2289 2290 WriteLiteral("\r\n"); 2291 2292 2293 #line 399 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2294 2295 var currentQuery = "Default.aspx" + System.Web.HttpContext.Current.Request.Url.Query; 2296 if (!string.IsNullOrEmpty(currentQuery) && currentQuery.ToLower().Equals(string.Format("default.aspx?id={0}", Pageview.Page.ID))) 2297 { 2298 var newQuery = currentQuery; 2299 var filterParamters = GetString("Item.Page.FilterParameters").Split(new string[] {"&", "?"}, StringSplitOptions.RemoveEmptyEntries); 2300 2301 foreach (var fp in filterParamters) 2302 { 2303 if (!currentQuery.Contains(fp.Substring(0, fp.IndexOf("=")) + "=")) 2304 { 2305 newQuery += newQuery.Contains("?") ? "&" : "?"; 2306 newQuery += fp; 2307 } 2308 } 2309 2310 if (currentQuery != newQuery) 2311 { 2312 System.Web.HttpContext.Current.Response.Redirect(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(newQuery), true); 2313 } 2314 } 2315 2316 string device = Pageview.Device.ToString(); 2317 string homeOrSubpage = GetString("DwAreaFirstPageID") == Pageview.Page.ID.ToString() ? "home" : "subpage"; 2318 string print = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "printOrPdf" : ""; 2319 string contactUsPage = GetString("Item.Area.ContactUs"); 2320 string countryCode = Dna.IP.Frontend.GetCountryCode(); 2321 string longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(); 2322 string email = GetString("Item.Area.Email"); 2323 string phone = GetString("Item.Area.Phone"); 2324 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 2325 bool isPrint = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]); 2326 bool bol_backofficeLogged = Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser() != null ? true : false; 2327 List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"); 2328 List<LoopItem> websiteLanguages = GetLoop("WebsiteLanguages"); 2329 if (userIsLoggedIn) 2330 { 2331 string logedUserId = Pageview.User.CurrentSecondaryUser == null ? Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId().ToString() : Pageview.User.CurrentSecondaryUser.ID.ToString(); 2332 System.Web.HttpContext.Current.Session["UserId"] = logedUserId; 2333 2334 if (System.Web.HttpContext.Current.Request["DWExtranetSecondaryUserSelector"] != null && Pageview.User.CurrentSecondaryUser != null) 2335 { 2336 System.Web.HttpContext.Current.Session["AccountsNumber"] = Pageview.User.CurrentSecondaryUser.GetUsersICanSetAsSecondary().Count; 2337 } 2338 } 2339 2340 2341 #line default 2342 #line hidden 2343 WriteLiteral("<!DOCTYPE HTML>\r\n<!--[if lt IE 8 ]><html class=\"ie7\" lang=\""); 2344 2345 2346 #line 445 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2347 Write(longLang); 2348 2349 2350 #line default 2351 #line hidden 2352 WriteLiteral("\"><![endif]--><!--[if IE 8 ]><html class=\"ie8\" lang=\""); 2353 2354 2355 #line 445 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2356 Write(longLang); 2357 2358 2359 #line default 2360 #line hidden 2361 WriteLiteral("\"><![endif]--><!--[if IE 9 ]><html class=\"ie9\" lang=\""); 2362 2363 2364 #line 445 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2365 Write(longLang); 2366 2367 2368 #line default 2369 #line hidden 2370 WriteLiteral("\"><![endif]--><!--[if (gt IE 9)|!(IE)]><!-->\r\n<html"); 2371 2372 WriteAttribute("lang", Tuple.Create(" lang=\"", 22779), Tuple.Create("\"", 22797) 2373 2374 #line 446 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2375 , Tuple.Create(Tuple.Create("", 22786), Tuple.Create<System.Object, System.Int32>(longLang 2376 2377 #line default 2378 #line hidden 2379 , 22786), false) 2380 ); 2381 2382 WriteLiteral(">\r\n<!--<![endif]-->\r\n"); 2383 2384 2385 #line 448 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2386 Write(HtmlHead(designName)); 2387 2388 2389 #line default 2390 #line hidden 2391 WriteLiteral("\r\n<body"); 2392 2393 WriteAttribute("class", Tuple.Create(" class=\"", 22847), Tuple.Create("\"", 22918) 2394 2395 #line 449 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2396 , Tuple.Create(Tuple.Create("", 22855), Tuple.Create<System.Object, System.Int32>(device 2397 2398 #line default 2399 #line hidden 2400 , 22855), false) 2401 , Tuple.Create(Tuple.Create(" ", 22862), Tuple.Create("logged_", 22863), true) 2402 2403 #line 449 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2404 , Tuple.Create(Tuple.Create("", 22870), Tuple.Create<System.Object, System.Int32>(userIsLoggedIn.ToString() 2405 2406 #line default 2407 #line hidden 2408 , 22870), false) 2409 2410 #line 449 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2411 , Tuple.Create(Tuple.Create(" ", 22896), Tuple.Create<System.Object, System.Int32>(homeOrSubpage 2412 2413 #line default 2414 #line hidden 2415 , 22897), false) 2416 2417 #line 449 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2418 , Tuple.Create(Tuple.Create(" ", 22911), Tuple.Create<System.Object, System.Int32>(print 2419 2420 #line default 2421 #line hidden 2422 , 22912), false) 2423 ); 2424 2425 WriteLiteral(" data-countrycode=\""); 2426 2427 2428 #line 449 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2429 Write(countryCode); 2430 2431 2432 #line default 2433 #line hidden 2434 WriteLiteral("\""); 2435 2436 WriteLiteral(">\r\n\r\n<!-- Google Tag Manager (noscript) -->\r\n<noscript><iframe"); 2437 2438 WriteLiteral(" src=\"https://www.googletagmanager.com/ns.html?id=GTM-W3WZTZK\""); 2439 2440 WriteLiteral(" height=\"0\""); 2441 2442 WriteLiteral(" width=\"0\""); 2443 2444 WriteLiteral(" style=\"display:none;visibility:hidden\""); 2445 2446 WriteLiteral("></iframe></noscript>\r\n<!-- End Google Tag Manager (noscript) -->\r\n\r\n\r\n<div"); 2447 2448 WriteLiteral(" class=\"wrap\""); 2449 2450 WriteLiteral(">\r\n <header"); 2451 2452 WriteLiteral(" id=\"headerContainer\""); 2453 2454 WriteLiteral(" class=\"container-fluid noPadding\""); 2455 2456 WriteLiteral(">\r\n <h1"); 2457 2458 WriteLiteral(" class=\"hidden\""); 2459 2460 WriteLiteral(">"); 2461 2462 2463 #line 458 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2464 Write(GetString("Title")); 2465 2466 2467 #line default 2468 #line hidden 2469 WriteLiteral("</h1>\r\n <div"); 2470 2471 WriteLiteral(" id=\"topHeaderContainer\""); 2472 2473 WriteLiteral(" class=\"col-xs-12 noPadding\""); 2474 2475 WriteLiteral(">\r\n <div"); 2476 2477 WriteLiteral(" class=\"container noPadding\""); 2478 2479 WriteLiteral(">\r\n"); 2480 2481 WriteLiteral(" "); 2482 2483 2484 #line 461 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2485 Write(Logo("col-md-4 col-sm-6 col-xs-12", GetString("Item.Area.CompanyName"), designName)); 2486 2487 2488 #line default 2489 #line hidden 2490 WriteLiteral("\r\n"); 2491 2492 2493 #line 462 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2494 2495 2496 #line default 2497 #line hidden 2498 2499 #line 462 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2500 if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)")) && !isPrint) 2501 { 2502 2503 2504 #line default 2505 #line hidden 2506 WriteLiteral(" <nav"); 2507 2508 WriteLiteral(" id=\"topMenuContainer\""); 2509 2510 WriteLiteral(" class=\"navbar navbar-default col-xs-12 col-sm-6 col-md-8\""); 2511 2512 WriteLiteral(">\r\n <div"); 2513 2514 WriteLiteral(" class=\"col-xs-12 welcomeBack\""); 2515 2516 WriteLiteral(">\r\n"); 2517 2518 2519 #line 466 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2520 2521 2522 #line default 2523 #line hidden 2524 2525 #line 466 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2526 if (userIsLoggedIn) 2527 { 2528 string userName = !string.IsNullOrWhiteSpace(Pageview.User.Name) ? Pageview.User.Name : string.Format("{0}{1}", Pageview.User.FirstName, Pageview.User.LastName); 2529 string pageId = Pageview.Page.ID.ToString(); 2530 bool isImpersonate = Pageview.User.CurrentSecondaryUser != null; 2531 string switchAccountUrl = string.Format("Default.aspx?ID={0}", (Pageview.Area.Item["ManageAccounts"] ?? "").ToString()); 2532 2533 if (isImpersonate && !(System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString().Equals("1")) 2534 { 2535 2536 2537 #line default 2538 #line hidden 2539 WriteLiteral(" <span>"); 2540 2541 2542 #line 475 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2543 Write(Translate("managingAccount", "Managing Account")); 2544 2545 2546 #line default 2547 #line hidden 2548 WriteLiteral(": "); 2549 2550 2551 #line 475 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2552 Write(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName); 2553 2554 2555 #line default 2556 #line hidden 2557 WriteLiteral("</span>\r\n"); 2558 2559 WriteLiteral(" <a"); 2560 2561 WriteAttribute("href", Tuple.Create(" href=\"", 24846), Tuple.Create("\"", 24870) 2562 2563 #line 476 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2564 , Tuple.Create(Tuple.Create("", 24853), Tuple.Create<System.Object, System.Int32>(switchAccountUrl 2565 2566 #line default 2567 #line hidden 2568 , 24853), false) 2569 ); 2570 2571 WriteLiteral(">"); 2572 2573 2574 #line 476 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2575 Write(Translate("switchAccount", "SwitchAccount")); 2576 2577 2578 #line default 2579 #line hidden 2580 WriteLiteral("</a>\r\n"); 2581 2582 WriteLiteral(" <a"); 2583 2584 WriteLiteral(" href=\"/Admin/Public/ExtranetLogoff.aspx\""); 2585 2586 WriteLiteral(">"); 2587 2588 2589 #line 477 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2590 Write(Translate("logout", "Logout")); 2591 2592 2593 #line default 2594 #line hidden 2595 WriteLiteral("</a>\r\n"); 2596 2597 2598 #line 478 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2599 } 2600 else 2601 { 2602 2603 2604 #line default 2605 #line hidden 2606 WriteLiteral(" <span>"); 2607 2608 2609 #line 481 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2610 Write(Translate("welcomeBack", "Welcome Back,")); 2611 2612 2613 #line default 2614 #line hidden 2615 WriteLiteral(" "); 2616 2617 2618 #line 481 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2619 Write(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName); 2620 2621 2622 #line default 2623 #line hidden 2624 WriteLiteral("</span>\r\n"); 2625 2626 WriteLiteral(" <a"); 2627 2628 WriteLiteral(" href=\"/Admin/Public/ExtranetLogoff.aspx\""); 2629 2630 WriteLiteral(">"); 2631 2632 2633 #line 482 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2634 Write(Translate("logout", "Logout")); 2635 2636 2637 #line default 2638 #line hidden 2639 WriteLiteral("</a>\r\n"); 2640 2641 2642 #line 483 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2643 } 2644 } 2645 2646 2647 #line default 2648 #line hidden 2649 WriteLiteral(" </div>\r\n"); 2650 2651 WriteLiteral(" "); 2652 2653 2654 #line 486 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2655 Write(RenderSearchBar()); 2656 2657 2658 #line default 2659 #line hidden 2660 WriteLiteral("\r\n"); 2661 2662 WriteLiteral(" "); 2663 2664 2665 #line 487 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2666 Write(GetValue("DwNavigation(topMenu)")); 2667 2668 2669 #line default 2670 #line hidden 2671 WriteLiteral("\r\n </nav>\r\n"); 2672 2673 2674 #line 489 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2675 } 2676 2677 2678 #line default 2679 #line hidden 2680 WriteLiteral(" </div>\r\n </div>\r\n <div"); 2681 2682 WriteLiteral(" id=\"menuMainContainer\""); 2683 2684 WriteLiteral(" class=\"col-xs-12 noPadding\""); 2685 2686 WriteLiteral(">\r\n <div"); 2687 2688 WriteLiteral(" id=\"mainNavContainer\""); 2689 2690 WriteLiteral(" class=\"col-xs-12 noPadding\""); 2691 2692 WriteLiteral(">\r\n <div"); 2693 2694 WriteLiteral(" class=\"container noPadding\""); 2695 2696 WriteLiteral(">\r\n"); 2697 2698 2699 #line 495 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2700 2701 2702 #line default 2703 #line hidden 2704 2705 #line 495 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2706 if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMain)"))) 2707 { 2708 2709 2710 #line default 2711 #line hidden 2712 WriteLiteral(" <nav"); 2713 2714 WriteLiteral(" class=\"navbar navbar-default\""); 2715 2716 WriteLiteral(">\r\n <div"); 2717 2718 WriteLiteral(" class=\"navbar-header\""); 2719 2720 WriteLiteral(">\r\n <button"); 2721 2722 WriteLiteral(" type=\"button\""); 2723 2724 WriteLiteral(" class=\"navbar-toggle collapsed\""); 2725 2726 WriteLiteral(" data-toggle=\"collapse\""); 2727 2728 WriteLiteral(" data-target=\"#navbar\""); 2729 2730 WriteLiteral(" aria-expanded=\"false\""); 2731 2732 WriteLiteral(" aria-controls=\"navbar\""); 2733 2734 WriteLiteral(">\r\n <i"); 2735 2736 WriteLiteral(" class=\"fa fa-bars\""); 2737 2738 WriteLiteral("></i>\r\n </button>\r\n </d" + 2739 "iv>\r\n <div"); 2740 2741 WriteLiteral(" id=\"navbar\""); 2742 2743 WriteLiteral(" class=\"navbar-collapse collapse noPadding\""); 2744 2745 WriteLiteral(">\r\n"); 2746 2747 WriteLiteral(" "); 2748 2749 2750 #line 504 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2751 Write(GetValue("DwNavigation(menuMain)")); 2752 2753 2754 #line default 2755 #line hidden 2756 WriteLiteral("\r\n </div>\r\n </nav>\r\n"); 2757 2758 2759 #line 507 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2760 } 2761 2762 2763 #line default 2764 #line hidden 2765 WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n"); 2766 2767 WriteLiteral(" "); 2768 2769 2770 #line 511 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2771 Write(RenderSnippet("loginForm")); 2772 2773 2774 #line default 2775 #line hidden 2776 WriteLiteral("\r\n </header>\r\n"); 2777 2778 WriteLiteral(" "); 2779 2780 2781 #line 513 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2782 Write(RenderPageImageVideo(GetString("Item.Page.Image"), GetString("Item.Page.Video"))); 2783 2784 2785 #line default 2786 #line hidden 2787 WriteLiteral("\r\n"); 2788 2789 WriteLiteral(" "); 2790 2791 2792 #line 514 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2793 Write(RenderPageHeading(GetString("Item.Page.PageHeading"), GetString("Item.Page.PageSubHeading"), GetString("Item.Page.Image"), GetString("Item.Page.Video"), GetBoolean("Item.Page.PageHeadingAlignLeft"))); 2794 2795 2796 #line default 2797 #line hidden 2798 WriteLiteral("\r\n\r\n"); 2799 2800 2801 #line 516 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2802 2803 2804 #line default 2805 #line hidden 2806 2807 #line 516 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2808 if (!GetBoolean("Item.Page.Hide2ndLevelMenu") && !GetString("Item.ItemInstanceType").Equals("News")) 2809 { 2810 2811 2812 #line default 2813 #line hidden 2814 2815 #line 518 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2816 Write(GetValue("DwNavigation(groupMenu)")); 2817 2818 2819 #line default 2820 #line hidden 2821 2822 #line 518 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2823 2824 } 2825 2826 2827 #line default 2828 #line hidden 2829 WriteLiteral("\r\n <section"); 2830 2831 WriteLiteral(" id=\"contentWrapper\""); 2832 2833 WriteLiteral(">\r\n "); 2834 2835 WriteLiteral("\r\n\r\n"); 2836 2837 WriteLiteral("\r\n"); 2838 2839 WriteLiteral("\r\n"); 2840 2841 WriteLiteral("\r\n"); 2842 2843 WriteLiteral("\r\n"); 2844 2845 2846 #line 596 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2847 Write(Breadcrumb()); 2848 2849 2850 #line default 2851 #line hidden 2852 WriteLiteral("\r\n"); 2853 2854 2855 #line 597 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2856 Write(PageTitle()); 2857 2858 2859 #line default 2860 #line hidden 2861 WriteLiteral("\r\n"); 2862 2863 2864 #line 598 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2865 if(!string.IsNullOrEmpty(GetString("DwNavigation(leftMenu)"))){ 2866 2867 2868 #line default 2869 #line hidden 2870 WriteLiteral(" <nav"); 2871 2872 WriteLiteral(" id=\"leftMenuContainer\""); 2873 2874 WriteLiteral(" class=\"col-sm-3 noPaddingLeft\""); 2875 2876 WriteLiteral(">\r\n"); 2877 2878 WriteLiteral(" "); 2879 2880 2881 #line 600 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2882 Write(GetValue("DwNavigation(leftMenu)")); 2883 2884 2885 #line default 2886 #line hidden 2887 WriteLiteral("\r\n </nav>\r\n"); 2888 2889 2890 #line 602 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2891 } 2892 2893 2894 #line default 2895 #line hidden 2896 2897 #line 603 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2898 Write(CentralContent("col-xs-9 noPadding")); 2899 2900 2901 #line default 2902 #line hidden 2903 WriteLiteral("\r\n </section>\r\n\r\n"); 2904 2905 2906 #line 606 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2907 2908 2909 #line default 2910 #line hidden 2911 2912 #line 606 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2913 if (!isPrint) 2914 { 2915 2916 2917 #line default 2918 #line hidden 2919 WriteLiteral(" <footer"); 2920 2921 WriteLiteral(" id=\"footer\""); 2922 2923 WriteLiteral(" class=\"container-fluid noPadding\""); 2924 2925 WriteLiteral(">\r\n <div"); 2926 2927 WriteLiteral(" id=\"footerLargeMenuContainer\""); 2928 2929 WriteLiteral(" class=\"container-fluid noPadding\""); 2930 2931 WriteLiteral(">\r\n <div"); 2932 2933 WriteLiteral(" class=\"container\""); 2934 2935 WriteLiteral(">\r\n <div"); 2936 2937 WriteLiteral(" class=\"col-sm-12 socialContainer\""); 2938 2939 WriteLiteral(">\r\n"); 2940 2941 2942 #line 612 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2943 2944 2945 #line default 2946 #line hidden 2947 2948 #line 612 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2949 if (socialMedia.Any()) 2950 { 2951 2952 2953 #line default 2954 #line hidden 2955 2956 #line 614 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2957 Write(SnippetStart("socialMedia")); 2958 2959 2960 #line default 2961 #line hidden 2962 2963 #line 614 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2964 2965 2966 2967 #line default 2968 #line hidden 2969 WriteLiteral(" <ul"); 2970 2971 WriteLiteral(" class=\"noPadding\""); 2972 2973 WriteLiteral(" id=\"socialMedia\""); 2974 2975 WriteLiteral(">\r\n"); 2976 2977 2978 #line 616 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2979 2980 2981 #line default 2982 #line hidden 2983 2984 #line 616 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 2985 foreach (LoopItem socialItem in socialMedia) 2986 { 2987 string className = socialItem.GetString("Item.Area.SocialNetworks.Icon"), 2988 socialName = socialItem.GetString("Item.Area.SocialNetworks.Name"), 2989 socialLink = socialItem.GetString("Item.Area.SocialNetworks.Link"); 2990 2991 socialLink = !string.IsNullOrEmpty(socialLink) ? socialLink : "#"; 2992 2993 2994 2995 #line default 2996 #line hidden 2997 WriteLiteral(" <li>\r\n <a"); 2998 2999 WriteAttribute("title", Tuple.Create(" title=\"", 31396), Tuple.Create("\"", 31415) 3000 3001 #line 625 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3002 , Tuple.Create(Tuple.Create("", 31404), Tuple.Create<System.Object, System.Int32>(socialName 3003 3004 #line default 3005 #line hidden 3006 , 31404), false) 3007 ); 3008 3009 WriteAttribute("class", Tuple.Create(" class=\"", 31416), Tuple.Create("\"", 31437) 3010 3011 #line 625 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3012 , Tuple.Create(Tuple.Create("", 31424), Tuple.Create<System.Object, System.Int32>(className 3013 3014 #line default 3015 #line hidden 3016 , 31424), false) 3017 , Tuple.Create(Tuple.Create(" ", 31434), Tuple.Create("fa", 31435), true) 3018 ); 3019 3020 WriteLiteral(" target=\"_blank\""); 3021 3022 WriteAttribute("href", Tuple.Create(" href=\"", 31454), Tuple.Create("\"", 31472) 3023 3024 #line 625 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3025 , Tuple.Create(Tuple.Create("", 31461), Tuple.Create<System.Object, System.Int32>(socialLink 3026 3027 #line default 3028 #line hidden 3029 , 31461), false) 3030 ); 3031 3032 WriteLiteral(">\r\n <span"); 3033 3034 WriteLiteral(" class=\"hidden\""); 3035 3036 WriteLiteral(">"); 3037 3038 3039 #line 626 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3040 Write(socialName); 3041 3042 3043 #line default 3044 #line hidden 3045 WriteLiteral("</span>\r\n </a>\r\n " + 3046 " </li>\r\n"); 3047 3048 3049 #line 629 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3050 } 3051 3052 3053 #line default 3054 #line hidden 3055 WriteLiteral(" </ul>\r\n"); 3056 3057 3058 #line 631 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3059 3060 3061 #line default 3062 #line hidden 3063 3064 #line 631 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3065 Write(SnippetEnd("socialMedia")); 3066 3067 3068 #line default 3069 #line hidden 3070 3071 #line 631 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3072 3073 3074 3075 #line default 3076 #line hidden 3077 3078 #line 632 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3079 Write(RenderSnippet("socialMedia")); 3080 3081 3082 #line default 3083 #line hidden 3084 3085 #line 632 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3086 3087 } 3088 3089 3090 #line default 3091 #line hidden 3092 WriteLiteral(" </div>\r\n\r\n"); 3093 3094 3095 #line 636 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3096 3097 3098 #line default 3099 #line hidden 3100 3101 #line 636 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3102 if (!string.IsNullOrEmpty(GetString("DwNavigation(bottomMenu)"))) 3103 { 3104 3105 3106 #line default 3107 #line hidden 3108 WriteLiteral(" <nav"); 3109 3110 WriteLiteral(" id=\"bottomMenuContainer\""); 3111 3112 WriteLiteral(" class=\"col-xs-12\""); 3113 3114 WriteLiteral(">\r\n"); 3115 3116 WriteLiteral(" "); 3117 3118 3119 #line 639 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3120 Write(GetValue("DwNavigation(bottomMenu)")); 3121 3122 3123 #line default 3124 #line hidden 3125 WriteLiteral("\r\n </nav>\r\n"); 3126 3127 3128 #line 641 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3129 } 3130 3131 3132 #line default 3133 #line hidden 3134 WriteLiteral("\r\n <div"); 3135 3136 WriteLiteral(" class=\"footerContactInfo col-xs-12 noPadding-left hidden\""); 3137 3138 WriteLiteral(">\r\n <p"); 3139 3140 WriteLiteral(" class=\"noPadding\""); 3141 3142 WriteLiteral(">\r\n <a"); 3143 3144 WriteAttribute("href", Tuple.Create(" href=\"", 32291), Tuple.Create("\"", 32311) 3145 , Tuple.Create(Tuple.Create("", 32298), Tuple.Create("mailto:", 32298), true) 3146 3147 #line 645 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3148 , Tuple.Create(Tuple.Create("", 32305), Tuple.Create<System.Object, System.Int32>(email 3149 3150 #line default 3151 #line hidden 3152 , 32305), false) 3153 ); 3154 3155 WriteLiteral(">"); 3156 3157 3158 #line 645 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3159 Write(email); 3160 3161 3162 #line default 3163 #line hidden 3164 WriteLiteral("</a>\r\n </p>\r\n <p"); 3165 3166 WriteLiteral(" class=\"noPadding\""); 3167 3168 WriteLiteral(">\r\n <a"); 3169 3170 WriteAttribute("href", Tuple.Create(" href=\"", 32420), Tuple.Create("\"", 32437) 3171 , Tuple.Create(Tuple.Create("", 32427), Tuple.Create("tel:", 32427), true) 3172 3173 #line 648 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3174 , Tuple.Create(Tuple.Create("", 32431), Tuple.Create<System.Object, System.Int32>(phone 3175 3176 #line default 3177 #line hidden 3178 , 32431), false) 3179 ); 3180 3181 WriteLiteral(">"); 3182 3183 3184 #line 648 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3185 Write(phone); 3186 3187 3188 #line default 3189 #line hidden 3190 WriteLiteral("</a>\r\n </p>\r\n </div>\r\n\r\n </div>\r\n " + 3191 " <div"); 3192 3193 WriteLiteral(" id=\"copyrightContainer\""); 3194 3195 WriteLiteral(" class=\"container-fluid\""); 3196 3197 WriteLiteral(">\r\n <div"); 3198 3199 WriteLiteral(" class=\"container\""); 3200 3201 WriteLiteral(">\r\n <div"); 3202 3203 WriteLiteral(" class=\"row\""); 3204 3205 WriteLiteral(">\r\n <div"); 3206 3207 WriteLiteral(" class=\"col-xs-12 col-md-6\""); 3208 3209 WriteLiteral(">"); 3210 3211 3212 #line 656 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3213 Write(Copyright()); 3214 3215 3216 #line default 3217 #line hidden 3218 WriteLiteral("</div>\r\n <div"); 3219 3220 WriteLiteral(" class=\"col-xs-12 col-md-6\""); 3221 3222 WriteLiteral(">\r\n"); 3223 3224 3225 #line 658 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3226 3227 3228 #line default 3229 #line hidden 3230 3231 #line 658 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3232 if (!string.IsNullOrEmpty(GetString("DwNavigation(copyrightMenu)"))) 3233 { 3234 3235 3236 #line default 3237 #line hidden 3238 WriteLiteral(" <nav"); 3239 3240 WriteLiteral(" id=\"copyrightMenuContainer\""); 3241 3242 WriteLiteral(">\r\n"); 3243 3244 WriteLiteral(" "); 3245 3246 3247 #line 661 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3248 Write(GetValue("DwNavigation(copyrightMenu)")); 3249 3250 3251 #line default 3252 #line hidden 3253 WriteLiteral("\r\n </nav>\r\n"); 3254 3255 3256 #line 663 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3257 } 3258 3259 3260 #line default 3261 #line hidden 3262 WriteLiteral("\r\n </div>\r\n </div>\r\n </d" + 3263 "iv>\r\n </div>\r\n"); 3264 3265 WriteLiteral(" "); 3266 3267 3268 #line 669 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3269 Write(DemoBanner()); 3270 3271 3272 #line default 3273 #line hidden 3274 WriteLiteral("\r\n </div></footer>\r\n"); 3275 3276 3277 #line 671 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3278 } 3279 3280 3281 #line default 3282 #line hidden 3283 WriteLiteral("\r\n</div>\r\n"); 3284 3285 3286 #line 674 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3287 if (bol_backofficeLogged) 3288 { 3289 3290 3291 #line default 3292 #line hidden 3293 WriteLiteral(" <div"); 3294 3295 WriteLiteral(" id=\"urlPath\""); 3296 3297 WriteLiteral(" class=\"text-center col-xs-12\""); 3298 3299 WriteLiteral(">\r\n"); 3300 3301 WriteLiteral(" "); 3302 3303 3304 #line 677 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3305 Write(Pageview.GlobalTags.GetTagByName("Global:Request.PathAndQuery").Value); 3306 3307 3308 #line default 3309 #line hidden 3310 WriteLiteral(" <br>\r\n"); 3311 3312 WriteLiteral(" "); 3313 3314 3315 #line 678 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3316 Write(Pageview.GlobalTags.GetTagByName("Global:Request.Url").Value); 3317 3318 3319 #line default 3320 #line hidden 3321 WriteLiteral("\r\n </div>\r\n"); 3322 3323 3324 #line 680 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3325 } 3326 3327 3328 #line default 3329 #line hidden 3330 3331 #line 681 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3332 Write(RenderSnippet("bodyBeforeEnd")); 3333 3334 3335 #line default 3336 #line hidden 3337 WriteLiteral("\r\n\r\n<!-- Begin Marketo -->\r\n<script"); 3338 3339 WriteLiteral(" type=\"text/javascript\""); 3340 3341 WriteLiteral(@"> 3342 (function() { 3343 var didInit = false; 3344 function initMunchkin() { 3345 if(didInit === false) { 3346 didInit = true; 3347 Munchkin.init('183-OHQ-796'); 3348 } 3349 } 3350 var s = document.createElement('script'); 3351 s.type = 'text/javascript'; 3352 s.async = true; 3353 s.src = '//munchkin.marketo.net/munchkin.js'; 3354 s.onreadystatechange = function() { 3355 if (this.readyState == 'complete' || this.readyState == 'loaded') { 3356 initMunchkin(); 3357 } 3358 }; 3359 s.onload = initMunchkin; 3360 document.getElementsByTagName('head')[0].appendChild(s); 3361 })(); 3362 </script> 3363 <!-- End Marketo --> 3364 3365 </body> 3366 3367 </html> 3368 3369 "); 3370 3371 3372 #line 712 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3373 Write(SnippetStart("loginForm")); 3374 3375 3376 #line default 3377 #line hidden 3378 WriteLiteral("\r\n"); 3379 3380 3381 #line 713 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3382 3383 string createAccountPage = GetString("Item.Area.CreateAccount"); 3384 string addUserPage = GetString("Item.Area.AddUser"); 3385 string loginPage = GetString("Item.Area.Login"); 3386 3387 3388 #line default 3389 #line hidden 3390 WriteLiteral("\r\n<form"); 3391 3392 WriteLiteral(" id=\"masterExtUserForm\""); 3393 3394 WriteLiteral(" class=\"col-xs-12 DMForms userRelatedForms hidden\""); 3395 3396 WriteAttribute("action", Tuple.Create(" action=\"", 34581), Tuple.Create("\"", 34624) 3397 , Tuple.Create(Tuple.Create("", 34590), Tuple.Create("/Default.aspx?ID=", 34590), true) 3398 3399 #line 718 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3400 , Tuple.Create(Tuple.Create("", 34607), Tuple.Create<System.Object, System.Int32>(Pageview.Page.ID 3401 3402 #line default 3403 #line hidden 3404 , 34607), false) 3405 ); 3406 3407 WriteLiteral(" method=\"post\""); 3408 3409 WriteLiteral(">\r\n <fieldset"); 3410 3411 WriteLiteral(" class=\"mandatory TextInput\""); 3412 3413 WriteLiteral(">\r\n <label"); 3414 3415 WriteLiteral(" for=\"Username\""); 3416 3417 WriteLiteral(">"); 3418 3419 3420 #line 720 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3421 Write(Translate("usernameEmail", "Username / Email")); 3422 3423 3424 #line default 3425 #line hidden 3426 WriteLiteral("</label>\r\n <input"); 3427 3428 WriteLiteral(" type=\"email\""); 3429 3430 WriteLiteral(" id=\"Username\""); 3431 3432 WriteLiteral(" name=\"username\""); 3433 3434 WriteLiteral(" value=\"\""); 3435 3436 WriteLiteral(" tabindex=\"1\""); 3437 3438 WriteLiteral(">\r\n </fieldset>\r\n <fieldset"); 3439 3440 WriteLiteral(" class=\"mandatory TextInput\""); 3441 3442 WriteLiteral(">\r\n <label"); 3443 3444 WriteLiteral(" for=\"Password\""); 3445 3446 WriteLiteral(">"); 3447 3448 3449 #line 724 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3450 Write(Translate("password", "Password")); 3451 3452 3453 #line default 3454 #line hidden 3455 WriteLiteral("</label>\r\n <input"); 3456 3457 WriteLiteral(" autocomplete=\"off\""); 3458 3459 WriteLiteral(" type=\"password\""); 3460 3461 WriteLiteral(" id=\"Password\""); 3462 3463 WriteLiteral(" name=\"password\""); 3464 3465 WriteLiteral(" value=\"\""); 3466 3467 WriteLiteral(" tabindex=\"2\""); 3468 3469 WriteLiteral(">\r\n </fieldset>\r\n\r\n <div"); 3470 3471 WriteLiteral(" class=\"col-xs-12 noPadding\""); 3472 3473 WriteLiteral(">\r\n <input"); 3474 3475 WriteLiteral(" tabindex=\"3\""); 3476 3477 WriteLiteral(" class=\"btn btn-bg\""); 3478 3479 WriteLiteral(" name=\"LoginAction\""); 3480 3481 WriteLiteral(" type=\"submit\""); 3482 3483 WriteAttribute("value", Tuple.Create(" value=\'", 35231), Tuple.Create("\'", 35267) 3484 3485 #line 729 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3486 , Tuple.Create(Tuple.Create("", 35239), Tuple.Create<System.Object, System.Int32>(Translate("Login", "Login") 3487 3488 #line default 3489 #line hidden 3490 , 35239), false) 3491 ); 3492 3493 WriteLiteral(">\r\n </div>\r\n <div"); 3494 3495 WriteLiteral(" class=\"forgotButtons col-xs-12 noPadding\""); 3496 3497 WriteLiteral(">\r\n <span"); 3498 3499 WriteLiteral(" class=\"title\""); 3500 3501 WriteLiteral(">"); 3502 3503 3504 #line 732 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3505 Write(Translate("currentCustomer", "Current Customer?")); 3506 3507 3508 #line default 3509 #line hidden 3510 WriteLiteral("</span>\r\n <a"); 3511 3512 WriteLiteral(" id=\"forgotPassword\""); 3513 3514 WriteAttribute("href", Tuple.Create(" href=\"", 35453), Tuple.Create("\"", 35495) 3515 3516 #line 733 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3517 , Tuple.Create(Tuple.Create("", 35460), Tuple.Create<System.Object, System.Int32>(loginPage 3518 3519 #line default 3520 #line hidden 3521 , 35460), false) 3522 , Tuple.Create(Tuple.Create("", 35470), Tuple.Create("&amp;LoginAction=Recovery", 35470), true) 3523 ); 3524 3525 WriteLiteral(">"); 3526 3527 3528 #line 733 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3529 Write(Translate("forgotYourPassword", "Forgot your password?")); 3530 3531 3532 #line default 3533 #line hidden 3534 WriteLiteral("</a>\r\n <a"); 3535 3536 WriteAttribute("href", Tuple.Create(" href=\"", 35570), Tuple.Create("\"", 35589) 3537 3538 #line 734 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3539 , Tuple.Create(Tuple.Create("", 35577), Tuple.Create<System.Object, System.Int32>(addUserPage 3540 3541 #line default 3542 #line hidden 3543 , 35577), false) 3544 ); 3545 3546 WriteLiteral(">"); 3547 3548 3549 #line 734 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3550 Write(Translate("addUserToExistingAccount", "Add new user to an existing PBi account")); 3551 3552 3553 #line default 3554 #line hidden 3555 WriteLiteral("</a>\r\n </div>\r\n <div"); 3556 3557 WriteLiteral(" id=\"dontHaveAnAccount\""); 3558 3559 WriteLiteral(" class=\"col-xs-12 noPadding\""); 3560 3561 WriteLiteral(">\r\n <span"); 3562 3563 WriteLiteral(" class=\"title\""); 3564 3565 WriteLiteral(">"); 3566 3567 3568 #line 737 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3569 Write(Translate("newCustomer", "New Customer?")); 3570 3571 3572 #line default 3573 #line hidden 3574 WriteLiteral("</span>\r\n <a"); 3575 3576 WriteAttribute("href", Tuple.Create(" href=\"", 35841), Tuple.Create("\"", 35866) 3577 3578 #line 738 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3579 , Tuple.Create(Tuple.Create("", 35848), Tuple.Create<System.Object, System.Int32>(createAccountPage 3580 3581 #line default 3582 #line hidden 3583 , 35848), false) 3584 ); 3585 3586 WriteLiteral(">"); 3587 3588 3589 #line 738 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3590 Write(Translate("createAccount", "Create account")); 3591 3592 3593 #line default 3594 #line hidden 3595 WriteLiteral("</a>\r\n </div>\r\n</form>\r\n"); 3596 3597 3598 #line 741 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\_parsed\leftMenu.parsed.cshtml" 3599 Write(SnippetEnd("loginForm")); 3600 3601 3602 #line default 3603 #line hidden 3604 WriteLiteral("\r\n<!--Start GDPR Cookie Script--> <script"); 3605 3606 WriteLiteral(" type=\"text/javascript\""); 3607 3608 WriteLiteral(" charset=\"UTF-8\""); 3609 3610 WriteLiteral(" src=\"/Files/Templates/Designs/PacificBag/=\""); 3611 3612 WriteLiteral(" ca-eu.cookie-script.com/s/4615528e5aefd86935f9f18ffef91ed5.js\"=\"\""); 3613 3614 WriteLiteral("></script> <!--End GDPR Cookie Script-->\r\n<!-- Google Tag Manager (noscript) -->\r" + 3615 "\n<noscript><iframe"); 3616 3617 WriteLiteral(" src=\"https://www.googletagmanager.com/ns.html?id=GTM-W3WZTZK\""); 3618 3619 WriteLiteral(" height=\"0\""); 3620 3621 WriteLiteral(" width=\"0\""); 3622 3623 WriteLiteral(" style=\"display:none;visibility:hidden\""); 3624 3625 WriteLiteral("></iframe></noscript>\r\n<!-- End Google Tag Manager (noscript) -->\r\n"); 3626 3627 } 3628 } 3629 } 3630

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System 3 @using System.Linq 4 @using Dynamicweb.Rendering 5 @using Dynamicweb.Content 6 @using System.Text.RegularExpressions 7 @using System.Web.UI.HtmlControls 8 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", "");}@functions{ 9 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "PacificBag") 10 { 11 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 12 string currDevice = currentPageview.Device.ToString(); 13 string alternativeImage = !String.IsNullOrEmpty(currentPageview.Area.Item["NoImage"].ToString()) ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg"; 14 string widthString = ""; 15 string heightString = ""; 16 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 17 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 18 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 19 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 20 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 21 22 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 23 { 24 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 25 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 26 } 27 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 28 { 29 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 30 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 31 } 32 33 if (getImageWidth != 0) 34 { 35 widthString = "&amp;Width=" + getImageWidth; 36 } 37 if (getImageHeight != 0) 38 { 39 heightString = "&amp;Height=" + getImageHeight; 40 } 41 42 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 43 return output; 44 } 45 46 public static string GetImageWhiteSpace(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "PacificBag") 47 { 48 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 49 string currDevice = currentPageview.Device.ToString(); 50 string alternativeImage = "/Files/Templates/Designs/" + designName + "/images/white80.png"; 51 string widthString = ""; 52 string heightString = ""; 53 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 54 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 55 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 56 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 57 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 58 59 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 60 { 61 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 62 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 63 } 64 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 65 { 66 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 67 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 68 } 69 70 if (getImageWidth != 0) 71 { 72 widthString = "&amp;Width=" + getImageWidth; 73 } 74 if (getImageHeight != 0) 75 { 76 heightString = "&amp;Height=" + getImageHeight; 77 } 78 79 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 80 return output; 81 } 82 } 83 @functions{ 84 public string GetCurrentUrl() 85 { 86 string currentUrl = Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString() + "://" + Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString() + Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value.ToString(); 87 88 return currentUrl; 89 } 90 } 91 @using System.Runtime 92 @using Dynamicweb.Rendering 93 @using System.Text.RegularExpressions 94 @using Dynamicweb.Core 95 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 96 97 @helper OgMeta(string designName) 98 { 99 if (string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["ProductID"])) 100 { 101 @SnippetStart("OGMeta")<meta property="og:title" content='@GetString("Title")'> 102 <meta property="og:image" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()/Files/Templates/Designs/@designName/images/logo.png'> 103 <meta property="og:site_name" content='@GetString("Item.Area.CompanyName")'> 104 <meta property="og:url" content='@Pageview.GlobalTags.GetTagByName("Global:Request.Scheme").Value.ToString()://@Pageview.GlobalTags.GetTagByName("Global:Request.Host").Value.ToString()@Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value.ToString()'> 105 <meta property="og:description" content='@StripHtml(GetString("Meta.Description"))'> 106 <meta property="og:type" content="article"> 107 <meta property="og:locale" content='@Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString().Replace("-", "_")'> 108 @SnippetEnd("OGMeta") 109 } 110 } 111 @helper HtmlHead(string designName) 112 { 113 string designFolder = GetString("Template:DesignBaseUrl"); 114 string robots = ""; 115 string ipCountry = Dna.IP.Frontend.GetCountryCode(); 116 var googleReCaptchaSiteKey = GetString("Item.Area.GoogleReCaptchaSiteKey"); 117 string countryCodeModule = !string.IsNullOrEmpty(ipCountry) ? ipCountry : "US"; 118 string userCountryCode = (Pageview.User != null && !string.IsNullOrEmpty(Pageview.User.Country)) ? Pageview.User.Country : ipCountry; 119 string userState = Pageview.User != null ? Pageview.User.State : string.Empty; 120 string userAccountsNumber = (System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString(); 121 robots = (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoIndex")) ? CommaSplittedString(robots, "noindex") : ""; 122 robots += (GetBoolean("Item.Area.DemoBanner") || GetBoolean("Item.Area.NoFollow")) ? CommaSplittedString(robots, "nofollow") : ""; 123 124 <head> 125 126 127 128 <!-- Google Tag Manager --> 129 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 130 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 131 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 132 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 133 })(window,document,'script','dataLayer','GTM-W3WZTZK');</script> 134 <!-- End Google Tag Manager --> 135 136 137 <title>@GetValue("Title")</title> 138 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 139 <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no"> 140 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 141 <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"> 142 @if (!string.IsNullOrEmpty(robots)) 143 { 144 <meta name="robots" content="@robots"> 145 } 146 @OgMeta(designName) 147 @RenderSnippet("OGMeta") 148 @GetString("MetaTags") 149 @GetString("CopyRightNotice") 150 @GetString("Stylesheets") 151 @RenderSnippet("outScripts") 152 @GetString("Javascripts") 153 154 <link rel="shortcut icon" href="@(designFolder)images/favicon.ico" type="image/x-icon"> 155 @{ 156 var minify = GetBoolean("Item.Area.Minify_CSS_And_JavaScript"); 157 var styleBundle = Dna.Optimizer.Renderer.RenderStyles(string.Format("{0}css", designFolder), "-main-styles", null, new[] { "exceptions" }, minify, true, true); 158 var scriptBundle = Dna.Optimizer.Renderer.RenderScripts(string.Format("{0}js", designFolder), "-main-scripts", null, new[] { "exceptions" }, minify, true, true); 159 } 160 <link rel="stylesheet" href="@styleBundle"> 161 @if (googleReCaptchaSiteKey.IsNotNullOrEmpty()) 162 { 163 <script src="https://www.google.com/recaptcha/api.js" async="" defer=""></script> 164 } 165 <script src="@scriptBundle"></script> 166 @SnippetStart("outScripts") @SnippetEnd("outScripts") 167 <!--[if lte IE 9]> 168 <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> 169 <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> 170 <![endif]--> 171 <script> 172 @RenderSnippet("jsVariables") 173 @SnippetStart("jsVariables") @SnippetEnd("jsVariables") 174 175 var obj_pages = { 176 str_miniCart: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.MiniCart"))', 177 str_login: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Login"))', 178 str_globalTranslates: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.GlobalTranslates"))', 179 str_contactPopup : '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.ContactUs_Popup"))', 180 str_cartInformation: '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.Cart_Information"))', 181 str_typeAhead : '@Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetString("Item.Area.TypeAhead"))' 182 }, 183 obj_user = { 184 str_country: '@userCountryCode', 185 str_state: '@userState', 186 str_accountsNumber:'@userAccountsNumber' 187 }, 188 obj_settings = { 189 str_contactTimeout: '@GetString("Item.Area.Time")', 190 str_cartQty: '@GetString("Ecom:Order.OrderLines.TotalProductQuantity")' 191 }, 192 obj_translates = { 193 str_seeAll: '@Translate("seeAllThe", "See all the")', 194 str_results: '@Translate("results", "results")', 195 str_invalidAddress: '@Translate("invalidAddress", "Something isn’t correct with your address. Please check that each *required line has appropriate information in it, e.g. Address line 1 has an actual street address.")' 196 }; 197 $(function () { 198 @UserDoesNotExist() 199 @RenderSnippet("jsOnLoadVariables") 200 @SnippetStart("jsOnLoadVariables") @SnippetEnd("jsOnLoadVariables") 201 @RenderSnippet("jsOnLoad") 202 @SnippetStart("jsOnLoad") @SnippetEnd("jsOnLoad") 203 }); 204 @if(!string.IsNullOrWhiteSpace(GetString("Item.Area.GoogleAnalytics"))) 205 { 206 <text> 207 (function (i, s, o, g, r, a, m) { 208 i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { 209 (i[r].q = i[r].q || []).push(arguments) 210 }, i[r].l = 1 * new Date(); a = s.createElement(o), 211 m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) 212 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 213 214 ga('create', '@GetString("Item.Area.GoogleAnalytics")', 'auto'); 215 ga('send', 'pageview'); 216 </text> 217 } 218 </script> 219 @{ 220 var googleAdwords = GetString("Item.Area.GoogleAdwords"); 221 } 222 @if (!string.IsNullOrWhiteSpace(googleAdwords)) 223 { 224 <script async="" src="https://www.googletagmanager.com/gtag/js?id=@googleAdwords"></script> 225 <script> 226 window.dataLayer = window.dataLayer || []; 227 function gtag(){dataLayer.push(arguments);} 228 gtag('js', new Date()); 229 230 gtag('config', '@googleAdwords'); 231 </script> 232 } 233 234 @RenderSnippet("eCommerceTracking") 235 @SnippetStart("eCommerceTracking") @SnippetEnd("eCommerceTracking") 236 </head> 237 } 238 @helper RenderPageImageVideo(string image, string video) 239 { 240 if (!String.IsNullOrWhiteSpace(video)) 241 { 242 image = "/Admin/Public/GetImage.ashx?Image=" + image + "&Height=1080&Crop=5"; 243 244 <section id="topMediaContainer" data-image="@image" data-video="@video"> 245 @if (!String.IsNullOrWhiteSpace(image)) 246 { 247 <img src="@image" class="hidden"> 248 } 249 @if (!String.IsNullOrWhiteSpace(video)) 250 { 251 <span class="hidden">@video</span> 252 } 253 </section> 254 @SnippetStart("jsOnLoad") 255 @:onLoadTopMediaContainer("@(GetString("Item.Page.ButtonText"))", "@(GetString("Item.Page.ButtonLink"))"); 256 @SnippetEnd("jsOnLoad") 257 } 258 } 259 260 @helper RenderPageHeading(string heading, string subHeading, string image, string video, bool leftAlign) 261 { 262 image = !String.IsNullOrWhiteSpace(image) ? "/Admin/Public/GetImage.ashx?Image=" + image + "&Height=1080&Crop=5" : ""; 263 string topMediaContainerClass = GetBoolean("Item.Page.BigHeader") ? "bigHeader" : String.Empty; 264 topMediaContainerClass += GetBoolean("Item.Page.NoWhiteText") ? " noWhiteText" : String.Empty; 265 var request = System.Web.HttpContext.Current.Request.Params; 266 string buttonText = GetString("Item.Page.ButtonText"), 267 buttonLink = GetString("Item.Page.ButtonLink"); 268 269 // Group Image - Banner 270 var isGroupBanner = false; 271 if (request["groupid"] != null) 272 { 273 var group = Dynamicweb.Ecommerce.Products.Group.GetGroupById(request["groupid"].ToString()); 274 275 if(group != null){ 276 if (group.ParentGroups.Count > 0) 277 { 278 group = group.ParentGroups[0]; 279 } 280 281 var groupName = group.Name; 282 var groupImage = !string.IsNullOrWhiteSpace(group.LargeImage) ? group.LargeImage : group.SmallImage; 283 var groupDescription = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerDescription").Value.ToString(); 284 var bannerTextColor = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerTextColor").Value.ToString(); 285 var bannerTextBackgroundColor = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerTextBackgroundColor").Value.ToString(); 286 var bannerTextBackgroundOpacity = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerTextBackgroundOpacity").Value.ToString(); 287 288 if (!string.IsNullOrWhiteSpace(groupImage)) 289 { 290 isGroupBanner = true; 291 image = "/Admin/Public/GetImage.ashx?Image=/Files" + groupImage + "&Height=1080&Crop=5"; 292 293 <section id="pageHeadingContainer" class="groupBanner @topMediaContainerClass" style="background-image:url('@image')"> 294 <div class="col-xs-12 col-md-6 col-md-offset-3"> 295 <div id="bannerTextBackground" style="background: @bannerTextBackgroundColor; opacity: @bannerTextBackgroundOpacity"></div> 296 <h2 style="color: @bannerTextColor;">@groupName</h2> 297 <p style="color: @bannerTextColor !important;">@groupDescription</p> 298 </div> 299 </section> 300 } 301 } 302 } 303 304 if (!String.IsNullOrWhiteSpace(image) && String.IsNullOrWhiteSpace(video) && !isGroupBanner) 305 { 306 string layoutType = !string.IsNullOrWhiteSpace(subHeading) ? "twoColumn" : "oneColumn"; 307 string headerClass = leftAlign ? "text-left" : ""; 308 309 <section id="pageHeadingContainer" class="@topMediaContainerClass" style="background-image:url('@image')"> 310 <div id="pageHeadingContent" class="container @layoutType"> 311 <p class="h1 @headerClass">@heading</p> 312 <p>@subHeading 313 @if (!string.IsNullOrEmpty(buttonLink)) 314 { 315 <a class="btn btn-bg pull-left" href="@buttonLink">@buttonText</a> 316 } 317 </p> 318 </div> 319 </section> 320 } 321 } 322 @helper UserDoesNotExist() 323 { 324 if (Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && !Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 325 { 326 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Password"]) && !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Username"])) 327 { 328 @SnippetStart("jsOnLoad") 329 @:var showLogin = true; 330 @:alert("@(Translate("userNotFoundInTheDatabase", "User not found in the database"))"); 331 @SnippetEnd("jsOnLoad") 332 } 333 } 334 } 335 @helper Logo(string cssclass, string companyName, string designName) 336 { 337 string logo = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "/Admin/Public/GetImage.ashx?Image=/Files/Templates/Designs/"+designName+"/images/logo.png&Width=220" : "/Files/Templates/Designs/"+designName+"/images/logo.png"; 338 339 <figure class="@cssclass" id="logo"> 340 <a href="/"> 341 <img class="img-responsive" src="@logo" alt="@companyName" title="@companyName"> 342 </a> 343 </figure> 344 } 345 @helper DemoBanner() 346 { 347 if (GetBoolean("Item.Area.Banner") && System.Web.HttpContext.Current.Request.Cookies["demoMode"] == null) 348 { 349 <div class="demoMode">Demo</div> 350 } 351 } 352 @helper Copyright() 353 { 354 <div class="col-xs-12 copyright">&copy; @DateTime.Now.Year @GetString("Item.Area.CompanyName") @*- @GetString("Item.Area.Copyright")*@</div> 355 } 356 357 @helper RenderSearchBar() 358 { 359 var resultsPage = GetInteger("Item.Area.SearchResults"); 360 var q = (System.Web.HttpContext.Current.Request["q"] ?? "").ToString(); 361 362 <div id="searchContainer" class="col-sm-offset-4 col-sm-8 col-xs-12"> 363 <div class="searchContainer col-xs-12"> 364 <form action="/Default.aspx" id="searchForm"> 365 <fieldset class="col-xs-4 Select mandatory pull-right hidden"> 366 <label for="searchSubmit" class="hide">@Translate("search", "Search")</label> 367 <select name="ID"> 368 <option value="@resultsPage" selected="">@Translate("productSearch", "Product Search")</option> 369 </select> 370 </fieldset> 371 <fieldset class="col-xs-12 TextInput mandatory noPadding"> 372 <label for="searchSubmit" class="hide">@Translate("search", "Search")</label> 373 <input placeholder='@Translate("search", "Search")' id="searchSubmit" data-error='@Translate("searchText", "Search for something")' type="text" name="q" value="@q"> 374 </fieldset> 375 <input type="submit" class="hidden" value="send"> 376 </form> 377 </div> 378 <div id="autocompleteWrap">&nbsp;</div> 379 </div> 380 } 381 382 @functions { 383 private string CommaSplittedString(string CommaSplittedString, string NewString) 384 { 385 386 if (!string.IsNullOrEmpty(CommaSplittedString)) 387 { 388 CommaSplittedString += ", "; 389 } 390 CommaSplittedString += NewString; 391 392 return CommaSplittedString; 393 } 394 public static string StripHtml(string source) 395 { 396 return Regex.Replace(source, "<.*?>", string.Empty); 397 } 398 } 399 @{ 400 var currentQuery = "Default.aspx" + System.Web.HttpContext.Current.Request.Url.Query; 401 if (!string.IsNullOrEmpty(currentQuery) && currentQuery.ToLower().Equals(string.Format("default.aspx?id={0}", Pageview.Page.ID))) 402 { 403 var newQuery = currentQuery; 404 var filterParamters = GetString("Item.Page.FilterParameters").Split(new string[] {"&", "?"}, StringSplitOptions.RemoveEmptyEntries); 405 406 foreach (var fp in filterParamters) 407 { 408 if (!currentQuery.Contains(fp.Substring(0, fp.IndexOf("=")) + "=")) 409 { 410 newQuery += newQuery.Contains("?") ? "&" : "?"; 411 newQuery += fp; 412 } 413 } 414 415 if (currentQuery != newQuery) 416 { 417 System.Web.HttpContext.Current.Response.Redirect(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(newQuery), true); 418 } 419 } 420 421 string device = Pageview.Device.ToString(); 422 string homeOrSubpage = GetString("DwAreaFirstPageID") == Pageview.Page.ID.ToString() ? "home" : "subpage"; 423 string print = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "printOrPdf" : ""; 424 string contactUsPage = GetString("Item.Area.ContactUs"); 425 string countryCode = Dna.IP.Frontend.GetCountryCode(); 426 string longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(); 427 string email = GetString("Item.Area.Email"); 428 string phone = GetString("Item.Area.Phone"); 429 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 430 bool isPrint = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]); 431 bool bol_backofficeLogged = Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser() != null ? true : false; 432 List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"); 433 List<LoopItem> websiteLanguages = GetLoop("WebsiteLanguages"); 434 if (userIsLoggedIn) 435 { 436 string logedUserId = Pageview.User.CurrentSecondaryUser == null ? Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId().ToString() : Pageview.User.CurrentSecondaryUser.ID.ToString(); 437 System.Web.HttpContext.Current.Session["UserId"] = logedUserId; 438 439 if (System.Web.HttpContext.Current.Request["DWExtranetSecondaryUserSelector"] != null && Pageview.User.CurrentSecondaryUser != null) 440 { 441 System.Web.HttpContext.Current.Session["AccountsNumber"] = Pageview.User.CurrentSecondaryUser.GetUsersICanSetAsSecondary().Count; 442 } 443 } 444 }<!DOCTYPE HTML> 445 <!--[if lt IE 8 ]><html class="ie7" lang="@(longLang)"><![endif]--><!--[if IE 8 ]><html class="ie8" lang="@(longLang)"><![endif]--><!--[if IE 9 ]><html class="ie9" lang="@(longLang)"><![endif]--><!--[if (gt IE 9)|!(IE)]><!--> 446 <html lang="@(longLang)"> 447 <!--<![endif]--> 448 @HtmlHead(designName) 449 <body class="@device logged_@userIsLoggedIn.ToString() @homeOrSubpage @print" data-countrycode="@countryCode"> 450 451 <!-- Google Tag Manager (noscript) --> 452 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W3WZTZK" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 453 <!-- End Google Tag Manager (noscript) --> 454 455 456 <div class="wrap"> 457 <header id="headerContainer" class="container-fluid noPadding"> 458 <h1 class="hidden">@GetString("Title")</h1> 459 <div id="topHeaderContainer" class="col-xs-12 noPadding"> 460 <div class="container noPadding"> 461 @Logo("col-md-4 col-sm-6 col-xs-12", GetString("Item.Area.CompanyName"), designName) 462 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)")) && !isPrint) 463 { 464 <nav id="topMenuContainer" class="navbar navbar-default col-xs-12 col-sm-6 col-md-8"> 465 <div class="col-xs-12 welcomeBack"> 466 @if (userIsLoggedIn) 467 { 468 string userName = !string.IsNullOrWhiteSpace(Pageview.User.Name) ? Pageview.User.Name : string.Format("{0}{1}", Pageview.User.FirstName, Pageview.User.LastName); 469 string pageId = Pageview.Page.ID.ToString(); 470 bool isImpersonate = Pageview.User.CurrentSecondaryUser != null; 471 string switchAccountUrl = string.Format("Default.aspx?ID={0}", (Pageview.Area.Item["ManageAccounts"] ?? "").ToString()); 472 473 if (isImpersonate && !(System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString().Equals("1")) 474 { 475 <span>@Translate("managingAccount", "Managing Account"): @(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName)</span> 476 <a href="@switchAccountUrl">@Translate("switchAccount", "SwitchAccount")</a> 477 <a href="/Admin/Public/ExtranetLogoff.aspx">@Translate("logout", "Logout")</a> 478 } 479 else 480 { 481 <span>@Translate("welcomeBack", "Welcome Back,") @(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName)</span> 482 <a href="/Admin/Public/ExtranetLogoff.aspx">@Translate("logout", "Logout")</a> 483 } 484 } 485 </div> 486 @RenderSearchBar() 487 @GetValue("DwNavigation(topMenu)") 488 </nav> 489 } 490 </div> 491 </div> 492 <div id="menuMainContainer" class="col-xs-12 noPadding"> 493 <div id="mainNavContainer" class="col-xs-12 noPadding"> 494 <div class="container noPadding"> 495 @if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMain)"))) 496 { 497 <nav class="navbar navbar-default"> 498 <div class="navbar-header"> 499 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> 500 <i class="fa fa-bars"></i> 501 </button> 502 </div> 503 <div id="navbar" class="navbar-collapse collapse noPadding"> 504 @GetValue("DwNavigation(menuMain)") 505 </div> 506 </nav> 507 } 508 </div> 509 </div> 510 </div> 511 @RenderSnippet("loginForm") 512 </header> 513 @RenderPageImageVideo(GetString("Item.Page.Image"), GetString("Item.Page.Video")) 514 @RenderPageHeading(GetString("Item.Page.PageHeading"), GetString("Item.Page.PageSubHeading"), GetString("Item.Page.Image"), GetString("Item.Page.Video"), GetBoolean("Item.Page.PageHeadingAlignLeft")) 515 516 @if (!GetBoolean("Item.Page.Hide2ndLevelMenu") && !GetString("Item.ItemInstanceType").Equals("News")) 517 { 518 @GetValue("DwNavigation(groupMenu)") 519 } 520 521 <section id="contentWrapper"> 522 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 523 @using Dynamicweb.Rendering; 524 525 526 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 527 @using Dynamicweb.Rendering; 528 529 @helper Breadcrumb() { 530 if (!string.IsNullOrEmpty(GetString("DwNavigation(breadCrumbsMenu2)"))) 531 { 532 <div class="col-xs-12 noPadding"> 533 <nav id="breadMenuContainer" class="col-xs-12 noPadding"> 534 <ul id="breadCrumbsMenu"> 535 <li><a href="/">@Translate("home", "Home")</a></li> 536 @GetValue("DwNavigation(breadCrumbsMenu2)") 537 @if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 538 { 539 <li> 540 &nbsp;»&nbsp; 541 @GetString("Title") 542 </li> 543 } 544 </ul> 545 </nav> 546 </div> 547 } 548 } 549 550 @helper PageTitle(string image, string video) 551 { 552 if (String.IsNullOrWhiteSpace(image) && String.IsNullOrWhiteSpace(video) && !GetBoolean("Item.Page.HidePageTitle")) 553 { 554 string heading = GetString("Item.Page.PageHeading"), 555 title = !String.IsNullOrEmpty(heading) ? heading : GetString("DwPageName"); 556 <div class="container pageTitle"> 557 <div class="h1">@title</div> 558 </div> 559 } 560 } 561 562 @helper CentralContent(string rightClass = "col-xs-12 noPadding") { 563 if (!string.IsNullOrEmpty(GetString("DwContent(fullWidthContent)"))) 564 { 565 <section id="fullWidthContainer" class="container-fluid fullWidthSection"> 566 <div id="fullWidthContent" class="row">@GetValue("DwContent(fullWidthContent)")</div> 567 </section> 568 } 569 570 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent)"))) 571 { 572 <div class="container"> 573 <section id="centralContainer" class="col-xs-12 noPadding-xs"> 574 <div id="centralContent" class="row">@GetValue("DwContent(centralContent)")</div> 575 </section> 576 </div> 577 } 578 579 if (!string.IsNullOrEmpty(GetString("DwContent(fullWidthContent2)"))) 580 { 581 <section id="fullWidthContainer2" class="container-fluid fullWidthSection"> 582 <div id="fullWidthContent2" class="row">@GetValue("DwContent(fullWidthContent2)")</div> 583 </section> 584 } 585 586 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent2)"))) 587 { 588 <div class="container"> 589 <section id="centralContainer2" class="col-xs-12 noPadding-xs"> 590 <div id="centralContent2" class="row">@GetValue("DwContent(centralContent2)")</div> 591 </section> 592 </div> 593 } 594 } 595 596 @Breadcrumb() 597 @PageTitle() 598 @if(!string.IsNullOrEmpty(GetString("DwNavigation(leftMenu)"))){ 599 <nav id="leftMenuContainer" class="col-sm-3 noPaddingLeft"> 600 @GetValue("DwNavigation(leftMenu)") 601 </nav> 602 } 603 @CentralContent("col-xs-9 noPadding") 604 </section> 605 606 @if (!isPrint) 607 { 608 <footer id="footer" class="container-fluid noPadding"> 609 <div id="footerLargeMenuContainer" class="container-fluid noPadding"> 610 <div class="container"> 611 <div class="col-sm-12 socialContainer"> 612 @if (socialMedia.Any()) 613 { 614 @SnippetStart("socialMedia") 615 <ul class="noPadding" id="socialMedia"> 616 @foreach (LoopItem socialItem in socialMedia) 617 { 618 string className = socialItem.GetString("Item.Area.SocialNetworks.Icon"), 619 socialName = socialItem.GetString("Item.Area.SocialNetworks.Name"), 620 socialLink = socialItem.GetString("Item.Area.SocialNetworks.Link"); 621 622 socialLink = !string.IsNullOrEmpty(socialLink) ? socialLink : "#"; 623 624 <li> 625 <a title="@socialName" class="@className fa" target="_blank" href="@socialLink"> 626 <span class="hidden">@socialName</span> 627 </a> 628 </li> 629 } 630 </ul> 631 @SnippetEnd("socialMedia") 632 @RenderSnippet("socialMedia") 633 } 634 </div> 635 636 @if (!string.IsNullOrEmpty(GetString("DwNavigation(bottomMenu)"))) 637 { 638 <nav id="bottomMenuContainer" class="col-xs-12"> 639 @GetValue("DwNavigation(bottomMenu)") 640 </nav> 641 } 642 643 <div class="footerContactInfo col-xs-12 noPadding-left hidden"> 644 <p class="noPadding"> 645 <a href="mailto:@email">@email</a> 646 </p> 647 <p class="noPadding"> 648 <a href="tel:@phone">@phone</a> 649 </p> 650 </div> 651 652 </div> 653 <div id="copyrightContainer" class="container-fluid"> 654 <div class="container"> 655 <div class="row"> 656 <div class="col-xs-12 col-md-6">@Copyright()</div> 657 <div class="col-xs-12 col-md-6"> 658 @if (!string.IsNullOrEmpty(GetString("DwNavigation(copyrightMenu)"))) 659 { 660 <nav id="copyrightMenuContainer"> 661 @GetValue("DwNavigation(copyrightMenu)") 662 </nav> 663 } 664 665 </div> 666 </div> 667 </div> 668 </div> 669 @DemoBanner() 670 </div></footer> 671 } 672 673 </div> 674 @if (bol_backofficeLogged) 675 { 676 <div id="urlPath" class="text-center col-xs-12"> 677 @Pageview.GlobalTags.GetTagByName("Global:Request.PathAndQuery").Value <br> 678 @Pageview.GlobalTags.GetTagByName("Global:Request.Url").Value 679 </div> 680 } 681 @RenderSnippet("bodyBeforeEnd") 682 683 <!-- Begin Marketo --> 684 <script type="text/javascript"> 685 (function() { 686 var didInit = false; 687 function initMunchkin() { 688 if(didInit === false) { 689 didInit = true; 690 Munchkin.init('183-OHQ-796'); 691 } 692 } 693 var s = document.createElement('script'); 694 s.type = 'text/javascript'; 695 s.async = true; 696 s.src = '//munchkin.marketo.net/munchkin.js'; 697 s.onreadystatechange = function() { 698 if (this.readyState == 'complete' || this.readyState == 'loaded') { 699 initMunchkin(); 700 } 701 }; 702 s.onload = initMunchkin; 703 document.getElementsByTagName('head')[0].appendChild(s); 704 })(); 705 </script> 706 <!-- End Marketo --> 707 708 </body> 709 710 </html> 711 712 @SnippetStart("loginForm") 713 @{ 714 string createAccountPage = GetString("Item.Area.CreateAccount"); 715 string addUserPage = GetString("Item.Area.AddUser"); 716 string loginPage = GetString("Item.Area.Login"); 717 } 718 <form id="masterExtUserForm" class="col-xs-12 DMForms userRelatedForms hidden" action="/Default.aspx?ID=@Pageview.Page.ID" method="post"> 719 <fieldset class="mandatory TextInput"> 720 <label for="Username">@Translate("usernameEmail", "Username / Email")</label> 721 <input type="email" id="Username" name="username" value="" tabindex="1"> 722 </fieldset> 723 <fieldset class="mandatory TextInput"> 724 <label for="Password">@Translate("password", "Password")</label> 725 <input autocomplete="off" type="password" id="Password" name="password" value="" tabindex="2"> 726 </fieldset> 727 728 <div class="col-xs-12 noPadding"> 729 <input tabindex="3" class="btn btn-bg" name="LoginAction" type="submit" value='@Translate("Login", "Login")'> 730 </div> 731 <div class="forgotButtons col-xs-12 noPadding"> 732 <span class="title">@Translate("currentCustomer", "Current Customer?")</span> 733 <a id="forgotPassword" href="@loginPage&amp;LoginAction=Recovery">@Translate("forgotYourPassword", "Forgot your password?")</a> 734 <a href="@addUserPage">@Translate("addUserToExistingAccount", "Add new user to an existing PBi account")</a> 735 </div> 736 <div id="dontHaveAnAccount" class="col-xs-12 noPadding"> 737 <span class="title">@Translate("newCustomer", "New Customer?")</span> 738 <a href="@createAccountPage">@Translate("createAccount", "Create account")</a> 739 </div> 740 </form> 741 @SnippetEnd("loginForm") 742 <!--Start GDPR Cookie Script--> <script type="text/javascript" charset="UTF-8" src="/Files/Templates/Designs/PacificBag/=" ca-eu.cookie-script.com/s/4615528e5aefd86935f9f18ffef91ed5.js"=""></script> <!--End GDPR Cookie Script--> 743 <!-- Google Tag Manager (noscript) --> 744 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W3WZTZK" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 745 <!-- End Google Tag Manager (noscript) --> 746