<?php if (is_category('tracks')) { ?>
<style>//---------------- BEGIN BEATPORT PLAYER -----------------------</style>
<div class="beatport" align="center" style="border:0px; background:transparent; padding:10px;"><map name="bottomlinks"><area href="http://www.beatport.com" alt="Go to Beatport.com" coords="0,0,225,50" target="_blank" /><area href="http://www.beatport.com/viralPlayer/relay?playerId=1537454" alt="Get These Tracks" coords="237,12,332,38" target="_blank" /><area href="http://www.beatportplayer.com/?playerId=1537454" alt="Add This Player" coords="332,12,422,38" target="_blank" /></map><img src="http://ak-media.beatport.com/images/beatport/viralPlayer/top.gif" style="display:block; border:none;" usemap="#bottomlinks" /><object type="application/x-shockwave-flash" data="https://ak-secure-beatport.bpddn.com/swf/beatportplayer.swf" height="264" width="442" style="display:block;" align="center"><param name="movie" value="https://ak-secure-beatport.bpddn.com/swf/beatportplayer.swf" /><param name="allownetworking" value="internal" /><param name="allowScriptAccess" value="never" /><param name="enableJSURL" value="false" /><param name="enableHREF" value="false" /><param name="saveEmbedTags" value="true" /><param name="flashvars" value="bpCfgPath=http://www.beatport.com/en-US/xml/gui/swf/configuration/3&playerId=1537454&autoplay=0&volume=80" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="salign" value="lt" /><param name="scale" value="noscale" /></object></div>
<style>//---------------- END BEATPORT PLAYER -------------------------</style>
<br>
<object height="365" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F79337&show_comments=true&auto_play=false&show_playcount=true&show_artwork=true&color=ff7700"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="365" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F79337&show_comments=true&auto_play=false&show_playcount=true&show_artwork=true&color=ff7700" type="application/x-shockwave-flash" width="100%"></embed> </object>
<?php } else { ?>
<?php
$DISPLAY_CART = get_option("display_cart");
$DEFAULT_GALLERY_VIEW = get_option("display_gallery_display");
$DEFAULT_TYPE=1;
if($DEFAULT_GALLERY_VIEW == "listview" && !isset($_GET['type']) ){
$_GET['type']=1;
}
if(get_option("display_view") =="yes"){
if(isset($_GET['s'])){
$NAV_LINK1 = "/?s=".strip_tags(trim($_GET['s']))."&type=0";
$NAV_LINK2 = "/?s=".strip_tags(trim($_GET['s']))."&type=1";
}else{
$NAV_LINK1 = "/index.php?cat=".$GLOBALS['premiumpress']['catID']."&type=0";
$NAV_LINK2 = "/index.php?cat=".$GLOBALS['premiumpress']['catID']."&type=1";
}
?>
<div class="ListViewNav">
<a href="<?php echo bloginfo('url').$NAV_LINK1; ?>" style="text-decoration:none;" title="Gallery View" <?php if($GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>onclick="pageTracker._trackEvent('HOME PAGE', 'Page View', 'Gallery View');"<?php } ?>><?php echo SPEC($GLOBALS['_LANG']['_galleryview']) ?></a>
<a href="<?php echo bloginfo('url').$NAV_LINK2; ?>" style="text-decoration:none;" title="List View" <?php if($GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>onclick="pageTracker._trackEvent('HOME PAGE', 'Page View', 'List View');"<?php } ?>><?php echo SPEC($GLOBALS['_LANG']['_listview']) ?></a>
</div>
<?php } ?>
<h2 class="h2top">
<?php
if(isset($GLOBALS['premiumpress']['catName']) && strlen($GLOBALS['premiumpress']['catName']) > 1){
echo $GLOBALS['premiumpress']['catName'];
}else{
echo SPEC($GLOBALS['_LANG']['_featuredproducts']);
}
?>
</h2>
<?php
if(isset($GLOBALS['premiumpress']['catDesc']) && $GLOBALS['premiumpress']['catDesc'] !=""){ echo "<p>".$GLOBALS['premiumpress']['catDesc']."</p>"; }
?>
<br /><?php include("_listbox.php"); ?>
<?php
/* ================== PREMIUM PRESSS SEARCH PARAMERTERS =================== */
$query_string = $PPT->BuildSearchString($query_string);
$posts = query_posts($query_string);
/* ===================================================================== */
?>
<?php if( !isset($_GET['type']) || ( isset($_GET['type']) && $_GET['type'] == 0 ) ){ ?>
<br />
<div id="FeaturedProducts">
<ul class="ProductList">
<?php
$cc=1; $adID=1;
if (have_posts()){ while (have_posts()) : the_post();
$DisplaayImage = get_post_meta($post->ID, "thumbnail", true);
if($DisplaayImage ==""){
$DisplaayImage = get_post_meta($post->ID, "image", true);
}
$oldPrice = get_post_meta($post->ID, "old_price", true);
$FoundShipping = get_post_meta($post->ID, "shipping", true);
if(file_exists($PPT->FilterPath()."/wp-content/themes/shopperpress/themes/".$GLOBALS['premiumpress']['theme'].'/_item.php')){
include($PPT->FilterPath()."/wp-content/themes/shopperpress/themes/".$GLOBALS['premiumpress']['theme'].'/_item.php');
}else{
include("_item.php");
}
$cc++;
endwhile; }else{ ?>
<?php } ?>
</ul>
<br class="Clear" />
</div><!--FeaturedProducts-->
<?php }else{ ?>
<div id="ShopperPressListView">
<?php
$i = 1; if (have_posts()) : while (have_posts()) : the_post();
$oldPrice = get_post_meta($post->ID, "old_price", true);
$ITEMPRICE = GetPrice(get_post_meta($post->ID, "price", true));
?>
<div class="ListItem <?php if ($i % 2 == 0) { } else { $alt = "no"; } ?>">
<?php if ( get_option('main_page_img') != "no" ) { ?>
<div class="image">
<center>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"
<?php if( $GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>onclick="pageTracker._trackEvent('HOME PAGE', 'List View Items', '<?php the_title(); ?>');"<?php } ?>>
<?php
$images = get_post_meta($post->ID, "image", true);
if ($images =="") {?>
<img src="<?php bloginfo('template_url'); ?>/images/no-pic.png" alt="No Photo" />
<?php } else { ?>
<img src="<?php echo SPImage($images,"m"); ?>" alt="<?php the_title(); ?>">
<?php } } ?>
</a>
</center>
</div>
<div class="item">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"
<?php if( $GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>onclick="pageTracker._trackEvent('HOME PAGE', 'List View Items', '<?php the_title(); ?>');"<?php } ?>>
<h1><?php the_title(); ?></h1>
</a>
<p><?php echo strip_tags($post->post_excerpt); ?></p>
</div>
<div class="price">
<?php if($GLOBALS['shopperpress']['price_tag'] !="no" && $ITEMPRICE > 0 ){ ?>
<div class="pricetag">
<?php echo $_SESSION['currency_symbol']; ?> <?php echo $ITEMPRICE; ?> <br />
<?php if(strlen($oldPrice) > 1){ ?><strike><?php echo $_SESSION['currency_symbol']; ?> <?php echo get_post_meta($post->ID, "old_price", true); ?></strike><?php } ?>
</div>
<?php } ?>
<?php /*if( $DISPLAY_CART =="yes" && $ITEMPRICE > 0){ ?>
<div class="ProductAdd">
<a href="#" onclick="<?php echo getBuyLink($post); ?> <?php if($GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>pageTracker._trackEvent('HOME PAGE', 'Add Cart', '<?php the_title(); ?>');<?php } ?>" title="<?php echo SPEC($GLOBALS['_LANG']['_add']) ?>" style="color:white"><?php echo SPEC($GLOBALS['_LANG']['_add']) ?></a>
</div>
<?php }*/ ?>
<a href="<?php
$customField = get_post_custom_values('freelink', true);
if (isset($customField[0])) {
echo "" . $customField[0];
}
?>">dd</a>
</div>
<div class="clear"></div>
</div>
<?php $i++; ?>
<?php endwhile; endif; ?>
</div>
<?php } ?>
<?php } ?>
<?php include("_navigation.php"); ?>
<div style="clear:both;"></div>