set_plugin_constants();
// Load main class.
require_once PRELOADER_PLUS_PATH . 'inc/preloader-plus.php';
// Instantiate the main plugin class *Singleton*.
$preloader_plus = Preloader_Plus\Preloader_Plus::get_instance();
// Load premium.
require_once PRELOADER_PLUS_PATH . 'preloader-plus-pro/inc/preloader-plus-pro.php';
// Instantiate the pro class *Singleton*.
$preloader_plus = Preloader_Plus_Pro\Preloader_Plus_Pro::get_instance();
}
}
/**
* Display an admin error notice when PHP is older the version 5.4.
* Hook it to the 'admin_notices' action.
*/
public function old_php_admin_error_notice() {
$message = sprintf( esc_html__( 'The %2$sPreloader Plus%3$s plugin requires %2$sPHP 5.4+%3$s to run properly. Please contact your hosting company and ask them to update the PHP version of your site to at least PHP 5.4%4$s Your current version of PHP: %2$s%1$s%3$s', 'preloader-plus' ), phpversion(), '', '', '
' );
printf( '
%1$s