After my friend Kris Van der Mast published an article on making custom macros for dasBlog, I now added them to Snowball.be too.In fact, I added 2 more links: to DotNetKicks and Reddit.Here's the source code for these...
public virtual Control Reddit(string linkText, string cssStyle){ if(this.currentEntry != null) { string link = this.currentEntry.Link != null ? this.currentEntry.Link : Utils.GetPermaLinkUrl(this.currentEntry); return new LiteralControl("<a href=\"http://reddit.com/submit?url=" + link + "\" class=\"" + cssStyle + "\">" + linkText + "</a>"); } return new LiteralControl("");}
public virtual Control DotNetKickIt(string linkText, string cssStyle){ if(this.currentEntry != null) { string link = this.currentEntry.Link != null ? this.currentEntry.Link : Utils.GetPermaLinkUrl(this.currentEntry); return new LiteralControl("<a href=\"http://www.dotnetkicks.com/kick/?url=" + link + "\" class=\"" + cssStyle + "\">" + linkText + "</a>"); } return new LiteralControl("");}Now, let the clicking start
All content is property of www.snowball.be. Nothing on this site can be copied or published elsewhere, unless otherwise stated.
This site is made by Gill Cleeren.
Questions? Opinions? E-mail