Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!is_search()) { ?>
- <?php if (is_category()) { ?>
- <span class="current-category">
- <?php single_cat_title(__('Currently Browsing: ','Influx'), 'display'); ?>
- </span>
- <?php }; ?>
- <?php if(is_home() && get_option('influx_blog_style') == 'on') { ?>
- <?php $args=array(
- 'showposts'=>get_option('influx_homepage_posts'),
- 'paged'=>$paged,
- 'category__not_in' => get_option('influx_exlcats_recent'),
- );
- query_posts($args); ?>
- <?php } else { ?>
- <?php if (is_archive()) $post_number = get_option('influx_archivenum_posts');
- if (is_tag()) $post_number = get_option('influx_tagnum_posts');
- if (is_category()) $post_number = get_option('influx_catnum_posts');
- global $query_string; query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>
- <?php }; ?>
- <?php } else { ?>
- <?php
- $post_number = get_option('influx_searchnum_posts');
- global $query_string;
- parse_str($query_string, $qstring_array);
- $args = array('showposts' => $post_number,'paged'=>$paged);
- if ( isset($_GET['et_searchform_submit']) ) {
- $postTypes = array();
- if ( !isset($_GET['et-inc-posts']) && !isset($_GET['et-inc-pages']) ) $postTypes = array('post');
- if ( isset($_GET['et-inc-pages']) ) $postTypes = array('page');
- if ( isset($_GET['et-inc-posts']) ) $postTypes[] = 'post';
- $args['post_type'] = $postTypes;
- if ( $_GET['et-month-choice'] != 'no-choice' ) {
- $et_year = substr($_GET['et-month-choice'],0,4);
- $et_month = substr($_GET['et-month-choice'], 4, strlen($_GET['et-month-choice'])-4);
- $args['year'] = $et_year;
- $args['monthnum'] = $et_month;
- }
- if ( $_GET['et-cat'] != 0 )
- $args['cat'] = $_GET['et-cat'];
- }
- $args = array_merge($args,$qstring_array);
- query_posts($args);
- ?>
- <?php } ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post-wrapper" style="margin-bottom: 15px !important;">
- <?php include(TEMPLATEPATH . '/includes/share.php'); ?>
- <?php if (get_option('influx_thumbnails') == 'on') { ?>
- <?php $thumb = '';
- $width = 180;
- $height = 180;
- $classtext = 'no_border';
- $titletext = get_the_title();
- $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true);
- $thumb = $thumbnail["thumb"];
- if($thumb != '') { ?>
- <div class="thumbnail-div-2">
- <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
- </div>
- <?php }; ?>
- <?php }; ?>
- <h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','Influx'), get_the_title()) ?>">
- <?php the_title(); ?></a></h2>
- <?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
- <div style="clear: both;"></div>
- <?php the_content(); ?>
- <div style="clear: both;"></div>
- </div>
- <?php endwhile; ?>
- <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
- else include(TEMPLATEPATH . '/includes/navigation.php'); ?>
- <?php else : ?>
- <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
- <?php endif; wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement