-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEE_Multi_Event_Registration.class.php
68 lines (66 loc) · 2.9 KB
/
EE_Multi_Event_Registration.class.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
65
66
67
68
<?php
// define the plugin directory path and URL
define('EE_MER_BASENAME', plugin_basename(EE_MER_PLUGIN_FILE));
define('EE_MER_PATH', plugin_dir_path(__FILE__));
define('EE_MER_URL', plugin_dir_url(__FILE__));
define('EE_MER_ADMIN', EE_MER_PATH . 'admin' . DS . 'multi_event_registration' . DS);
define('EE_MER_CORE', EE_MER_PATH . 'core' . DS);
/**
* Class EE_Multi_Event_Registration
*
* @package Event Espresso
* @subpackage core
* @author Brent Christensen
*
*
*/
class EE_Multi_Event_Registration extends EE_Addon
{
/**
* register_addon
*/
public static function register_addon()
{
// register addon via Plugin API
EE_Register_Addon::register(
'Multi_Event_Registration',
[
'version' => EE_MER_VERSION,
'min_core_version' => EE_MER_CORE_VERSION_REQUIRED,
'main_file_path' => EE_MER_PLUGIN_FILE,
'plugin_slug' => 'espresso_multi_event_registration',
'config_class' => 'EE_Multi_Event_Registration_Config',
'config_name' => 'multi_event_registration',
'module_paths' => [
EE_MER_PATH . 'EED_Multi_Event_Registration.module.php',
],
'widget_paths' => [EE_MER_PATH . 'EEW_Mini_Cart.widget.php'],
// register autoloaders
'autoloader_paths' => [
'EE_Multi_Event_Registration_Config' => EE_MER_PATH . 'EE_Multi_Event_Registration_Config.php',
'EE_Event_Cart_Line_Item_Display_Strategy' => EE_MER_PATH . 'EE_Event_Cart_Line_Item_Display_Strategy.php',
'EE_Mini_Cart_Table_Line_Item_Display_Strategy' => EE_MER_PATH . 'EE_Mini_Cart_Table_Line_Item_Display_Strategy.php',
'EE_MER_Transactions_Admin' => EE_MER_PATH . 'EE_MER_Transactions_Admin.class.php',
'EE_MER_Events_Admin' => EE_MER_PATH . 'EE_MER_Events_Admin.class.php',
],
'license' => [
'beta' => false,
'main_file_path' => EE_MER_PLUGIN_FILE,
'min_core_version' => EE_MER_CORE_VERSION_REQUIRED,
'plugin_id' => 0,
'plugin_name' => 'Event Cart',
'plugin_slug' => 'eea-multi-event-registration',
'version' => EE_MER_VERSION,
'wp_override' => false,
],
'pue_options' => [
'pue_plugin_slug' => 'eea-multi-event-registration',
'checkPeriod' => '24',
'use_wp_update' => false,
],
]
);
}
}
// End of file EE_Multi_Event_Registration.php
// Location: /EE_Multi_Event_Registration.php