| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Better Block Editor (BBE) |
| 4 |
* Description: Better Block Editor (BBE) adds responsive layout controls, hover effects, on-scroll animations, and ready-to-use site templates to Block Editor. |
| 5 |
* Requires at least: 7.1 |
| 6 |
* Requires PHP: 7.4 |
| 7 |
* Version: 1.8.1 |
| 8 |
* Author: Dream-Theme |
| 9 |
* License: GPLv2 or later |
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
* Text Domain: better-block-editor |
| 12 |
* |
| 13 |
* @package BetterBlockEditor |
| 14 |
*/ |
| 15 |
|
| 16 |
use BetterBlockEditor\Plugin; |
| 17 |
|
| 18 |
defined( 'ABSPATH' ) || exit; |
| 19 |
|
| 20 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 21 |
require_once __DIR__ . '/plugin.php'; |
| 22 |
|
| 23 |
define( 'WPBBE_VERSION', '1.8.1' ); |
| 24 |
|
| 25 |
define( 'WPBBE_FILE', __FILE__ ); |
| 26 |
define( 'WPBBE_DIR', plugin_dir_path( WPBBE_FILE ) ); |
| 27 |
define( 'WPBBE_BASE', plugin_basename( WPBBE_FILE ) ); |
| 28 |
define( 'WPBBE_URL', plugins_url( '/', WPBBE_FILE ) ); |
| 29 |
define( 'WPBBE_URL_DIST', WPBBE_URL . 'dist/' ); |
| 30 |
define( 'WPBBE_DIST', WPBBE_DIR . 'dist/' ); |
| 31 |
define( 'WPBBE_ULR_LIB_ASSETS', WPBBE_URL . 'lib/' ); |
| 32 |
define( 'WPBBE_BLOCKS_DIR', WPBBE_DIST . 'blocks/' ); |
| 33 |
define( 'WPBBE_TEMPLATES_DIR', WPBBE_DIR . 'templates/' ); |
| 34 |
define( 'WPBBE_PLUGIN_ID', 'better-block-editor' ); |
| 35 |
define( 'WPBBE_PLUGIN_NAME', 'Better Block Editor' ); |
| 36 |
define( 'WPBBE_REST_BASE', 'wpbbe/v1' ); |
| 37 |
// register uninstall hook inside activate hook |
| 38 |
// it has to be on this stage |
| 39 |
register_activation_hook( __FILE__, 'wpbbe_plugin_activate' ); |
| 40 |
|
| 41 |
function wpbbe_plugin_activate() { |
| 42 |
register_uninstall_hook( __FILE__, array( 'BetterBlockEditor\Plugin', 'on_uninstall' ) ); |
| 43 |
} |
| 44 |
|
| 45 |
Plugin::instance(); |
| 46 |
|