-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (33 loc) · 1000 Bytes
/
index.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
<?php
/**
* Plugin Name: My Tiniy Adustment Kit
* Description: theme.json, styles customize plugin
* Version: 0.0.3
* Author: mimi@photosynthesic
* Requires at least: 6.2
* Requires PHP: 7.4
* Text Domain: mtakit
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* @package my-tiny-adustment-kit
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! class_exists( '\MTAK_Kit\Block_Style' ) ) {
define( 'MTA_KIT_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'MTA_KIT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
// Block Style
\MTA_Kit\Block_Style::init();
// Theme.json
\MTA_Kit\Theme_JSON::init();
// CSS
\MTA_Kit\CSS::init();
// Custom Post Type
\MTA_Kit\Custom_Post_Type::init();
}
}