PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/elegant-grunge/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 70 lines | 66 code | 0 blank | 4 comment | 5 complexity | 564ff8a5b35c1ee027420e25d1492a8e 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 Elegant Grunge
  5. */
  6. get_header();
  7. ?>
  8. <div id="content-container">
  9. <div id="content">
  10. <div id="content-body">
  11. <?php if ( have_posts() ): while ( have_posts() ): the_post(); ?>
  12. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  13. <div class="post-date">
  14. <span><?php the_time( get_option( 'date_format' ) ); ?></span>
  15. </div>
  16. <h1 class="entry-title"><?php the_title(); ?></h1>
  17. <div class="post-author">
  18. <?php
  19. printf( __( '<span class="author vcard">By <a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 'elegant-grunge' ),
  20. get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'elegant-grunge' ), get_the_author() ), get_the_author() );
  21. ?>
  22. </div>
  23. <div class="entry">
  24. <?php the_content(); ?>
  25. </div>
  26. <div class="clear"></div>
  27. <?php wp_link_pages( array( 'before' => '<p><strong>'.__( 'Pages', 'elegant-grunge' ) . ':</strong> ', 'after' => '</p>' ) ); ?>
  28. <?php if ( get_the_author_meta( 'description' ) ) : ?>
  29. <div id="entry-author-info" class="clearfix">
  30. <h2><?php printf( esc_attr__( 'About %s', 'elegant-grunge' ), get_the_author() ); ?></h2>
  31. <div id="author-avatar">
  32. <?php echo get_avatar ( get_the_author_meta( 'user_email' ), 60 ); ?>
  33. </div>
  34. <div id="author-description">
  35. <?php the_author_meta( 'description' ); ?>
  36. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" class="more-link">
  37. <?php printf( __( 'View all posts by %s', 'elegant-grunge' ), get_the_author() ); ?>
  38. </a>
  39. </div>
  40. </div>
  41. <?php endif; ?>
  42. <div class="metadata">
  43. <?php printf( __( 'This entry was posted on %1$s at %2$s', 'elegant-grunge' ), get_the_time( __( 'l, F jS, Y', 'elegant-grunge' ) ), get_the_time() ); ?>
  44. <?php the_tags( ' ' . __( 'and tagged with', 'elegant-grunge' ) . ' ', ', ', ' ' ); ?>
  45. <?php if ( count( get_the_category() ) ) : ?>
  46. <?php echo ' '; ?>
  47. <?php printf( __( 'and posted in %1$s.', 'elegant-grunge' ), get_the_category_list( ', ' ) ); ?>
  48. <?php endif; ?>
  49. <?php printf( __( 'You can follow any responses to this entry through the <a href="%s">RSS 2.0</a> feed.', 'elegant-grunge' ), get_post_comments_feed_link() );
  50. ?>
  51. <?php edit_post_link( __( 'Edit', 'elegant-grunge' ), '', '.' ); ?>
  52. </div>
  53. <div class="hr"><hr /></div>
  54. </div>
  55. <div class="single navigation clearfix">
  56. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&laquo;', 'Previous post link', 'elegant-grunge' ) . '</span> %title' ); ?></div>
  57. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&raquo;', 'Next post link', 'elegant-grunge' ) . '</span>' ); ?></div>
  58. </div>
  59. <?php comments_template( '', true ); ?>
  60. <?php endwhile; else : ?>
  61. <p>
  62. <?php _e( 'Sorry, no posts matched your criteria.', 'elegant-grunge' ); ?>
  63. </p>
  64. <?php endif; ?>
  65. </div>
  66. <?php get_sidebar(); ?>
  67. </div>
  68. <div class="clear"></div>
  69. </div>
  70. <?php get_footer(); ?>