PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/andrea/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 51 lines | 40 code | 7 blank | 4 comment | 6 complexity | 016029bc3c4b51bdb27990a1d3c2dacc 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 Andrea
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <div id="content" class="group">
  9. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  10. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a><?php if ( comments_open() ) : ?> &nbsp; <a href="<?php comments_link(); ?>" class="comments-link"><?php comments_number( 'Leave a comment', '1 comment', '% comments' ); ?></a><?php endif; ?></h2>
  11. <div id="post-<?php the_ID(); ?>" <?php post_class( 'entry-content' ); ?>>
  12. <?php the_content( __( 'Read the rest of this entry &raquo;', 'andrea' ) ); ?>
  13. <?php wp_link_pages(); ?>
  14. </div>
  15. <div class="meta">
  16. <p><?php
  17. printf( __( 'Posted %1$s by %2$s in %3$s', 'andrea' ),
  18. get_the_date( get_option( 'date_format' ) ),
  19. sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  20. get_author_posts_url( get_the_author_meta( 'ID' ) ),
  21. sprintf( esc_attr__( 'View all posts by %s', 'andrea' ), get_the_author() ),
  22. get_the_author()
  23. ),
  24. get_the_category_list( ', ' )
  25. );
  26. ?><?php edit_post_link( __( 'Edit', 'andrea' ), '<span class="edit"> &mdash; ', '</span>' ); ?></p>
  27. <?php if ( the_tags( '<p>' . __( 'Tagged with ', 'andrea' ), ', ', '</p>' ) ); ?>
  28. </div>
  29. <div class="navigation post group">
  30. <div class="alignleft"><?php previous_post_link( '%link', _x( '&laquo;', 'Previous post link', 'andrea' ) . ' %title' ); ?></div>
  31. <div class="alignright" ><?php next_post_link( '%link', _x( '%title ', 'Next post link', 'andrea' ) . '&raquo;' ); ?></div>
  32. </div>
  33. <?php if ( comments_open() ) comments_template(); ?>
  34. <?php endwhile; else: ?>
  35. <div class="warning">
  36. <p><?php _e( "Sorry, but you are looking for something that isn't here.", 'andrea' ); ?></p>
  37. </div>
  38. <?php endif; ?>
  39. </div><!-- /#content -->
  40. <?php get_sidebar(); ?>
  41. <?php get_footer(); ?>