<?php
/**
 * This file represents an example of the code that themes would use to register
 * the required plugins.
 *
 * It is expected that theme authors would copy and paste this code into their
 * functions.php file, and amend to suit.
 *
 * @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
 *
 * @package    TGM-Plugin-Activation
 * @subpackage Example
 * @version    2.6.1 for parent theme efpose for publication on ThemeForest
 * @author     Thomas Griffin, Gary Jones, Juliette Reinders Folmer
 * @copyright  Copyright (c) 2011, Thomas Griffin
 * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link       https://github.com/TGMPA/TGM-Plugin-Activation
 */

/**
 * Parent Theme:
 * require_once get_template_directory() . '/path/to/class-tgm-plugin-activation.php';
 *
 * Child Theme:
 * require_once get_stylesheet_directory() . '/path/to/class-tgm-plugin-activation.php';
 */
require_once get_template_directory() . '/inc/class-tgm-plugin-activation.php';

add_action( 'tgmpa_register', 'efpose_register_required_plugins' );

/**
 * Register the required plugins for this theme.
 */
function efpose_register_required_plugins() {
	/*
	 * Array of plugin arrays. Required keys are name and slug.
	 * If the source is NOT from the .org repo, then source is also required.
	 */
	$plugins = array(
		array(
		'name' => 'Elementor', 
		'slug' => 'elementor',
        'source' => 'https://downloads.wordpress.org/plugin/elementor.3.7.8.zip',
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),	
		array(
		'name' => 'Redux Framework', 
		'slug' => 'redux-framework',
        'source' => 'https://downloads.wordpress.org/plugin/redux-framework.4.3.19.zip',
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),		
		array(
		'name' => 'One Click Demo Import', 
		'slug' => 'one-click-demo-import',
        'source' => 'https://downloads.wordpress.org/plugin/one-click-demo-import.3.1.2.zip',		
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),		
		array(
		'name' => 'cmb2', 
		'slug' => 'cmb2',
        'source' => 'https://downloads.wordpress.org/plugin/cmb2.zip',		
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),
		array(
		'name' => 'Mega Main Menu', 
		'slug' => 'mega_main_menu',
		'source' => 'https://tothetheme.com/incefpose3/mega_main_menu.zip', 
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),		
		array(
		'name' => 'Contact Form 7', 
		'slug' => 'contact-form-7',
        'source' => 'https://downloads.wordpress.org/plugin/contact-form-7.5.6.3.zip',		
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),
		array(
		'name' => 'WooCommerce', 
		'slug' => 'woocommerce',
        'source' => 'https://downloads.wordpress.org/plugin/woocommerce.7.1.0.zip',		
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),
		array(
		'name' => 'efpose Custom Function', 
		'slug' => 'efpose-customfunction',
        'source' => 'https://tothetheme.com/incefpose3/efpose-customfunction.zip', 
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),		
		array(
		'name' => 'efpose For Elementor', 
		'slug' => 'efpose-for-elementor',
		'source' => 'https://tothetheme.com/incefpose3/efpose-for-elementor.zip', 
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),	
		array(
		'name' => 'efpose Widget', 
		'slug' => 'efpose-widget',
		'source' => 'https://tothetheme.com/incefpose3/efpose-widget.zip', 
		'required' => true,
		'force_activation' 		=> false,
		'force_deactivation' 	=> true, 	
		),			
	);
	/*
	 * Array of configuration settings. Amend each line as needed.
	 *
	 * TGMPA will start providing localized text strings soon. If you already have translations of our standard
	 * strings available, please help us make TGMPA even better by giving us access to these translations or by
	 * sending in a pull-request with .po file(s) with the translations.
	 *
	 * Only uncomment the strings in the config array if you want to customize the strings.
	 */
	$config = array(
		'id'           => 'efpose',                 // Unique ID for hashing notices for multiple instances of TGMPA.
		'default_path' => '',                      // Default absolute path to bundled plugins.
		'menu'         => 'tgmpa-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 );
}