Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include (TEMPLATEPATH . '/banner468.php'); ?>
- <?php if (function_exists("easing_slider")){ easing_slider(); }; ?>
- <div class="cats-by-2">
- <?php /* CATEGORY BOX 1 */ ?>
- <?php if ( get_option('solostream_cat_box_1') !== 'Select a Category Slug' ) { ?>
- <div class="cat-posts-left">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_1_title')); ?></span></h2>
- <?php
- $count = 1;
- $my_query = new WP_Query(array(
- 'category_name' => get_option('solostream_cat_box_1'),
- 'showposts' => get_option('solostream_num_home_posts_by_cat')
- ));
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div class="post clearfix" id="post-1-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(''); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <?php /* CATEGORY BOX 2 */ ?>
- <?php if ( get_option('solostream_cat_box_2') !== 'Select a Category Slug' ) { ?>
- <div class="cat-posts-right">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_2_title')); ?></span></h2>
- <?php
- $count = 1;
- $my_query = new WP_Query(array(
- 'category_name' => get_option('solostream_cat_box_2'),
- 'showposts' => get_option('solostream_num_home_posts_by_cat')
- ));
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div class="post clearfix" id="post-2-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(''); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <div style="clear:both;"></div>
- <?php /* CATEGORY BOX 3 */ ?>
- <?php if ( get_option('solostream_cat_box_3') !== 'Select a Category Slug' ) { ?>
- <div class="cat-posts-left">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_3_title')); ?></span></h2>
- <?php
- $count = 1;
- $my_query = new WP_Query(array(
- 'category_name' => get_option('solostream_cat_box_3'),
- 'showposts' => get_option('solostream_num_home_posts_by_cat')
- ));
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div class="post clearfix" id="post-3-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(''); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <?php /* CATEGORY BOX 4 */ ?>
- <?php if ( get_option('solostream_cat_box_4') !== 'Select a Category Slug' ) { ?>
- <div class="cat-posts-right">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_4_title')); ?></span></h2>
- <?php
- $count = 1;
- $my_query = new WP_Query(array(
- 'category_name' => get_option('solostream_cat_box_4'),
- 'showposts' => get_option('solostream_num_home_posts_by_cat')
- ));
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div class="post clearfix" id="post-4-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(''); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <div style="clear:both;"></div>
- <?php /* CATEGORY BOX 5 */ ?>
- <?php if ( get_option('solostream_cat_box_5') !== 'Select a Category Slug' ) { ?>
- <div class="cat-posts-left">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_5_title')); ?></span></h2>
- <?php
- $count = 1;
- $my_query = new WP_Query(array(
- 'category_name' => get_option('solostream_cat_box_5'),
- 'showposts' => get_option('solostream_num_home_posts_by_cat')
- ));
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div class="post clearfix" id="post-5-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(''); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <?php /* CATEGORY BOX 6 */ ?>
- <?php if ( get_option('solostream_cat_box_6') !== 'Select a Category Slug' ) { ?>
- <div class="cat-posts-right">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_cat_box_6_title')); ?></span></h2>
- <?php
- $count = 1;
- $my_query = new WP_Query(array(
- 'category_name' => get_option('solostream_cat_box_6'),
- 'showposts' => get_option('solostream_num_home_posts_by_cat')
- ));
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div class="post clearfix" id="post-6-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(''); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <div style="clear:both;"></div>
- <?php /* OTHER RECENT ARTICLES */ ?>
- <?php if ( get_option('solostream_other_articles') == yes ) { ?>
- <div class="cat-posts-stacked">
- <h2 class="feat-title"><span><?php echo stripslashes(get_option('solostream_other_title')); ?></span></h2>
- <?php
- $count = 1;
- query_posts(array(
- 'post__not_in' => $do_not_duplicate,
- 'posts_per_page' => get_option('solostream_other_number')
- ));
- if (have_posts()) : while (have_posts()) : the_post();
- update_post_caches($posts); ?>
- <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
- <div class="entry">
- <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>
- <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>
- <?php if ( get_option('solostream_post_content') == 'Excerpts' ) { ?>
- <?php the_excerpt(); ?>
- <?php } else { ?>
- <?php the_content(__('')); ?>
- <?php } ?>
- <div style="clear:both;"></div>
- </div>
- <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
- </div>
- <?php $count = $count + 1 ?>
- <?php endwhile; endif; ?>
- </div>
- <?php } ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement