PageRenderTime 52ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/redtime/search.php

https://bitbucket.org/lgorence/quickpress
PHP | 47 lines | 34 code | 13 blank | 0 comment | 7 complexity | 82f7f2b4c1e55e86ef62d0957bd9fe8b MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php get_header(); ?>
  2. <div id="content" class="narrowcolumn">
  3. <?php if (have_posts()) : ?>
  4. <?php $i=0; while (have_posts()) : the_post(); $i++; ?>
  5. <div class="post" id="post-<?php the_ID(); ?>">
  6. <div class="post-top">
  7. <div class="post-title">
  8. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php if ( function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a></h2>
  9. <h3>
  10. Posted by <span><?php the_author() ?></span> | Posted in <span><?php the_category(', ') ?></span> | Posted on <?php the_time('d-m-Y') ?>
  11. </h3>
  12. </div>
  13. <h4><?php comments_number('0', '1', '%'); ?></h4>
  14. </div>
  15. <div class="entry">
  16. <?php the_content('Read the rest of this entry &raquo;'); ?>
  17. </div>
  18. <div class="postmetadata">
  19. <a href="<?php the_permalink() ?>" >Continue reading...</a>
  20. </div>
  21. </div>
  22. <?php endwhile; ?>
  23. <div class="navigation">
  24. <?php if(!function_exists('wp_pagenavi')) : ?>
  25. <div class="alignleft"><?php next_posts_link('Previous') ?></div>
  26. <div class="alignright"><?php previous_posts_link('Next') ?></div>
  27. <?php else : wp_pagenavi(); endif; ?>
  28. </div>
  29. <?php else : ?>
  30. <h2 class="center">No posts found. Try a different search?</h2>
  31. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  32. <?php endif; ?>
  33. </div>
  34. <?php get_footer(); ?>