account-downloads.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <h3><?php _e( 'Downloads', 'Shopp' ); ?></h3>
  2. <p>
  3. <a href="<?php shopp('customer.url'); ?>">&laquo; <?php _e( 'Return to Account Management', 'Shopp' ); ?></a>
  4. </p>
  5. <?php if ( shopp( 'customer.has-downloads' ) ) : ?>
  6. <table cellspacing="0" cellpadding="0">
  7. <thead>
  8. <tr>
  9. <th scope="col"><?php _e( 'Product', 'Shopp' ); ?></th>
  10. <th scope="col"><?php _e( 'Order', 'Shopp' ); ?></th>
  11. <th scope="col"><?php _e( 'Amount', 'Shopp' ); ?></th>
  12. </tr>
  13. </thead>
  14. <?php while( shopp( 'customer.downloads' ) ) : ?>
  15. <tr>
  16. <td>
  17. <?php shopp( 'customer.download', 'name' ); ?> <?php shopp( 'customer.download', 'variation' ); ?><br />
  18. <small>
  19. <a href="<?php shopp( 'customer.download', 'url' ); ?>"><?php _e( 'Download File', 'Shopp' ); ?></a> (<?php shopp( 'customer.download', 'size' ); ?>)
  20. </small>
  21. </td>
  22. <td>
  23. <?php shopp( 'customer.download', 'purchase' ); ?><br />
  24. <small><?php shopp( 'customer.download', 'date' ); ?></small>
  25. </td>
  26. <td>
  27. <?php shopp( 'customer.download', 'total' ); ?><br />
  28. <small><?php shopp( 'customer.download', 'downloads' ); ?> <?php _e( 'Downloads', 'Shopp' ); ?></small>
  29. </td>
  30. </tr>
  31. <?php endwhile; ?>
  32. </table>
  33. <?php else : ?>
  34. <p>
  35. <?php _e( 'You have no digital product downloads available.', 'Shopp' ); ?>
  36. </p>
  37. <?php endif; // end 'has-downloads' ?>
  38. <p>
  39. <a href="<?php shopp( 'customer.url' ); ?>">&laquo; <?php _e( 'Return to Account Management', 'Shopp' ); ?></a>
  40. </p>