Advertisement
floridabeauties

WP-ClearVideo: index4.php

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