static string GetUrl2Href(IAttributeRenderingContext attributeRenderingContext)
        {
            if (!string.IsNullOrEmpty(attributeRenderingContext.AttributeValue)) return attributeRenderingContext.AttributeValue;

            var content = attributeRenderingContext.GetAttributeValueByID(BBTag.ContentPlaceholderName);
            if (!string.IsNullOrEmpty(content) && content.StartsWith("http:")) return content;

            return null;
        }
Ejemplo n.º 2
0
        static string GetUrlTagHrefAttributeValue(IAttributeRenderingContext attributeRenderingContext)
        {
            if (!string.IsNullOrWhiteSpace(attributeRenderingContext.AttributeValue))
            {
                return(attributeRenderingContext.AttributeValue.Replace(""", "")); //explicit href attribute on url-Tag
            }
            var tagContent = attributeRenderingContext.GetAttributeValueByID(BBTag.ContentPlaceholderName);

            return(tagContent.Replace(""", ""));
        }
Ejemplo n.º 3
0
        static string GetUrl2Href(IAttributeRenderingContext attributeRenderingContext)
        {
            if (!string.IsNullOrEmpty(attributeRenderingContext.AttributeValue))
            {
                return(attributeRenderingContext.AttributeValue);
            }

            var content = attributeRenderingContext.GetAttributeValueByID(BBTag.ContentPlaceholderName);

            if (!string.IsNullOrEmpty(content) && content.StartsWith("http:"))
            {
                return(content);
            }

            return(null);
        }
Ejemplo n.º 4
0
        private static string GetUrlTagHrefAttributeValue(IAttributeRenderingContext attributeRenderingContext)
        {
            if (!string.IsNullOrWhiteSpace(attributeRenderingContext.AttributeValue))
                return attributeRenderingContext.AttributeValue.Replace("\"", ""); //explicit href attribute on url-Tag

            var tagContent = attributeRenderingContext.GetAttributeValueByID(BBTag.ContentPlaceholderName);
            return tagContent;
        }