/blog/wp-content/themes/andrea/single.php
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
- <?php
- /**
- * @package WordPress
- * @subpackage Andrea
- */
- ?>
- <?php get_header(); ?>
- <div id="content" class="group">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a><?php if ( comments_open() ) : ?> <a href="<?php comments_link(); ?>" class="comments-link"><?php comments_number( 'Leave a comment', '1 comment', '% comments' ); ?></a><?php endif; ?></h2>
- <div id="post-<?php the_ID(); ?>" <?php post_class( 'entry-content' ); ?>>
- <?php the_content( __( 'Read the rest of this entry »', 'andrea' ) ); ?>
- <?php wp_link_pages(); ?>
- </div>
- <div class="meta">
- <p><?php
- printf( __( 'Posted %1$s by %2$s in %3$s', 'andrea' ),
- get_the_date( get_option( 'date_format' ) ),
- sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'andrea' ), get_the_author() ),
- get_the_author()
- ),
- get_the_category_list( ', ' )
- );
- ?><?php edit_post_link( __( 'Edit', 'andrea' ), '<span class="edit"> — ', '</span>' ); ?></p>
- <?php if ( the_tags( '<p>' . __( 'Tagged with ', 'andrea' ), ', ', '</p>' ) ); ?>
- </div>
- <div class="navigation post group">
- <div class="alignleft"><?php previous_post_link( '%link', _x( '«', 'Previous post link', 'andrea' ) . ' %title' ); ?></div>
- <div class="alignright" ><?php next_post_link( '%link', _x( '%title ', 'Next post link', 'andrea' ) . '»' ); ?></div>
- </div>
- <?php if ( comments_open() ) comments_template(); ?>
- <?php endwhile; else: ?>
- <div class="warning">
- <p><?php _e( "Sorry, but you are looking for something that isn't here.", 'andrea' ); ?></p>
- </div>
- <?php endif; ?>
- </div><!-- /#content -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>