<?php
/**
 * @package 	WordPress
 * @subpackage 	Dental Clinic
 * @version 	1.1.2
 * 
 * TGM-Plugin-Activation 2.6.1
 * Created by CMSMasters
 * 
 */


locate_template('framework/class/class-tgm-plugin-activation.php', true);


function cmsms_register_theme_plugins() { 
	$plugins = array( 
		array( 
			'name'					=> esc_html__('CMSMasters Content Composer', 'dental-clinic'), 
			'slug'					=> 'cmsms-content-composer', 
			'source'				=> get_template_directory() . '/framework/admin/inc/plugins/cmsms-content-composer.zip', 
			'required'				=> true, 
			'version'				=> '1.6.1', 
			'force_activation'		=> true, 
			'force_deactivation' 	=> true 
		), 
		array( 
			'name'					=> esc_html__('CMSMasters Mega Menu', 'dental-clinic'), 
			'slug'					=> 'cmsms-mega-menu', 
			'source'				=> get_template_directory() . '/framework/admin/inc/plugins/cmsms-mega-menu.zip', 
			'required'				=> true, 
			'version'				=> '1.2.6', 
			'force_activation'		=> false, 
			'force_deactivation' 	=> true 
		), 
		array( 
			'name'					=> esc_html__('CMSMasters Contact Form Builder', 'dental-clinic'), 
			'slug'					=> 'cmsms-contact-form-builder', 
			'source'				=> get_template_directory() . '/framework/admin/inc/plugins/cmsms-contact-form-builder.zip', 
			'required'				=> false, 
			'version'				=> '1.3.6', 
			'force_activation'		=> false, 
			'force_deactivation' 	=> true 
		), 
		array( 
			'name' 					=> esc_html__('LayerSlider WP', 'dental-clinic'), 
			'slug' 					=> 'LayerSlider', 
			'source'				=> get_template_directory() . '/framework/admin/inc/plugins/LayerSlider.zip', 
			'required'				=> false, 
			'version'				=> '6.7.6', 
			'force_activation'		=> false, 
			'force_deactivation' 	=> false 
		), 
		array( 
			'name' 					=> esc_html__('Revolution Slider', 'dental-clinic'), 
			'slug' 					=> 'revslider', 
			'source'				=> get_template_directory() . '/framework/admin/inc/plugins/revslider.zip', 
			'required'				=> false, 
			'version'				=> '5.4.8', 
			'force_activation'		=> false, 
			'force_deactivation' 	=> false 
		),
		array( 
			'name'					=> esc_html__('Envato Market', 'dental-clinic'), 
			'slug'					=> 'envato-market', 
			'source'				=> get_template_directory() . '/framework/admin/inc/plugins/envato-market.zip', 
			'required'				=> false, 
			'version'				=> '2.0.0', 
			'force_activation'		=> false, 
			'force_deactivation' 	=> false 
		),  
		array( 
			'name' 					=> esc_html__('Contact Form 7', 'dental-clinic'), 
			'slug' 					=> 'contact-form-7', 
			'required' 				=> false 
		), 
		array( 
			'name' 					=> esc_html__('WordPress SEO by Yoast', 'dental-clinic'), 
			'slug' 					=> 'wordpress-seo', 
			'required' 				=> false 
		), 
		array( 
			'name'					=> esc_html__('Cookie Notice', 'dental-clinic'), 
			'slug'					=> 'cookie-notice', 
			'required'				=> false 
		), 
		array( 
			'name' 					=> esc_html__('PayPal Donations', 'dental-clinic'), 
			'slug' 					=> 'paypal-donations', 
			'required'				=> false 
		) 
	);
	
	
	$config = array( 
		'id' => 				'dental-clinic', 
		'default_path' => 		'', 
		'menu' => 				'theme-required-plugins', 
		'strings' => array( 
			'page_title' => 	__('Theme Required & Recommended Plugins', 'dental-clinic'), 
			'menu_title' => 	__('Theme Plugins', 'dental-clinic'), 
			'return' => 		__('Return to Theme Required & Recommended Plugins', 'dental-clinic') 
		) 
	);
	
	
	tgmpa($plugins, $config);
}

add_action('tgmpa_register', 'cmsms_register_theme_plugins');

