mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
21 lines
698 B
C#
21 lines
698 B
C#
using Orchard.Localization;
|
|
using Orchard.UI.Navigation;
|
|
|
|
namespace Orchard.MediaLibrary.Providers {
|
|
public class OEmbedMenu : INavigationProvider {
|
|
public Localizer T { get; set; }
|
|
|
|
public OEmbedMenu() {
|
|
T = NullLocalizer.Instance;
|
|
}
|
|
|
|
public string MenuName { get { return "mediaproviders"; } }
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
|
builder.AddImageSet("oembed")
|
|
.Add(T("Media Url"), "10",
|
|
menu => menu.Action("Index", "OEmbed", new { area = "Orchard.MediaLibrary" })
|
|
.Permission(Permissions.ManageOwnMedia));
|
|
}
|
|
}
|
|
} |