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_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 } 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(); ?>
- <?php $thumb = '';
- $width = 575;
- $height = 400;
- $classtext = 'no_border';
- $titletext = get_the_title();
- $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
- $thumb = $thumbnail["thumb"]; ?>
- <div class="home-post-wrap2">
- <div style="clear: both;"></div>
- <div class="single-entry">
- <?php include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
- <h2 class="titles2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','Influx'), get_the_title()) ?>">
- <?php the_title() ?>
- </a></h2>
- <div style="clear: both;"></div>
- <!--Display thumbnail if found-->
- <?php if($thumb != '') { ?>
- <div class="thumbnail-div-3">
- <a href="<?php the_permalink() ?>" title="<?php printf(__('Permanent Link to %s','Influx'), get_the_title()) ?>">
- <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
- </a>
- </div>
- <?php }; ?>
- <?php truncate_post(310) ?>
- <div style="clear: both;"></div>
- <div class="readmore">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','Influx'), get_the_title()) ?>"><?php _e('Download','Influx'); ?></a>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- <div style="clear: both;"></div>
- <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
- else include(TEMPLATEPATH . '/includes/navigation.php'); ?>
- <br/>
- <div>
- <script type="text/javascript"><!--
- google_ad_client = "ca-pub-0554997310851369";
- /* paper backgrounds pagenav */
- google_ad_slot = "8306474146";
- google_ad_width = 468;
- google_ad_height = 15;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- <br/>
- <?php else : ?>
- <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
- <?php endif; wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement