PageRenderTime 50ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/lgorence/quickpress
PHP | 51 lines | 41 code | 10 blank | 0 comment | 8 complexity | 5d78ecbb408ccd63dfc313c3b267ee3e 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. <p class="center">Sorry, but you are looking for something that isn't here.</p>
  35. <?php include (TEMPLATEPATH . "/searchform.php"); ?>
  36. <?php endif; ?>
  37. </div>
  38. <?php get_footer(); ?>