public override void SetupExtensions(IMvcPluginApplication app) { base.SetupExtensions(app); RegisterLocalCss("/Content/simple.css"); RegisterFooterScript("ksgSimple", "/Scripts/ksgSimple.js", null); DefineMenuItem("main", "view", new Syrinx2.MenuItem() { Text = "Simple View", NavigateUrl = "/Simple" }); RegisterWidget(new Widget("SimpleWidget", "Simple Widget", "Simple", "Widget")); RegisterWidget(new Widget("SimpleWidget2", "Second Simple Widget", "Simple", "SecondWidget")); RegisterActionFilter("Metatags", "PluginDemo", new ActionExtension("Metatags", "Simple")); RegisterActionFilter("WidgetContainer", "PluginDemo", new WrapAction("<div class='my-special-container'>", "</div>")); RegisterActionFilter("PageFooter", "PluginDemo", new WrapAction("<div>Prowdly powered by Plugin Demo.</div>")); }
public override void SetupExtensions(IMvcPluginApplication app) { base.SetupExtensions(app); }
public virtual void SetupExtensions(IMvcPluginApplication app) { m_app = app; }