Ejemplo n.º 1
1
/**
 * Download meta list
 *
 * @since 1.0
 */
function checkout_download_meta()
{
    global $post;
    ?>

		<div class="download-meta">
			<div class="download-meta-price download-price-toggle">
				<div class="download-meta-price-details">

					<?php 
    if (edd_has_variable_prices(get_the_ID())) {
        ?>
						<!-- Get the price range -->
						<a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
        echo checkout_edd_price_range();
        ?>
</a>
					<?php 
    } else {
        if (edd_is_free_download(get_the_ID())) {
            ?>
						<!-- Get free download text -->
						<a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><span class="edd_price"><?php 
            _e('Free', 'checkout');
            ?>
</span></a>
					<?php 
        } else {
            ?>
						<!-- Get the price range -->
						<a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            edd_price(get_the_ID());
            ?>
</a>
					<?php 
        }
    }
    ?>

					<span class="close-pricing"><?php 
    _e('Close', 'checkout');
    ?>
</span>
				</div>
			</div>

			<div class="download-meta-name">
				<?php 
    if (class_exists('EDD_Front_End_Submissions')) {
        ?>
					<?php 
        printf('<span class="author vcard"><a rel="author" class="fn" href="%1$s" title="%2$s">%3$s %4$s</a></span>', checkout_fes_author_url(get_the_author_meta('ID')), esc_attr(sprintf(__('View all posts by %s', 'checkout'), get_the_author())), get_avatar(get_the_author_meta('ID'), 20), esc_html(get_the_author_meta('display_name')));
        ?>

				<?php 
    } else {
        ?>
					<a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
        _e('View Details', 'checkout');
        ?>
</a>
				<?php 
    }
    ?>
			</div>
		</div><!-- .download-meta -->

	<?php 
}
Ejemplo n.º 2
0
										<h3><a href="<?php 
the_permalink();
?>
" rel="bookmark"><?php 
the_title();
?>
</a></h3>

										<?php 
if ('download' == get_post_type()) {
    ?>
											<p>
												<?php 
    if (edd_has_variable_prices(get_the_ID())) {
        // Get the price range
        echo checkout_edd_price_range();
    } else {
        // Get the single price
        edd_price(get_the_ID());
    }
    ?>
											</p>
										<?php 
}
?>

										<?php 
the_excerpt();
?>

										<?php