Exchange Theme Templates: content-cart/loops/totals.php

From IThemes Codex
Revision as of 14:18, July 25, 2013 by Justinkopepasah (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the default template part for the totals loop in the content-cart template part.

Contents

Theme Location

theme/exchange/content-cart/loops/totals.php

Action Hooks

Theme API

Currently no api calls for this file.

Default Code

<?php
/**
 * This is the default template part for the
 * totals loop in the content-cart
 * template part.
 *
 * @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-cart/loops/ directory
 * located in your theme.
*/
?>

<?php do_action( 'it_exchange_content_cart_before_totals' ); ?>
<div id="it-exchange-cart-totals" class="it-exchange-table">
<?php do_action( 'it_exchange_content_cart_before_totals_loop' ); ?>
<?php do_action( 'it_exchange_content_cart_begin_totals_loop' ); ?>
<?php foreach ( it_exchange_get_template_part_elements( 'content_cart', 'totals', array( 'totals-subtotal', 'totals-savings', 'totals-total' ) ) as $total ) : ?>
	<div class="it-exchange-table-row it-exchange-cart-<?php echo $total; ?>">
		<?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-cart/elements/' . $total );
		?>
	</div>
<?php endforeach; ?>
<?php do_action( 'it_exchange_content_cart_end_totals_loop' ); ?>
<?php do_action( 'it_exchange_content_cart_before_totals_loop' ); ?>
</div>
<?php do_action( 'it_exchange_content_cart_after_totals' ); ?>

← Back to Exchange Theme Templates Page

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox