public string GenerateCounter(WeblogPost post) { string url = Globals.FullPath(BlogUrls.Instance().Post(post)); string title = post.Subject; return(DotNetShoutoutCounterGenerator.Generate(url, title, _borderColor, _textBackColor, _textForeColor, _countBackColor, _countForeColor)); }
private string GenerateLink(string url, string title, out Position position) { string html = DotNetShoutoutCounterGenerator.Generate(url, title, _settings.BorderColor, _settings.ShoutItBackColor, _settings.ShoutItForeColor, _settings.CountBackColor, _settings.CountForeColor); _settings.Content = html; position = Position.Footer; return(_settings.Content); }
public string Counter(Post post, string borderColor, string textBackColor, string textForeColor, string countBackColor, string countForeColor) { if (post == null) { throw new ArgumentNullException("post", "post cannot be null."); } string url = new Macros().FullUrl(post.Url); string title = post.Title; return(DotNetShoutoutCounterGenerator.Generate(url, title, borderColor, textBackColor, textForeColor, countBackColor, countForeColor)); }
private void UpdatePreview() { picPreview.ImageLocation = DotNetShoutoutCounterGenerator.ImageSource(DotNetShoutoutCounterGenerator.BaseUrl, borderColor.Value, shoutItBackColor.Value, shoutItForeColor.Value, countBackColor.Value, countForeColor.Value); }
private static string Generate(IPublishable post) { return(DotNetShoutoutCounterGenerator.Generate(post.AbsoluteLink.ToString(), post.Title, _borderColor, _textBackColor, _textForeColor, _countBackColor, _countForeColor)); }