<?php /** * @package p2-breathe */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <div class="entry-meta"> <?php if ( !is_page() ) : $author_posts_url = get_author_posts_url( get_the_author_meta( 'ID' ) ); $posts_by_title = sprintf( __( 'Posts by %1$s ( @%2$s )', 'p2-breathe' ), get_the_author_meta( 'display_name' ), get_the_author_meta( 'user_nicename' ) ); ?> <a href="<?php echo esc_url( $author_posts_url ); ?>" title="<?php echo esc_attr( $posts_by_title ); ?>" class="author-avatar"> <?php echo get_avatar( get_the_author_meta('user_email'), 48 ); ?> </a> <?php endif; ?> <?php if ( ! is_page() ) : ?> <a href="<?php echo esc_url( $author_posts_url ); ?>" title="<?php echo esc_attr( $posts_by_title ); ?>" class="entry-author"><?php the_author(); ?></a> <?php endif; ?> <span class="entry-date"> <?php breathe_date_time_with_microformat(); ?> </span> <span class="entry-actions"> <?php do_action( 'breathe_post_actions' ); ?> </span> <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : ?> <span class="entry-tags"> <?php breathe_tags_with_count( '', __( '<br />Tags:' , 'p2-breathe' ) .' ', ', ', ' ' ); ?> </span> <?php endif; ?> <?php do_action( 'breathe_header_entry_meta' ); ?> </div><!-- .entry-meta --> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> </header><!-- .entry-header --> <?php if ( is_search() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'p2-breathe' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'p2-breathe' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-meta"> <?php do_action( 'breathe_footer_entry_meta' ); ?> </footer><!-- .entry-meta --> <aside> <?php do_action( 'breathe_entry_aside' ); ?> </aside> </article><!-- #post-## -->