Exchange Theme Templates: content-checkout/loops/items.php

From IThemes Codex
Revision as of 09:32, August 5, 2013 by Kopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the default template part for the cart items loop. *

Contents

Theme Location

theme/exchange/content-checkout/loops/items.php

Action Hooks

Theme API

Default Code

<?php
/**
 * This is the default template part for the cart
 * items loop.
 *
 * @since 1.1.0
 * @version 1.1.0
 * @package IT_Exchange
 * 
 * WARNING: Do not edit this file directly. To use
 * this template in a theme, copy over this file
 * to the exchange/content-checkout/loops/ directory
 * located in your theme.
*/
?>

<?php do_action( 'it_exchange_content_checkout_before_items' ); ?>
<div id="it-exchange-cart-items" class="it-exchange-table">
<?php do_action( 'it_exchange_content_checkout_before_items_loop' ); ?>
<?php while ( it_exchange( 'cart', 'cart-items' ) ) : ?>
	<?php do_action( 'it_exchange_content_checkout_begin_items_loop' ); ?>
	
	<?php do_action( 'it_exchange_content_checkout_before_items_table_row' ); ?>
	<div class="it-exchange-table-row">
		<?php do_action( 'it_exchange_content_checkout_begin_items_table_row' ); ?>
		
		<?php foreach ( it_exchange_get_template_part_elements( 'content_checkout', 'items', array( 'item-featured-image', 'item-title', 'item-quantity', 'item-subtotal' ) ) as $item ) : ?>
			<?php
			/**
			 * Theme and add-on devs should add code to this loop by 
			 * hooking into it_exchange_get_template_part_elements filter
			 * and adding the appropriate template file to their theme or add-on
			 */
			it_exchange_get_template_part( 'content-checkout/elements/' . $item );
			?>
		<?php endforeach; ?>
		<?php do_action( 'it_exchange_content_checkout_end_items_table_row' ); ?>
	</div>
	<?php do_action( 'it_exchange_content_checkout_after_items_table_row' ); ?>
	
	<?php do_action( 'it_exchange_content_checkout_end_items_loop' ); ?>
<?php endwhile; ?>
<?php do_action( 'it_exchange_content_content_checkout_after_items_loop' ); ?>
</div>
<?php do_action( 'it_exchange_content_checkout_after_items' ); ?>

← Back to Exchange Theme Templates Page

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox