-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtouchpoint-wp.php
64 lines (55 loc) · 2.09 KB
/
touchpoint-wp.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
64
<?php
/**
* TouchPoint WP
*
* @author James K
* @license AGPLv3+
* @link https://github.com/TenthPres/TouchPoint-WP
* @package TouchPoint-WP
*/
/*
Plugin Name: TouchPoint WP
Plugin URI: https://github.com/tenthpres/touchpoint-wp
Update URI: https://github.com/tenthpres/touchpoint-wp
Description: A WordPress Plugin for integrating with TouchPoint Church Management Software.
Version: 0.0.37
Author: James K
Author URI: https://github.com/jkrrv
License: AGPLv3+
Text Domain: TouchPoint-WP
Requires at least: 5.5
Tested up to: 6.2
Requires PHP: 7.4
Release Asset: true
*/
namespace tp\TouchPointWP;
// die if called directly.
if ( ! defined('WPINC')) {
die;
}
define("TOUCHPOINT_COMPOSER_ENABLED", file_exists(__DIR__ . '/vendor/autoload.php'));
/*** Load everything **/
if (TOUCHPOINT_COMPOSER_ENABLED) {
/** @noinspection PhpIncludeInspection
* @noinspection RedundantSuppression
*/
require_once __DIR__ . '/vendor/autoload.php';
} else {
require_once __DIR__ . "/src/TouchPoint-WP/TouchPointWP_Exception.php";
require_once __DIR__ . "/src/TouchPoint-WP/TouchPointWP_WPError.php";
require_once __DIR__ . "/src/TouchPoint-WP/TouchPointWP.php";
require_once __DIR__ . "/src/TouchPoint-WP/TouchPointWP_Settings.php";
require_once __DIR__ . "/src/TouchPoint-WP/api.php";
require_once __DIR__ . "/src/TouchPoint-WP/module.php";
require_once __DIR__ . "/src/TouchPoint-WP/Utilities/Cleanup.php";
require_once __DIR__ . "/src/TouchPoint-WP/Utilities/Geo.php";
require_once __DIR__ . "/src/TouchPoint-WP/Utilities/PersonArray.php";
require_once __DIR__ . "/src/TouchPoint-WP/Utilities/Http.php";
require_once __DIR__ . "/src/TouchPoint-WP/geo.php";
require_once __DIR__ . "/src/TouchPoint-WP/Person.php";
require_once __DIR__ . "/src/TouchPoint-WP/Involvement.php";
require_once __DIR__ . "/src/TouchPoint-WP/Location.php";
require_once __DIR__ . "/src/TouchPoint-WP/Report.php";
}
/*** Load (set action hooks, etc.) ***/
TouchPointWP::load(__FILE__);