mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Removed Html.RegisterLink/Meta helpers, these are on the base view instead (they aren't HTML helpers anymore)
--HG-- branch : dev
This commit is contained in:
@@ -72,34 +72,6 @@ namespace Orchard.Mvc.Html {
|
||||
return MvcHtmlString.Create(html.Encode(pageClassBuilder.ToString()));
|
||||
}
|
||||
|
||||
public static void RegisterLink(this HtmlHelper html, string rel, string type, string href) {
|
||||
RegisterLink(html, new LinkEntry {
|
||||
Rel = rel,
|
||||
Type = type,
|
||||
Href = href
|
||||
});
|
||||
}
|
||||
|
||||
public static void RegisterLink(this HtmlHelper html, LinkEntry link) {
|
||||
html.Resolve<IResourceManager>().RegisterLink(link);
|
||||
}
|
||||
|
||||
public static void SetMeta(this HtmlHelper html, string name, string content) {
|
||||
SetMeta(html, new MetaEntry { Name = name, Content = content });
|
||||
}
|
||||
|
||||
public static void SetMeta(this HtmlHelper html, MetaEntry meta) {
|
||||
html.Resolve<IResourceManager>().SetMeta(meta);
|
||||
}
|
||||
|
||||
public static void AppendMeta(this HtmlHelper html, string name, string content, string contentSeparator) {
|
||||
AppendMeta(html, new MetaEntry { Name = name, Content = content }, contentSeparator);
|
||||
}
|
||||
|
||||
public static void AppendMeta(this HtmlHelper html, MetaEntry meta, string contentSeparator) {
|
||||
html.Resolve<IResourceManager>().AppendMeta(meta, contentSeparator);
|
||||
}
|
||||
|
||||
public static IDisposable Capture(this ViewUserControl control, string name) {
|
||||
var writer = LayoutViewContext.From(control.ViewContext).GetNamedContent(name);
|
||||
return new HtmlTextWriterScope(control.Writer, writer);
|
||||
|
Reference in New Issue
Block a user