-
Notifications
You must be signed in to change notification settings - Fork 0
/
maker-space-management.php
60 lines (49 loc) · 1.61 KB
/
maker-space-management.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
56
57
58
59
60
<?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 defines a function
* that starts the plugin.
*
* @link https://makerspace.experimenta.science
* @since 1.0.0
* @package ms_devices
*
* @wordpress-plugin
* Plugin Name: Maker Space Management
* Plugin URI: https://makerspace.experimenta.science/ms-device-management
* Description: Plugin to manage and display devices and device bookings for a maker space
* Version: 1.0.0
* Author: Jonathan Günz
* Author URI: https://hmnd.de
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: ms-device-management
* Domain Path: /languages
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
if (!defined('MSM_FILE')) {
define('MSM_FILE', __FILE__);
}
if (!defined('MSM_DIR')) {
define('MSM_DIR', __DIR__);
}
if (!defined('MSM_DATETIME_FORMAT')) {
define('MSM_DATETIME_FORMAT', "Y-m-d H:i:s");
}
if (!function_exists('get_datetime')) {
function get_datetime()
{
return new DateTime(current_time(MSM_DATETIME_FORMAT));
}
}
// the main plugin class
require_once dirname(__FILE__) . '/src/main.php';
MS_Devices_Main::instance();
register_activation_hook(__FILE__, array('MS_Devices_Main', 'activate'));
register_deactivation_hook(__FILE__, array('MS_Devices_Main', 'deactivate'));