ravinderk /
Give
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Upgrade Screen |
||
| 4 | * |
||
| 5 | * @package Give |
||
| 6 | * @subpackage Admin/Upgrades |
||
| 7 | * @copyright Copyright (c) 2017, WordImpress |
||
| 8 | * @license https://opensource.org/licenses/gpl-license GNU Public License |
||
| 9 | * @since 1.8.12 |
||
| 10 | */ |
||
| 11 | |||
| 12 | // Exit if accessed directly. |
||
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
||
| 14 | exit; |
||
| 15 | } |
||
| 16 | |||
| 17 | $give_updates = Give_Updates::get_instance(); |
||
| 18 | ?> |
||
| 19 | <div class="wrap" id="poststuff"> |
||
| 20 | <div id="give-updates"> |
||
| 21 | <h1 id="give-updates-h1"><?php esc_html_e( 'Give - Updates', 'give' ); ?></h1> |
||
| 22 | <div class="give-update-panel-content"> |
||
| 23 | <p><?php printf( __( 'Give regularly receives new features, bug fixes, and enhancements. It is important to always stay up-to-date with latest version of Give core and its add-ons. Please create a backup of your site before updating. To update add-ons be sure your <a href="%1$s">license keys</a> are activated.', 'give' ), 'https://givewp.com/my-account/' ); ?></p> |
||
| 24 | </div> |
||
| 25 | |||
| 26 | <?php $update_counter = 1; ?> |
||
| 27 | |||
| 28 | <?php $db_updates = $give_updates->get_db_update_count(); ?> |
||
| 29 | <?php if ( ! empty( $db_updates ) ) : ?> |
||
| 30 | <?php $db_update_url = add_query_arg( array( |
||
| 31 | 'type' => 'database', |
||
| 32 | ) ); ?> |
||
| 33 | <div id="give-db-updates"> |
||
| 34 | <div class="postbox-container"> |
||
| 35 | <div class="postbox"> |
||
| 36 | <h2 class="hndle"><?php _e( 'Database Updates', 'give' ); ?></h2> |
||
| 37 | <div class="inside"> |
||
| 38 | <div class="panel-content"> |
||
| 39 | <p><?php echo sprintf( __( 'Give needs to update the database. <a href="%s">Update now ></a>', 'give' ), $db_update_url ); ?></p> |
||
| 40 | </div> |
||
| 41 | <div class="progress-container give-hidden"> |
||
| 42 | <p class="update-message" data-update-count="<?php echo $db_updates; ?>" |
||
| 43 | data-resume-update="<?php echo $give_updates->resume_updates(); ?>"> |
||
| 44 | <strong><?php echo sprintf( __( 'Update 1 of %s', 'give' ), $db_updates ); ?></strong></p> |
||
| 45 | <div class="progress-content"></div> |
||
| 46 | </div> |
||
| 47 | </div> |
||
| 48 | <!-- .inside --> |
||
| 49 | </div><!-- .postbox --> |
||
| 50 | </div> |
||
| 51 | </div> |
||
| 52 | <?php endif; ?> |
||
| 53 | |||
| 54 | <?php $plugin_updates = $give_updates->get_plugin_update_count(); ?> |
||
| 55 | <?php if ( ! empty( $plugin_updates ) ) : ?> |
||
| 56 | <?php $plugin_update_url = add_query_arg( array( |
||
| 57 | 's' => 'Give', |
||
| 58 | ), admin_url( '/plugins.php' ) ); ?> |
||
| 59 | <div id="give-plugin-updates"> |
||
| 60 | <div class="postbox-container"> |
||
| 61 | <div class="postbox"> |
||
| 62 | <h2 class="hndle"><?php _e( 'Add-on Updates', 'give' ); ?></h2> |
||
| 63 | <div class="inside"> |
||
| 64 | <div class="panel-content"> |
||
| 65 | <p><?php echo sprintf( __( 'There %1$s %2$s Give %3$s that %4$s to be updated. <a href="%5$s">Update now ></a>', 'give' ), _n( 'is', 'are', $plugin_updates, 'give' ), $plugin_updates, _n( 'add-on', 'add-ons', $plugin_updates, 'give' ), _n( 'needs', 'need', $plugin_updates, 'give' ), $plugin_update_url ); ?></p> |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 66 | <?php include_once 'plugins-update-section.php'; ?> |
||
| 67 | </div> |
||
| 68 | </div> |
||
| 69 | <!-- .inside --> |
||
| 70 | </div><!-- .postbox --> |
||
| 71 | </div> |
||
| 72 | </div> |
||
| 73 | <?php endif; ?> |
||
| 74 | |||
| 75 | </div> |
||
| 76 | </div> |