/// <summary> /// Makes keyword substitutions on layout text. /// </summary> /// <param name="page">Page information.</param> /// <param name="text">Text.</param> /// <returns>Text with keywords replaced with dynamic content.</returns> private string FormatLayoutHtml(Page page, string text) { if (page.PreviewImageUploadId.HasValue && text != null && text.Contains("class=\"jumbotron-outer\"")) { string url = _webHelperService.RouteUrl("ReadPageImage", new { pageid = page.PageId, format = "preview", description = _webHelperService.UrlFriendly(page.Name), t = page.PreviewImageUploadId }); string replaceText = string.Format("class=\"jumbotron-outer\" style=\"background-image: url({0});\"", url); text = text.Replace("class=\"jumbotron-outer\"", replaceText); } return(text); }
public string GetUpdateProfileLogonUrl() { return(_webHelperService.RouteUrl("LogonUser", new { reason = "updateprofile" })); }