private string ElaborateXHTML(BusiBlocks.DocoBlock.Article latestArticle, BusiBlocks.DocoBlock.ArticleBase article) { var xhtml = new BusiBlocks.XHTMLText(); xhtml.Load(article.Body); string[] attachments = BusiBlocks.DocoBlock.DocoManager.GetFileAttachments(latestArticle, BusiBlocks.DocoBlock.EnabledStatus.Enabled); Array.Sort <string>(attachments); xhtml.ReplaceLinks(delegate(string oldUrl, out string newUrl) { ReplaceLink(latestArticle.Name, attachments, oldUrl, out newUrl); } ); return(xhtml.Xhtml); }
public static string GetTrafficLight(ArticleBase article) { if (article.RequiresAck) { if (article.Acknowledged) { return("~/app_themes/default/icons/cube_green.png"); } else { return("~/app_themes/default/icons/cube_red.png"); } } if (article.Viewed) { return("~/app_themes/default/icons/cube_green.png"); } return("~/app_themes/default/icons/cube_yellow.png"); }
protected string GetViewUrl(BusiBlocks.DocoBlock.ArticleBase article) { return(Navigation.Doco_ViewArticle(ArticleName, article.Version).GetClientUrl(Page, true)); }