Remove the few post_type == post checks on Post Format templates, Post formats only apply to posts. See #17748
git-svn-id: https://develop.svn.wordpress.org/trunk@18274 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ad7ad72b1f
commit
ea61020466
@ -16,9 +16,6 @@
|
||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
||||
<h2 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h2>
|
||||
</hgroup>
|
||||
|
||||
<?php if ( 'post' == get_post_type() ) : ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<div class="comments-link">
|
||||
|
@ -29,7 +29,6 @@
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-meta">
|
||||
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
|
||||
@ -65,7 +64,6 @@
|
||||
<span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
|
||||
<?php endif; // End if comments_open() ?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</footer><!-- #entry-meta -->
|
||||
|
@ -17,9 +17,6 @@
|
||||
<h2 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h2>
|
||||
</hgroup>
|
||||
|
||||
<?php if ( 'post' == get_post_type() ) : ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<div class="comments-link">
|
||||
<?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
|
||||
|
@ -15,11 +15,9 @@
|
||||
<h2 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h2>
|
||||
</hgroup>
|
||||
|
||||
<?php if ( 'post' == get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php twentyeleven_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<div class="comments-link">
|
||||
@ -41,7 +39,6 @@
|
||||
|
||||
<footer class="entry-meta">
|
||||
<?php $show_sep = false; ?>
|
||||
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
|
||||
<?php
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
|
||||
@ -64,7 +61,6 @@
|
||||
$show_sep = true; ?>
|
||||
</span>
|
||||
<?php endif; // End if $tags_list ?>
|
||||
<?php endif; // End if 'post' == $post->post_type ?>
|
||||
|
||||
<?php if ( comments_open() ) : ?>
|
||||
<?php if ( $show_sep ) : ?>
|
||||
|
Loading…
Reference in New Issue
Block a user