Esempio n. 1
0
        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>"));
        }
Esempio n. 2
0
 public override void SetupExtensions(IMvcPluginApplication app)
 {
     base.SetupExtensions(app);
 }
Esempio n. 3
0
 public virtual void SetupExtensions(IMvcPluginApplication app)
 {
     m_app = app;
 }