-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.php
44 lines (30 loc) · 1.28 KB
/
plugin.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
<?php
/**
* Plugin Name: Marco Di Bella — Core Functions (mdb-theme-fse)
* Plugin URI: https://github.com/mdibella-dev/mdb-theme-core
* Description: Custom post types and core functions for Marco Di Bella's theme (mdb-theme-fse).
* Author: Marco Di Bella
* Author URI: https://www.marcodibella.de
* Version: 2.0.0
* Text Domain: mdb-theme-core
* Domain Path: /languages
*
* @author Marco Di Bella
* @package mdb-theme-core
*/
namespace mdb_theme_core;
/** Prevent direct access */
defined( 'ABSPATH' ) or exit;
/** Variables and definitions **/
define( __NAMESPACE__ . '\PLUGIN_VERSION', '2.0.0' );
define( __NAMESPACE__ . '\PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( __NAMESPACE__ . '\PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'MDB_BUILD_STRING', 1 ); // need global scope here
define( 'MDB_BUILD_ARRAY', 2 ); // need global scope here
/** Include function library */
require_once PLUGIN_DIR . 'includes/post-types/index.php';
require_once PLUGIN_DIR . 'includes/taxonomies/index.php';
require_once PLUGIN_DIR . 'includes/api/index.php';
require_once PLUGIN_DIR . 'includes/block-editor.php';
require_once PLUGIN_DIR . 'includes/backend.php';
require_once PLUGIN_DIR . 'includes/setup.php';