43 lines
1.4 KiB
PHP
43 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* The Template for displaying wishlist templates overrides status on WooCOmmerce System Status page.
|
|
*
|
|
* @since 1.2.0
|
|
* @package TInvWishlist\Admin\Template
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
?>
|
|
<table class="wc_status_table widefat" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3"
|
|
data-export-label="<?php esc_html_e( 'TI WooCommerce Wishlist Templates', 'ti-woocommerce-wishlist' ); ?>">
|
|
<h2><?php esc_html_e( 'TI WooCommerce Wishlist Templates', 'ti-woocommerce-wishlist' ); ?><?php echo wc_help_tip( __( 'This section shows the files that are overriding the default TI WooCommerce Wishlist templates.', 'ti-woocommerce-wishlist' ) ); // WPCS: xss ok. ?></h2>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
if ( $found_files ) {
|
|
?>
|
|
<tr>
|
|
<td data-export-label="<?php esc_html_e( 'Overrides', 'ti-woocommerce-wishlist' ); ?>"><?php esc_html_e( 'Overrides', 'ti-woocommerce-wishlist' ); ?></td>
|
|
<td class="help"> </td>
|
|
<td><?php echo implode( ', <br/>', $found_files ); // WPCS: xss ok. ?></td>
|
|
</tr>
|
|
<?php } else {
|
|
?>
|
|
<tr>
|
|
<td data-export-label="<?php esc_html_e( 'Overrides', 'ti-woocommerce-wishlist' ); ?>"><?php esc_html_e( 'Overrides', 'ti-woocommerce-wishlist' ); ?>
|
|
:
|
|
</td>
|
|
<td class="help"> </td>
|
|
<td>–</td>
|
|
</tr>
|
|
<?php }
|
|
?>
|
|
</tbody>
|
|
</table>
|