Exchange Theme Templates: content-downloads/loops/transaction.php

From IThemes Codex
Jump to: navigation, search

The default product loop for the content-purchases.php template part.

Contents

Theme Location

theme/exchange/content-downloads/loops/transaction.php

Action Hooks

Theme API

Default Code

<?php
/**
 * The default product loop for the
 * content-purchases.php 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, simply copy this file's
 * content to the exchange/content-download/loops
 * directory located in your theme.
*/
?>

<?php if ( it_exchange( 'transactions', 'found' ) ) : ?>
	<?php it_exchange_set_global( 'downloads_found', false ); ?>
	<?php do_action( 'it_exchange_content_downloads_before_transactions_loop' ); ?>
	<?php while( it_exchange( 'transactions', 'exist' ) ) : ?>
		<?php do_action( 'it_exchange_content_downloads_begin_transactions_loop' ); ?>
		<?php it_exchange_get_template_part( 'content-downloads/loops/product' ); ?>
		<?php do_action( 'it_exchange_content_downloads_end_transactions_loop' ); ?>
    <?php endwhile; ?>
	<?php do_action( 'it_exchange_content_downloads_after_transactions_loop' ); ?>
	<?php if ( ! it_exchange_get_global( 'downloads_found' ) ) : ?>
		<p><?php _e( 'No downloads found.', 'LION' ); ?></p>
	<?php endif; ?>
<?php else: ?>
	<p><?php _e( 'No downloads found.', 'LION' ); ?></p>
<?php endif; ?>

← Back to Exchange Theme Templates Page

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox