Capability from post to page for MP Stacks

* Changed Capability Type for MP Stacks to Page instead of Post. This way authors don’t have access.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Activation Hook Added

Added activation hook and redirection to Welcome Page upon activation

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Removed misc options from bricks

Removed misc options for Drafts, Dates etc for Bricks as they aren’t needed.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Grid Functions Added

Added Grid Functions for Add-ons to share and use

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Directory Includes Comment Changed

Changed the comment above the include for the addon directly. Was just Wrong description.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Insert Existing Stack Confirmation

Added user-required confirmation for inserting existing stack - users were getting confused

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Double Click Tip

Added dismissable “Tip” to let people know they can double click a brick to edit it.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Directory Updates (Stack Templates, Master License

* Added Directory page for Stack Templates
* Added notice at the top of Directory pages about the master license

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
MP Stacks Welcome Page cap = 'edit_pages'

In order to view the Wecome page you now need the capability of 'edit_pages'

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Check for old browsers

This adds a check for old browsers where MP Stacks won't work correctly. If the user is using an old browser, an honest message about the need to upgrade appears.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Flush Rewrite Rules Upon Activation

Because we use the plugins_loaded hook to load all of our functions, and plugins loaded doesn't load upon activation hooks, we tell the options array that activation was 1 page load ago so we can run functions that need the plugins_loaded hook and more. I may introduce an action hook here for other 1 page load ago needs

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Moved Install Page Include Above

Moved the install page include to a more logical position above the plugins_loaded function. Doesn't actually make any difference, but logically it reads more accurately

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Better Visual Fit for Text Options (font size etc)

Changed up CSS for text options from fixed to fluid

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Styling for the directory Master License title

CSS for the Title above the "Add Ons" page about the Master License

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Brick ID Improvements - Easily know which brick

Various improvements to tighten up the display of Stacks including showing the title of the stack above it while working on it, and which brick it is in that stack.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Discard the changing of Text Size in admin

Removed the function which changes the text size in admin for text content-types. This was glitchy and didn't work welll with TinyMCE

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Close Lightbox upon deletion of a brick

When a user deletes a brick, the Lightbox editor now auto closes

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Tip and Support Message above Brick Editor

Added a dismissable tip about double clicking and a notice to email for support if needed - above the brick editor.

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
Spelling fix in comment about support

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>
PHP for admin notice above brick editor

This is the PHP function which adds the admin notice for support above the brick editor

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>