woocommerce/templates/cart/cart-item-data.php

24 lines
605 B
PHP
Raw Normal View History

2013-08-13 13:14:24 +00:00
<?php
/**
* Cart item data (when outputting non-flat)
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
2013-08-13 13:14:24 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
2013-08-13 13:14:24 +00:00
?>
<dl class="variation">
<?php
foreach ( $item_data as $data ) :
$key = sanitize_text_field( $data['key'] );
?>
2014-02-24 22:42:40 +00:00
<dt class="variation-<?php echo sanitize_html_class( $key ); ?>"><?php echo wp_kses_post( $data['key'] ); ?>:</dt>
<dd class="variation-<?php echo sanitize_html_class( $key ); ?>"><?php echo wp_kses_post( wpautop( $data['value'] ) ); ?></dd>
2013-08-13 13:14:24 +00:00
<?php endforeach; ?>
</dl>