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(""", "")); }
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); }
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; }
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; }