2014-12-17 17:50:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2015-05-15 19:12:11 +00:00
|
|
|
exit;
|
2014-12-17 17:50:19 +00:00
|
|
|
}
|
|
|
|
|
2014-12-17 18:20:37 +00:00
|
|
|
$count_comments = wp_count_comments( $webhook->id );
|
|
|
|
$total = $count_comments->approved;
|
|
|
|
|
2014-12-17 17:50:19 +00:00
|
|
|
?>
|
|
|
|
|
2015-05-15 19:50:30 +00:00
|
|
|
<?php echo WC_Admin_Webhooks::get_logs_navigation( $total, $webhook ); ?>
|
2014-12-17 17:50:19 +00:00
|
|
|
|
2015-01-08 18:34:30 +00:00
|
|
|
<table id="webhook-logs-table" class="widefat">
|
2014-12-17 17:50:19 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?php _e( 'Date', 'woocommerce' ); ?></th>
|
|
|
|
<th><?php _e( 'URL', 'woocommerce' ); ?></th>
|
|
|
|
<th><?php _e( 'Request', 'woocommerce' ); ?></th>
|
|
|
|
<th><?php _e( 'Response', 'woocommerce' ); ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th><?php _e( 'Date', 'woocommerce' ); ?></th>
|
|
|
|
<th><?php _e( 'URL', 'woocommerce' ); ?></th>
|
|
|
|
<th><?php _e( 'Request', 'woocommerce' ); ?></th>
|
|
|
|
<th><?php _e( 'Response', 'woocommerce' ); ?></th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
foreach ( $logs as $log ) {
|
|
|
|
$log = $webhook->get_delivery_log( $log->comment_ID );
|
|
|
|
|
|
|
|
include( 'html-webhook-log.php' );
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2015-05-15 19:50:30 +00:00
|
|
|
<?php echo WC_Admin_Webhooks::get_logs_navigation( $total, $webhook ); ?>
|