<?php

require_once get_template_directory() . '/inc/class-tgm-plugin-activation.php';

add_action( 'tgmpa_register', 'invax_register_required_plugins' );


function invax_register_required_plugins() {

	$plugins = array(
		array(
			'name'      => 'Theme Options',
			'slug'      => 'redux-framework',
			'required'  => true,
		),
		array(
			'name'      => 'Elementor Page Builder',
			'slug'      => 'elementor',
			'required'  => true,
		),
		array(
			'name'      => 'Elementor Post Slider',
			'slug'      => 'post-slider-for-elementor/',
			'required'  => true,
		),

	);

	$config = array(
		'id'           => 'invax',
		'default_path' => '',
		'menu'         => 'invax-install-plugins',
		'has_notices'  => true,       
		'dismissable'  => true,
		'dismiss_msg'  => '',
		'is_automatic' => false,
		'message'      => '',

	);

	tgmpa( $plugins, $config );
}
