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

/blog/wp-content/themes/depo-masthead/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 35 lines | 28 code | 7 blank | 0 comment | 4 complexity | f9a894541f6f6ecce01092c365683056 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <?php if (have_posts()) : while (have_posts()) : the_post();
  3. if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
  4. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  5. <p class="postmetadata"><?php the_tags('', ', ', '<br />'); ?></p>
  6. <h2><?php the_title(); ?></h2>
  7. <small><?php printf(__('In %1$s on %2$s at %3$s', 'depo-masthead'), get_the_category_list(__(', ', 'depo-masthead')), '<strong>'.get_the_time(get_option('date_format')).'</strong>', '<strong>'.get_the_time().'</strong>'); ?></small>
  8. <div class="entry">
  9. <?php the_content(__('Read the rest of this entry &raquo;', 'depo-masthead')); ?>
  10. <?php wp_link_pages(); ?>
  11. <?php edit_post_link(__('Edit this entry.', 'depo-masthead'), '<p>', '</p>'); ?>
  12. </div>
  13. </div>
  14. <?php comments_template(); ?>
  15. <div class="navigation">
  16. <div class="previous">
  17. <?php previous_post_link('%link', '<span class="arrow">&laquo;</span> <span class="link"> <span class="before">'.__('Before', 'depo-masthead').'</span> <span class="title">%title</span> <span class="date">%date</span> </span>') ?>
  18. </div>
  19. <div class="next">
  20. <?php next_post_link('%link', '<span class="link"> <span class="after">'.__('After', 'depo-masthead').'</span><span class="title">%title</span> <span class="date">%date</span></span> <span class="arrow">&raquo;</span>') ?>
  21. </div>
  22. <div class="clear"></div>
  23. </div>
  24. <?php endwhile; else: ?>
  25. <p><?php _e('Sorry, no posts matched your criteria.', 'depo-masthead'); ?></p>
  26. <?php endif; ?>
  27. <?php get_sidebar(); ?>
  28. <?php get_footer(); ?>