Error compiling template "Designs/PacificBag/_parsed/leftMenu.parsed.cshtml"
Line 1671: No overload for method 'PageTitle' takes 0 arguments

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