| 1 |
<?php |
| 2 |
/* |
| 3 |
* Plugin Name: Section Builder with Backgrounds |
| 4 |
* Plugin URI: https://pluginenvision.com/plugins/background-block |
| 5 |
* Description: Customize your WordPress section easily! Choose backgrounds with color, gradient, image. Add parallax effects, and more for a stunning layout. |
| 6 |
* Version: 0.07 |
| 7 |
* Requires at least: 6.2 |
| 8 |
* Requires PHP: 7.2 |
| 9 |
* Author: Plugin Envision |
| 10 |
* Author URI: https://pluginenvision.com |
| 11 |
* License: GPLv3 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 13 |
* Text Domain: background-block |
| 14 |
* Domain Path: /languages |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( !defined( 'ABSPATH' ) ) { exit; } |
| 18 |
|
| 19 |
define( 'EVBB_VERSION', isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ? time() : '0.07' ); |
| 20 |
define( 'EVBB_DIR_URL', plugin_dir_url( __FILE__ ) ); |
| 21 |
define( 'EVBB_DIR_PATH', plugin_dir_path( __FILE__ ) ); |
| 22 |
|
| 23 |
if( !class_exists( 'EVBBPlugin' ) ){ |
| 24 |
class EVBBPlugin{ |
| 25 |
function __construct(){ |
| 26 |
add_action( 'init', [ $this, 'onInit' ] ); |
| 27 |
} |
| 28 |
|
| 29 |
function onInit(){ |
| 30 |
register_block_type( __DIR__ . '/build' ); |
| 31 |
} |
| 32 |
} |
| 33 |
new EVBBPlugin(); |
| 34 |
} |