content-aside.php 1.98 KB
Newer Older
shammash's avatar
shammash committed
1 2
<?php
/**
lucha's avatar
lucha committed
3
 * Template for displaying posts in the Aside Post Format
shammash's avatar
shammash committed
4
 *
lucha's avatar
lucha committed
5 6
 * Used on index and archive pages.
 *
ale's avatar
ale committed
7
 * @link https://codex.wordpress.org/Post_Formats
shammash's avatar
shammash committed
8 9 10 11 12 13 14 15 16 17
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<header class="entry-header">
			<hgroup>
lucha's avatar
lucha committed
18
				<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
shammash's avatar
shammash committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
				<h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3>
			</hgroup>

			<?php if ( comments_open() && ! post_password_required() ) : ?>
			<div class="comments-link">
				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
			</div>
			<?php endif; ?>
		</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">&rarr;</span>', 'twentyeleven' ) ); ?>
lucha's avatar
lucha committed
36 37 38 39 40 41 42 43
			<?php
			wp_link_pages(
				array(
					'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',
					'after'  => '</div>',
				)
			);
			?>
shammash's avatar
shammash committed
44 45 46 47 48 49 50 51 52 53
		</div><!-- .entry-content -->
		<?php endif; ?>

		<footer class="entry-meta">
			<?php twentyeleven_posted_on(); ?>
			<?php if ( comments_open() ) : ?>
			<span class="sep"> | </span>
			<span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
			<?php endif; ?>
			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
lechuck's avatar
lechuck committed
54
		</footer><!-- .entry-meta -->
shammash's avatar
shammash committed
55
	</article><!-- #post-<?php the_ID(); ?> -->