Advertisement
Guest User

Untitled

a guest
Feb 13th, 2011
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.16 KB | None | 0 0
  1. <?php if (is_category('tracks')) { ?>
  2. <style>//---------------- BEGIN BEATPORT PLAYER -----------------------</style>
  3. <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>
  4. <style>//---------------- END BEATPORT PLAYER -------------------------</style>
  5. <br>
  6. <object height="365" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Fusers%2F79337&amp;show_comments=true&amp;auto_play=false&amp;show_playcount=true&amp;show_artwork=true&amp;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&amp;show_comments=true&amp;auto_play=false&amp;show_playcount=true&amp;show_artwork=true&amp;color=ff7700" type="application/x-shockwave-flash" width="100%"></embed> </object>
  7. <?php } else { ?>
  8.  
  9.  
  10. <?php
  11.  
  12. $DISPLAY_CART = get_option("display_cart");
  13. $DEFAULT_GALLERY_VIEW = get_option("display_gallery_display");
  14. $DEFAULT_TYPE=1;
  15.  
  16. if($DEFAULT_GALLERY_VIEW == "listview" && !isset($_GET['type']) ){
  17.  
  18. $_GET['type']=1;
  19.  
  20. }
  21.  
  22. if(get_option("display_view") =="yes"){
  23.  
  24. if(isset($_GET['s'])){
  25.  
  26. $NAV_LINK1 = "/?s=".strip_tags(trim($_GET['s']))."&type=0";
  27. $NAV_LINK2 = "/?s=".strip_tags(trim($_GET['s']))."&type=1";
  28.  
  29. }else{
  30.  
  31. $NAV_LINK1 = "/index.php?cat=".$GLOBALS['premiumpress']['catID']."&type=0";
  32. $NAV_LINK2 = "/index.php?cat=".$GLOBALS['premiumpress']['catID']."&type=1";
  33.  
  34. }
  35.  
  36. ?>
  37.  
  38. <div class="ListViewNav">
  39. <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>
  40. <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>
  41. </div>
  42.  
  43.  
  44. <?php } ?>
  45.  
  46. <h2 class="h2top">
  47. <?php
  48.  
  49. if(isset($GLOBALS['premiumpress']['catName']) && strlen($GLOBALS['premiumpress']['catName']) > 1){
  50.  
  51. echo $GLOBALS['premiumpress']['catName'];
  52.  
  53. }else{
  54.  
  55. echo SPEC($GLOBALS['_LANG']['_featuredproducts']);
  56.  
  57. }
  58. ?>
  59. </h2>
  60.  
  61. <?php
  62.  
  63. if(isset($GLOBALS['premiumpress']['catDesc']) && $GLOBALS['premiumpress']['catDesc'] !=""){ echo "<p>".$GLOBALS['premiumpress']['catDesc']."</p>"; }
  64. ?>
  65.  
  66. <br /><?php include("_listbox.php"); ?>
  67.  
  68. <?php
  69.  
  70. /* ================== PREMIUM PRESSS SEARCH PARAMERTERS =================== */
  71.  
  72. $query_string = $PPT->BuildSearchString($query_string);
  73.  
  74. $posts = query_posts($query_string);
  75.  
  76. /* ===================================================================== */
  77.  
  78. ?>
  79.  
  80. <?php if( !isset($_GET['type']) || ( isset($_GET['type']) && $_GET['type'] == 0 ) ){ ?>
  81.  
  82. <br />
  83. <div id="FeaturedProducts">
  84.  
  85. <ul class="ProductList">
  86.  
  87. <?php
  88.  
  89. $cc=1; $adID=1;
  90.  
  91. if (have_posts()){ while (have_posts()) : the_post();
  92.  
  93. $DisplaayImage = get_post_meta($post->ID, "thumbnail", true);
  94. if($DisplaayImage ==""){
  95.  
  96. $DisplaayImage = get_post_meta($post->ID, "image", true);
  97. }
  98.  
  99. $oldPrice = get_post_meta($post->ID, "old_price", true);
  100. $FoundShipping = get_post_meta($post->ID, "shipping", true);
  101.  
  102. if(file_exists($PPT->FilterPath()."/wp-content/themes/shopperpress/themes/".$GLOBALS['premiumpress']['theme'].'/_item.php')){
  103.  
  104. include($PPT->FilterPath()."/wp-content/themes/shopperpress/themes/".$GLOBALS['premiumpress']['theme'].'/_item.php');
  105.  
  106. }else{
  107.  
  108. include("_item.php");
  109.  
  110. }
  111.  
  112.  
  113.  
  114.  
  115. $cc++;
  116. endwhile; }else{ ?>
  117.  
  118.  
  119.  
  120.  
  121. <?php } ?>
  122.  
  123. </ul>
  124. <br class="Clear" />
  125.  
  126. </div><!--FeaturedProducts-->
  127.  
  128.  
  129. <?php }else{ ?>
  130.  
  131.  
  132. <div id="ShopperPressListView">
  133.  
  134. <?php
  135. $i = 1; if (have_posts()) : while (have_posts()) : the_post();
  136.  
  137.  
  138. $oldPrice = get_post_meta($post->ID, "old_price", true);
  139. $ITEMPRICE = GetPrice(get_post_meta($post->ID, "price", true));
  140.  
  141.  
  142. ?>
  143.  
  144. <div class="ListItem <?php if ($i % 2 == 0) { } else { $alt = "no"; } ?>">
  145.  
  146.  
  147. <?php if ( get_option('main_page_img') != "no" ) { ?>
  148.  
  149. <div class="image">
  150. <center>
  151. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"
  152. <?php if( $GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>onclick="pageTracker._trackEvent('HOME PAGE', 'List View Items', '<?php the_title(); ?>');"<?php } ?>>
  153.  
  154. <?php
  155.  
  156. $images = get_post_meta($post->ID, "image", true);
  157.  
  158. if ($images =="") {?>
  159. <img src="<?php bloginfo('template_url'); ?>/images/no-pic.png" alt="No Photo" />
  160. <?php } else { ?>
  161. <img src="<?php echo SPImage($images,"m"); ?>" alt="<?php the_title(); ?>">
  162. <?php } } ?>
  163. </a>
  164. </center>
  165. </div>
  166.  
  167. <div class="item">
  168.  
  169. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"
  170. <?php if( $GLOBALS['shopperpress']['analytics_tracking'] =="yes"){ ?>onclick="pageTracker._trackEvent('HOME PAGE', 'List View Items', '<?php the_title(); ?>');"<?php } ?>>
  171. <h1><?php the_title(); ?></h1>
  172. </a>
  173.  
  174. <p><?php echo strip_tags($post->post_excerpt); ?></p>
  175.  
  176. </div>
  177.  
  178.  
  179. <div class="price">
  180.  
  181. <?php if($GLOBALS['shopperpress']['price_tag'] !="no" && $ITEMPRICE > 0 ){ ?>
  182. <div class="pricetag">
  183. <?php echo $_SESSION['currency_symbol']; ?> <?php echo $ITEMPRICE; ?> <br />
  184. <?php if(strlen($oldPrice) > 1){ ?><strike><?php echo $_SESSION['currency_symbol']; ?> <?php echo get_post_meta($post->ID, "old_price", true); ?></strike><?php } ?>
  185. </div>
  186. <?php } ?>
  187.  
  188.  
  189. <?php /*if( $DISPLAY_CART =="yes" && $ITEMPRICE > 0){ ?>
  190. <div class="ProductAdd">
  191. <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>
  192. </div>
  193. <?php }*/ ?>
  194.  
  195. <a href="<?php
  196. $customField = get_post_custom_values('freelink', true);
  197. if (isset($customField[0])) {
  198. echo "" . $customField[0];
  199. }
  200. ?>">dd</a>
  201.  
  202.  
  203. </div>
  204. <div class="clear"></div>
  205. </div>
  206.  
  207.  
  208. <?php $i++; ?>
  209.  
  210.  
  211.  
  212.  
  213. <?php endwhile; endif; ?>
  214.  
  215.  
  216. </div>
  217.  
  218.  
  219. <?php } ?>
  220.  
  221. <?php } ?>
  222. <?php include("_navigation.php"); ?>
  223.  
  224. <div style="clear:both;"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement