D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
proc
/
self
/
cwd
/
wp-content
/
themes
/
aeen
/
inc
/
Filename :
tgm-config.php
back
Copy
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\aeen; class TGM_Config { public $aeen = AEEN_THEME_PREFIX; public $path = AEEN_THEME_PLUGINS_DIR; public function __construct() { add_action( 'tgmpa_register', array( $this, 'register_required_plugins' ) ); } public function register_required_plugins(){ $plugins = array( // Bundled array( 'name' => 'Aeen Core', 'slug' => 'aeen-core', 'source' => 'aeen-core.1.6.4.zip', 'required' => true, 'version' => '1.6.4' ), array( 'name' => 'RT Framework', 'slug' => 'rt-framework', 'source' => 'rt-framework.zip', 'required' => true, 'version' => '3.0' ), array( 'name' => 'Revolution Slider', 'slug' => 'revslider', 'source' => 'revslider.zip', 'required' => true, 'version' => '6.7.38' ), // Repository array( 'name' => 'One Click Demo Import', 'slug' => 'one-click-demo-import', 'required' => false, ), array( 'name' => 'Elementor Page Builder', 'slug' => 'elementor', 'required' => true, ), array( 'name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false, ), array( 'name' => 'Mailchimp for wp', 'slug' => 'mailchimp-for-wp', 'required' => false, ), ); $config = array( 'id' => $this->aeen, // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => $this->path, // Default absolute path to bundled plugins. 'menu' => $this->aeen . '-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); } } new TGM_Config;