-
Notifications
You must be signed in to change notification settings - Fork 51
/
12-step-meeting-list.php
63 lines (57 loc) · 2.11 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
62
63
<?php
/**
* Plugin Name: 12 Step Meeting List
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Description: Manage a list of recovery meetings
* Version: 3.16.4
* 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_ALLOWED_HTML', [
'a' => ['href' => [], 'title' => []],
'code' => [],
'em' => [],
'pre' => [],
'strong' => [],
'table' => ['style' => []],
'td' => [],
'tr' => []
]);
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.16.4');
define('TSML_MEETINGS_PERMISSION', 'edit_posts');
define('TSML_SETTINGS_PERMISSION', 'manage_options');
// include these files first
include TSML_PATH . '/includes/filter_meetings.php';
include TSML_PATH . '/includes/functions.php';
include TSML_PATH . '/includes/functions_format.php';
include TSML_PATH . '/includes/functions_get.php';
include TSML_PATH . '/includes/functions_import.php';
include TSML_PATH . '/includes/functions_input.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');