forked from code4recovery/12-step-meeting-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12-step-meeting-list.php
53 lines (45 loc) · 1.58 KB
/
12-step-meeting-list.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
<?php
/*
Plugin Name: 12 Step Meeting List
Plugin URI: https://wordpress.org/plugins/12-step-meeting-list/
Description: Manage a list of recovery meetings
Version: 3.9.3
Author: Code4Recovery
Author URI: https://github.com/code4recovery/12-step-meeting-list
Text Domain: 12-step-meeting-list
*/
//define constants
if (!defined('GROUP_CONTACT_COUNT')) {
define('GROUP_CONTACT_COUNT', 3);
}
if (!defined('TSML_CONTACT_EMAIL')) {
define('TSML_CONTACT_EMAIL', '[email protected]');
}
if (!defined('TSML_PATH')) {
define('TSML_PATH', plugin_dir_path(__FILE__));
}
if (!defined('TSML_VERSION')) {
define('TSML_VERSION', '3.9.3');
}
//include these files first
include TSML_PATH . '/includes/filter_meetings.php';
include TSML_PATH . '/includes/functions.php';
include TSML_PATH . '/includes/variables.php';
//include public files
include TSML_PATH . '/includes/ajax.php';
include TSML_PATH . '/includes/init.php';
include TSML_PATH . '/includes/shortcodes.php';
include TSML_PATH . '/includes/widgets.php';
include TSML_PATH . '/includes/widgets_init.php';
//include admin files
if (is_admin()) {
include TSML_PATH . '/includes/admin_import.php';
include TSML_PATH . '/includes/admin_lists.php';
include TSML_PATH . '/includes/admin_meeting.php';
include TSML_PATH . '/includes/admin_menu.php';
include TSML_PATH . '/includes/admin_region.php';
include TSML_PATH . '/includes/save.php';
}
//these hooks need to be in this file
register_activation_hook(__FILE__, 'tsml_change_activation_state');
register_deactivation_hook(__FILE__, 'tsml_change_activation_state');