Server : Apache System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 User : plutus ( 1007) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/plutus/public_html/wp-content/themes/vrm/inc/admin/ |
Upload File : |
<?php namespace TotalTheme\Admin; use TotalTheme\Integration\WPBakery\Helpers as WPB_Helpers; \defined( 'ABSPATH' ) || exit; /** * Recommended Plugins. */ class Recommended_Plugins { /** * Init. */ public static function init() { self::tgmpa_init(); } /** * Returns list of recommended plugins. */ public static function get_list(): array { $plugins = []; // Required Plugins. $plugins['total-theme-core'] = [ 'name' => 'Total Theme Core', 'slug' => 'total-theme-core', 'version' => WPEX_THEME_CORE_PLUGIN_SUPPORTED_VERSION, 'source' => 'https://totalwptheme.s3.us-east-1.amazonaws.com/plugins/total-theme-core/version-1-7-1/total-theme-core.zip', 'required' => true, 'force_activation' => false, ]; // Non-required Plugins. $excluded_plugins = get_theme_mod( 'excluded_plugins' ); if ( ! is_array( $excluded_plugins ) ) { $excluded_plugins = []; } if ( \WPEX_VC_ACTIVE || ! in_array( 'js_composer', $excluded_plugins ) ) { $plugins['js_composer'] = [ 'name' => 'WPBakery Page Builder', 'slug' => 'js_composer', 'version' => WPEX_VC_SUPPORTED_VERSION, 'source' => 'https://totalwptheme.s3.us-east-1.amazonaws.com/plugins/wpbakery/version-6-13-0/js_composer.zip', 'required' => false, 'force_activation' => false, ]; } if ( \WPEX_TEMPLATERA_ACTIVE || ! in_array( 'templatera', $excluded_plugins ) ) { $plugins['templatera'] = [ 'name' => 'Templatera', 'slug' => 'templatera', 'source' => 'https://totalwptheme.s3.us-east-1.amazonaws.com/plugins/templatera/version-2-1-0/templatera.zip', 'version' => '2.1.0', 'required' => false, 'force_activation' => false, ]; } if ( \class_exists( 'RevSlider' ) || ! in_array( 'revslider', $excluded_plugins ) ) { $plugins['revslider'] = [ 'name' => 'Slider Revolution', 'slug' => 'revslider', 'version' => '6.6.14', 'source' => 'https://totalwptheme.s3.us-east-1.amazonaws.com/plugins/revslider/version-6-6-14/revslider.zip', 'required' => false, 'force_activation' => false, ]; } /** * Filters the recommended plugins list. * * @param array $plugins * @todo deprecate */ $plugins = (array) apply_filters( 'wpex_recommended_plugins', $plugins ); return $plugins; } /** * TGMPA init. */ public static function tgmpa_init() { if ( ! \class_exists( 'TGM_Plugin_Activation' ) ) { require_once WPEX_INC_DIR . 'lib/tgmpa/class-tgm-plugin-activation.php'; } \add_action( 'tgmpa_register', [ self::class, 'tmpa_register' ] ); } /** * TGMPA Register. */ public static function tmpa_register() { $plugins = self::get_list(); $dismissable = true; if ( \WPEX_VC_ACTIVE ) { if ( WPB_Helpers::is_theme_mode_enabled() ) { $dismissable = WPB_Helpers::is_version_supported(); } else { unset( $plugins['js_composer'] ); } } \tgmpa( $plugins, [ 'id' => 'wpex_theme', 'domain' => 'total', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => true, // auto activation on installation/updating. 'dismissable' => $dismissable, ] ); } }