PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/blog/wp-content/themes/journalist-13/index.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 52 lines | 43 code | 9 blank | 0 comment | 6 complexity | ebaf30c0cffcda48f7d41bb68758dd70 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4. <div <?php post_class() ?>>
  5. <?php // Post dates off by default the_date('','<h2>','</h2>'); ?>
  6. <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  7. <div class="meta">
  8. <?php
  9. if ( !is_attachment() )
  10. printf(__("Posted in %s by %s on %s",'journalist-13'), get_the_category_list(', '), get_the_author(), get_the_time(get_option('date_format')));
  11. edit_post_link(__('Edit This','journalist-13'), ' ');
  12. ?>
  13. </div>
  14. <div class="main">
  15. <?php the_content(__('(more...)','journalist-13')); ?>
  16. </div>
  17. <?php if( !is_attachment() ) { ?>
  18. <div class="tags">
  19. <?php the_tags(__('Tagged with: ','journalist-13'),', ',' '); ?>
  20. </div>
  21. <?php } ?>
  22. <div class="comments">
  23. <?php wp_link_pages(); ?>
  24. <p><?php comments_popup_link(__('leave a comment','journalist-13'), __('<strong>1</strong> comment','journalist-13'), __('<strong>%</strong> comments','journalist-13')); ?></p>
  25. </div>
  26. </div>
  27. <div class="navigation">
  28. <?php if ( is_singular() ) : // should this conditional be wrapped around the whole <div class="navigation">? ?>
  29. <div class="previous"><?php previous_post_link('&laquo; %link') ?></div>
  30. <div class="next"><?php next_post_link('%link &raquo;') ?></div>
  31. <?php endif; ?>
  32. </div>
  33. <?php if ( is_singular() ) comments_template(); ?>
  34. <?php endwhile; else: ?>
  35. <div class="warning">
  36. <p><?php _e('Sorry, no posts matched your criteria, please try and search again.','journalist-13'); ?></p>
  37. </div>
  38. <?php endif; ?>
  39. <div id="postnav"><?php posts_nav_link(' &#8212; ', __('&laquo; Newer Posts','journalist-13'), __('Older Posts &raquo;','journalist-13')); ?></div>
  40. </div> <!-- End content -->
  41. <?php get_sidebar(); ?>
  42. <div class="clearleft"></div>
  43. <?php get_footer(); ?>