/// <summary> /// Add new ShareThis button to the list of selected buttons. /// </summary> /// <param name="button">ShareThisButton instance.</param> /// <param name="displayText">Override default label text to use with button.</param> public void AddButton(ShareThisButton button, string displayText = "") { this.Buttons.Add(button); if (displayText.Trim() != "") { this.ButtonLabelDictionaty[button.ToString()] = displayText; } }
private static string GetButtonPlaceholder(ShareThisButton button, string buttonStyle = "_large", bool renderLabel = true, string displayText = "") { string strPlaceHolder = string.Empty; strPlaceHolder += "<span class='st_" + ShareThisHelper.ButtonLabel[button.ToString()] + buttonStyle + "'"; if (renderLabel) { if (displayText.Trim() != "") { strPlaceHolder += " displayText='" + displayText + "'"; } } strPlaceHolder += "></span>"; return(strPlaceHolder); }
private static string GetButtonPlaceholder(ShareThisButton button, string buttonStyle = "_large", bool renderLabel = true, string displayText = "") { string strPlaceHolder = string.Empty; strPlaceHolder += "<span class='st_" + ShareThisHelper.ButtonLabel[button.ToString()] + buttonStyle + "'"; if (renderLabel) { if (displayText.Trim() != "") strPlaceHolder += " displayText='" + displayText + "'"; } strPlaceHolder += "></span>"; return strPlaceHolder; }
/// <summary> /// Add new ShareThis button to the list of selected buttons. /// </summary> /// <param name="button">ShareThisButton instance.</param> /// <param name="displayText">Override default label text to use with button.</param> public void AddButton(ShareThisButton button, string displayText = "") { this.Buttons.Add(button); if (displayText.Trim() != "") this.ButtonLabelDictionaty[button.ToString()] = displayText; }