#5875: Illustratr - Remove gallery from top of gallery posts (#6044)

This commit is contained in:
Bob Matyas 2022-06-01 09:00:23 -04:00 committed by GitHub
parent d9f9895282
commit 65c3571e4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,26 +11,20 @@ if ( isset( $GLOBALS['content_width'] ) ) {
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( get_post_gallery() && ! post_password_required() ) : ?>
<div class="entry-gallery">
<?php echo get_post_gallery(); ?>
</div><!-- .entry-gallery -->
<?php endif; ?>
<header class="entry-header"> <header class="entry-header">
<?php <?php
if ( is_single() ) { if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' ); the_title( '<h1 class="entry-title">', '</h1>' );
} else { } else {
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
} }
?> ?>
<?php <?php
/* translators: used between list items, there is a space after the comma */ /* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'illustratr' ) ); $categories_list = get_the_category_list( __( ', ', 'illustratr' ) );
if ( 'post' == get_post_type() && $categories_list && illustratr_categorized_blog() ) : if ( 'post' == get_post_type() && $categories_list && illustratr_categorized_blog() ) :
?> ?>
<span class="cat-links"><?php echo $categories_list; ?></span> <span class="cat-links"><?php echo $categories_list; ?></span>
<?php endif; ?> <?php endif; ?>
</header><!-- .entry-header --> </header><!-- .entry-header -->
@ -43,11 +37,13 @@ if ( isset( $GLOBALS['content_width'] ) ) {
<div class="entry-content"> <div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'illustratr' ) ); ?> <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'illustratr' ) ); ?>
<?php <?php
wp_link_pages( array( wp_link_pages(
'before' => '<div class="page-links clear">', array(
'after' => '</div>', 'before' => '<div class="page-links clear">',
'pagelink' => '<span class="page-link">%</span>', 'after' => '</div>',
) ); 'pagelink' => '<span class="page-link">%</span>',
)
);
?> ?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<?php endif; ?> <?php endif; ?>
@ -59,7 +55,8 @@ if ( isset( $GLOBALS['content_width'] ) ) {
<?php <?php
/* translators: used between list items, there is a space after the comma */ /* translators: used between list items, there is a space after the comma */
the_tags( sprintf( '<span class="tags-links">%s ', esc_html__( 'Tagged', 'illustratr' ) ), esc_html__( ', ', 'illustratr' ), '</span>' ); ?> the_tags( sprintf( '<span class="tags-links">%s ', esc_html__( 'Tagged', 'illustratr' ) ), esc_html__( ', ', 'illustratr' ), '</span>' );
?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?> <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'illustratr' ), __( '1 Comment', 'illustratr' ), __( '% Comments', 'illustratr' ) ); ?></span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'illustratr' ), __( '1 Comment', 'illustratr' ), __( '% Comments', 'illustratr' ) ); ?></span>