Ejemplo n.º 1
0
        /// <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;
            }
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        /// <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;
        }