/// <summary> /// MySpace Button Html /// </summary> /// <param name="helper">The helper.</param> /// <param name="addText">if set to <c>true</c> adds text.</param> /// <returns>MySpaceButton Html</returns> public static System.Web.Mvc.MvcHtmlString MySpaceButton(this System.Web.Mvc.HtmlHelper helper, bool addText) { var baseUrl = @"http://myspace.com/Modules/PostTo/Pages/?u=" + "{0}&t={1}"; var linkText = "My Space"; var tooltipText = "Share on MySpace"; var cssClass = "ss-icon ss-myspace"; var htmlString = SocialShareButtons.CreateLinkButton(addText, baseUrl, linkText, tooltipText, cssClass); return(new System.Web.Mvc.MvcHtmlString(htmlString)); }
public static System.Web.Mvc.MvcHtmlString DiggButton(this System.Web.Mvc.HtmlHelper helper, bool addText) { var baseUrl = @"http://digg.com/submit?url=" + "{0}&title={1}"; var linkText = "Digg"; var tooltipText = "Share on Digg"; var cssClass = "ss-icon ss-digg"; var htmlString = SocialShareButtons.CreateLinkButton(addText, baseUrl, linkText, tooltipText, cssClass); return(new System.Web.Mvc.MvcHtmlString(htmlString)); }
/// <summary> /// DeliciousButton Html /// </summary> /// <param name="helper">The helper.</param> /// <param name="addText">if set to <c>true</c> [add text].</param> /// <returns>Gets DeliciousButton Html</returns> public static System.Web.Mvc.MvcHtmlString DeliciousButton(this System.Web.Mvc.HtmlHelper helper, bool addText) { var baseUrl = @"https://delicious.com/save?v=5&noui&jump=close&url=" + "{0}&title={1}"; var linkText = "Delicious"; var tooltipText = "Share on Delicious"; var cssClass = "ss-icon ss-delicious"; var htmlString = SocialShareButtons.CreateLinkButton(addText, baseUrl, linkText, tooltipText, cssClass); return(new System.Web.Mvc.MvcHtmlString(htmlString)); }
public static System.Web.Mvc.MvcHtmlString RedditButton(this System.Web.Mvc.HtmlHelper helper, bool addText) { var baseUrl = @"http://www.reddit.com/submit?newwindow=1&url=" + "{0}&title={1}"; var linkText = "Reddit"; var tooltipText = "Share on Reddit"; var cssClass = "ss-icon ss-reddit"; var htmlString = SocialShareButtons.CreateLinkButton(addText, baseUrl, linkText, tooltipText, cssClass); return(new System.Web.Mvc.MvcHtmlString(htmlString)); }
/// <summary> /// Google bookmarks button. /// </summary> /// <param name="helper">The helper.</param> /// <param name="addText">if set to <c>true</c> adds text.</param> /// <returns>GoogleBookmarksButton Html</returns> public static System.Web.Mvc.MvcHtmlString GoogleBookmarksButton(this System.Web.Mvc.HtmlHelper helper, bool addText) { var baseUrl = @"https://www.google.com/bookmarks/mark?op=add&bkmk=" + "{0}&title={1}"; var linkText = "Google bookmarks"; var tooltipText = "Share on GoogleBookmarks"; var cssClass = "ss-icon ss-googlebookmarks"; var htmlString = SocialShareButtons.CreateLinkButton(addText, baseUrl, linkText, tooltipText, cssClass); return(new System.Web.Mvc.MvcHtmlString(htmlString)); }