Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="category">
- <?php shopp('catalog','breadcrumb'); ?>
- <?php if(shopp('category','has-images')): //does the category have images ?>
- <div class="grid_4 alpha"><?php shopp('category','coverimage','&width=300px&height=150px'); ?></div>
- <div class="grid_8 omega">
- <?php shopp('category','description'); ?>
- <?php if(shopp('category','hascategories')): ?>
- <p><strong>To get started, select a sub-category below…</strong></p>
- <?php shopp('category','subcategory-list','&showall=on&hierarchy=on&products=on'); ?>
- <?php elseif(shopp('category','hasproducts')): ?>
- <p><strong>Browse our available products below…</strong></p>
- <?php else: ?>
- <p><strong>Hmm, seems like we don't have any available products, we're probably working on that though.</strong></p>
- <?php endif; ?>
- </div>
- <div class="clear"></div>
- <?php endif; ?>
- <?php if(!shopp('category','hascategories')): //is this a category without subcategories? ?>
- <div class="pagination">
- <?php shopp('catalog','orderby-list','dropdown=on'); ?>
- <?php shopp('category','pagination','show=10&label= &before=&after='); ?>
- <div class="clear"></div>
- </div>
- <hr />
- <?php if(shopp('category','hasproducts','load=prices,images')): //not a category, so load available products ?>
- <?php while(shopp('category','products')): ?>
- <div class="grid_12 alpha omega product_row">
- <div class="grid_3 alpha">
- <a href="<?php shopp('product','url'); ?>"><?php shopp('product','coverimage','width=210&height=200&fit=crop'); ?></a>
- </div>
- <div class="grid_7">
- <h2><a href="<?php shopp('product','url'); ?>"><?php shopp('product','name'); ?></a></h2>
- <?php shopp('product','summary'); ?>
- </div>
- <div class="grid_2 omega product_row_price">
- <?php shopp('product','price'); ?>
- <form action="<?php shopp('cart','url'); ?>" method="post" class="shopp product">
- <?php shopp('product','addtocart','class=button blue medium'); ?>
- </form>
- </div>
- </div>
- <div class="clear"></div>
- <hr />
- <?php endwhile; ?>
- <?php endif; ?>
- <div class="pagination">
- <?php shopp('catalog','orderby-list','dropdown=on'); ?>
- <?php shopp('category','pagination','show=10&label= &before=&after='); ?>
- <div class="clear"></div>
- </div>
- <?php endif; ?>
- </div>
Add Comment
Please, Sign In to add comment