|
@@ -204,49 +204,49 @@ |
|
|
block discarded – undo |
|
204
|
204
|
*/ |
|
205
|
205
|
function required_plugins() { |
|
206
|
206
|
|
|
207
|
|
- $plugins = array( |
|
208
|
|
- |
|
209
|
|
- array( |
|
210
|
|
- 'name' => __('Aesop Story Engine','lasso'), |
|
211
|
|
- 'slug' => 'aesop-story-engine', |
|
212
|
|
- 'required' => false, |
|
213
|
|
- ), |
|
214
|
|
- |
|
215
|
|
- ); |
|
216
|
|
- |
|
217
|
|
- $config = array( |
|
218
|
|
- 'default_path' => '', // Default absolute path to pre-packaged plugins. |
|
219
|
|
- 'menu' => 'lasso-install-plugins', // Menu slug. |
|
220
|
|
- 'has_notices' => true, // Show admin notices or not. |
|
221
|
|
- 'dismissable' => true, // If false, a user cannot dismiss the nag message. |
|
222
|
|
- 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. |
|
223
|
|
- 'is_automatic' => false, // Automatically activate plugins after installation or not. |
|
224
|
|
- 'message' => '', // Message to output right before the plugins table. |
|
225
|
|
- 'strings' => array( |
|
226
|
|
- 'page_title' => __( 'Install Required Plugins', 'lasso' ), |
|
227
|
|
- 'menu_title' => __( 'Install Plugins', 'lasso' ), |
|
228
|
|
- 'installing' => __( 'Installing Plugin: %s', 'lasso' ), // %s = plugin name. |
|
229
|
|
- 'oops' => __( 'Something went wrong with the plugin API.', 'lasso' ), |
|
230
|
|
- 'notice_can_install_required' => _n_noop( 'This plugin requires the following plugin: %1$s.', 'This plugin requires the following plugins: %1$s.' ), // %1$s = plugin name(s). |
|
231
|
|
- 'notice_can_install_recommended' => _n_noop( 'This plugin recommends the following plugin: %1$s.', 'This plugin recommends the following plugins: %1$s.' ), // %1$s = plugin name(s). |
|
232
|
|
- 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s). |
|
233
|
|
- 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). |
|
234
|
|
- 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). |
|
235
|
|
- 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s). |
|
236
|
|
- 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this plugin: %1$s.' ), // %1$s = plugin name(s). |
|
237
|
|
- 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s). |
|
238
|
|
- 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ), |
|
239
|
|
- 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins' ), |
|
240
|
|
- 'return' => __( 'Return to Required Plugins Installer', 'lasso' ), |
|
241
|
|
- 'plugin_activated' => __( 'Plugin activated successfully.', 'lasso' ), |
|
242
|
|
- 'complete' => __( 'All plugins installed and activated successfully. %s', 'lasso' ), // %s = dashboard link. |
|
243
|
|
- 'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'. |
|
244
|
|
- ) |
|
245
|
|
- ); |
|
|
207
|
+ $plugins = array( |
|
|
208
|
+ |
|
|
209
|
+ array( |
|
|
210
|
+ 'name' => __('Aesop Story Engine','lasso'), |
|
|
211
|
+ 'slug' => 'aesop-story-engine', |
|
|
212
|
+ 'required' => false, |
|
|
213
|
+ ), |
|
|
214
|
+ |
|
|
215
|
+ ); |
|
|
216
|
+ |
|
|
217
|
+ $config = array( |
|
|
218
|
+ 'default_path' => '', // Default absolute path to pre-packaged plugins. |
|
|
219
|
+ 'menu' => 'lasso-install-plugins', // Menu slug. |
|
|
220
|
+ 'has_notices' => true, // Show admin notices or not. |
|
|
221
|
+ 'dismissable' => true, // If false, a user cannot dismiss the nag message. |
|
|
222
|
+ 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. |
|
|
223
|
+ 'is_automatic' => false, // Automatically activate plugins after installation or not. |
|
|
224
|
+ 'message' => '', // Message to output right before the plugins table. |
|
|
225
|
+ 'strings' => array( |
|
|
226
|
+ 'page_title' => __( 'Install Required Plugins', 'lasso' ), |
|
|
227
|
+ 'menu_title' => __( 'Install Plugins', 'lasso' ), |
|
|
228
|
+ 'installing' => __( 'Installing Plugin: %s', 'lasso' ), // %s = plugin name. |
|
|
229
|
+ 'oops' => __( 'Something went wrong with the plugin API.', 'lasso' ), |
|
|
230
|
+ 'notice_can_install_required' => _n_noop( 'This plugin requires the following plugin: %1$s.', 'This plugin requires the following plugins: %1$s.' ), // %1$s = plugin name(s). |
|
|
231
|
+ 'notice_can_install_recommended' => _n_noop( 'This plugin recommends the following plugin: %1$s.', 'This plugin recommends the following plugins: %1$s.' ), // %1$s = plugin name(s). |
|
|
232
|
+ 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s). |
|
|
233
|
+ 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). |
|
|
234
|
+ 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s). |
|
|
235
|
+ 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s). |
|
|
236
|
+ 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this plugin: %1$s.' ), // %1$s = plugin name(s). |
|
|
237
|
+ 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s). |
|
|
238
|
+ 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins' ), |
|
|
239
|
+ 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins' ), |
|
|
240
|
+ 'return' => __( 'Return to Required Plugins Installer', 'lasso' ), |
|
|
241
|
+ 'plugin_activated' => __( 'Plugin activated successfully.', 'lasso' ), |
|
|
242
|
+ 'complete' => __( 'All plugins installed and activated successfully. %s', 'lasso' ), // %s = dashboard link. |
|
|
243
|
+ 'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'. |
|
|
244
|
+ ) |
|
|
245
|
+ ); |
|
246
|
246
|
|
|
247
|
247
|
$plugins = apply_filters( 'lasso_required_plugins', $plugins ); |
|
248
|
248
|
|
|
249
|
|
- tgmpa( $plugins, $config ); |
|
|
249
|
+ tgmpa( $plugins, $config ); |
|
250
|
250
|
|
|
251
|
251
|
} |
|
252
|
252
|
} |