Created
February 23, 2011 00:06
-
-
Save anonymous/839706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* setting a variable so we can count the loop */ $count = 1; ?> | |
<?php while (wpsc_have_products()) : wpsc_the_product(); ?> | |
<?php | |
/* conditional if this is the first time through the loop */ | |
if ( $count == 1 ) { | |
/* we show the normal loop for the fist product only */ | |
?> | |
<!-- regular wp-ecommerce stuff --> | |
<?php | |
/* incrementing the starting variable so we can stop the loop and do different things afer */ | |
$count++; | |
} | |
endwhile; ?> | |
<div class="clear"></div> | |
<div id="slider-controls"> | |
<p class="btn next">></p> | |
<p class="btn prev"><</p> | |
</div><!-- /#slider-controls --> | |
<div class="slider"> | |
<ul> | |
<?php while (wpsc_have_products()) : wpsc_the_product(); ?> | |
<li class="imagecol"> | |
<a rel="<?php echo str_replace(array(" ", '"',"'", '"','''), array("_", "", "", "",''), wpsc_the_product_title()); ?>" class="image" href="<?php echo wpsc_the_product_permalink(); ?>"> | |
<img class="product_image" width="95px" height="119px" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>"/> | |
</a> | |
</li><!-- /.imagecol --> | |
<?php endwhile; ?> | |
</ul> | |
</div><!-- /.slider --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment