<?php
/**
 * Recommends plugins for use with the theme via the TGMA Script
 *
 * @package Vouge WordPress theme
 */

function vouge_tgmpa_plugins_register() {

	$plugins_list = array(
        array(
            'name'               => esc_html__('Vouge Plus', 'vouge'),
            'slug'               => 'vouge-plus',
            'source'             => VOUGE_MODULE_DIR . '/plugins/vouge-plus.zip',
            'required'           => true,
            'version'            => '1.0.4',
            'force_activation'   => false,
            'force_deactivation' => false,
        ),
        array(
            'name'               => esc_html__('Vouge Pro', 'vouge'),
            'slug'               => 'vouge-pro',
            'source'             => VOUGE_MODULE_DIR . '/plugins/vouge-pro.zip',
            'required'           => true,
            'version'            => '1.0.3',
            'force_activation'   => false,
            'force_deactivation' => false,
        ),
        array(
            'name'               => esc_html__('Vouge Shop', 'vouge'),
            'slug'               => 'vouge-shop',
            'source'             => VOUGE_MODULE_DIR . '/plugins/vouge-shop.zip',
            'required'           => true,
            'version'            => '1.0.1',
            'force_activation'   => false,
            'force_deactivation' => false,
        ),
        array(
            'name'     => esc_html__('Elementor', 'vouge'),
            'slug'     => 'elementor',
            'required' => true,
        ),
        array(
            'name'               => esc_html__('WeDesignTech Elementor Addon', 'vouge'),
            'slug'               => 'wedesigntech-elementor-addon',
            'source'             => VOUGE_MODULE_DIR . '/plugins/wedesigntech-elementor-addon.zip',
            'required'           => true,
            'version'            => '1.0.6',
            'force_activation'   => false,
            'force_deactivation' => false,
        ),
        array(
            'name'     => esc_html__('Contact Form 7', 'vouge'),
            'slug'     => 'contact-form-7',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('FOX - Currency Switcher Professional for WooCommerce', 'vouge'),
            'slug'     => 'woocommerce-currency-switcher',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('GTranslate', 'vouge'),
            'slug'     => 'gtranslate',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('WooCommerce', 'vouge'),
            'slug'     => 'woocommerce',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('Variation Swatches for WooCommerce', 'vouge'),
            'slug'     => 'woo-variation-swatches',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('YITH WooCommerce Quick View', 'vouge'),
            'slug'     => 'yith-woocommerce-quick-view',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('One Click Demo Import', 'vouge'),
            'slug'     => 'one-click-demo-import',
            'required' => true,
        )
	);

    $plugins = apply_filters('vouge_required_plugins_list', $plugins_list);

	// Register notice
	tgmpa( $plugins, array(
		'id'           => 'vouge_theme',
		'domain'       => 'vouge',
		'menu'         => 'install-required-plugins',
		'has_notices'  => true,
		'is_automatic' => true,
		'dismissable'  => true,
	) );

}
add_action( 'tgmpa_register', 'vouge_tgmpa_plugins_register' );