public static IHtmlString GetDictionaryValue(this UmbracoHelper helper, string key, string fallback) { string value = helper.GetDictionaryValue(key); if (!string.IsNullOrWhiteSpace(value)) { return(new HtmlString(value)); } return(new HtmlString(fallback)); }
public static IHtmlString GetDictionaryValue(this UmbracoHelper helper, string key, string fallback, params object[] par) { return(new HtmlString(string.Format(helper.GetDictionaryValue(key, fallback).ToString(), par))); }