Advertisement
alchymyth

two cats

Jul 30th, 2011
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.10 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5. * The template for displaying Category Archive pages.
  6.  
  7. *
  8.  
  9. * @package WordPress * @subpackage Rock_Shop_N_Roll * @since Rock Shop N Roll 1.0
  10.  
  11. */
  12.  
  13.  
  14.  
  15. get_header(); ?>
  16.  
  17. <div class="content">
  18. <div class="scene-page">
  19. <div class="left-col">
  20. <div class="main-title">
  21. <h3 class="ir">SCENE</h3>
  22. <h4>and Be Seen</h4>
  23. </div>
  24.  
  25. <!-- content block -->
  26. <div class="about">
  27. <div id="mcs2_container">
  28. <div class="customScrollBox">
  29. <div class="container">
  30. <div class="scroll-content">
  31. <h2 class="about-title ir">Style</h2>
  32. <?php if ( have_posts() ) : ?>
  33. <?php /* Start the Loop */ ?>
  34. <?php while ( have_posts() ) : the_post(); ?>
  35. <?php
  36.  
  37. /* Include the Post-Format-specific template for the content.
  38.  
  39. * If you want to overload this in a child theme then include a file
  40.  
  41. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  42.  
  43. */
  44.  
  45. get_template_part( 'content-scene', get_post_format() );
  46.  
  47. ?>
  48. <?php endwhile; ?>
  49. <?php twentyeleven_content_nav( 'nav-below' ); ?>
  50. <?php else : ?>
  51. <article id="post-0" class="post no-results not-found">
  52. <div class="entry-header">
  53.  
  54. <?php _e( 'Nothing Found', 'twentyeleven' ); ?>
  55. </h1>
  56. </div>
  57. <!-- .entry-header -->
  58.  
  59. <div class="entry-content">
  60. <p>
  61. <?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?>
  62. </p>
  63. <?php get_search_form(); ?>
  64. </div>
  65. <!-- .entry-content -->
  66.  
  67. </article>
  68. <!-- #post-0 -->
  69.  
  70. <?php endif; ?>
  71. </div>
  72. </div>
  73. <div class="dragger_container">
  74. <div class="dragger">
  75. <div class="dragger-inner"> </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="right-col">
  83. <div class="leave-a-comment"><a href="http://twitter.com/rockshopnroll" rel="leave-a-comment" class="ir" >Click Here to follow Rock, Shop and Roll on Twitter @rockshopnroll</a></div>
  84. <!-- content block -->
  85. <div class="gallery">
  86. <div id="mcs_container">
  87. <div class="customScrollBox">
  88.  
  89. <div class="container">
  90. <div class="scroll-content">
  91. <h2 class="gallery-title ir">Rock SHOP n Rollers</h2>
  92. <ul id="twitter_update_list"></ul>
  93. <p class="twitLink"></p>
  94. <script type="text/javascript" src="https://twitter.com/javascripts/blogger.js"></script>
  95. <script type="text/javascript" src="https://twitter.com/statuses/user_timeline/rockshopnroll.json?callback=twitterCallback2&amp;count=10"></script>
  96. </div><!-- scroll-content -->
  97. <div class="dragger_container">
  98. <div class="dragger">
  99. <div class="dragger-inner">
  100. </div><!-- dragger-inner -->
  101. </div><!-- dragger -->
  102. </div><!-- dragger_container -->
  103. </div><!-- container -->
  104. </div><!-- customScrollBox -->
  105. </div><!-- mcs_container -->
  106. </div><!-- gallery -->
  107.  
  108. <!-- content block -->
  109. <div class="found">
  110. <div id="mcs4_container">
  111. <div class="customScrollBox">
  112. <div class="container">
  113.  
  114. <div class="scroll-content">
  115. <h2 class="found-title ir">Shows</h2>
  116. <?php /*category2 loop*/ ?>
  117. <?php $cat42_id = 42;
  118. $args = array('category__in' => array($cat42_id),
  119. 'paged' => get_query_var('paged')
  120. ); ?>
  121. <?php $loop2 = new WP_Query($args); ?>
  122. <?php if( $loop2->have_posts() ) : while( $loop2->have_posts() ) : $loop2->the_post(); ?>
  123. <?php
  124.  
  125. /* Include the Post-Format-specific template for the content.
  126.  
  127. * If you want to overload this in a child theme then include a file
  128.  
  129. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  130.  
  131. */
  132.  
  133. get_template_part( 'content-scene', get_post_format() );
  134.  
  135. ?>
  136. <?php endwhile; ?>
  137. <?php twentyeleven_content_nav( 'nav-below' ); ?>
  138. <?php else : ?>
  139. <article id="post-0" class="post no-results not-found">
  140. <div class="entry-header">
  141.  
  142. <?php _e( 'Nothing Found', 'twentyeleven' ); ?>
  143. </h1>
  144. </div>
  145. <!-- .entry-header -->
  146.  
  147. <div class="entry-content">
  148. <p>
  149. <?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?>
  150. </p>
  151. <?php get_search_form(); ?>
  152. </div>
  153. <!-- .entry-content -->
  154.  
  155. </article>
  156. <!-- #post-0 -->
  157.  
  158. <?php endif; ?>
  159. </div>
  160. <div class="dragger_container">
  161. <div class="dragger">
  162. <div class="dragger-inner">
  163. </div><!-- dragger_inner -->
  164. </div><!-- dragger -->
  165. </div><!-- dragger_container -->
  166. </div><!-- container -->
  167. </div><!-- customScrollBox -->
  168. </div><!-- mcs_container -->
  169. </div><!-- found -->
  170.  
  171. <script>
  172. jQuery(window).load(function() {
  173. mCustomScrollbars();
  174. });
  175.  
  176. function mCustomScrollbars(){
  177. /*
  178. malihu custom scrollbar function parameters:
  179. 1) scroll type (values: "vertical" or "horizontal")
  180. 2) scroll easing amount (0 for no easing)
  181. 3) scroll easing type
  182. 4) extra bottom scrolling space for vertical scroll type only (minimum value: 1)
  183. 5) scrollbar height/width adjustment (values: "auto" or "fixed")
  184. 6) mouse-wheel support (values: "yes" or "no")
  185. 7) scrolling via buttons support (values: "yes" or "no")
  186. 8) buttons scrolling speed (values: 1-20, 1 being the slowest)
  187. */
  188. jQuery("#mcs_container").mCustomScrollbar("vertical",400,"easeOutCirc",1.05,"auto","yes","yes",10);
  189. jQuery("#mcs2_container").mCustomScrollbar("vertical",300,"easeOutCirc",1.05,"auto","yes","no",0);
  190. jQuery("#mcs4_container").mCustomScrollbar("vertical",200,"easeOutCirc",1.25,"fixed","yes","no",0);
  191. }
  192.  
  193. /* function to fix the -10000 pixel limit of jquery.animate */
  194. jQuery.fx.prototype.cur = function(){
  195. if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
  196. return this.elem[ this.prop ];
  197. }
  198. var r = parseFloat( jQuery.css( this.elem, this.prop ) );
  199. return typeof r == 'undefined' ? 0 : r;
  200. }
  201.  
  202. /* function to load new content dynamically */
  203. function LoadNewContent(id,file){
  204. jQuery("#"+id+" .customScrollBox .scroll-content").load(file,function(){
  205. mCustomScrollbars();
  206. });
  207. }
  208. </script>
  209. <script src="http://rockshopnroll.com/wordpress/wp-content/themes/rockshoproll/js/content-scroll/jquery.mCustomScrollbar_scroll-content.js"></script>
  210. <div class="clearfix"></div>
  211. </div>
  212. </div>
  213.  
  214. </div><!-- #content -->
  215.  
  216. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement