PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / inc / admin / views / tools / database / html-upgrade-database.php

html-upgrade-database.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at inc/admin/views/tools/database/html-upgrade-database.php

93 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template tool upgrade database.
4 *
5 * @template html-upgrade-database
6 * @author ThimPress
7 * @package LearnPress/Admin/Views
8 * @version 4.0.0
9 */
10
11 defined( 'ABSPATH' ) or die();
12
13 $user_agree_terms = (int) LP_Settings::instance()->get( 'agree_terms', 0 );
14 $check_lp_need_upgrade_db = LP_Updater::instance()->check_lp_db_need_upgrade();
15
16 if ( ! $check_lp_need_upgrade_db ) {
17 return;
18 }
19 ?>
20
21 <div class="card" id="lp-tool-upgrade-db">
22 <h2><?php echo sprintf( '%s', __( 'Upgrade Database.', 'learnpress' ) ); ?></h2>
23 <p class="tools-button">
24 <a class="button lp-btn-upgrade-db" href="javascript:;">
25 <?php esc_html_e( 'Upgrade now', 'learnpress' ); ?>
26 </a>
27 <span class="spinner"></span>
28 <?php wp_nonce_field( 'lp-nonce', 'lp-nonce' ); ?>
29 </p>
30 <div style="max-height: 500px; overflow: auto" class="wrapper-lp-status-upgrade"></div>
31
32 <?php
33 if ( ! $user_agree_terms ) {
34 ?>
35 <div class="wrapper-terms-upgrade">
36 <div class="terms-upgrade">
37 <h2>Terms of Service update</h2>
38 <div class="pd-2em">
39 <p>To system Learnpress runs normally on v4.0.0 we need to upgrade database on your site.</p>
40 <p>
41 Please read these Terms and Conditions carefully before you upgrade the database of Learn Press
42 operated by ThimPress on your website. Your access to and use this action is conditioned on your
43 acceptance of and compliance with these Terms. These Terms apply to all users who use this
44 action. By using this action, you agree to be bound by these Terms. If you disagree with any
45 part of the terms then you may not use this option, and you should downgrade
46 </p>
47 <p>
48 1. We do not take responsibility for the consequence with the data not from our
49 plugins of this action. <strong style="color: #f55252"><i>Make sure you back up all your website before doing
50 this</i></strong>.
51 </p>
52 <p>
53 2. We do not take responsibility for the consequence of this action with your website
54 if you stop this action before it has been finished successfully.
55 </p>
56 <p>
57 3. All the results from the disconnection from your server or your website are not in
58 our scope. So please make sure your connection is stable before you upgrade the
59 database.
60 </p>
61 <p>
62 <input type="checkbox" name="lp-agree-term">
63 <span>
64 <?php esc_html_e( 'I agree the new Terms of Service.', 'learnpress' ); ?>
65 </span>
66 </p>
67 <p class="error"><?php esc_html_e( 'Please agree terms before upgrade!', 'learnpress' ); ?></p>
68 </div>
69 </div>
70 </div>
71 <?php
72 }
73 ?>
74 <div class="wrapper-lp-upgrade-message">
75 <div class="lp-upgrade-message">
76 <h2>Upgrade finished</h2>
77 <div class="pd-2em">
78 <div class="learn-press-message">
79 <p>You have upgraded the database from plugin LearnPress successfully.</p>
80 <p>You can use the LearnPress functions and LearnPress add-ons now.</p>
81 <p>Read more document <a href="https://docspress.thimpress.com/admin-learnpress-4-0/">LearnPress
82 version 4.0.0</a></p>
83 </div>
84 </div>
85 </div>
86 </div>
87 <div class="wrapper-lp-loading">
88 <?php lp_skeleton_animation_html( 7 ); ?>
89 </div>
90 <input type="hidden" name="message-when-upgrading"
91 value="<?php esc_html_e( 'Please don\'t close this tab until the completed upgrade', 'learnpress' ); ?>"/>
92 </div>
93