| 1 |
<?php |
| 2 |
/** |
| 3 |
* Blocks CSS |
| 4 |
* |
| 5 |
* @package ThemeIsle\GutenbergBlocks\Blocks_CSS |
| 6 |
* @copyright Copyright (c) 2019, Hardeep Asrani |
| 7 |
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License |
| 8 |
* @since 1.0.0 |
| 9 |
* |
| 10 |
* Plugin Name: Blocks CSS: CSS Editor for Gutenberg Blocks |
| 11 |
* Plugin URI: https://github.com/Codeinwp/otter-blocks |
| 12 |
* Description: Blocks CSS allows you add custom CSS to your Blocks straight from the Block Editor (Gutenberg). |
| 13 |
* Version: 2.0.11 |
| 14 |
* Author: ThemeIsle |
| 15 |
* Author URI: https://themeisle.com |
| 16 |
* License: GPL-3.0+ |
| 17 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
| 18 |
* Text Domain: blocks-css |
| 19 |
* Domain Path: /languages |
| 20 |
* WordPress Available: yes |
| 21 |
* Requires License: no |
| 22 |
*/ |
| 23 |
|
| 24 |
// If this file is called directly, abort. |
| 25 |
if ( ! defined( 'WPINC' ) ) { |
| 26 |
die; |
| 27 |
} |
| 28 |
|
| 29 |
define( 'BLOCKS_CSS_URL', plugins_url( '/', __FILE__ ) ); |
| 30 |
define( 'BLOCKS_CSS_PATH', dirname( __FILE__ ) ); |
| 31 |
|
| 32 |
add_action( |
| 33 |
'plugins_loaded', |
| 34 |
function () { |
| 35 |
// call this only if Gutenberg is active. |
| 36 |
if ( function_exists( 'register_block_type' ) ) { |
| 37 |
require_once dirname( __FILE__ ) . '/class-blocks-css.php'; |
| 38 |
|
| 39 |
if ( class_exists( '\ThemeIsle\GutenbergBlocks\Blocks_CSS' ) ) { |
| 40 |
\ThemeIsle\GutenbergBlocks\Blocks_CSS::instance(); |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
); |
| 45 |
|