geno/wp-content/plugins/ti-woocommerce-wishlist/templates/ti-wishlist-item-data.php

28 lines
809 B
PHP
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
<?php
/**
* The Template for displaying variation product data.
*
* This template can be overridden by copying it to yourtheme/woocommerce/ti-wishlist-item-data.php.
*
* @version 1.10.1
* @package TInvWishlist\Template
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<dl class="variation">
<?php foreach ( $item_data as $data ) : ?>
<?php if ( $data['key'] ) { ?>
<dt class="variation-<?php echo sanitize_html_class( $data['key'] ); ?>"><?php echo wp_kses_post( $data['key'] ); ?>
:
</dt>
<?php } ?>
<?php if ( $data['display'] ) { ?>
<dd class="variation-<?php echo sanitize_html_class( $data['key'] ); ?>"><?php echo wp_kses_post( $data['display'] ); ?></dd>
<?php } ?>
<?php endforeach; ?>
</dl>