=== MentoBlocks - Dynamic Blocks ===
Contributors: mentotex
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A growing collection of custom, SEO-friendly blocks for the block editor — dynamic post grids, responsive hero sliders, and more.

== Description ==

MentoBlocks is a collection of custom blocks for the block editor, each built as a
self-contained, dynamic (server-rendered) block registered under its own
"MentoBlocks" category in the block inserter.

**Post Grid** — a dynamic grid of posts, pages, or any public post type,
with ordering, column control, four card arrangements (standard, overlay,
side-by-side, and reverse), independent hover effects, full color and
spacing controls, and a Load More button that fetches additional posts
from the REST API without a page reload.

**Hero Slider** — a lightweight, dependency-free slider. Choose plain
images, manually authored slides with a heading/text/button, or slides
generated automatically from your posts. Fade or slide transitions,
autoplay with pause-on-hover/focus, swipe support, keyboard navigation,
and responsive height per breakpoint.

This plugin reads only your local WordPress database (via `WP_Query` and
the REST API) to build its blocks. It makes no external requests, does
not phone home, and includes no tracking or upsells.

== Installation ==

1. Upload the `mentoblocks` folder to `/wp-content/plugins/`.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Open any post or page in the block editor and search for "MentoBlocks"
   in the block inserter to find Post Grid and Hero Slider.

== Frequently Asked Questions ==

= Does this plugin track anything or send data externally? =

No. Every block queries your own WordPress database directly and renders
server-side. No external API calls, analytics, or tracking of any kind.

= Can I use Post Grid or Hero Slider with a custom post type? =

Yes. Both blocks let you choose any public, viewable post type from the
Query Settings panel.

== Changelog ==

= 1.0.0 =
* Initial release.
* Post Grid block: dynamic query, four card arrangements (standard,
  overlay, side-by-side, reverse), independent hover effects, full
  color/spacing controls, Load More via REST API.
* Hero Slider block: plain image, manual, and dynamic (from posts)
  slide sources; fade/slide transitions; autoplay with pause-on-hover;
  swipe and keyboard navigation; responsive per-breakpoint height.

== Source Code ==

The `build/` directory contains compiled, minified JavaScript and CSS
produced by the `@wordpress/scripts` build tool. The original,
human-readable source for every block is included in this plugin's
`src/` directory — nothing is bundled without its source alongside it.

To regenerate the compiled assets from source:

1. `npm install` (requires Node.js; installs `@wordpress/scripts`,
   listed as a devDependency in `package.json`)
2. `npm run build`

This runs the standard `@wordpress/scripts build` command and writes
fresh output to `build/`.
