return false; } return version_compare($plugin_data['Version'], $versions[$plugin], '>='); } /** * Returns the instance. * * @since 1.0.0 * @return object */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; } } } /** * Returns instance of Monstroid_Dashboard_Packages * * @return object */ function monstroid_dashboard_packages() { return Monstroid_Dashboard_Packages::get_instance(); } monstroid_dashboard_packages();
// Show enable/disable update buttons $updater_options = monstroid_dashboard_updater()->get_options(); if ($updater_options['disable_auto_check']) { echo Monstroid_Dashboard_UI::enable_update_button(); } else { echo Monstroid_Dashboard_UI::disable_update_button(); } ?> </div> <h2><?php _e('Monstroid Updater', 'monstroid-dashboard'); ?> </h2> <?php echo Monstroid_Dashboard_UI::check_license_key(); ?> <div class="md-updater-items"> <?php echo Monstroid_Dashboard_UI::main_theme_box(); ?> <?php monstroid_dashboard_packages()->show_packages_list(); ?> </div> <div class="md-updater-footer"> <?php echo Monstroid_Dashboard_UI::download_latest(); ?> </div> </div>