# FrontBlocks Site Tools Repository for WordPress Plugin

Repository for FrontBlocks Site Tools, a WordPress plugin covering the everyday needs of a site: block editor (Gutenberg/GenerateBlocks) enhancements alongside general-purpose site utilities such as cookie consent, maintenance mode, image management and login.

## Functionalities

### GenerateBlocks Extensions
- **Container Edge Alignment** - Remove padding from left or right side to create edge-to-edge layouts

### Block Enhancements
- Animations
- Container Effects (Glass Effect / Glassmorphism)
- **FrontBlocks Hover Effects** - Smooth background image zoom on hover with configurable scale
- Carousel/Slider
- Native Gallery
- Sticky Columns
- **Column Link** - Make an entire native Column block clickable, redirecting to a configured URL
- Insert Post
- Counter Block
- Reading Time Block
- Reading Progress Bar
- Product Categories Block
- Gravity Forms Inline Layout
- Back Button
- Headline Marquee - Infinite scrolling marquee effect for headline/text blocks with customizable speed (Fast, Medium, Slow)
- Modern Settings Page with Card-based Layout
- Custom SVG Animations

### Site Tools
- **Cookie Notice (moved to FrontConsent)** - Cookie consent now lives entirely in the dedicated free [FrontConsent](https://wordpress.org/plugins/frontconsent/) plugin. FrontBlocks no longer ships a banner of its own; the "Cookie Notice" settings tab is a promo panel pointing existing sites at FrontConsent, which migrates their settings and stats on install.
- **Image Management** - Enable/disable/override registered image sizes, define custom sizes, bulk-regenerate thumbnails, and automatically serve WebP/AVIF variants on the frontend
- **Maintenance Mode** - Show a customizable maintenance page to visitors while keeping the site accessible to logged-in administrators
- **Staging Mode** - Safety measures for staging and copy environments, activated automatically on `beta.` domains, on `staging`/`development` environment types, with a manual toggle or with the `FRBL_STAGING` constant: no indexing, no real emails, no real side effects (WooCommerce webhooks, Subscriptions renewals, cron, selected outgoing hosts), no tracking, and a clear STAGING label. Exposes `frontblocks_is_staging()` for add-ons
- **Google Sign-In** - "Sign in / Sign up with Google" button for wp-login.php, WooCommerce My Account and Checkout, plus a shortcode and block, with server-side ID token verification
- **Review Notice** - Dismissible admin notice inviting site owners to leave a WordPress.org review, shown 14 days after activation
- **Redundant Plugins Notice** - Persistent admin notice detecting third-party plugins made unnecessary by an active FrontBlocks feature (e.g. SVG upload plugins, Google Login plugins), extensible via the `frontblocks_redundant_plugins` filter
- **Google Sign-In** - "Sign in / Sign up with Google" button for wp-login.php, WooCommerce My Account and Checkout, plus a shortcode and block, with server-side ID token verification
- **Table of Contents** - Accessible navigation block generated from the headings in the post, with collapsible and sticky options
- **MCP Abilities** - Exposes maintenance mode as an ability via WordPress's Abilities API, so MCP/AI clients can read and toggle it (e.g. for a site go-live checklist), gated behind the `manage_options` capability. Also reports WooCommerce's own "Coming soon" site visibility independently
- **Settings Export / Import** - Download the FrontBlocks configuration as a JSON file and import it on another site to set it up in one step. Credentials, license keys and values tied to a site are never exported, and every imported value is validated. Add-ons can move content too, such as the popups of FrontBlocks PRO

### PRO Features (FrontBlocks PRO)
- **Custom Post Types Builder** - Create and manage custom post types with advanced configuration options:
  - Create custom post types with a simple interface
  - Configure post type behavior (Post or Page style)
  - Enable/disable categories taxonomy
  - Add custom meta fields (Text, Textarea, URL, Date, File, Number, Email)
  - Individual settings page for each custom post type
  - Delete custom post types easily

- **Full Page Scroll** - Create smooth fullpage scroll experiences:
  - Smooth section-by-section navigation
  - Automatic side navigation with dots
  - Mouse wheel control for precise scrolling
  - Tooltips on navigation dots
  - Fully responsive design
  - Vanilla JavaScript (no dependencies)

- **WooCommerce Enhancements**:
  - Enable Gutenberg in product editor
  - Simple prices for variable products
  - Block after add to cart button
  - Product description behavior options
  - Disable zoom on product images
  - Share buttons on product pages
  - Deactivate product tabs
  - Horizontal product form layout


## Documentation

- [Container Edge Alignment](./docs/CONTAINER-EDGE-ALIGNMENT.md) - Create asymmetric layouts with edge-to-edge content
- [FrontBlocks Hover Effects](./docs/HOVER-BG-SCALE.md) - Smooth background image zoom effect on hover
- [Full Page Scroll](./docs/FULLPAGE-SCROLL.md) - Smooth fullpage scroll with navigation
- [Full Page Implementation](./docs/FULLPAGE-IMPLEMENTATION-SUMMARY.md) - Technical implementation details
- [Changelog Full Page](./docs/CHANGELOG-FULLPAGE.md) - Full Page feature changelog
- [Carousel Pattern](./docs/CAROUSEL-PATTERN.md) - Hero carousel pattern with native WordPress blocks
- [Cookie Notice migration](./docs/COOKIE-NOTICE.md) - Cookie consent has moved entirely to FrontConsent
- [Image Management](./docs/IMAGE-MANAGEMENT.md) - Image size control and automatic WebP/AVIF delivery
- [Staging Mode](./docs/STAGING.md) - Safety measures for staging sites, how they are detected and how add-ons can hook into them
- [Review Notice](./docs/REVIEW-NOTICE.md) - Dismissible WordPress.org review prompt
- [Redundant Plugins Notice](./docs/REDUNDANT-PLUGINS.md) - Detects plugins made unnecessary by FrontBlocks features and how to register new pairings
- [Google Sign-In](./docs/GOOGLE-SIGNIN.md) - "Sign in / Sign up with Google" for wp-login.php and WooCommerce
- [Extending Settings Tabs](./docs/SETTINGS-TAB-EXTENSIONS.md) - Add a companion-plugin tab and matching panel to FrontBlocks settings
- [Settings Export and Import](./docs/SETTINGS-EXPORT-IMPORT.md) - Clone the FrontBlocks configuration between sites with a JSON file, what is and is not included, and how add-ons extend it
- [Table of Contents](./docs/TABLE-OF-CONTENTS.md) - Accessible, headings-based navigation block
- [Column Link](./docs/COLUMN-LINK.md) - Make an entire native Column block clickable

## Release
Actions for making a release:
- Update readme Stable Tag, and Version.
- Update Plugin Header and constant.
- Execute `gulp compress`
- Create release in GitHub.
