Aha. Unfortunately, it will not be nearly so easy to make this work. A
few thoughts:
- There's no need to initialize Anthologize like this. The plugin itself
already does it.
- The 'anthologize_shortcode' callback has to return a string value,
consisting of whatever markup you want to display on the page.
Anthologize::init() returns the Anthologize bootstrapper singleton.
- In the Dashboard, Anthologize content is output to the screen using
the WP add_submenu_page() API. Have a look in
anthologize/includes/class-admin-main.php to see how this function is
called for each different kind of Anthologize screen. You will have to
build your own wrapper that does some sort of logic (maybe based on URL)
to determine which of Anthologize's screens should be shown, and then to
call the necessary display methods (such as
Anthologize_Admin_Main::display())
- Much of Anthologize is heavily dependent on CSS and JS that is
explicitly loaded only on our pages in the Dashboard. You'll have to
load it on the front end as necessary. See eg
Anthologize_Admin_Main::load_scripts()
- There will probably also be places where Anthologize depends on WP
core styles that are dependent on the WP Dashboard. You'll have to load
those too, or reproduce the necessary chunks somehow.
Making this work fairly seamlessly is a large project, as Anthologize
was unfortunately not built in a modular enough way to make it portable
in the way you need. It can certainly be done, but it will take a lot of
work.
> > <
http://mydomain.com/wp-includes/shortcodes.php*
> <
http://mydomain.com/wp-includes/shortcodes.php*>> on line *287*
> > >
> > > On Monday, June 30, 2014 8:14:25 AM UTC-5, Lehi Drew wrote:
> > >
> > > The next thing I'm trying to accomplish is the ability
> to allow
> > > users to use Anthologize from the frontend of the website.
> > >
> > > I am not sure the best way to go about this. If anybody
> here
> > knows
> > > how to do something like that, I would appreciate it.
> > >
> > > If I figure that out, I will surely post about it here.
> > >
> > > --
> > > You received this message because you are subscribed to the
> Google
> > > Groups "anthologize-dev" group.
> > > To unsubscribe from this group and stop receiving emails
> from it,
> > send
> > > an email to
anthologize-d...@googlegroups.com <javascript:>
> > > <mailto:
anthologize-d...@googlegroups.com
> <javascript:> <javascript:>>.
> > an email to
anthologize-d...@googlegroups.com <javascript:>
> > <mailto:
anthologize-d...@googlegroups.com <javascript:>>.
> <mailto:
anthologize-d...@googlegroups.com>.