| 1 |
<?php |
| 2 |
/** |
| 3 |
* @author ThimPress |
| 4 |
* @package LearnPress/Admin/Views |
| 5 |
* @version 3.0.0 |
| 6 |
*/ |
| 7 |
|
| 8 |
defined( 'ABSPATH' ) || die(); |
| 9 |
?> |
| 10 |
|
| 11 |
<div class="card"> |
| 12 |
<h2><?php _e( 'Repair Database', 'learnpress' ); ?></h2> |
| 13 |
<p><?php _e( 'Remove unwanted data and re-calculate relationship.', 'learnpress' ); ?></p> |
| 14 |
<ul id="learn-press-syncs"> |
| 15 |
<!-- <li>--> |
| 16 |
<!-- <label>--> |
| 17 |
<!-- <input type="checkbox" name="lp-repair[sync-remove-older-data]" value="yes">--> |
| 18 |
<!-- --><?php // esc_html_e('Remove older meta data such as: post meta, ...', 'learnpress'); ?> |
| 19 |
<!-- </label>--> |
| 20 |
<!-- </li>--> |
| 21 |
<li> |
| 22 |
<label> |
| 23 |
<input type="checkbox" name="lp-repair[sync-course-orders]" value="yes"> |
| 24 |
<?php esc_html_e( 'Re-count orders in each course', 'learnpress' ); ?> |
| 25 |
</label> |
| 26 |
</li> |
| 27 |
<li> |
| 28 |
<label> |
| 29 |
<input type="checkbox" name="lp-repair[sync-user-orders]" value="yes"> |
| 30 |
<?php esc_html_e( 'Re-count orders for each user', 'learnpress' ); ?> |
| 31 |
</label> |
| 32 |
</li> |
| 33 |
<li> |
| 34 |
<label> |
| 35 |
<input type="checkbox" name="lp-repair[sync-user-courses]" value="yes"> |
| 36 |
<?php esc_html_e( 'Re-count courses for each user', 'learnpress' ); ?> |
| 37 |
</label> |
| 38 |
</li> |
| 39 |
<li> |
| 40 |
<label> |
| 41 |
<input type="checkbox" name="lp-repair[sync-course-final-quiz]" value="yes"> |
| 42 |
<?php esc_html_e( 'Re-map final quiz for each course', 'learnpress' ); ?> |
| 43 |
</label> |
| 44 |
</li> |
| 45 |
<li> |
| 46 |
<label> |
| 47 |
<input type="checkbox" name="lp-repair[sync-calculate-course-results]" value="yes"> |
| 48 |
<?php esc_html_e( 'Re-calculate course result for users', 'learnpress' ); ?> |
| 49 |
</label> |
| 50 |
</li> |
| 51 |
<!--tungnx comment because need add Sync-User-Completed-Items on sync-data.js--> |
| 52 |
<!--<li> |
| 53 |
<label> |
| 54 |
<input type="checkbox" name="lp-repair[sync-user-completed-items]" value="yes"> |
| 55 |
<?php /*esc_html_e( 'Re-calculate completed items for each users', 'learnpress' ); */ ?> |
| 56 |
</label> |
| 57 |
</li>--> |
| 58 |
</ul> |
| 59 |
<p class="tools-button"> |
| 60 |
<button type="button" class="button lp-button-repair"><?php esc_html_e( 'Repair now', 'learnpress' ); ?></button> |
| 61 |
<label> |
| 62 |
<input type="checkbox" id="learn-press-check-all-syncs"> |
| 63 |
<?php esc_html_e( 'Check All', 'learnpress' ); ?> |
| 64 |
</label> |
| 65 |
</p> |
| 66 |
</div> |
| 67 |
|