Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
 private void UpdatePreview()
 {
     picPreview.ImageLocation = DotNetShoutoutCounterGenerator.ImageSource(DotNetShoutoutCounterGenerator.BaseUrl, borderColor.Value, shoutItBackColor.Value, shoutItForeColor.Value, countBackColor.Value, countForeColor.Value);
 }
Esempio n. 5
0
 private static string Generate(IPublishable post)
 {
     return(DotNetShoutoutCounterGenerator.Generate(post.AbsoluteLink.ToString(), post.Title, _borderColor, _textBackColor, _textForeColor, _countBackColor, _countForeColor));
 }