Advertisement
floridabeauties

WP-ClearVideo: index3.php

Jun 14th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.52 KB | None | 0 0
  1. <div class="cats-by-2">
  2.  
  3. <?php /* CATEGORY BOX 1 */ ?>
  4. <?php if ( get_option('solostream_cat_box_1') !== 'Select a Category Slug' ) { ?>
  5.  
  6. <div class="cat-posts-left">
  7.  
  8. <h2 class="feat-title"><span><a href="<?php echo esc_url(get_category_link(get_term_by('slug',get_option('solostream_cat_box_1'),'category')->term_id) ); ?>"><?php echo stripslashes(get_option('solostream_cat_box_1_title')); ?></a></span></h2>
  9.  
  10. <?php
  11. $count = 1;
  12. $my_query = new WP_Query(array(
  13. 'category_name' => get_option('solostream_cat_box_1'),
  14. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  15. ));
  16. while ($my_query->have_posts()) : $my_query->the_post();
  17. $do_not_duplicate[] = $post->ID; ?>
  18. <div class="post clearfix" id="post-1-<?php the_ID(); ?>">
  19. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  20. <div class="single-video">
  21. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  22. </div>
  23. <?php } else { ?>
  24. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  25. <?php } ?>
  26. <div class="entry clearfix">
  27. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  28. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  29. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  30. <?php the_excerpt(); ?>
  31. <?php } else { ?>
  32. <?php the_content(__("", "solostream")); ?>
  33. <?php } ?>
  34. <div style="clear:both;"></div>
  35. </div>
  36. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  37. </div>
  38. <?php $count = $count + 1 ?>
  39. <?php endwhile; ?>
  40. </div>
  41. <?php } ?>
  42.  
  43.  
  44.  
  45.  
  46. <?php /* CATEGORY BOX 2 */ ?>
  47. <?php if ( get_option('solostream_cat_box_2') !== 'Select a Category Slug' ) { ?>
  48.  
  49. <div class="cat-posts-right">
  50.  
  51. <h2 class="feat-title"><span><a href="<?php echo esc_url(get_category_link(get_term_by('slug',get_option('solostream_cat_box_2'),'category')->term_id) ); ?>"><?php echo stripslashes(get_option('solostream_cat_box_2_title')); ?></a></span></h2>
  52.  
  53. <?php
  54. $count = 1;
  55. $my_query = new WP_Query(array(
  56. 'category_name' => get_option('solostream_cat_box_2'),
  57. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  58. ));
  59. while ($my_query->have_posts()) : $my_query->the_post();
  60. $do_not_duplicate[] = $post->ID; ?>
  61. <div class="post clearfix" id="post-2-<?php the_ID(); ?>">
  62. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  63. <div class="single-video">
  64. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  65. </div>
  66. <?php } else { ?>
  67. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  68. <?php } ?>
  69. <div class="entry clearfix">
  70. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  71. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  72. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  73. <?php the_excerpt(); ?>
  74. <?php } else { ?>
  75. <?php the_content(__("", "solostream")); ?>
  76. <?php } ?>
  77. <div style="clear:both;"></div>
  78. </div>
  79. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  80. </div>
  81. <?php $count = $count + 1 ?>
  82. <?php endwhile; ?>
  83. </div>
  84. <?php } ?>
  85. <div style="clear:both;"></div>
  86.  
  87.  
  88.  
  89.  
  90. <?php /* CATEGORY BOX 3 */ ?>
  91. <?php if ( get_option('solostream_cat_box_3') !== 'Select a Category Slug' ) { ?>
  92.  
  93. <div class="cat-posts-left">
  94.  
  95. <h2 class="feat-title"><span><a href="<?php echo esc_url(get_category_link(get_term_by('slug',get_option('solostream_cat_box_3'),'category')->term_id) ); ?>"><?php echo stripslashes(get_option('solostream_cat_box_3_title')); ?></a></span></h2>
  96.  
  97. <?php
  98. $count = 1;
  99. $my_query = new WP_Query(array(
  100. 'category_name' => get_option('solostream_cat_box_3'),
  101. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  102. ));
  103. while ($my_query->have_posts()) : $my_query->the_post();
  104. $do_not_duplicate[] = $post->ID; ?>
  105. <div class="post clearfix" id="post-3-<?php the_ID(); ?>">
  106. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  107. <div class="single-video">
  108. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  109. </div>
  110. <?php } else { ?>
  111. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  112. <?php } ?>
  113. <div class="entry clearfix">
  114. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  115. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  116. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  117. <?php the_excerpt(); ?>
  118. <?php } else { ?>
  119. <?php the_content(__("", "solostream")); ?>
  120. <?php } ?>
  121. <div style="clear:both;"></div>
  122. </div>
  123. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  124. </div>
  125. <?php $count = $count + 1 ?>
  126. <?php endwhile; ?>
  127. </div>
  128. <?php } ?>
  129.  
  130.  
  131.  
  132.  
  133. <?php /* CATEGORY BOX 4 */ ?>
  134. <?php if ( get_option('solostream_cat_box_4') !== 'Select a Category Slug' ) { ?>
  135.  
  136. <div class="cat-posts-right">
  137.  
  138. <h2 class="feat-title"><span><a href="<?php echo esc_url(get_category_link(get_term_by('slug',get_option('solostream_cat_box_4'),'category')->term_id) ); ?>"><?php echo stripslashes(get_option('solostream_cat_box_4_title')); ?></a></span></h2>
  139.  
  140. <?php
  141. $count = 1;
  142. $my_query = new WP_Query(array(
  143. 'category_name' => get_option('solostream_cat_box_4'),
  144. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  145. ));
  146. while ($my_query->have_posts()) : $my_query->the_post();
  147. $do_not_duplicate[] = $post->ID; ?>
  148. <div class="post clearfix" id="post-4-<?php the_ID(); ?>">
  149. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  150. <div class="single-video">
  151. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  152. </div>
  153. <?php } else { ?>
  154. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  155. <?php } ?>
  156. <div class="entry clearfix">
  157. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  158. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  159. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  160. <?php the_excerpt(); ?>
  161. <?php } else { ?>
  162. <?php the_content(__("", "solostream")); ?>
  163. <?php } ?>
  164. <div style="clear:both;"></div>
  165. </div>
  166. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  167. </div>
  168. <?php $count = $count + 1 ?>
  169. <?php endwhile; ?>
  170. </div>
  171. <?php } ?>
  172. <div style="clear:both;"></div>
  173.  
  174.  
  175.  
  176.  
  177.  
  178. <?php /* CATEGORY BOX 5 */ ?>
  179. <?php if ( get_option('solostream_cat_box_5') !== 'Select a Category Slug' ) { ?>
  180.  
  181. <div class="cat-posts-left">
  182.  
  183. <h2 class="feat-title"><span><a href="<?php echo esc_url(get_category_link(get_term_by('slug',get_option('solostream_cat_box_5'),'category')->term_id) ); ?>"><?php echo stripslashes(get_option('solostream_cat_box_5_title')); ?></a></span></h2>
  184.  
  185. <?php
  186. $count = 1;
  187. $my_query = new WP_Query(array(
  188. 'category_name' => get_option('solostream_cat_box_5'),
  189. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  190. ));
  191. while ($my_query->have_posts()) : $my_query->the_post();
  192. $do_not_duplicate[] = $post->ID; ?>
  193. <div class="post clearfix" id="post-5-<?php the_ID(); ?>">
  194. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  195. <div class="single-video">
  196. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  197. </div>
  198. <?php } else { ?>
  199. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  200. <?php } ?>
  201. <div class="entry clearfix">
  202. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  203. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  204. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  205. <?php the_excerpt(); ?>
  206. <?php } else { ?>
  207. <?php the_content(__("", "solostream")); ?>
  208. <?php } ?>
  209. <div style="clear:both;"></div>
  210. </div>
  211. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  212. </div>
  213. <?php $count = $count + 1 ?>
  214. <?php endwhile; ?>
  215. </div>
  216. <?php } ?>
  217.  
  218.  
  219.  
  220.  
  221. <?php /* CATEGORY BOX 6 */ ?>
  222. <?php if ( get_option('solostream_cat_box_6') !== 'Select a Category Slug' ) { ?>
  223.  
  224. <div class="cat-posts-right">
  225.  
  226. <h2 class="feat-title"><span><a href="<?php echo esc_url(get_category_link(get_term_by('slug',get_option('solostream_cat_box_6'),'category')->term_id) ); ?>"><?php echo stripslashes(get_option('solostream_cat_box_6_title')); ?></a></span></h2>
  227.  
  228. <?php
  229. $count = 1;
  230. $my_query = new WP_Query(array(
  231. 'category_name' => get_option('solostream_cat_box_6'),
  232. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  233. ));
  234. while ($my_query->have_posts()) : $my_query->the_post();
  235. $do_not_duplicate[] = $post->ID; ?>
  236. <div class="post clearfix" id="post-6-<?php the_ID(); ?>">
  237. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  238. <div class="single-video">
  239. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  240. </div>
  241. <?php } else { ?>
  242. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  243. <?php } ?>
  244. <div class="entry clearfix">
  245. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  246. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  247. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  248. <?php the_excerpt(); ?>
  249. <?php } else { ?>
  250. <?php the_content(__("", "solostream")); ?>
  251. <?php } ?>
  252. <div style="clear:both;"></div>
  253. </div>
  254. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  255. </div>
  256. <?php $count = $count + 1 ?>
  257. <?php endwhile; ?>
  258. </div>
  259. <?php } ?>
  260. <div style="clear:both;"></div>
  261.  
  262.  
  263. <?php /* OTHER RECENT ARTICLES */ ?>
  264. <?php if ( get_option('solostream_other_articles') == yes ) { ?>
  265.  
  266. <div class="cat-posts-stacked">
  267.  
  268. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_other_title')); ?></span></h2>
  269.  
  270. <?php
  271. $count = 1;
  272. $my_query = new WP_Query(array(
  273. 'post__not_in' => $do_not_duplicate,
  274. 'posts_per_page' => get_option('solostream_other_number')
  275. ));
  276. while ($my_query->have_posts()) : $my_query->the_post(); ?>
  277. <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
  278. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  279. <div class="single-video">
  280. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  281. </div>
  282. <?php } else { ?>
  283. <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php include (TEMPLATEPATH . "/post-thumb-wide.php"); ?></a>
  284. <?php } ?>
  285. <div class="entry clearfix">
  286. <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "solostream"); ?>" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  287. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  288. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  289. <?php the_excerpt(); ?>
  290. <p class="readmore"><a class="more-link" href="<?php the_permalink() ?>" rel="nofollow" title="<?php _e("Permanent Link to", "solostream"); ?> <?php the_title(); ?>"><?php _e("Continue Reading &raquo", "solostream"); ?></a></p>
  291. <?php } else { ?>
  292. <?php the_content(__("Continue Reading &raquo", "solostream")); ?>
  293. <?php } ?>
  294. <div style="clear:both;"></div>
  295. </div>
  296. </div>
  297. <?php $count = $count + 1 ?>
  298. <?php endwhile; ?>
  299. </div>
  300. <?php } ?>
  301.  
  302. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement