| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the Logs table when viewing/editing an individual Post. |
| 4 |
* |
| 5 |
* @package WP_To_Social_Pro |
| 6 |
* @author WP Zinc |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly. |
| 11 |
} |
| 12 |
?> |
| 13 |
<div class="wpzinc-option"> |
| 14 |
<div class="full"> |
| 15 |
<table class="widefat wp-to-social-log"> |
| 16 |
<thead> |
| 17 |
<tr> |
| 18 |
<th><?php esc_html_e( 'Request Sent', 'wp-to-buffer' ); ?></th> |
| 19 |
<th><?php esc_html_e( 'Action', 'wp-to-buffer' ); ?></th> |
| 20 |
<th><?php esc_html_e( 'Profile', 'wp-to-buffer' ); ?></th> |
| 21 |
<th><?php esc_html_e( 'Status Text', 'wp-to-buffer' ); ?></th> |
| 22 |
<th><?php esc_html_e( 'Result', 'wp-to-buffer' ); ?></th> |
| 23 |
<th><?php esc_html_e( 'Response', 'wp-to-buffer' ); ?></th> |
| 24 |
<th> |
| 25 |
<?php |
| 26 |
echo esc_html( |
| 27 |
sprintf( |
| 28 |
/* translators: Social Media Service Name (Buffer, Hootsuite) */ |
| 29 |
__( '%s: Status Created At', 'wp-to-buffer' ), |
| 30 |
$this->base->plugin->account |
| 31 |
) |
| 32 |
); |
| 33 |
?> |
| 34 |
</th> |
| 35 |
<th> |
| 36 |
<?php |
| 37 |
echo esc_html( |
| 38 |
sprintf( |
| 39 |
/* translators: Social Media Service Name (Buffer, Hootsuite) */ |
| 40 |
__( '%s: Status Scheduled For', 'wp-to-buffer' ), |
| 41 |
$this->base->plugin->account |
| 42 |
) |
| 43 |
); |
| 44 |
?> |
| 45 |
</th> |
| 46 |
</tr> |
| 47 |
</thead> |
| 48 |
<tbody> |
| 49 |
<?php |
| 50 |
echo $this->base->get_class( 'log' )->build_log_table_output( $log ); // phpcs:ignore WordPress.Security.EscapeOutput |
| 51 |
?> |
| 52 |
</tbody> |
| 53 |
</table> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
<div class="wpzinc-option"> |
| 57 |
<div class="full"> |
| 58 |
<a href="<?php echo esc_attr( $urls['refresh'] ); ?>" class="<?php echo esc_attr( $this->base->plugin->name ); ?>-refresh-log button" data-action="<?php echo esc_attr( $this->base->plugin->filter_name ); ?>_get_log" data-target="#<?php echo esc_attr( $this->base->plugin->name ); ?>-log"> |
| 59 |
<?php esc_html_e( 'Refresh Log', 'wp-to-buffer' ); ?> |
| 60 |
</a> |
| 61 |
<a href="<?php echo esc_attr( $urls['export'] ); ?>" class="<?php echo esc_attr( $this->base->plugin->name ); ?>-export-log button"> |
| 62 |
<?php esc_html_e( 'Export Log', 'wp-to-buffer' ); ?> |
| 63 |
</a> |
| 64 |
<a href="<?php echo esc_attr( $urls['clear'] ); ?>" class="<?php echo esc_attr( $this->base->plugin->name ); ?>-clear-log button wpzinc-button-red" data-action="<?php echo esc_attr( $this->base->plugin->filter_name ); ?>_clear_log" data-target="#<?php echo esc_attr( $this->base->plugin->name ); ?>-log" data-message="<?php esc_attr_e( 'Are you sure you want to clear the logs associated with this Post?', 'wp-to-buffer' ); ?>"> |
| 65 |
<?php esc_html_e( 'Clear Log', 'wp-to-buffer' ); ?> |
| 66 |
</a> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
|