manifest / integrations / wp-corpus-embedded-app
GovRight Corpus Embedded App
Plugin to help you to embed a GovRight application into your site. Provides easy app setup and automates some things like authentication callback and social sharing
★ 0stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/govright/wp-corpus-embedded-app/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
GovRight Corpus Embedded App Helper
A plugin to help you to embed a GovRight AngularJS app into your site.
Provides an easy app setup and automates some things like authentication callback and social sharing.
Functionality
1. Handling the /auth/success callback, making users able to login in the app right from your site
2. Proxying social robots requests to the original app so the embedded app is sharable on Facebook and others
3. Providing a settings page for easy app setup
4. Providing the [corpus-app] shortcode for easy app embedding
Quick start
0. Install and activate the plugin
1. Go to "GovRight" "Embedded App" in the admin
2. Select an application
3. Set up the law slug
4. Insert the [corpus-app] shortcode where you want to see the app
Inserting the app
There are two ways to insert the app into your site
1. In a post/page text using the shortcode: [corpus-app]
2. In a template using the snippet:
Shortcode attributes
data-locale - locale code like en, ru, etc, to set initial app locale
data-app-port - app port number like 9000, for local development
data-law-slug - law slug, overrides the law slug set in plugin options in wp admin
These can also be passed to t