|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* Plugin Name: Pronamic Pay |
|
4
|
|
|
* Plugin URI: https://www.pronamic.eu/plugins/pronamic-ideal/ |
|
5
|
|
|
* Description: The Pronamic Pay plugin adds payment methods like iDEAL, Bancontact, credit card and more to your WordPress site for a variety of payment providers. |
|
6
|
|
|
* |
|
7
|
|
|
* Version: 5.6.0 |
|
8
|
|
|
* Requires at least: 4.7 |
|
9
|
|
|
* |
|
10
|
|
|
* Author: Pronamic |
|
11
|
|
|
* Author URI: https://www.pronamic.eu/ |
|
12
|
|
|
* |
|
13
|
|
|
* Text Domain: pronamic_ideal |
|
14
|
|
|
* Domain Path: /languages/ |
|
15
|
|
|
* |
|
16
|
|
|
* License: GPL-3.0-or-later |
|
17
|
|
|
* |
|
18
|
|
|
* GitHub URI: https://github.com/pronamic/wp-pronamic-ideal |
|
19
|
|
|
* |
|
20
|
|
|
* @author Pronamic <[email protected]> |
|
21
|
|
|
* @copyright 2005-2019 Pronamic |
|
22
|
|
|
* @license GPL-3.0-or-later |
|
23
|
|
|
* @package Pronamic\WordPress\Pay |
|
24
|
|
|
*/ |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* Autoload. |
|
28
|
|
|
*/ |
|
29
|
|
|
if ( ! defined( 'PRONAMIC_PAY_DEBUG' ) ) { |
|
30
|
|
|
define( 'PRONAMIC_PAY_DEBUG', false ); |
|
31
|
|
|
} |
|
32
|
|
|
|
|
33
|
|
|
if ( PRONAMIC_PAY_DEBUG ) { |
|
34
|
|
|
foreach ( glob( __DIR__ . '/repositories/wp-pay/*/vendor/composer/autoload_files.php' ) as $file ) { |
|
35
|
|
|
$files = require $file; |
|
36
|
|
|
|
|
37
|
|
|
foreach ( $files as $identifier => $path ) { |
|
|
|
|
|
|
38
|
|
|
if ( ! empty( $GLOBALS['__composer_autoload_files'][ $identifier ] ) ) { |
|
39
|
|
|
continue; |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
require $path; |
|
43
|
|
|
|
|
44
|
|
|
$GLOBALS['__composer_autoload_files'][ $identifier ] = true; |
|
45
|
|
|
} |
|
46
|
|
|
} |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
$loader = require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
|
50
|
|
|
|
|
51
|
|
|
if ( PRONAMIC_PAY_DEBUG ) { |
|
52
|
|
|
foreach ( glob( __DIR__ . '/repositories/*/*/composer.json' ) as $file ) { |
|
53
|
|
|
$content = file_get_contents( $file ); |
|
54
|
|
|
|
|
55
|
|
|
$object = json_decode( $content ); |
|
56
|
|
|
|
|
57
|
|
|
if ( ! isset( $object->autoload ) ) { |
|
58
|
|
|
continue; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
foreach ( $object->autoload as $type => $map ) { |
|
|
|
|
|
|
62
|
|
|
if ( 'psr-4' !== $type ) { |
|
63
|
|
|
continue; |
|
64
|
|
|
} |
|
65
|
|
|
|
|
66
|
|
|
foreach ( $map as $prefix => $path ) { |
|
|
|
|
|
|
67
|
|
|
$loader->addPsr4( $prefix, dirname( $file ) . '/' . $path, true ); |
|
68
|
|
|
} |
|
69
|
|
|
} |
|
70
|
|
|
} |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* Bootstrap. |
|
75
|
|
|
*/ |
|
76
|
|
|
\Pronamic\WordPress\Pay\Plugin::instance( |
|
77
|
|
|
array( |
|
78
|
|
|
'file' => __FILE__, |
|
79
|
|
|
'version' => '5.6.0', |
|
80
|
|
|
'gateways' => \Pronamic\WordPress\Pay\pronamic_pay_gateway_integrations(), |
|
81
|
|
|
'extensions' => array( |
|
82
|
|
|
'\Pronamic\WordPress\Pay\Extensions\Charitable\Extension::bootstrap', |
|
83
|
|
|
'\Pronamic\WordPress\Pay\Extensions\Give\Extension::bootstrap', |
|
84
|
|
|
'\Pronamic\WordPress\Pay\Extensions\WooCommerce\Extension::bootstrap', |
|
85
|
|
|
'\Pronamic\WordPress\Pay\Extensions\GravityForms\Extension::bootstrap', |
|
86
|
|
|
'\Pronamic\WordPress\Pay\Extensions\Shopp\Extension::bootstrap', |
|
87
|
|
|
'\Pronamic\WordPress\Pay\Extensions\Jigoshop\Extension::bootstrap', |
|
88
|
|
|
'\Pronamic\WordPress\Pay\Extensions\WPeCommerce\Extension::bootstrap', |
|
89
|
|
|
'\Pronamic\WordPress\Pay\Extensions\ClassiPress\Extension::bootstrap', |
|
90
|
|
|
'\Pronamic\WordPress\Pay\Extensions\EventEspressoLegacy\Extension::bootstrap', |
|
91
|
|
|
'\Pronamic\WordPress\Pay\Extensions\EventEspresso\Extension::bootstrap', |
|
92
|
|
|
'\Pronamic\WordPress\Pay\Extensions\AppThemes\Extension::bootstrap', |
|
93
|
|
|
'\Pronamic\WordPress\Pay\Extensions\S2Member\Extension::bootstrap', |
|
94
|
|
|
'\Pronamic\WordPress\Pay\Extensions\Membership\Extension::bootstrap', |
|
95
|
|
|
'\Pronamic\WordPress\Pay\Extensions\EasyDigitalDownloads\Extension::bootstrap', |
|
96
|
|
|
'\Pronamic\WordPress\Pay\Extensions\IThemesExchange\Extension::bootstrap', |
|
97
|
|
|
'\Pronamic\WordPress\Pay\Extensions\MemberPress\Extension::bootstrap', |
|
98
|
|
|
'\Pronamic\WordPress\Pay\Extensions\FormidableForms\Extension::bootstrap', |
|
99
|
|
|
'\Pronamic\WordPress\Pay\Extensions\RestrictContentPro\Extension::bootstrap', |
|
100
|
|
|
'\Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::bootstrap', |
|
101
|
|
|
), |
|
102
|
|
|
) |
|
103
|
|
|
); |
|
104
|
|
|
|
|
105
|
|
|
/** |
|
106
|
|
|
* Backward compatibility. |
|
107
|
|
|
*/ |
|
108
|
|
|
global $pronamic_ideal; |
|
109
|
|
|
|
|
110
|
|
|
$pronamic_ideal = pronamic_pay_plugin(); |
|
111
|
|
|
|