← All changes
|
includes/admin/tools/views/html-admin-page-data.php
+25
-21
2.3.2
→
4.16.9
View file →
| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | * @since 1.5 |
| 18 | 18 | */ |
| 19 | 19 | do_action( 'give_tools_recount_stats_before' ); |
| 20 | 20 | ?> |
| 21 | - <div id="poststuff"> | |
| 21 | + <div id="poststuff" class="give-clearfix"> | |
| 22 | 22 | <div class="postbox"> |
| 23 | 23 | |
| 24 | 24 | <h2 class="hndle ui-sortable-handle"><span><?php esc_html_e( 'Recount Stats', 'give' ); ?></span></h2> |
| 25 | 25 | |
| @@ -30,11 +30,11 @@ | ||
| 30 | 30 | <?php wp_nonce_field( 'give_ajax_export', 'give_ajax_export' ); ?> |
| 31 | 31 | |
| 32 | 32 | <select name="give-export-class" id="recount-stats-type"> |
| 33 | 33 | <option value="0" selected="selected" disabled="disabled"><?php esc_html_e( 'Please select an option', 'give' ); ?></option> |
| 34 | - <option data-type="recount-stats" value="Give_Tools_Recount_Income"><?php esc_html_e( 'Recalculate Total Donation Income Amount', 'give' ); ?></option> | |
| 35 | - <option data-type="recount-form" value="Give_Tools_Recount_Form_Stats"><?php esc_html_e( 'Recalculate Income Amount and Donation Counts for a Form', 'give' ); ?></option> | |
| 36 | - <option data-type="recount-all" value="Give_Tools_Recount_All_Stats"><?php esc_html_e( 'Recalculate Income Amount and Donation Counts for All Forms', 'give' ); ?></option> | |
| 34 | + <option data-type="recount-stats" value="Give_Tools_Recount_Income"><?php esc_html_e( 'Recalculate Total Donation Revenue Amount', 'give' ); ?></option> | |
| 35 | + <option data-type="recount-form" value="Give_Tools_Recount_Form_Stats"><?php esc_html_e( 'Recalculate Revenue Amount and Donation Counts for a Form', 'give' ); ?></option> | |
| 36 | + <option data-type="recount-all" value="Give_Tools_Recount_All_Stats"><?php esc_html_e( 'Recalculate Revenue Amount and Donation Counts for All Forms', 'give' ); ?></option> | |
| 37 | 37 | <option data-type="recount-donor-stats" value="Give_Tools_Recount_Donor_Stats"><?php esc_html_e( 'Recalculate Donor Statistics', 'give' ); ?></option> |
| 38 | 38 | <option data-type="delete-test-transactions" value="Give_Tools_Delete_Test_Transactions"><?php esc_html_e( 'Delete Test Donations', 'give' ); ?></option> |
| 39 | 39 | <option data-type="delete-donations" value="Give_Tools_Delete_Donations"><?php esc_html_e( 'Delete Live and Test Donations', 'give' ); ?></option> |
| 40 | 40 | <option data-type="delete-test-donors" value="Give_Tools_Delete_Donors"><?php esc_html_e( 'Delete Test Donors and Donations', 'give' ); ?></option> |
| @@ -53,14 +53,14 @@ | ||
| 53 | 53 | </select> |
| 54 | 54 | |
| 55 | 55 | <span class="tools-form-dropdown tools-form-dropdown-recount-form" style="display: none"> |
| 56 | 56 | <?php |
| 57 | - $args = array( | |
| 57 | + $args = [ | |
| 58 | 58 | 'class' => 'tools-form-dropdown-recount-form-select', |
| 59 | 59 | 'name' => 'form_id', |
| 60 | 60 | 'chosen' => true, |
| 61 | 61 | 'placeholder' => esc_attr__( 'Select Form', 'give' ), |
| 62 | - ); | |
| 62 | + ]; | |
| 63 | 63 | echo Give()->html->forms_dropdown( $args ); |
| 64 | 64 | ?> |
| 65 | 65 | </span> |
| 66 | 66 | |
| @@ -65,21 +65,25 @@ | ||
| 65 | 65 | </span> |
| 66 | 66 | |
| 67 | 67 | <span class="tools-date-dropdown tools-date-dropdown-delete-donations" style="display: none"> |
| 68 | 68 | <?php |
| 69 | - echo Give()->html->date_field( array( | |
| 70 | - 'id' => 'give_delete_donations_start_date', | |
| 71 | - 'name' => 'delete_donations_start_date', | |
| 72 | - 'placeholder' => esc_attr__( 'Start date', 'give' ), | |
| 73 | - 'autocomplete' => 'off', | |
| 74 | - ) ); | |
| 69 | + echo Give()->html->date_field( | |
| 70 | + [ | |
| 71 | + 'id' => 'give_delete_donations_start_date', | |
| 72 | + 'name' => 'delete_donations_start_date', | |
| 73 | + 'placeholder' => esc_attr__( 'Start date', 'give' ), | |
| 74 | + 'autocomplete' => 'off', | |
| 75 | + ] | |
| 76 | + ); | |
| 75 | 77 | |
| 76 | - echo Give()->html->date_field( array( | |
| 77 | - 'id' => 'give_delete_donations_end_date', | |
| 78 | - 'name' => 'delete_donations_end_date', | |
| 79 | - 'placeholder' => esc_attr__( 'End date', 'give' ), | |
| 80 | - 'autocomplete' => 'off', | |
| 81 | - ) ); | |
| 78 | + echo Give()->html->date_field( | |
| 79 | + [ | |
| 80 | + 'id' => 'give_delete_donations_end_date', | |
| 81 | + 'name' => 'delete_donations_end_date', | |
| 82 | + 'placeholder' => esc_attr__( 'End date', 'give' ), | |
| 83 | + 'autocomplete' => 'off', | |
| 84 | + ] | |
| 85 | + ); | |
| 82 | 86 | ?> |
| 83 | 87 | </span> |
| 84 | 88 | |
| 85 | 89 | <span class="tools-form-dropdown tools-form-dropdown-delete-import-donors" style="display: none"> |
| @@ -84,9 +88,9 @@ | ||
| 84 | 88 | |
| 85 | 89 | <span class="tools-form-dropdown tools-form-dropdown-delete-import-donors" style="display: none"> |
| 86 | 90 | <label for="delete-import-donors"> |
| 87 | 91 | <?php |
| 88 | - echo Give()->html->checkbox( array( 'name' => 'delete-import-donors' ) ); | |
| 92 | + echo Give()->html->checkbox( [ 'name' => 'delete-import-donors' ] ); | |
| 89 | 93 | esc_html_e( 'Delete imported WordPress users', 'give' ); |
| 90 | 94 | ?> |
| 91 | 95 | </label> |
| 92 | 96 | </span> |
| @@ -95,10 +99,10 @@ | ||
| 95 | 99 | |
| 96 | 100 | <br/> |
| 97 | 101 | |
| 98 | 102 | <span class="give-recount-stats-descriptions"> |
| 99 | - <span id="recount-stats"><?php esc_html_e( 'Recalculates the overall donation income amount.', 'give' ); ?></span> | |
| 100 | - <span id="recount-form"><?php esc_html_e( 'Recalculates the donation and income stats for a specific form.', 'give' ); ?></span> | |
| 103 | + <span id="recount-stats"><?php esc_html_e( 'Recalculates the overall donation revenue amount.', 'give' ); ?></span> | |
| 104 | + <span id="recount-form"><?php esc_html_e( 'Recalculates the donation and revenue stats for a specific form.', 'give' ); ?></span> | |
| 101 | 105 | <span id="recount-all"><?php esc_html_e( 'Recalculates the earnings and sales stats for all forms.', 'give' ); ?></span> |
| 102 | 106 | <span id="recount-customer-stats"><?php esc_html_e( 'Recalculates the lifetime value and donation counts for all donors.', 'give' ); ?></span> |
| 103 | 107 | <?php |
| 104 | 108 | /** |