=== Gridsprung – Grid Blocks for Bootstrap ===
Contributors: stefoe
Tags: bootstrap, grid, columns, layout, blocks
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Native Bootstrap 5 grid blocks for the block editor: Container, Row, Column and Divider. Clean Bootstrap markup, no page builder, no shortcodes.

== Description ==

Gridsprung brings the Bootstrap 5 grid into the WordPress block editor as real, native blocks. What you build in the editor is saved as plain Bootstrap HTML: no shortcodes, no inline CSS, no extra wrappers.

Gridsprung is an independent project by einseitensprung and is not affiliated with or endorsed by the Bootstrap project.

**Blocks**

* **Gridsprung Container** – `.container`, `.container-fluid` or `.container-{sm…xxl}`, optional wide/full alignment.
* **Gridsprung Row** – `.row` with gutters (`g-0…5`), vertical alignment and horizontal distribution. Ready-made layouts: 6/6, 4/4/4, 3/3/3/3, 8/4, 4/8, centered 8 and centered 6.
* **Gridsprung Column** – widths `1…12`, `auto` or equal per breakpoint from xs to xxl, plus offsets (`offset-{bp}-*`). Live class preview in the sidebar.
* **Gridsprung Divider** – `<hr>` with color, thickness, opacity, spacing and width.

**Highlights**

* Saved markup is standard Bootstrap 5. It keeps working even if you deactivate the plugin, as long as your theme loads Bootstrap.
* Bootstrap grid CSS is bundled and loaded locally: no CDN, no cookies, no external requests.
* Works with classic and block themes.
* Translation-ready.

A Pro version with Button, Button group, Accordion, Table, Cards, Alert and Icon blocks is available at [einseitensprung.at/gutstrap](https://einseitensprung.at/gutstrap/).

== Installation ==

1. Install the plugin via *Plugins › Add New* (search for "Gridsprung") or upload the ZIP file.
2. Activate it.
3. In the block editor, type "Gridsprung" in the inserter. All blocks are in their own "Gridsprung" category.

**Already using the full Bootstrap in your theme?** Switch off the bundled grid CSS:

`add_filter( 'gridsprung_load_bootstrap_css', '__return_false' );`

Divider colors and spacing utilities (`border-*`, `opacity-*`, `my-*`) need the full Bootstrap CSS from your theme.

== Frequently Asked Questions ==

= Do I need a Bootstrap theme? =

No. The grid (Container, Row, Column) works out of the box with the bundled Bootstrap grid CSS. For divider colors and spacing, load the full Bootstrap CSS in your theme.

= Does it load anything from external servers? =

No. All files are shipped with the plugin. Gridsprung sets no cookies and sends no data.

= What happens to my content if I deactivate the plugin? =

The saved content is plain Bootstrap HTML. It stays in your posts; with Bootstrap loaded by your theme, the layout keeps working.

= What happens when I install the Pro version? =

The Pro version contains all Gridsprung blocks. While it is active, Gridsprung switches itself off and shows a notice; you can then deactivate it. All existing blocks stay valid.

== Screenshots ==

1. Container, rows and columns in the block editor – column widths per breakpoint in the sidebar.

== Changelog ==

= 1.7.0 =
* Translation-ready (translations via translate.wordpress.org).
* Column: offset per breakpoint (`offset-*`, `offset-{bp}-*`).
* Row: new layouts "centered 8" and "centered 6".

= 1.0.0 =
* Initial release: Container, Row, Column.

== Third-party resources ==

This plugin bundles the Bootstrap 5.3 grid CSS (`assets/bootstrap-grid.min.css`).
Bootstrap is © The Bootstrap Authors, released under the MIT license: https://github.com/twbs/bootstrap/blob/main/LICENSE
