Advertisement
Guest User

rotatin

a guest
Oct 31st, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. <?php $option = get_option('trt_options'); ?>
  2. <?php get_header(); ?>
  3.  
  4. <!--CONTENT-->
  5. <div id="content">
  6.  
  7. <div class="center">
  8. <div id="posts" class="single_page_post">
  9. <div class="post_wrap">
  10. <!--THE POST-->
  11. <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
  12. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  13.  
  14. <div class="post_content">
  15. <div class="thumbnail">
  16. <?php
  17. if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
  18. the_post_thumbnail(medium);
  19. }
  20. ?></div>
  21. <h2 class="postitle"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  22.  
  23. <div class="site">
  24. <?php $key = get_post_meta($post->ID, 'site', true);
  25. //Checking if anything exists for the key Songs
  26. if ($key) { ?>
  27. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, site, true); ?>" ">Official Site</a> </br>
  28. <?php } //if there is nothing for songs then display
  29. else { ?>
  30. <?php } ?></div>
  31.  
  32.  
  33.  
  34.  
  35. <?php the_content(); ?>
  36.  
  37. <div class="film1">
  38. <?php $key = get_post_meta($post->ID, 'clip1', true);
  39. //Checking if anything exists for the key Songs
  40. if ($key) { ?>
  41. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, clip1, true); ?>" rel="shadowbox;player=flv;width=640;height=380"">Watch Clip 1</a> </br>
  42. <?php } //if there is nothing for songs then display
  43. else { ?>
  44. <?php } ?>
  45. </div>
  46. <div class="film">
  47. <?php $key = get_post_meta($post->ID, 'clip2', true);
  48. //Checking if anything exists for the key Songs
  49. if ($key) { ?>
  50. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, clip2, true); ?>" rel="shadowbox;player=flv;width=640;height=380"">Watch Clip 2</a> </br>
  51. <?php } //if there is nothing for songs then display
  52. else { ?>
  53. <?php } ?>
  54.  
  55.  
  56. <?php $key = get_post_meta($post->ID, 'clip3', true);
  57. //Checking if anything exists for the key Songs
  58. if ($key) { ?>
  59. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, clip3, true); ?>" rel="shadowbox;player=flv;width=640;height=380"">Watch Clip 3</a> </br>
  60. <?php } //if there is nothing for songs then display
  61. else { ?>
  62. <?php } ?>
  63.  
  64. </div>
  65.  
  66.  
  67.  
  68.  
  69. <div class="film2">
  70. <?php $key = get_post_meta($post->ID, 'clip4', true);
  71. //Checking if anything exists for the key Songs
  72. if ($key) { ?>
  73. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, clip4, true); ?>" rel="shadowbox;player=flv;width=640;height=380"">Watch Clip 4</a> </br>
  74. <?php } //if there is nothing for songs then display
  75. else { ?>
  76. <?php } ?>
  77.  
  78. <?php $key = get_post_meta($post->ID, 'clip5', true);
  79. //Checking if anything exists for the key Songs
  80. if ($key) { ?>
  81. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, clip5, true); ?>" rel="shadowbox;player=flv;width=640;height=380"">Watch Clip 5</a> </br>
  82. <?php } //if there is nothing for songs then display
  83. else { ?>
  84. <?php } ?>
  85.  
  86.  
  87. <?php $key = get_post_meta($post->ID, 'clip6', true);
  88. //Checking if anything exists for the key Songs
  89. if ($key) { ?>
  90. <a href="<?php $key="mykey"; echo get_post_meta($post->ID, clip6, true); ?>" rel="shadowbox;player=flv;width=640;height=380"">Watch Clip 6</a> </br>
  91. <?php } //if there is nothing for songs then display
  92. else { ?>
  93. <?php } ?>
  94.  
  95. </div>
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. <div class="slideshow">
  103.  
  104.  
  105.  
  106. <?php $images =& get_children( 'post_parent='.$id.'&post_type=attachment&post_mime_type=image' );
  107. if( count($images) > 1 ) {?>
  108. <a href="http://www.rotatingplanet.com/rotatin/wp-content/themes/triton-lite/images/slideshow.jpg" rel="shadowbox[sbalbum-<?php the_ID(); ?>]">Slideshow</a>
  109.  
  110. <?php } else {
  111. }
  112. ?>
  113. </div>
  114.  
  115.  
  116. <?php echo do_shortcode('[gallery option1="value1"]'); ?>
  117.  
  118.  
  119. <div style="clear:both"></div>
  120. <?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?>
  121.  
  122.  
  123. <!--Post Footer-->
  124.  
  125.  
  126.  
  127. </div>
  128.  
  129.  
  130.  
  131. </div>
  132. <!--Share This-->
  133. <?php if($option["trt_diss_sss"] == "1"){ ?><?php } else { ?>
  134. <?php get_template_part('share_this');?>
  135. <?php } ?>
  136.  
  137. <?php endwhile ?>
  138.  
  139. <?php endif ?>
  140.  
  141.  
  142.  
  143.  
  144. </div>
  145. </div>
  146.  
  147. <div id="content">
  148.  
  149. <div class="center">
  150. <div class="sidebarpost"><?php get_sidebar(); ?></div>
  151.  
  152.  
  153.  
  154.  
  155. <div id="content">
  156.  
  157. <div class="center">
  158.  
  159.  
  160. <?php rewind_posts(); ?>
  161.  
  162. <?php
  163.  
  164. query_posts( array( 'cat' => 61, 'paged' => get_query_var('paged') ) );
  165.  
  166. while ( have_posts() ) : the_post();
  167.  
  168. endwhile;
  169.  
  170. ?>
  171.  
  172. <?php if( empty($option['trt_lay'])) { ?>
  173. <?php get_template_part('layout1');?>
  174. <?php }?>
  175. <?php if($option['trt_lay']== "Layout 1") { ?>
  176. <?php get_template_part('layout1');?>
  177. <?php }?>
  178.  
  179.  
  180. </div>
  181. </div>
  182.  
  183.  
  184.  
  185. </div>
  186. </div>
  187.  
  188. </div>
  189. </div>
  190.  
  191. <div id="midrow"><!--MIDROW-->
  192. <?php if($option["trt_diss_ftw"] == "1"){ ?><?php } else { ?>
  193.  
  194. <div id="midrow">
  195. <div class="center">
  196. <div class="widgets">
  197. <ul>
  198. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Midrow Widgets') ) : ?>
  199. <?php endif; ?></ul>
  200. </div>
  201. </div></div>
  202.  
  203.  
  204. <?php }?></div>
  205.  
  206.  
  207.  
  208. <?php get_footer(); ?>
  209.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement