-
Notifications
You must be signed in to change notification settings - Fork 0
/
apsc-blocks.php
52 lines (45 loc) · 1.57 KB
/
apsc-blocks.php
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
46
47
48
49
50
51
52
<?php
/**
* APSC Blocks.
*
* A plugin for Applied Science which adds additional blocks to the Gutenberg editor based
* on the APSC Style Guide.
*
* @package APSCBlocks
* @author Rich Tape
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: APSC Blocks
* Plugin URI: https://github.com/ubc/apsc-blocks
* Description: A plugin for Applied Science which adds additional blocks to the Gutenberg editor based on the APSC Style Guide.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Rich Tape
* Author URI: https://richardtape.com
* Text Domain: apsc-blocks
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
namespace UBC\APSC\Blocks;
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
define( 'UBC_APSCBLOCKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'UBC_APSCBLOCKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'UBC_APSCBLOCKS_DESIGN_SYSTEM_URL', 'https://release-design-system-3-0--apsc-design-system.netlify.app/apsc-base.min.css' );
define( 'UBC_APSCBLOCKS_DESIGN_SYSTEM_VERSION', '1.0.0' );
require_once UBC_APSCBLOCKS_PLUGIN_DIR . 'inc/class-apsc-blocks.php';
// Instantiate early on plugins_loaded.
add_action( 'plugins_loaded', __NAMESPACE__ . '\\initialize_apsc_blocks' );
/**
* Initializes the plugin.
*
* @since 1.0.0
* @return void
*/
function initialize_apsc_blocks() {
$apsc_blocks = new APSC_Blocks();
}//end initialize_apsc_blocks()