'; echo esc_html( sprintf( /* translators: 1: required PHP version, 2: current PHP version. */ __( 'aeoora needs PHP %1$s or newer. This site runs PHP %2$s.', 'aeoora' ), AEOORA_MIN_PHP, PHP_VERSION ) ); echo '

'; } ); return; } /** * Class autoloader: Aeoora_Foo_Bar => includes/class-aeoora-foo-bar.php */ spl_autoload_register( static function ( $class ) { if ( 0 !== strpos( $class, 'Aeoora_' ) ) { return; } $file = AEOORA_DIR . 'includes/class-' . strtolower( str_replace( '_', '-', $class ) ) . '.php'; if ( is_readable( $file ) ) { require_once $file; } } ); register_activation_hook( __FILE__, array( 'Aeoora_Install', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'Aeoora_Install', 'deactivate' ) ); add_action( 'plugins_loaded', array( 'Aeoora_Plugin', 'instance' ), 5 ); /** * Global accessor. * * @return Aeoora_Plugin */ function aeoora() { return Aeoora_Plugin::instance(); }