category.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php if ( shopp( 'collection.hasproducts', 'load=coverimages' ) ) : ?>
  2. <div class="category">
  3. <section class="navigation controls">
  4. <?php shopp( 'storefront.breadcrumb', array( 'separator' => '&nbsp;/ ' ) ); ?>
  5. <?php shopp( 'collection.subcategory-list',
  6. array( 'dropdown' => false,
  7. 'hierarchy' => true,
  8. 'products' => true,
  9. 'showall' => true,
  10. //'class' => 'subcategories',
  11. 'before' => '&nbsp;/ ' )
  12. ); ?>
  13. <div class="alignright">
  14. <?php shopp( 'storefront.orderby-list', 'dropdown=on' ); ?>
  15. </div>
  16. </section>
  17. <section class="view controls">
  18. <?php shopp( 'storefront.views', 'label=' . __( 'Views: ', 'Shopp' ) ); ?>
  19. <?php shopp( 'collection.pagination', 'show=10&before=<div class="alignright">' ); ?>
  20. </section>
  21. <?php shopp('collection.description') ?>
  22. <ul class="products">
  23. <?php while( shopp( 'collection.products' ) ) : ?>
  24. <li class="product<?php if ( shopp('collection.row') ) echo ' first'; ?>" itemscope itemtype="http://schema.org/Product">
  25. <div class="frame">
  26. <a href="<?php shopp( 'product.url' ); ?>" itemprop="url"><?php shopp( 'product.coverimage', 'setting=thumbnails&itemprop=image' ); ?></a>
  27. <div class="details">
  28. <h4 class="name">
  29. <a href="<?php shopp( 'product.url' ); ?>"><span itemprop="name"><?php shopp( 'product.name' ); ?></span></a>
  30. </h4>
  31. <p class="price" itemscope itemtype="http://schema.org/Offer"><span itemprop="price"><?php shopp( 'product.saleprice', 'starting=' . __( 'from', 'Shopp' ) ); ?></span></p>
  32. <?php if ( shopp( 'product.has-savings' ) ) : ?>
  33. <p class="savings"><?php _e( 'Save ', 'Shopp' ); ?><?php shopp( 'product.savings', 'show=percent' ); ?></p>
  34. <?php endif; ?>
  35. <div class="listview">
  36. <p><span itemprop="description"><?php shopp( 'product.summary' ); ?></span></p>
  37. <form action="<?php shopp( 'cart.url' ); ?>" method="post" class="shopp product">
  38. <?php shopp( 'product.addtocart' ); ?>
  39. </form>
  40. </div>
  41. </div>
  42. </div>
  43. </li>
  44. <?php endwhile; ?>
  45. </ul>
  46. <div class="alignright">
  47. <?php shopp( 'collection.pagination', 'show=10' ); ?>
  48. </div>
  49. </div>
  50. <?php else : ?>
  51. <?php if ( ! shopp('storefront.is-landing') ) shopp( 'storefront.breadcrumb' ); ?>
  52. <p class="notice"><?php _e( 'No products were found.', 'Shopp' ); ?></p>
  53. <?php endif; ?>