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

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