<?php
/**
 * Required plugins
 *
 * @package TOURIMO
 * @since TOURIMO 1.76.0
 */

// THEME-SUPPORTED PLUGINS
// If plugin not need - remove its settings from next array
//----------------------------------------------------------
$tourimo_theme_required_plugins_groups = array(
	'core'          => esc_html__( 'Core', 'tourimo' ),
	'page_builders' => esc_html__( 'Page Builders', 'tourimo' ),
	'ecommerce'     => esc_html__( 'E-Commerce & Donations', 'tourimo' ),
	'socials'       => esc_html__( 'Socials and Communities', 'tourimo' ),
	'events'        => esc_html__( 'Events and Appointments', 'tourimo' ),
	'content'       => esc_html__( 'Content', 'tourimo' ),
	'other'         => esc_html__( 'Other', 'tourimo' ),
);
$tourimo_theme_required_plugins        = array(
	'trx_addons'                 => array(
		'title'       => esc_html__( 'ThemeREX Addons', 'tourimo' ),
		'description' => esc_html__( "Will allow you to install recommended plugins, demo content, and improve the theme's functionality overall with multiple theme options", 'tourimo' ),
		'required'    => true,
		'logo'        => 'trx_addons.png',
		'group'       => $tourimo_theme_required_plugins_groups['core'],
	),
	'elegro-payment'             => array(
		'title'       => esc_html__( 'Elegro Crypto Payment', 'tourimo' ),
		'description' => esc_html__( "Extends WooCommerce Payment Gateways with an elegro Crypto Payment", 'tourimo' ),
		'required'    => false,
		'logo'        => 'elegro-payment.png',
		'group'       => $tourimo_theme_required_plugins_groups['ecommerce'],
	),
	'elementor'                  => array(
		'title'       => esc_html__( 'Elementor', 'tourimo' ),
		'description' => esc_html__( "Is a beautiful PageBuilder, even the free version of which allows you to create great pages using a variety of modules.", 'tourimo' ),
		'required'    => false,
		'logo'        => 'elementor.png',
		'group'       => $tourimo_theme_required_plugins_groups['page_builders'],
	),
	'essential-addons-for-elementor-lite'                  => array(
		'title'       => esc_html__( 'Essential Addons for Elementor', 'tourimo' ),
		'description' => esc_html__( 'The ultimate elements library for Elementor page builder plugin for WordPress.', 'tourimo' ),
		'required'    => false,
		'logo'        => 'essential-addons-for-elementor-lite.png',
		'group'       => $tourimo_theme_required_plugins_groups['page_builders'],
	),
	'gutenberg'                  => array(
		'title'       => esc_html__( 'Gutenberg', 'tourimo' ),
		'description' => esc_html__( "It's a posts editor coming in place of the classic TinyMCE. Can be installed and used in parallel with Elementor", 'tourimo' ),
		'required'    => false,
		'install'     => false,          // Do not offer installation of the plugin in the Theme Dashboard and TGMPA
		'logo'        => 'gutenberg.png',
		'group'       => $tourimo_theme_required_plugins_groups['page_builders'],
	),
	'woocommerce'                => array(
		'title'       => esc_html__( 'WooCommerce', 'tourimo' ),
		'description' => esc_html__( "Connect the store to your website and start selling now", 'tourimo' ),
		'required'    => false,
		'logo'        => 'woocommerce.png',
		'group'       => $tourimo_theme_required_plugins_groups['ecommerce'],
	),
	'instagram-feed'             => array(
		'title'       => esc_html__( 'Instagram Feed', 'tourimo' ),
		'description' => esc_html__( "Displays the latest photos from your profile on Instagram", 'tourimo' ),
		'required'    => false,
		'logo'        => 'instagram-feed.png',
		'group'       => $tourimo_theme_required_plugins_groups['socials'],
	),
	'mailchimp-for-wp'           => array(
		'title'       => esc_html__( 'MailChimp for WP', 'tourimo' ),
		'description' => esc_html__( "Allows visitors to subscribe to newsletters", 'tourimo' ),
		'required'    => false,
		'logo'        => 'mailchimp-for-wp.png',
		'group'       => $tourimo_theme_required_plugins_groups['socials'],
	),
	'booked'                     => array(
		'title'       => esc_html__( 'Booked Appointments', 'tourimo' ),
		'description' => '',
		'required'    => false,
		'logo'        => 'booked.png',
		'group'       => $tourimo_theme_required_plugins_groups['events'],
	),
	'contact-form-7'             => array(
		'title'       => esc_html__( 'Contact Form 7', 'tourimo' ),
		'description' => esc_html__( "CF7 allows you to create an unlimited number of contact forms", 'tourimo' ),
		'required'    => false,
		'logo'        => 'contact-form-7.png',
		'group'       => $tourimo_theme_required_plugins_groups['content'],
	),
	'essential-grid'             => array(
		'title'       => esc_html__( 'Essential Grid', 'tourimo' ),
		'description' => '',
		'required'    => false,
		'logo'        => 'essential-grid.png',
		'group'       => $tourimo_theme_required_plugins_groups['content'],
	),
	'revslider'                  => array(
		'title'       => esc_html__( 'Revolution Slider', 'tourimo' ),
		'description' => '',
		'required'    => false,
		'install'     => false,
		'logo'        => 'revslider.png',
		'group'       => $tourimo_theme_required_plugins_groups['content'],
	),
	'wp-gdpr-compliance'         => array(
		'title'       => esc_html__( 'WP GDPR Compliance', 'tourimo' ),
		'description' => esc_html__( "Allow visitors to decide for themselves what personal data they want to store on your site", 'tourimo' ),
		'required'    => false,
		'install'     => false,
		'logo'        => 'wp-gdpr-compliance.png',
		'group'       => $tourimo_theme_required_plugins_groups['other'],
	),
	'trx_updater'                => array(
		'title'       => esc_html__( 'ThemeREX Updater', 'tourimo' ),
		'description' => esc_html__( "Update theme and theme-specific plugins from developer's upgrade server.", 'tourimo' ),
		'required'    => false,
		'logo'        => 'trx_updater.png',
		'group'       => $tourimo_theme_required_plugins_groups['other'],
	),
	'trx_popup'                  => array(
		'title'       => esc_html__( 'ThemeREX Popup', 'tourimo' ),
		'description' => esc_html__( "Add popup to your site.", 'tourimo' ),
		'required'    => false,
		'logo'        => 'trx_popup.png',
		'group'       => $tourimo_theme_required_plugins_groups['other'],
	),
);

if ( TOURIMO_THEME_FREE ) {
	unset( $tourimo_theme_required_plugins['js_composer'] );
	unset( $tourimo_theme_required_plugins['vc-extensions-bundle'] );
	unset( $tourimo_theme_required_plugins['easy-digital-downloads'] );
	unset( $tourimo_theme_required_plugins['give'] );
	unset( $tourimo_theme_required_plugins['bbpress'] );
	unset( $tourimo_theme_required_plugins['booked'] );
	unset( $tourimo_theme_required_plugins['content_timeline'] );
	unset( $tourimo_theme_required_plugins['mp-timetable'] );
	unset( $tourimo_theme_required_plugins['learnpress'] );
	unset( $tourimo_theme_required_plugins['the-events-calendar'] );
	unset( $tourimo_theme_required_plugins['calculated-fields-form'] );
	unset( $tourimo_theme_required_plugins['essential-grid'] );
	unset( $tourimo_theme_required_plugins['revslider'] );
	unset( $tourimo_theme_required_plugins['ubermenu'] );
	unset( $tourimo_theme_required_plugins['sitepress-multilingual-cms'] );
	unset( $tourimo_theme_required_plugins['envato-market'] );
	unset( $tourimo_theme_required_plugins['trx_updater'] );
	unset( $tourimo_theme_required_plugins['trx_popup'] );
	unset( $tourimo_theme_required_plugins['essential-addons-for-elementor-lite'] );
	unset( $tourimo_theme_required_plugins['wp-social-feed'] );
}

// Add plugins list to the global storage
tourimo_storage_set( 'required_plugins', $tourimo_theme_required_plugins );
