| @@ 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 | ||
| @@ 94-127 (lines=34) @@ | ||
| 91 | * @uses Give_File_Downloads_Log_Table::display() |
|
| 92 | * @return void |
|
| 93 | */ |
|
| 94 | function give_logs_view_gateway_errors() { |
|
| 95 | include( GIVE_PLUGIN_DIR . 'includes/admin/tools/logs/class-gateway-error-logs-list-table.php' ); |
|
| 96 | ||
| 97 | $logs_table = new Give_Gateway_Error_Log_Table(); |
|
| 98 | $logs_table->prepare_items(); |
|
| 99 | ?> |
|
| 100 | <div class="wrap"> |
|
| 101 | ||
| 102 | <?php |
|
| 103 | /** |
|
| 104 | * Fires before displaying Payment Error logs. |
|
| 105 | * |
|
| 106 | * @since 1.8.12 |
|
| 107 | */ |
|
| 108 | do_action( 'give_logs_payment_error_top' ); |
|
| 109 | ||
| 110 | $logs_table->display(); ?> |
|
| 111 | <input type="hidden" name="post_type" value="give_forms"/> |
|
| 112 | <input type="hidden" name="page" value="give-tools"/> |
|
| 113 | <input type="hidden" name="tab" value="logs"/> |
|
| 114 | <input type="hidden" name="section" value="gateway_errors"/> |
|
| 115 | ||
| 116 | <?php |
|
| 117 | /** |
|
| 118 | * Fires after displaying Payment Error logs. |
|
| 119 | * |
|
| 120 | * @since 1.8.12 |
|
| 121 | */ |
|
| 122 | do_action( 'give_logs_payment_error_bottom' ); |
|
| 123 | ?> |
|
| 124 | ||
| 125 | </div> |
|
| 126 | <?php |
|
| 127 | } |
|
| 128 | ||
| 129 | add_action( 'give_logs_view_gateway_errors', 'give_logs_view_gateway_errors' ); |
|
| 130 | ||