Esempio n. 1
0
 /// <summary>
 ///     Generate all description parts
 /// </summary>
 /// <param name="html">HTML helper</param>
 /// <param name="part">Meta description part</param>
 /// <returns>Generated string</returns>
 public static MvcHtmlString Saturn72MetaDescription(this HtmlHelper html, string part = "")
 {
     var pageHeadBuilder = EngineContext.Current.Resolve<IPageHeadBuilder>();
     html.AppendMetaDescriptionParts(part);
     return MvcHtmlString.Create(html.Encode(pageHeadBuilder.GenerateMetaDescription()));
 }
 public static MvcHtmlString NopMetaDescription(this HtmlHelper html, params string[] parts)
 {
     var pageTitleBuilder = EngineContext.Current.Resolve<IPageTitleBuilder>();
     html.AppendMetaDescriptionParts(parts);
     return MvcHtmlString.Create(html.Encode(pageTitleBuilder.GenerateMetaDescription()));
 }
 public static MvcHtmlString MetaDescription(this HtmlHelper html, params string[] parts)
 {
     var layoutPropertyHelper = EngineContext.Current.Resolve<ILayoutPropertyHelper>();
     html.AppendMetaDescriptionParts(parts);
     return MvcHtmlString.Create(html.Encode(layoutPropertyHelper.GenerateMetaDescription()));
 }