forked from code4recovery/12-step-meeting-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12-step-meeting-list.php
61 lines (49 loc) · 1.84 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
54
55
56
57
58
59
60
61
<?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.14.38
* Requires PHP: 5.6
* Author: Code for Recovery
* Author URI: https://github.com/code4recovery/12-step-meeting-list
* Text Domain: 12-step-meeting-list
*/
//define constants
define('TSML_GROUP_CONTACT_COUNT', 3);
define('TSML_MEETING_GUIDE_APP_NOTIFY', '[email protected]');
define('TSML_PATH', plugin_dir_path(__FILE__));
define('TSML_VERSION', '3.14.38');
define('TSML_MEETINGS_PERMISSION', 'edit_posts');
define('TSML_SETTINGS_PERMISSION', 'manage_options');
//defining externally-defined constant + function for php intelephense
if (false) {
define('TSML_UI_PATH', '');
function tsml_import_reformat()
{
}
}
//include these files first
include TSML_PATH . '/includes/filter_meetings.php';
include TSML_PATH . '/includes/functions.php';
include TSML_PATH . '/includes/functions_timezone.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/admin_settings.php';
include TSML_PATH . '/includes/save.php';
}
//these hooks need to be in this file
register_activation_hook(__FILE__, 'tsml_plugin_activation');
register_deactivation_hook(__FILE__, 'tsml_plugin_deactivation');