33 lines
856 B
PHP
33 lines
856 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Easy Digital Downloads archive template part.
|
||
|
*
|
||
|
* @package themotion
|
||
|
*/
|
||
|
|
||
|
?>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="edd_download col-md-4 col-sm-6 col-xs-12" itemscope itemtype="http://schema.org/Product" >
|
||
|
<div class="edd_download_inner">
|
||
|
<div class="edd_download_image">
|
||
|
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
|
||
|
|
||
|
<?php
|
||
|
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
|
||
|
the_post_thumbnail( 'themotion-post-thumbnail' );
|
||
|
}
|
||
|
?>
|
||
|
<?php the_title( '<h3 itemprop="name" class="edd_download_title">', '</h3>' ); ?>
|
||
|
</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div itemprop="description" class="edd_download_excerpt">
|
||
|
<?php the_excerpt(); ?>
|
||
|
</div><!-- .entry-content -->
|
||
|
<?php echo edd_get_purchase_link( array( 'download_id' => get_the_ID() ) ); ?>
|
||
|
</div>
|
||
|
</div><!-- #post-## -->
|