-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenkaarten-base.php
55 lines (48 loc) · 1.88 KB
/
openkaarten-base.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
53
54
55
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and starts the plugin.
*
* @link https://www.openwebconcept.nl
* @package Openkaarten_Base_Plugin
*
* @wordpress-plugin
* Plugin Name: OpenKaarten Base
* Plugin URI: https://www.openwebconcept.nl
* Description: The OpenKaarten Base plugin.
* Version: 0.1.2
* Author: Acato
* Author URI: https://www.acato.nl
* License: EUPL-1.2
* License URI: https://opensource.org/licenses/EUPL-1.2
* Text Domain: openkaarten-base
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'OWC_OPENKAARTEN_BASE_VERSION', '0.1.2' );
if ( ! defined( 'OWC_OPENKAARTEN_BASE_ABSPATH' ) ) {
define( 'OWC_OPENKAARTEN_BASE_ABSPATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'OWC_OPENKAARTEN_BASE_ASSETS_URL' ) ) {
define( 'OWC_OPENKAARTEN_BASE_ASSETS_URL', esc_url( trailingslashit( plugins_url( '', __FILE__ ) ) . 'build' ) );
}
// Load Composer autoloader if available.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
// Initialize the OpenKaarten Base Functions class. First check if the class exists.
if ( class_exists( '\Openkaarten_Base_Functions\Openkaarten_Base_Functions' ) ) {
Openkaarten_Base_Functions\Openkaarten_Base_Functions::init();
}
require_once plugin_dir_path( __FILE__ ) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'class-autoloader.php';
spl_autoload_register( [ '\Openkaarten_Base_Plugin\Autoloader', 'autoload' ] );
/**
* Begins execution of the plugin.
*/
new \Openkaarten_Base_Plugin\Plugin();