' . __( 'Cannot find Pressbooks install.', 'roe-pressbooks' ) . '

'; }); return; } elseif ( ! pb_meets_minimum_requirements() ) { return; } // ------------------------------------------------------------------------------------------------------------------- // Class autoloader // ------------------------------------------------------------------------------------------------------------------- \HM\Autoloader\register_class_path( 'ROE', __DIR__ . '/inc' ); // ------------------------------------------------------------------------------------------------------------------- // Composer autoloader // ------------------------------------------------------------------------------------------------------------------- if ( ! class_exists( '\ROE\ROEIntegration' ) ) { if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { require_once __DIR__ . '/vendor/autoload.php'; } else { $title = __( 'Dependencies Missing', 'roe-pressbooks' ); $body = __( 'Please run composer install from the root of the River of Ebooks for Pressbooks plugin directory.', 'roe-pressbooks' ); $message = "

{$title}

{$body}

"; wp_die( $message, $title ); } } // ------------------------------------------------------------------------------------------------------------------- // Check for updates // ------------------------------------------------------------------------------------------------------------------- if ( ! \Pressbooks\Book::isBook() ) { $updater = Puc_v4_Factory::buildUpdateChecker( 'https://github.com/villa7/roe-pressbooks/', __FILE__, 'roe-pressbooks' ); $updater->setBranch( 'master' ); }