Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
[![PHP](https://img.shields.io/badge/PHP-8.0%2B-purple.svg)](https://php.net/)
[![WordPress](https://img.shields.io/badge/WordPress-6.6.4%2B-blue.svg)](https://wordpress.org/)

A WordPress plugin that adds animations, effects, and interactivity to Gutenberg blocks.
A WordPress plugin that adds animations, effects, and interactivity to Gutenberg, Elementor, and Bricks.

## 🔧 Requirements

- **WordPress**: 6.6.4 or higher
- **PHP**: 8.0 or higher
- **Node.js**: 18 or higher
- **Block Editor**: Gutenberg (built-in WordPress editor)
- **Supported Editors**: Gutenberg (built-in WordPress editor), Elementor, and Bricks

## 🛠️ Development

Expand Down Expand Up @@ -56,7 +56,7 @@ src/
├── action-types/ # Available action types (PHP + JS)
├── interaction-types/ # Available trigger types (PHP + JS)
├── admin/ # Admin interface
├── editor/ # Block editor integration
├── editor/ # Editor and builder integrations
├── frontend/ # Frontend functionality
├── locations/ # Location rules
└── rest-api/ # REST API endpoints
Expand Down
9 changes: 9 additions & 0 deletions interactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ function interact_on_activation() {
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'src/admin/admin.php' );
require_once( plugin_dir_path( __FILE__ ) . 'src/editor/editor.php' );
} else {
add_action( 'after_setup_theme', function() {
if (
( function_exists( 'bricks_is_builder_main' ) && bricks_is_builder_main() ) ||
( function_exists( 'bricks_is_builder' ) && bricks_is_builder() )
) {
require_once( plugin_dir_path( __FILE__ ) . 'src/editor/editor.php' );
}
} );
}

/**
Expand Down
Loading
Loading