=== Brackits ===
Contributors: brackits
Tags: embed, design, header, footer, components
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.6.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Render your published Brackits designs (headers, footers, sections and components) anywhere on your WordPress site.

== Description ==

Brackits (https://usebrackits.com) generates on-brand design components you can publish anywhere. This plugin connects your WordPress site to your Brackits team:

* One-click connection — approve the site in Brackits and you're done, no keys to copy.
* Designs are rendered into your pages as real HTML, so search engines, SEO plugins, excerpts and site search all read them.
* Drop any published design into a page with the "Brackits Design" block or the `[brackits item="TOKEN"]` shortcode.
* Optionally render a Brackits header and footer on every page automatically.
* Designs update on your site within seconds of republishing them in Brackits — no plugin action needed.

== Installation ==

1. Upload and activate the plugin (Plugins → Add New → Upload Plugin).
2. Go to Settings → Brackits and click "Connect to Brackits".
3. Approve the site in Brackits. You'll be sent straight back, connected.

On a local or firewalled site the automatic connection can't complete. Add the site from your Brackits dashboard (Integrations) and paste its site key into Settings → Brackits instead.

== Frequently Asked Questions ==

= What is render mode? =

SEO mode (the default) writes each design's markup into the page on the server, so anything that reads your HTML can see it. Isolated mode loads the design with JavaScript into a shadow root, which fully isolates it from your theme's CSS. Switch site-wide in Settings → Brackits, or per placement with `[brackits item="TOKEN" mode="js"]`. Floating designs are always Isolated — they position themselves at runtime.

= A design clashes with my theme's styles =

Brackits scopes a design's CSS to its own wrapper, but a theme with very broad rules can still reach inside. Set that placement to Isolated mode and the shadow root will block it.

= My header doesn't appear =

Automatic header injection uses the `wp_body_open` hook. Nearly every theme since WordPress 5.2 calls it; if yours doesn't, place the design with the block or shortcode instead.

= Does the plugin send visitor data to Brackits? =

No. The plugin talks to Brackits only from your server, to list your published designs and fetch their markup. Nothing about your visitors is sent.

== Changelog ==

= 0.6.2 =
* Renamed the "Classic" render mode to "Isolated", so it is no longer confused with the classic editor. The stored value is unchanged — existing shortcodes and settings keep working.
* Tested up to WordPress 7.0.

= 0.6.1 =
* Fixed "Check again" on the Updates screen needing two clicks before a new Brackits release appeared.

= 0.6.0 =
* Designs now run edge to edge by default instead of sitting inside your theme's content column. Choose "Theme content width" on a placement to keep the old behaviour.

= 0.5.0 =
* In the classic editor, a placed design now shows as the design itself rather than a shortcode, with buttons to swap or remove it.

= 0.4.0 =
* New design library: browse your Brackits designs as live previews and insert one with a click, instead of picking a name from a dropdown.
* The library works in the classic editor too, as an "Add Brackits design" button next to Add Media.

= 0.3.0 =
* New releases now appear on your Plugins screen and update in place, the same as any other plugin.

= 0.2.0 =
* Designs are now rendered into the page as real HTML by default, so they are visible to search engines and SEO plugins.
* One-click connection: approve the site in Brackits instead of copying a site key.
* Republishing in Brackits now updates connected sites within seconds.
* New render mode setting, with a per-placement override on the block and shortcode.

= 0.1.0 =
* Initial release: site key connection, Brackits Design block, shortcode, automatic header/footer injection.
