Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. <?php
  2. /**
  3. * A single download inside of the [downloads] shortcode.
  4. *
  5. * @since 2.8.0
  6. *
  7. * @package EDD
  8. * @category Template
  9. * @author Easy Digital Downloads
  10. * @version 1.0.0
  11. */
  12.  
  13. global $edd_download_shortcode_item_atts, $edd_download_shortcode_item_i;
  14. ?>
  15.  
  16. <?php $schema = edd_add_schema_microdata() ? 'itemscope itemtype="http://schema.org/Product" ' : ''; ?>
  17.  
  18. <div <?php echo $schema; ?>class="<?php echo esc_attr( apply_filters( 'edd_download_class', 'edd_download', get_the_ID(), $edd_download_shortcode_item_atts, $edd_download_shortcode_item_i ) ); ?>" field="ABSOLUTEMADLAD" id="edd_download_<?php the_ID(); ?>">
  19.  
  20. <div class="<?php echo esc_attr( apply_filters( 'edd_download_inner_class', 'edd_download_inner', get_the_ID(), $edd_download_shortcode_item_atts, $edd_download_shortcode_item_i ) ); ?>">
  21.  
  22. <?php
  23. do_action( 'edd_download_before' );
  24.  
  25. // if ( 'false' !== $edd_download_shortcode_item_atts['thumbnails'] ) :
  26. // edd_get_template_part( 'shortcode', 'content-image' );
  27. // do_action( 'edd_download_after_thumbnail' );
  28. // endif;
  29.  
  30. edd_get_template_part( 'shortcode', 'content-title' );
  31. echo the_excerpt();
  32. // do_action( 'edd_download_after_title' );
  33. // echo print("<pre>".print_r($edd_download_shortcode_item_atts,true)."</pre>");
  34. // if ( 'yes' === $edd_download_shortcode_item_atts['excerpt'] && 'yes' !== $edd_download_shortcode_item_atts['full_content'] ) :
  35. // edd_get_template_part( 'shortcode', 'content-excerpt' );
  36. // do_action( 'edd_download_after_content' );
  37. // elseif ( 'yes' === $edd_download_shortcode_item_atts['full_content'] ) :
  38. // edd_get_template_part( 'shortcode', 'content-full' );
  39. // do_action( 'edd_download_after_content' );
  40. // endif;
  41. //
  42. // if ( 'yes' === $edd_download_shortcode_item_atts['price'] ) :
  43. // edd_get_template_part( 'shortcode', 'content-price' );
  44. // do_action( 'edd_download_after_price' );
  45. // endif;
  46.  
  47. if ( 'yes' === $edd_download_shortcode_item_atts['buy_button'] ) :
  48. edd_get_template_part( 'shortcode', 'content-cart-button' );
  49. endif;
  50.  
  51. do_action( 'edd_download_after' );
  52. ?>
  53.  
  54. </div>
  55.  
  56. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement