PageRenderTime 107ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/blog/wp-content/themes/modularity-lite/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 48 lines | 38 code | 6 blank | 4 comment | 3 complexity | 913a617cc10c51bcc5b61b83337a0b12 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Modularity
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <div class="span-<?php modularity_sidebar_class(); ?>">
  9. <div class="content">
  10. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  11. <h2><?php the_title(); ?></h2>
  12. <?php the_content( __( 'Read the rest of this page &raquo;', 'modularity' ) ); ?>
  13. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'modularity' ), 'after' => '</div>' ) ); ?>
  14. </div>
  15. <div class="clear"></div>
  16. <p class="postmetadata alt">
  17. <small>
  18. <?php
  19. $tag_list = get_the_tag_list( ' and was tagged with ', ', ' );
  20. printf( __( 'This entry was posted on %1$s. It was filed under %2$s%3$s.', 'modularity' ),
  21. get_the_time( get_option( 'date_format' ) ),
  22. get_the_category_list( ', ' ),
  23. $tag_list
  24. );
  25. ?>
  26. <?php edit_post_link( __( 'Edit this entry', 'modularity' ), '', '.' ); ?>
  27. </small>
  28. </p>
  29. <div class="nav next right"><?php next_post_link('%link', _x( '&rarr;', 'Next post link', 'modularity' ) ); ?></div>
  30. <div class="nav prev left"><?php previous_post_link('%link', _x( '&larr;', 'Previous post link', 'modularity' ) ); ?></div>
  31. <div class="clear"></div>
  32. <?php endwhile; else : ?>
  33. <h2 class="center"><?php _e( 'Not Found', 'modularity' ); ?></h2>
  34. <p class="center"><?php _e( 'Sorry, but you are looking for something that isn&rsquo;t here.', 'modularity' ); ?></p>
  35. <?php get_search_form(); ?>
  36. <?php endif; ?>
  37. <?php comments_template(); ?>
  38. </div>
  39. </div>
  40. <?php get_sidebar(); ?>
  41. <!-- Begin Footer -->
  42. <?php get_footer(); ?>