PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/index.php

https://github.com/petergibbons/OpenCounterWP
PHP | 47 lines | 27 code | 16 blank | 4 comment | 3 complexity | db3fc432c8b10db81f10cf691bb29f1a MD5 | raw file
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6. get_header(); ?>
  7. <div id="header4">
  8. </div>
  9. <div id="content" class="narrowcolumn" role="main">
  10. <?php if (have_posts()) : ?>
  11. <?php while (have_posts()) : the_post(); ?>
  12. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  13. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
  14. <small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
  15. <div class="entry">
  16. <?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  17. </div>
  18. <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> </p>
  19. </div>
  20. <?php endwhile; ?>
  21. <div class="navigation">
  22. <div class="alignleft" <?php previous_post_link('<strong>%link</strong>'); ?></div>
  23. <div class="alignright"><?php next_post_link('<strong>%link</strong>'); ?> </div>
  24. </div>
  25. <?php else : ?>
  26. <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
  27. <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
  28. <?php get_search_form(); ?>
  29. <?php endif; ?>
  30. </div>
  31. <?php get_footer(); ?>