← All changes
|
inc/admin/views/tools/database/html-upgrade-database.php
+40
-21
4.1.7.3.2
→
4.4.8
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @template html-upgrade-database |
| 6 | 6 | * @author ThimPress |
| 7 | 7 | * @package LearnPress/Admin/Views |
| 8 | - * @version 4.0.0 | |
| 8 | + * @version 4.0.1 | |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | defined( 'ABSPATH' ) or die(); |
| 12 | 12 | |
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | } |
| 19 | 19 | ?> |
| 20 | 20 | |
| 21 | 21 | <div class="card" id="lp-tool-upgrade-db"> |
| 22 | - <h2><?php echo sprintf( '%s', __( 'Upgrade Database.', 'learnpress' ) ); ?></h2> | |
| 22 | + <h2><?php echo sprintf( '%s', __( 'Upgrade Database', 'learnpress' ) ); ?></h2> | |
| 23 | 23 | <p class="tools-button"> |
| 24 | 24 | <a class="button lp-btn-upgrade-db" href="javascript:;"> |
| 25 | 25 | <?php esc_html_e( 'Upgrade now', 'learnpress' ); ?> |
| 26 | 26 | </a> |
| @@ -29,43 +29,63 @@ | ||
| 29 | 29 | </p> |
| 30 | 30 | <div style="max-height: 500px; overflow: auto" class="wrapper-lp-status-upgrade"></div> |
| 31 | 31 | |
| 32 | 32 | <?php |
| 33 | - if ( ! $user_agree_terms ) { | |
| 33 | + if ( $user_agree_terms !== $check_lp_need_upgrade_db ) { | |
| 34 | 34 | ?> |
| 35 | 35 | <div class="wrapper-terms-upgrade"> |
| 36 | 36 | <div class="terms-upgrade"> |
| 37 | 37 | <h2>Terms of Service update</h2> |
| 38 | 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> | |
| 39 | + <span>To system LearnPress runs normally, we need to upgrade database on your site.</span> | |
| 40 | 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 | |
| 41 | + IMPORTANT: Before upgrading the LearnPress database on your website, please read these Terms of | |
| 42 | + Services carefully. | |
| 46 | 43 | </p> |
| 47 | 44 | <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>. | |
| 45 | + Our Terms of Services, provided by ThimPress, outline the precautions for upgrading the | |
| 46 | + LearnPress database on your website. By using this feature, you agree to be bound by these | |
| 47 | + Terms. If you disagree with any part, you should not upgrade the database and consider | |
| 48 | + downgrading LearnPress versions if necessary. | |
| 51 | 49 | </p> |
| 50 | + <h4>ACCEPTANCE OF TERMS</h4> | |
| 51 | + <span> | |
| 52 | + 1. We do not take responsibility for the loss data that is not from our LearnPress plugins. This | |
| 53 | + means we cannot guarantee the safety of data unrelated to LearnPress during the database upgrade | |
| 54 | + process . <strong style="color: #f55252"><i>It's essential to back up your entire website before | |
| 55 | + upgradingspan</i></strong>. | |
| 56 | + </span> | |
| 52 | 57 | <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. | |
| 58 | + 2. We are not responsible for the issues caused by interrupting the upgrade process. | |
| 59 | + Interrupting | |
| 60 | + the process before finishing can lead to problems on your website. Please ensure that the | |
| 61 | + LearnPress database is upgraded successfully. | |
| 55 | 62 | </p> |
| 56 | 63 | <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. | |
| 64 | + 3. A stable internet connection is essential for a successful upgrade since any Internet | |
| 65 | + disconnection can lead to unexpected problems. We do not take responsibility for any issues | |
| 66 | + caused by any disconnection. | |
| 60 | 67 | </p> |
| 68 | + <h4>ACCEPTANCE OF TERMS</h4> | |
| 69 | + <span> | |
| 70 | + 1.Back up your website before upgrading. This will make sure you can restore your website in | |
| 71 | + case any unexpected errors happen. | |
| 72 | + </span> | |
| 61 | 73 | <p> |
| 74 | + 2. Maintain a stable Internet connection throughout the process. This will minimize the risk of | |
| 75 | + breaking down your website. | |
| 76 | + </p> | |
| 77 | + <p> | |
| 78 | + 3. Do not interrupt the process once it starts. You should let the process run for a successful | |
| 79 | + database update. | |
| 80 | + </p> | |
| 81 | + <p> | |
| 62 | 82 | <input type="checkbox" name="lp-agree-term"> |
| 63 | 83 | <span> |
| 64 | 84 | <?php esc_html_e( 'I agree the new Terms of Service.', 'learnpress' ); ?> |
| 65 | 85 | </span> |
| 66 | 86 | </p> |
| 67 | - <p class="error"><?php esc_html_e( 'Please agree terms before upgrade!', 'learnpress' ); ?></p> | |
| 87 | + <p class="error"><?php esc_html_e( 'Please agree to the terms before upgrade!', 'learnpress' ); ?></p> | |
| 68 | 88 | </div> |
| 69 | 89 | </div> |
| 70 | 90 | </div> |
| 71 | 91 | <?php |
| @@ -77,10 +97,9 @@ | ||
| 77 | 97 | <div class="pd-2em"> |
| 78 | 98 | <div class="learn-press-message"> |
| 79 | 99 | <p>You have upgraded the database from plugin LearnPress successfully.</p> |
| 80 | 100 | <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> | |
| 101 | + <p>Read more document <a href="<?php echo LearnPress::$doc_link; ?>">LearnPress</a></p> | |
| 83 | 102 | </div> |
| 84 | 103 | </div> |
| 85 | 104 | </div> |
| 86 | 105 | </div> |
| @@ -87,6 +106,6 @@ | ||
| 87 | 106 | <div class="wrapper-lp-loading"> |
| 88 | 107 | <?php lp_skeleton_animation_html( 7 ); ?> |
| 89 | 108 | </div> |
| 90 | 109 | <input type="hidden" name="message-when-upgrading" |
| 91 | - value="<?php esc_html_e( 'Please don\'t close this tab until the completed upgrade', 'learnpress' ); ?>"/> | |
| 110 | + value="<?php esc_html_e( 'Please don\'t close this tab until the completed upgrade', 'learnpress' ); ?>"/> | |
| 92 | 111 | </div> |