| @@ 47-81 (lines=35) @@ | ||
| 44 | * @uses Give_Sales_Log_Table::display() |
|
| 45 | * @return void |
|
| 46 | */ |
|
| 47 | function give_logs_view_sales() { |
|
| 48 | ||
| 49 | include GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-sales-logs-list-table.php'; |
|
| 50 | ||
| 51 | $logs_table = new Give_Sales_Log_Table(); |
|
| 52 | $logs_table->prepare_items(); |
|
| 53 | ?> |
|
| 54 | <div class="wrap"> |
|
| 55 | ||
| 56 | <?php |
|
| 57 | /** |
|
| 58 | * Fires before displaying Donations logs. |
|
| 59 | * |
|
| 60 | * @since 1.8.12 |
|
| 61 | */ |
|
| 62 | do_action( 'give_logs_donations_top' ); |
|
| 63 | ||
| 64 | $logs_table->display(); ?> |
|
| 65 | <input type="hidden" name="post_type" value="give_forms"/> |
|
| 66 | <input type="hidden" name="page" value="give-tools"/> |
|
| 67 | <input type="hidden" name="tab" value="logs"/> |
|
| 68 | <input type="hidden" name="section" value="sales"/> |
|
| 69 | ||
| 70 | <?php |
|
| 71 | /** |
|
| 72 | * Fires after displaying Donations logs. |
|
| 73 | * |
|
| 74 | * @since 1.8.12 |
|
| 75 | */ |
|
| 76 | do_action( 'give_logs_donations_bottom' ); |
|
| 77 | ?> |
|
| 78 | ||
| 79 | </div> |
|
| 80 | <?php |
|
| 81 | } |
|
| 82 | ||
| 83 | add_action( 'give_logs_view_sales', 'give_logs_view_sales' ); |
|
| 84 | ||
| @@ 92-125 (lines=34) @@ | ||
| 89 | * |
|
| 90 | * @return void |
|
| 91 | */ |
|
| 92 | function give_logs_view_updates() { |
|
| 93 | include( GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-update-logs-list-table.php' ); |
|
| 94 | ||
| 95 | $logs_table = new Give_Update_Log_Table(); |
|
| 96 | $logs_table->prepare_items(); |
|
| 97 | ?> |
|
| 98 | <div class="wrap"> |
|
| 99 | ||
| 100 | <?php |
|
| 101 | /** |
|
| 102 | * Fires before displaying Payment Error logs. |
|
| 103 | * |
|
| 104 | * @since 2.0.1 |
|
| 105 | */ |
|
| 106 | do_action( 'give_logs_update_top' ); |
|
| 107 | ||
| 108 | $logs_table->display(); ?> |
|
| 109 | <input type="hidden" name="post_type" value="give_forms"/> |
|
| 110 | <input type="hidden" name="page" value="give-tools"/> |
|
| 111 | <input type="hidden" name="tab" value="logs"/> |
|
| 112 | <input type="hidden" name="section" value="update"/> |
|
| 113 | ||
| 114 | <?php |
|
| 115 | /** |
|
| 116 | * Fires after displaying update logs. |
|
| 117 | * |
|
| 118 | * @since 2.0.1 |
|
| 119 | */ |
|
| 120 | do_action( 'give_logs_update_bottom' ); |
|
| 121 | ?> |
|
| 122 | ||
| 123 | </div> |
|
| 124 | <?php |
|
| 125 | } |
|
| 126 | ||
| 127 | add_action( 'give_logs_view_updates', 'give_logs_view_updates' ); |
|
| 128 | ||
| @@ 137-170 (lines=34) @@ | ||
| 134 | * @uses Give_File_Downloads_Log_Table::display() |
|
| 135 | * @return void |
|
| 136 | */ |
|
| 137 | function give_logs_view_gateway_errors() { |
|
| 138 | include( GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-gateway-error-logs-list-table.php' ); |
|
| 139 | ||
| 140 | $logs_table = new Give_Gateway_Error_Log_Table(); |
|
| 141 | $logs_table->prepare_items(); |
|
| 142 | ?> |
|
| 143 | <div class="wrap"> |
|
| 144 | ||
| 145 | <?php |
|
| 146 | /** |
|
| 147 | * Fires before displaying Payment Error logs. |
|
| 148 | * |
|
| 149 | * @since 1.8.12 |
|
| 150 | */ |
|
| 151 | do_action( 'give_logs_payment_error_top' ); |
|
| 152 | ||
| 153 | $logs_table->display(); ?> |
|
| 154 | <input type="hidden" name="post_type" value="give_forms"/> |
|
| 155 | <input type="hidden" name="page" value="give-tools"/> |
|
| 156 | <input type="hidden" name="tab" value="logs"/> |
|
| 157 | <input type="hidden" name="section" value="gateway_errors"/> |
|
| 158 | ||
| 159 | <?php |
|
| 160 | /** |
|
| 161 | * Fires after displaying Payment Error logs. |
|
| 162 | * |
|
| 163 | * @since 1.8.12 |
|
| 164 | */ |
|
| 165 | do_action( 'give_logs_payment_error_bottom' ); |
|
| 166 | ?> |
|
| 167 | ||
| 168 | </div> |
|
| 169 | <?php |
|
| 170 | } |
|
| 171 | ||
| 172 | add_action( 'give_logs_view_gateway_errors', 'give_logs_view_gateway_errors' ); |
|
| 173 | ||