← Back
Editing: skin-plugins.php
<?php /** * Required plugins * * @package INFRATECH * @since INFRATECH 1.76.0 */ // THEME-SUPPORTED PLUGINS // If plugin not need - remove its settings from next array //---------------------------------------------------------- if ( ! function_exists( 'infratech_skin_required_plugins' ) ) { add_action( 'after_setup_theme', 'infratech_skin_required_plugins', -1 ); function infratech_skin_required_plugins() { $infratech_theme_required_plugins_groups = array( 'core' => esc_html__( 'Core', 'infratech' ), 'page_builders' => esc_html__( 'Page Builders', 'infratech' ), 'ecommerce' => esc_html__( 'E-Commerce & Donations', 'infratech' ), 'socials' => esc_html__( 'Socials and Communities', 'infratech' ), 'events' => esc_html__( 'Events and Appointments', 'infratech' ), 'content' => esc_html__( 'Content', 'infratech' ), 'other' => esc_html__( 'Other', 'infratech' ), ); $infratech_theme_required_plugins = array( // Core 'trx_addons' => array( 'title' => esc_html__( 'ThemeREX Addons', 'infratech' ), 'description' => esc_html__( "Will allow you to install recommended plugins, demo content, and improve the theme's functionality overall with multiple theme options", 'infratech' ), 'required' => true, // Check this plugin in the list on load Theme Dashboard 'logo' => 'trx_addons.png', 'group' => $infratech_theme_required_plugins_groups['core'], ), // Page Builders 'elementor' => array( 'title' => esc_html__( 'Elementor', 'infratech' ), 'description' => esc_html__( "Is a beautiful PageBuilder, even the free version of which allows you to create great pages using a variety of modules.", 'infratech' ), 'required' => false, // Leave this plugin unchecked on load Theme Dashboard 'logo' => 'elementor.png', 'group' => $infratech_theme_required_plugins_groups['page_builders'], ), 'gutenberg' => array( 'title' => esc_html__( 'Gutenberg', 'infratech' ), 'description' => esc_html__( "It's a posts editor coming in place of the classic TinyMCE. Can be installed and used in parallel with Elementor", 'infratech' ), 'required' => false, 'install' => false, // Do not offer installation of the plugin in the Theme Dashboard and TGMPA 'logo' => 'gutenberg.png', 'group' => $infratech_theme_required_plugins_groups['page_builders'], ), // Content 'sitepress-multilingual-cms' => array( 'title' => esc_html__( 'WPML - Sitepress Multilingual CMS', 'infratech' ), 'description' => esc_html__( "Allows you to make your website multilingual", 'infratech' ), 'required' => false, 'install' => false, // Do not offer installation of the plugin in the Theme Dashboard and TGMPA 'logo' => 'sitepress-multilingual-cms.png', 'group' => $infratech_theme_required_plugins_groups['content'], ), 'metform' => array( 'title' => esc_html__( 'MetForm', 'infratech' ), 'description' => esc_html__( "Contact Form, Survey, Quiz, & Custom Form Builder for Elementor", 'infratech' ), 'required' => false, 'logo' => 'metform.png', 'group' => $infratech_theme_required_plugins_groups['content'], ), 'woocommerce' => array( 'title' => esc_html__( 'WooCommerce', 'infratech' ), 'description' => esc_html__( "Connect the store to your website and start selling now", 'infratech' ), 'required' => false, 'logo' => 'woocommerce.png', 'group' => $infratech_theme_required_plugins_groups['ecommerce'], ), 'sportspress' => array( 'title' => esc_html__( 'SportsPress', 'infratech' ), 'description' => esc_html__( "Sports Club & League Manager.", 'infratech' ), 'required' => false, 'install' => false, // Do not offer installation of the plugin in the Theme Dashboard and TGMPA 'logo' => infratech_get_file_url( 'plugins/sportspress/sportspress.png' ), 'group' => $infratech_theme_required_plugins_groups['content'], ), // Other 'trx_updater' => array( 'title' => esc_html__( 'ThemeREX Updater', 'infratech' ), 'description' => esc_html__( "Update theme and theme-specific plugins from developer's upgrade server.", 'infratech' ), 'required' => false, 'logo' => 'trx_updater.png', 'group' => $infratech_theme_required_plugins_groups['other'], ) ); if ( INFRATECH_THEME_FREE ) { unset( $infratech_theme_required_plugins['sitepress-multilingual-cms'] ); unset( $infratech_theme_required_plugins['trx_updater'] ); } // Add plugins list to the global storage infratech_storage_set( 'required_plugins', $infratech_theme_required_plugins ); } }
Save File
Cancel