| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Block Responsive - Make Editor Blocks Responsive Easily |
| 4 |
* Plugin URI: http://wordpress.org/plugins/block-responsive/ |
| 5 |
* Description: A plugin that provides responsive options for Gutenberg blocks, allowing you to control visibility and styles based on screen size. |
| 6 |
* Version: 1.0.5 |
| 7 |
* Requires at least: 6.7 |
| 8 |
* Requires PHP: 7.4 |
| 9 |
* Author: ashrafuzzaman93 |
| 10 |
* Author URI: https://ashrafuzzaman.com/ |
| 11 |
* License: GPL-2.0-or-later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
* Text Domain: block-responsive |
| 14 |
* |
| 15 |
* @package BlockResponsive |
| 16 |
*/ |
| 17 |
|
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
// Use the necessary namespace. |
| 23 |
use Ashraf93\BlockResponsive\BlockResponsive; |
| 24 |
|
| 25 |
// Define constant for the Plugin file. |
| 26 |
if ( ! defined( 'BLOCKRESPONSIVE_VERSION' ) ) { |
| 27 |
define( 'BLOCKRESPONSIVE_VERSION', '1.0.5' ); |
| 28 |
} |
| 29 |
|
| 30 |
if ( ! defined( 'BLOCKRESPONSIVE_DIR_PATH' ) ) { |
| 31 |
define( 'BLOCKRESPONSIVE_DIR_PATH', plugin_dir_path( __FILE__ ) ); |
| 32 |
} |
| 33 |
|
| 34 |
if ( ! defined( 'BLOCKRESPONSIVE_DIR_URL' ) ) { |
| 35 |
define( 'BLOCKRESPONSIVE_DIR_URL', plugin_dir_url( __FILE__ ) ); |
| 36 |
} |
| 37 |
|
| 38 |
require_once BLOCKRESPONSIVE_DIR_PATH . 'inc/BlockResponsive.php'; |
| 39 |
|
| 40 |
new BlockResponsive(); |
| 41 |
|