Error compiling template "Designs/PacificBag/_parsed/leftMenu.parsed.cshtml"
Line 1620: 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 ga('create', '@GetString("Item.Area.GoogleAnalytics")', 'auto'); 196 ga('send', 'pageview'); 197 </text> 198 } 199 </script> 200 </head> 201 } 202 @helper RenderPageImageVideo(string image, string video) 203 { 204 if (!String.IsNullOrWhiteSpace(video)) 205 { 206 image = "/Admin/Public/GetImage.ashx?Image=" + image + "&Height=1080&Crop=5"; 207 208 <section id="topMediaContainer" data-image="@image" data-video="@video"> 209 @if (!String.IsNullOrWhiteSpace(image)) 210 { 211 <img src="@image" class="hidden"> 212 } 213 @if (!String.IsNullOrWhiteSpace(video)) 214 { 215 <span class="hidden">@video</span> 216 } 217 </section> 218 @SnippetStart("jsOnLoad") 219 @:onLoadTopMediaContainer("@(GetString("Item.Page.ButtonText"))", "@(GetString("Item.Page.ButtonLink"))"); 220 @SnippetEnd("jsOnLoad") 221 } 222 } 223 224 @helper RenderPageHeading(string heading, string subHeading, string image, string video, bool leftAlign) 225 { 226 image = !String.IsNullOrWhiteSpace(image) ? "/Admin/Public/GetImage.ashx?Image=" + image + "&Height=1080&Crop=5" : ""; 227 string topMediaContainerClass = GetBoolean("Item.Page.BigHeader") ? "bigHeader" : String.Empty; 228 topMediaContainerClass += GetBoolean("Item.Page.NoWhiteText") ? " noWhiteText" : String.Empty; 229 var request = System.Web.HttpContext.Current.Request.Params; 230 string buttonText = GetString("Item.Page.ButtonText"), 231 buttonLink = GetString("Item.Page.ButtonLink"); 232 233 // Group Image - Banner 234 if (request["groupid"] != null) 235 { 236 var group = Dynamicweb.Ecommerce.Products.Group.GetGroupById(request["groupid"].ToString()); 237 238 if(group != null){ 239 if (group.ParentGroups.Count > 0) 240 { 241 group = group.ParentGroups[0]; 242 } 243 244 string groupName = group.Name; 245 string groupImage = !string.IsNullOrWhiteSpace(group.LargeImage) ? group.LargeImage : group.SmallImage; 246 string groupDescription = group.ProductGroupFieldValues.GetProductGroupFieldValue("BannerDescription").Value.ToString(); 247 248 if (!string.IsNullOrWhiteSpace(groupImage)) 249 { 250 heading = groupName; 251 subHeading = groupDescription; 252 image = "/Admin/Public/GetImage.ashx?Image=/Files" + groupImage + "&Height=1080&Crop=5"; 253 } 254 } 255 256 } 257 258 if (!String.IsNullOrWhiteSpace(image) && String.IsNullOrWhiteSpace(video)) 259 { 260 string layoutType = !string.IsNullOrWhiteSpace(subHeading) ? "twoColumn" : "oneColumn"; 261 string headerClass = leftAlign ? "text-left" : ""; 262 263 <section id="pageHeadingContainer" class="@topMediaContainerClass" style="background-image:url('@image')"> 264 <div id="pageHeadingContent" class="container @layoutType"> 265 <p class="h1 @headerClass">@heading</p> 266 <p>@subHeading 267 @if (!string.IsNullOrEmpty(buttonLink)) 268 { 269 <a class="btn btn-bg pull-left" href="@buttonLink">@buttonText</a> 270 } 271 </p> 272 </div> 273 </section> 274 } 275 } 276 @helper UserDoesNotExist() 277 { 278 if (Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && !Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 279 { 280 if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Password"]) && !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["Username"])) 281 { 282 @SnippetStart("jsOnLoad") 283 @:var showLogin = true; 284 @:alert("@(Translate("userNotFoundInTheDatabase", "User not found in the database"))"); 285 @SnippetEnd("jsOnLoad") 286 } 287 } 288 } 289 @helper Logo(string cssclass, string companyName, string designName) 290 { 291 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"; 292 293 <figure class="@cssclass"> 294 <a href="/"> 295 <img class="img-responsive" src="@logo" alt="@companyName" title="@companyName"> 296 </a> 297 </figure> 298 } 299 @helper DemoBanner() 300 { 301 if (GetBoolean("Item.Area.Banner") && System.Web.HttpContext.Current.Request.Cookies["demoMode"] == null) 302 { 303 <div class="demoMode">Demo</div> 304 } 305 } 306 @helper Copyright() 307 { 308 <div class="col-xs-12 copyright">&copy; @DateTime.Now.Year @GetString("Item.Area.CompanyName") @*- @GetString("Item.Area.Copyright")*@</div> 309 } 310 311 @helper RenderSearchBar() 312 { 313 var resultsPage = GetInteger("Item.Area.SearchResults"); 314 var q = (System.Web.HttpContext.Current.Request["q"] ?? "").ToString(); 315 316 <div id="searchContainer" class="col-sm-offset-4 col-sm-8 col-xs-12"> 317 <div class="searchContainer col-xs-12"> 318 <form action="/Default.aspx" id="searchForm"> 319 <fieldset class="col-xs-4 Select mandatory pull-right hidden"> 320 <label for="searchSubmit" class="hide">@Translate("search", "Search")</label> 321 <select name="ID"> 322 <option value="@resultsPage" selected="">@Translate("productSearch", "Product Search")</option> 323 </select> 324 </fieldset> 325 <fieldset class="col-xs-12 TextInput mandatory noPadding"> 326 <label for="searchSubmit" class="hide">@Translate("search", "Search")</label> 327 <input placeholder='@Translate("search", "Search")' id="searchSubmit" data-error='@Translate("searchText", "Search for something")' type="text" name="q" value="@q"> 328 </fieldset> 329 <input type="submit" class="hidden" value="send"> 330 </form> 331 </div> 332 <div id="autocompleteWrap">&nbsp;</div> 333 </div> 334 } 335 336 @functions { 337 private string CommaSplittedString(string CommaSplittedString, string NewString) 338 { 339 340 if (!string.IsNullOrEmpty(CommaSplittedString)) 341 { 342 CommaSplittedString += ", "; 343 } 344 CommaSplittedString += NewString; 345 346 return CommaSplittedString; 347 } 348 public static string StripHtml(string source) 349 { 350 return Regex.Replace(source, "<.*?>", string.Empty); 351 } 352 } 353 @{ 354 var currentQuery = "Default.aspx" + System.Web.HttpContext.Current.Request.Url.Query; 355 if (!string.IsNullOrEmpty(currentQuery) && currentQuery.ToLower().Equals(string.Format("default.aspx?id={0}", Pageview.Page.ID))) 356 { 357 var newQuery = currentQuery; 358 var filterParamters = GetString("Item.Page.FilterParameters").Split(new string[] {"&", "?"}, StringSplitOptions.RemoveEmptyEntries); 359 360 foreach (var fp in filterParamters) 361 { 362 if (!currentQuery.Contains(fp.Substring(0, fp.IndexOf("=")) + "=")) 363 { 364 newQuery += newQuery.Contains("?") ? "&" : "?"; 365 newQuery += fp; 366 } 367 } 368 369 if (currentQuery != newQuery) 370 { 371 System.Web.HttpContext.Current.Response.Redirect(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(newQuery), true); 372 } 373 } 374 375 string device = Pageview.Device.ToString(); 376 string homeOrSubpage = GetString("DwAreaFirstPageID") == Pageview.Page.ID.ToString() ? "home" : "subpage"; 377 string print = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]) ? "printOrPdf" : ""; 378 string contactUsPage = GetString("Item.Area.ContactUs"); 379 string countryCode = Dna.IP.Frontend.GetCountryCode(); 380 string longLang = Pageview.GlobalTags.GetTagByName("Global:Area.LongLang").Value.ToString(); 381 string email = GetString("Item.Area.Email"); 382 string phone = GetString("Item.Area.Phone"); 383 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 384 bool isPrint = !string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["print"]); 385 bool bol_backofficeLogged = Dynamicweb.Security.UserManagement.User.GetCurrentBackendUser() != null ? true : false; 386 List<LoopItem> socialMedia = GetLoop("Item.Area.SocialNetworks"); 387 List<LoopItem> websiteLanguages = GetLoop("WebsiteLanguages"); 388 if (userIsLoggedIn) 389 { 390 string logedUserId = Pageview.User.CurrentSecondaryUser == null ? Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUserId().ToString() : Pageview.User.CurrentSecondaryUser.ID.ToString(); 391 System.Web.HttpContext.Current.Session["UserId"] = logedUserId; 392 393 if (System.Web.HttpContext.Current.Request["DWExtranetSecondaryUserSelector"] != null && Pageview.User.CurrentSecondaryUser != null) 394 { 395 System.Web.HttpContext.Current.Session["AccountsNumber"] = Pageview.User.CurrentSecondaryUser.GetUsersICanSetAsSecondary().Count; 396 } 397 } 398 }<!DOCTYPE HTML> 399 <!--[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)]><!--> 400 <html lang="@(longLang)"> 401 <!--<![endif]--> 402 @HtmlHead(designName) 403 <body class="@device logged_@userIsLoggedIn.ToString() @homeOrSubpage @print" data-countrycode="@countryCode"> 404 <div class="wrap"> 405 <header id="headerContainer" class="container-fluid noPadding"> 406 <h1 class="hidden">@GetString("Title")</h1> 407 <div id="topHeaderContainer" class="col-xs-12 noPadding"> 408 <div class="container noPadding"> 409 @Logo("col-md-4 col-sm-6 col-xs-12", GetString("Item.Area.CompanyName"), designName) 410 @if (!string.IsNullOrEmpty(GetString("DwNavigation(topMenu)")) && !isPrint) 411 { 412 <nav id="topMenuContainer" class="navbar navbar-default col-xs-12 col-sm-6 col-md-8"> 413 <div class="col-xs-12 welcomeBack"> 414 @if (userIsLoggedIn) 415 { 416 string userName = !string.IsNullOrWhiteSpace(Pageview.User.Name) ? Pageview.User.Name : string.Format("{0}{1}", Pageview.User.FirstName, Pageview.User.LastName); 417 string pageId = Pageview.Page.ID.ToString(); 418 bool isImpersonate = Pageview.User.CurrentSecondaryUser != null; 419 string switchAccountUrl = string.Format("Default.aspx?ID={0}", (Pageview.Area.Item["ManageAccounts"] ?? "").ToString()); 420 421 if (isImpersonate && !(System.Web.HttpContext.Current.Session["AccountsNumber"] ?? "").ToString().Equals("1")) 422 { 423 <span>@Translate("managingAccount", "Managing Account"): @(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName)</span> 424 <a href="@switchAccountUrl">@Translate("switchAccount", "SwitchAccount")</a> 425 <a href="/Admin/Public/ExtranetLogoff.aspx">@Translate("logout", "Logout")</a> 426 } 427 else 428 { 429 <span>@Translate("welcomeBack", "Welcome Back,") @(!string.IsNullOrWhiteSpace(userName) ? userName : Pageview.User.UserName)</span> 430 <a href="/Admin/Public/ExtranetLogoff.aspx">@Translate("logout", "Logout")</a> 431 } 432 } 433 </div> 434 @RenderSearchBar() 435 @GetValue("DwNavigation(topMenu)") 436 </nav> 437 } 438 </div> 439 </div> 440 <div id="menuMainContainer" class="col-xs-12 noPadding"> 441 <div id="mainNavContainer" class="col-xs-12 noPadding"> 442 <div class="container noPadding"> 443 @if (!string.IsNullOrEmpty(GetString("DwNavigation(menuMain)"))) 444 { 445 <nav class="navbar navbar-default"> 446 <div class="navbar-header"> 447 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> 448 <i class="fa fa-bars"></i> 449 </button> 450 </div> 451 <div id="navbar" class="navbar-collapse collapse noPadding"> 452 @GetValue("DwNavigation(menuMain)") 453 </div> 454 </nav> 455 } 456 </div> 457 </div> 458 </div> 459 @RenderSnippet("loginForm") 460 </header> 461 @RenderPageImageVideo(GetString("Item.Page.Image"), GetString("Item.Page.Video")) 462 @RenderPageHeading(GetString("Item.Page.PageHeading"), GetString("Item.Page.PageSubHeading"), GetString("Item.Page.Image"), GetString("Item.Page.Video"), GetBoolean("Item.Page.PageHeadingAlignLeft")) 463 464 @if (!GetBoolean("Item.Page.Hide2ndLevelMenu") && !GetString("Item.ItemInstanceType").Equals("News")) 465 { 466 @GetValue("DwNavigation(groupMenu)") 467 } 468 469 <section id="contentWrapper"> 470 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 471 @using Dynamicweb.Rendering; 472 473 474 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 475 @using Dynamicweb.Rendering; 476 477 @helper Breadcrumb() { 478 if (!string.IsNullOrEmpty(GetString("DwNavigation(breadCrumbsMenu2)"))) 479 { 480 <div class="col-xs-12 noPadding"> 481 <nav id="breadMenuContainer" class="col-xs-12 noPadding"> 482 <ul id="breadCrumbsMenu"> 483 <li><a href="/">@Translate("home", "Home")</a></li> 484 @GetValue("DwNavigation(breadCrumbsMenu2)") 485 @if (!string.IsNullOrEmpty(System.Web.HttpContext.Current.Request.Params["productid"])) 486 { 487 <li> 488 &nbsp;»&nbsp; 489 @GetString("Title") 490 </li> 491 } 492 </ul> 493 </nav> 494 </div> 495 } 496 } 497 498 @helper PageTitle(string image, string video) 499 { 500 if (String.IsNullOrWhiteSpace(image) && String.IsNullOrWhiteSpace(video)) 501 { 502 string heading = GetString("Item.Page.PageHeading"), 503 title = !String.IsNullOrEmpty(heading) ? heading : GetString("DwPageName"); 504 <div class="container pageTitle"> 505 <div class="h1">@title</div> 506 </div> 507 } 508 } 509 510 @helper CentralContent(string rightClass = "col-xs-12 noPadding") { 511 if (!string.IsNullOrEmpty(GetString("DwContent(fullWidthContent)"))) 512 { 513 <section id="fullWidthContainer" class="container-fluid fullWidthSection"> 514 <div id="fullWidthContent" class="row">@GetValue("DwContent(fullWidthContent)")</div> 515 </section> 516 } 517 518 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent)"))) 519 { 520 <div class="container"> 521 <section id="centralContainer" class="col-xs-12 noPadding-xs"> 522 <div id="centralContent" class="row">@GetValue("DwContent(centralContent)")</div> 523 </section> 524 </div> 525 } 526 527 if (!string.IsNullOrEmpty(GetString("DwContent(fullWidthContent2)"))) 528 { 529 <section id="fullWidthContainer2" class="container-fluid fullWidthSection"> 530 <div id="fullWidthContent2" class="row">@GetValue("DwContent(fullWidthContent2)")</div> 531 </section> 532 } 533 534 if (!string.IsNullOrEmpty(GetString("DwContent(centralContent2)"))) 535 { 536 <div class="container"> 537 <section id="centralContainer2" class="col-xs-12 noPadding-xs"> 538 <div id="centralContent2" class="row">@GetValue("DwContent(centralContent2)")</div> 539 </section> 540 </div> 541 } 542 } 543 544 @Breadcrumb() 545 @PageTitle() 546 @if(!string.IsNullOrEmpty(GetString("DwNavigation(leftMenu)"))){ 547 <nav id="leftMenuContainer" class="col-sm-3 noPaddingLeft"> 548 @GetValue("DwNavigation(leftMenu)") 549 </nav> 550 } 551 @CentralContent("col-xs-9 noPadding") 552 </section> 553 554 @if (!isPrint) 555 { 556 <footer id="footer" class="container-fluid noPadding"> 557 <div id="footerLargeMenuContainer" class="container-fluid noPadding"> 558 <div class="container"> 559 <div class="col-sm-12 socialContainer"> 560 @if (socialMedia.Any()) 561 { 562 @SnippetStart("socialMedia") 563 <ul class="noPadding" id="socialMedia"> 564 @foreach (LoopItem socialItem in socialMedia) 565 { 566 string className = socialItem.GetString("Item.Area.SocialNetworks.Icon"), 567 socialName = socialItem.GetString("Item.Area.SocialNetworks.Name"), 568 socialLink = socialItem.GetString("Item.Area.SocialNetworks.Link"); 569 570 socialLink = !string.IsNullOrEmpty(socialLink) ? socialLink : "#"; 571 572 <li> 573 <a title="@socialName" class="@className fa" target="_blank" href="@socialLink"> 574 <span class="hidden">@socialName</span> 575 </a> 576 </li> 577 } 578 </ul> 579 @SnippetEnd("socialMedia") 580 @RenderSnippet("socialMedia") 581 } 582 </div> 583 584 @if (!string.IsNullOrEmpty(GetString("DwNavigation(bottomMenu)"))) 585 { 586 <nav id="bottomMenuContainer" class="col-xs-12"> 587 @GetValue("DwNavigation(bottomMenu)") 588 </nav> 589 } 590 591 <div class="footerContactInfo col-xs-12 noPadding-left hidden"> 592 <p class="noPadding"> 593 <a href="mailto:@email">@email</a> 594 </p> 595 <p class="noPadding"> 596 <a href="tel:@phone">@phone</a> 597 </p> 598 </div> 599 600 </div> 601 <div id="copyrightContainer" class="container-fluid"> 602 <div class="container"> 603 <div class="row"> 604 <div class="col-xs-12 col-md-6">@Copyright()</div> 605 <div class="col-xs-12 col-md-6"> 606 @if (!string.IsNullOrEmpty(GetString("DwNavigation(copyrightMenu)"))) 607 { 608 <nav id="copyrightMenuContainer"> 609 @GetValue("DwNavigation(copyrightMenu)") 610 </nav> 611 } 612 613 </div> 614 </div> 615 </div> 616 </div> 617 @DemoBanner() 618 </div></footer> 619 } 620 621 622 @if (bol_backofficeLogged) 623 { 624 <div id="urlPath" class="text-center col-xs-12"> 625 @Pageview.GlobalTags.GetTagByName("Global:Request.PathAndQuery").Value <br> 626 @Pageview.GlobalTags.GetTagByName("Global:Request.Url").Value 627 </div> 628 } 629 </div></body> 630 </html> 631 632 @SnippetStart("loginForm") 633 @{ 634 string createAccountPage = GetString("Item.Area.CreateAccount"); 635 string addUserPage = GetString("Item.Area.AddUser"); 636 string loginPage = GetString("Item.Area.Login"); 637 } 638 <form id="masterExtUserForm" class="col-xs-12 DMForms userRelatedForms hidden" action="/Default.aspx?ID=@Pageview.Page.ID" method="post"> 639 <fieldset class="mandatory TextInput"> 640 <label for="Username">@Translate("usernameEmail", "Username / Email")</label> 641 <input type="email" id="Username" name="username" value="" tabindex="1"> 642 </fieldset> 643 <fieldset class="mandatory TextInput"> 644 <label for="Password">@Translate("password", "Password")</label> 645 <input autocomplete="off" type="password" id="Password" name="password" value="" tabindex="2"> 646 </fieldset> 647 648 <div class="col-xs-12 noPadding"> 649 <input tabindex="3" class="btn btn-bg" name="LoginAction" type="submit" value='@Translate("Login", "Login")'> 650 </div> 651 <div class="forgotButtons col-xs-12 noPadding"> 652 <a id="forgotPassword" href="@loginPage&amp;LoginAction=Recovery">@Translate("forgotYourPassword", "Forgot your password?")</a> 653 </div> 654 <div id="dontHaveAnAccount" class="col-xs-12 noPadding"> 655 <div> 656 @Translate("dontHaveAnAccount", "Don't have an account?") 657 <a href="@createAccountPage">@Translate("createAccount", "Create account")</a> 658 </div> 659 <div class="addNewAccount"> 660 <a href="@addUserPage">@Translate("addUserToExistingAccount", "Add new user to an existing PBi account")</a> 661 </div> 662 </div> 663 </form> 664 @SnippetEnd("loginForm")