PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/lgorence/quickpress
PHP | 50 lines | 37 code | 13 blank | 0 comment | 7 complexity | 9c011d98cb1a41a9aeb7e24e7c0fa7ab 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. <h3>
  13. <span class="post_cats"><?php the_tags(); ?></span>
  14. </h3>
  15. </div>
  16. <h4><?php comments_number('0', '1', '%'); ?></h4>
  17. </div>
  18. <div class="entry">
  19. <?php the_content('',FALSE,''); ?>
  20. </div>
  21. <div class="postmetadata">
  22. <a href="<?php the_permalink() ?>" >Continue reading...</a>
  23. </div>
  24. </div>
  25. <?php endwhile; ?>
  26. <div class="navigation">
  27. <?php if(!function_exists('wp_pagenavi')) : ?>
  28. <div class="alignleft"><?php next_posts_link('Previous') ?></div>
  29. <div class="alignright"><?php previous_posts_link('Next') ?></div>
  30. <?php else : wp_pagenavi(); endif; ?>
  31. </div>
  32. <?php else : ?>
  33. <h2 class="center">Not Found</h2>
  34. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  35. <?php endif; ?>
  36. </div>
  37. <?php get_footer(); ?>