Exchange Theme Templates: content-downloads/elements/download-expiration-date.php

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

The default template part for the download's expiration in the content-downloads template part's download-data loop.

Contents

Theme Location

theme/exchange/content-downloads/elements/download-expiration-date.php

Action Hooks

Theme API

Default Code

<?php
/**
 * The default template part for the download's
 * expiration in the content-downloads template
 * part's download-data 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, simply copy this file's
 * content to the exchange/content-downloads/elements
 * directory located in your theme.
*/
?>

<?php if ( it_exchange( 'transaction', 'get-product-download-hash', array( 'attribute' => 'expires' ) ) ) : ?>
	<?php do_action( 'it_exchange_content_downloads_before_download_expiration_date_element' ); ?>
	<span class="it-exchange-download-expiration">
		<?php _e( 'Expires on', 'LION' ); ?> <?php it_exchange( 'transaction', 'product-download-hash', array( 'attribute' => 'expiration-date' ) ); ?>
	</span>
	<?php do_action( 'it_exchange_content_downloads_after_download_expiration_date_element' ); ?>
<?php else : ?>
	<?php do_action( 'it_exchange_content_downloads_before_download_expiration_date_element' ); ?>
	<span class="it-exchange-download-expiration">
		<?php _e( 'No expiration date', 'LION' ); ?>
	</span>
	<?php do_action( 'it_exchange_content_downloads_after_download_expiration_date_element' ); ?>
<?php endif; ?>

← Back to Exchange Theme Templates Page

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox