Repository navigation
Expand file tree
/
Copy pathblockwright-blocks.php
More file actions
45 lines (42 loc) · 1.85 KB
/
Copy pathblockwright-blocks.php
File metadata and controls
45 lines (42 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Plugin Name: Blockwright Blocks
* Description: Dynamic content bindings for any block, plus adaptive blocks that take on your theme's colors and light/dark: Icon Box, Icon List, Stat Counter, Timeline, a Light/Dark Toggle, a Stamp badge, and a curated icon collection. Degrades gracefully on any theme.
* Version: 1.4.0
* Requires at least: 7.0
* Requires PHP: 7.4
* Author: Mark Russell
* Author URI: https://markrussell.io
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: blockwright-blocks
*
* @package Blockwright_Blocks
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'BLOCKWRIGHT_BLOCKS_VERSION' ) ) {
define( 'BLOCKWRIGHT_BLOCKS_VERSION', '1.4.0' );
}
if ( ! defined( 'BLOCKWRIGHT_BLOCKS_DIR' ) ) {
define( 'BLOCKWRIGHT_BLOCKS_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'BLOCKWRIGHT_BLOCKS_URL' ) ) {
define( 'BLOCKWRIGHT_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
}
// Feature modules. Each is self-contained and degrades gracefully if the active
// theme does not provide Blockwright's tokens (see the per-file headers).
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/blocks.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/adaptive-logo.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/bindings.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/icons.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/color-scheme.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/design-system.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/class-write-engine.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/design-supply.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/rest-api.php';
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/engagement.php';
if ( is_admin() ) {
require_once BLOCKWRIGHT_BLOCKS_DIR . 'inc/admin-page.php';
}