1. <?php include (TEMPLATEPATH . '/banner468.php'); ?>
  2. <?php if (function_exists("easing_slider")){ easing_slider(); }; ?>
  3. <div class="cats-by-2">
  4.  
  5. <?php /* CATEGORY BOX 1 */ ?>
  6. <?php if ( get_option('solostream_cat_box_1') !== 'Select a Category Slug' ) { ?>
  7.  
  8. <div class="cat-posts-left">
  9.  
  10. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_1_title')); ?></span></h2>
  11.  
  12. <?php
  13. $count = 1;
  14. $my_query = new WP_Query(array(
  15. 'category_name' => get_option('solostream_cat_box_1'),
  16. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  17. ));
  18. while ($my_query->have_posts()) : $my_query->the_post();
  19. $do_not_duplicate[] = $post->ID; ?>
  20.  
  21. <div class="post clearfix" id="post-1-<?php the_ID(); ?>">
  22.  
  23. <div class="entry">
  24.  
  25. <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.php"); ?></a>
  26.  
  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.  
  29. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  30. <?php the_excerpt(); ?>
  31. <?php } else { ?>
  32. <?php the_content(''); ?>
  33. <?php } ?>
  34.  
  35. <div style="clear:both;"></div>
  36.  
  37. </div>
  38.  
  39. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  40.  
  41. </div>
  42. <?php $count = $count + 1 ?>
  43. <?php endwhile; ?>
  44. <div style="clear:both;"></div>
  45. </div>
  46. <?php } ?>
  47.  
  48.  
  49.  
  50.  
  51. <?php /* CATEGORY BOX 2 */ ?>
  52. <?php if ( get_option('solostream_cat_box_2') !== 'Select a Category Slug' ) { ?>
  53.  
  54. <div class="cat-posts-right">
  55.  
  56. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_2_title')); ?></span></h2>
  57.  
  58. <?php
  59. $count = 1;
  60. $my_query = new WP_Query(array(
  61. 'category_name' => get_option('solostream_cat_box_2'),
  62. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  63. ));
  64. while ($my_query->have_posts()) : $my_query->the_post();
  65. $do_not_duplicate[] = $post->ID; ?>
  66.  
  67. <div class="post clearfix" id="post-2-<?php the_ID(); ?>">
  68.  
  69. <div class="entry">
  70.  
  71. <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.php"); ?></a>
  72.  
  73. <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>
  74.  
  75. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  76. <?php the_excerpt(); ?>
  77. <?php } else { ?>
  78. <?php the_content(''); ?>
  79. <?php } ?>
  80.  
  81. <div style="clear:both;"></div>
  82.  
  83. </div>
  84.  
  85. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  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-left">
  102.  
  103. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_3_title')); ?></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. <div class="entry">
  117.  
  118. <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.php"); ?></a>
  119.  
  120. <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>
  121.  
  122. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  123. <?php the_excerpt(); ?>
  124. <?php } else { ?>
  125. <?php the_content(''); ?>
  126. <?php } ?>
  127.  
  128. <div style="clear:both;"></div>
  129.  
  130. </div>
  131.  
  132. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  133.  
  134. </div>
  135. <?php $count = $count + 1 ?>
  136. <?php endwhile; ?>
  137. <div style="clear:both;"></div>
  138. </div>
  139. <?php } ?>
  140.  
  141.  
  142.  
  143.  
  144. <?php /* CATEGORY BOX 4 */ ?>
  145. <?php if ( get_option('solostream_cat_box_4') !== 'Select a Category Slug' ) { ?>
  146.  
  147. <div class="cat-posts-right">
  148.  
  149. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_4_title')); ?></span></h2>
  150.  
  151. <?php
  152. $count = 1;
  153. $my_query = new WP_Query(array(
  154. 'category_name' => get_option('solostream_cat_box_4'),
  155. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  156. ));
  157. while ($my_query->have_posts()) : $my_query->the_post();
  158. $do_not_duplicate[] = $post->ID; ?>
  159.  
  160. <div class="post clearfix" id="post-4-<?php the_ID(); ?>">
  161.  
  162. <div class="entry">
  163.  
  164. <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.php"); ?></a>
  165.  
  166. <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>
  167.  
  168. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  169. <?php the_excerpt(); ?>
  170. <?php } else { ?>
  171. <?php the_content(''); ?>
  172. <?php } ?>
  173.  
  174. <div style="clear:both;"></div>
  175.  
  176. </div>
  177.  
  178. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  179.  
  180. </div>
  181. <?php $count = $count + 1 ?>
  182. <?php endwhile; ?>
  183. <div style="clear:both;"></div>
  184. </div>
  185. <?php } ?>
  186. <div style="clear:both;"></div>
  187.  
  188.  
  189.  
  190.  
  191.  
  192. <?php /* CATEGORY BOX 5 */ ?>
  193. <?php if ( get_option('solostream_cat_box_5') !== 'Select a Category Slug' ) { ?>
  194.  
  195. <div class="cat-posts-left">
  196.  
  197. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_5_title')); ?></span></h2>
  198.  
  199. <?php
  200. $count = 1;
  201. $my_query = new WP_Query(array(
  202. 'category_name' => get_option('solostream_cat_box_5'),
  203. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  204. ));
  205. while ($my_query->have_posts()) : $my_query->the_post();
  206. $do_not_duplicate[] = $post->ID; ?>
  207.  
  208. <div class="post clearfix" id="post-5-<?php the_ID(); ?>">
  209.  
  210. <div class="entry">
  211.  
  212. <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.php"); ?></a>
  213.  
  214. <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>
  215.  
  216. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  217. <?php the_excerpt(); ?>
  218. <?php } else { ?>
  219. <?php the_content(''); ?>
  220. <?php } ?>
  221.  
  222. <div style="clear:both;"></div>
  223.  
  224. </div>
  225.  
  226. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  227.  
  228. </div>
  229. <?php $count = $count + 1 ?>
  230. <?php endwhile; ?>
  231. <div style="clear:both;"></div>
  232. </div>
  233. <?php } ?>
  234.  
  235.  
  236.  
  237.  
  238. <?php /* CATEGORY BOX 6 */ ?>
  239. <?php if ( get_option('solostream_cat_box_6') !== 'Select a Category Slug' ) { ?>
  240.  
  241. <div class="cat-posts-right">
  242.  
  243. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_6_title')); ?></span></h2>
  244.  
  245. <?php
  246. $count = 1;
  247. $my_query = new WP_Query(array(
  248. 'category_name' => get_option('solostream_cat_box_6'),
  249. 'showposts' => get_option('solostream_num_home_posts_by_cat')
  250. ));
  251. while ($my_query->have_posts()) : $my_query->the_post();
  252. $do_not_duplicate[] = $post->ID; ?>
  253.  
  254. <div class="post clearfix" id="post-6-<?php the_ID(); ?>">
  255.  
  256. <div class="entry">
  257.  
  258. <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.php"); ?></a>
  259.  
  260. <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>
  261.  
  262. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  263. <?php the_excerpt(); ?>
  264. <?php } else { ?>
  265. <?php the_content(''); ?>
  266. <?php } ?>
  267.  
  268. <div style="clear:both;"></div>
  269.  
  270. </div>
  271.  
  272. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  273.  
  274. </div>
  275. <?php $count = $count + 1 ?>
  276. <?php endwhile; ?>
  277. <div style="clear:both;"></div>
  278. </div>
  279. <?php } ?>
  280. <div style="clear:both;"></div>
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287. <?php /* OTHER RECENT ARTICLES */ ?>
  288. <?php if ( get_option('solostream_other_articles') == yes ) { ?>
  289.  
  290. <div class="cat-posts-stacked">
  291.  
  292. <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_other_title')); ?></span></h2>
  293.  
  294. <?php
  295. $count = 1;
  296. query_posts(array(
  297. 'post__not_in' => $do_not_duplicate,
  298. 'posts_per_page' => get_option('solostream_other_number')
  299. ));
  300. if (have_posts()) : while (have_posts()) : the_post();
  301. update_post_caches($posts); ?>
  302.  
  303. <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
  304.  
  305. <div class="entry">
  306.  
  307. <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.php"); ?></a>
  308.  
  309. <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>
  310.  
  311. <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
  312. <?php the_excerpt(); ?>
  313. <?php } else { ?>
  314. <?php the_content(__('')); ?>
  315. <?php } ?>
  316.  
  317. <div style="clear:both;"></div>
  318.  
  319. </div>
  320.  
  321. <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
  322.  
  323. </div>
  324. <?php $count = $count + 1 ?>
  325. <?php endwhile; endif; ?>
  326.  
  327. </div>
  328. <?php } ?>
  329.  
  330. </div>