load_text_domain( $domain, $mopath ); } $url = 'plugin-install.php?tab=plugin-information&plugin=the-events-calendar&TB_iframe=true'; echo '

' . sprintf( '%1s %4s.', esc_html__( 'To begin using Events Calendar Pro, please install the latest version of', 'tribe-events-calendar-pro' ), esc_url( $url ), esc_html__( 'The Events Calendar', 'tribe-events-calendar-pro' ), esc_html__( 'The Events Calendar', 'tribe-events-calendar-pro' ) ) . '

'; } /** * Requires the autoloader class from the main plugin class and sets up * autoloading. */ function tribe_init_events_pro_autoloading() { if ( ! class_exists( 'Tribe__Autoloader', false ) ) { return; } // Load Composer autoload file only if we've not included this file already. require_once EVENTS_CALENDAR_PRO_DIR . '/vendor/autoload.php'; $autoloader = Tribe__Autoloader::instance(); $autoloader->register_prefix( 'Tribe__Events__Pro__', __DIR__ . '/src/Tribe', 'events-calendar-pro' ); // deprecated classes are registered in a class to path fashion. foreach ( glob( __DIR__ . '/src/deprecated/*.php' ) as $file ) { $class_name = str_replace( '.php', '', basename( $file ) ); $autoloader->register_class( $class_name, $file ); } $autoloader->register_autoloader(); } /** * Register Deactivation. */ register_deactivation_hook( __FILE__, 'tribe_events_pro_deactivation' ); function tribe_events_pro_deactivation( $network_deactivating ) { if ( ! class_exists( 'Tribe__Abstract_Deactivation', false ) ) { return; // can't do anything since core isn't around. } require_once __DIR__ . '/src/Tribe/Main.php'; require_once __DIR__ . '/src/Tribe/Deactivation.php'; Tribe__Events__Pro__Main::deactivate( $network_deactivating ); } /** * Register Activation */ register_activation_hook( __FILE__, 'tribe_events_pro_activation' ); function tribe_events_pro_activation() { if ( ! is_network_admin() ) { // We set with a string to avoid having to include a file here. set_transient( '_tribe_events_delayed_flush_rewrite_rules', 'yes', 0 ); } // Activate Custom Tables V1, if defined. if ( class_exists( 'Tribe__Events__Main', false ) && class_exists( '\\TEC\\Events_Pro\\Custom_Tables\\V1\\Activation', false ) && ! ( defined( 'TEC_CUSTOM_TABLES_V1_DISABLED' ) && TEC_CUSTOM_TABLES_V1_DISABLED ) ) { // Register the Custom Tables V1 provider, if defined, to set up the custom tables. TEC\Events_Pro\Custom_Tables\V1\Activation::activate(); } } /** * Instantiate class and set up WordPress actions. * * @deprecated 4.6 */ function Tribe_ECP_Load() { _deprecated_function( __FUNCTION__, '4.6', '' ); return; } /** * Add Events Pro to the list of add-ons to check required version. * * @deprecated 4.6 * * @since 4.6 * * @param array $plugins the current list of plugins. * * @return array $plugins the required info */ function tribe_init_ecp_addon( $plugins ) { _deprecated_function( __FUNCTION__, '4.6', '' ); $plugins['Tribe__Events__Pro__Main'] = [ 'plugin_name' => 'Events Calendar Pro', 'required_version' => Tribe__Events__Pro__Main::REQUIRED_TEC_VERSION, 'current_version' => Tribe__Events__Pro__Main::VERSION, 'plugin_dir_file' => basename( __DIR__ ) . '/events-calendar-pro.php', ]; return $plugins; }