@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | // Register hooks |
30 | 30 | add_action('admin_menu', array($this, 'add_settings_page')); |
31 | 31 | add_action('admin_init', array($this, 'register_settings')); |
32 | - add_action( 'tgmpa_register', array($this, 'brighty_core_register_required_plugins')); |
|
32 | + add_action('tgmpa_register', array($this, 'brighty_core_register_required_plugins')); |
|
33 | 33 | |
34 | 34 | // Initialize core features |
35 | 35 | $this->init_core_features(); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return $input; |
47 | 47 | } |
48 | 48 | |
49 | - public function brighty_core_register_required_plugins(){ |
|
49 | + public function brighty_core_register_required_plugins() { |
|
50 | 50 | /* See TGMPA Documentation for details |
51 | 51 | * Array of plugin arrays. Required keys are name and slug. |
52 | 52 | * If the source is NOT from the .org repo, then source is also required. |
@@ -83,19 +83,19 @@ discard block |
||
83 | 83 | ); |
84 | 84 | |
85 | 85 | $config = array( |
86 | - 'id' => 'brighty-core', // Unique ID for hashing notices for multiple instances of TGMPA. |
|
87 | - 'default_path' => '', // Default absolute path to bundled plugins. |
|
86 | + 'id' => 'brighty-core', // Unique ID for hashing notices for multiple instances of TGMPA. |
|
87 | + 'default_path' => '', // Default absolute path to bundled plugins. |
|
88 | 88 | 'menu' => 'tgmpa-install-plugins', // Menu slug. |
89 | - 'parent_slug' => 'plugins.php', // Parent menu slug. |
|
90 | - 'capability' => 'manage_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used. |
|
91 | - 'has_notices' => true, // Show admin notices or not. |
|
92 | - 'dismissable' => false, // If false, a user cannot dismiss the nag message. |
|
93 | - 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. |
|
94 | - 'is_automatic' => true, // Automatically activate plugins after installation or not. |
|
95 | - 'message' => '', // Message to output right before the plugins table. |
|
89 | + 'parent_slug' => 'plugins.php', // Parent menu slug. |
|
90 | + 'capability' => 'manage_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used. |
|
91 | + 'has_notices' => true, // Show admin notices or not. |
|
92 | + 'dismissable' => false, // If false, a user cannot dismiss the nag message. |
|
93 | + 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. |
|
94 | + 'is_automatic' => true, // Automatically activate plugins after installation or not. |
|
95 | + 'message' => '', // Message to output right before the plugins table. |
|
96 | 96 | ); |
97 | 97 | |
98 | - tgmpa( $plugins, $config ); |
|
98 | + tgmpa($plugins, $config); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | public function add_settings_page() { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | public function is_feature_enabled($feature) { |
120 | - if(is_array($this->enabled_features)){ |
|
120 | + if (is_array($this->enabled_features)) { |
|
121 | 121 | |
122 | 122 | return in_array($feature, $this->enabled_features); |
123 | 123 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | // Define the autoloader function |
20 | -spl_autoload_register(function ($class) { |
|
20 | +spl_autoload_register(function($class) { |
|
21 | 21 | $baseNamespace = 'BrightyCorePlugin'; |
22 | 22 | $baseDir = __DIR__ . '/includes/'; |
23 | 23 |