Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

#8 - Move edit link below link pages #330

Merged
merged 2 commits into from Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions template-parts/content-cover.php
Expand Up @@ -48,7 +48,7 @@
$color_overlay_classes .= ' blend-mode-' . $color_overlay_opacity;
?>

<div class="cover-header screen-height screen-width<?php echo esc_attr( $cover_header_classes ); ?>"<?php echo $cover_header_style; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;) ?>>
<div class="cover-header screen-height screen-width<?php echo esc_attr( $cover_header_classes ); ?>"<?php echo $cover_header_style; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;) ?>>
<div class="cover-header-inner-wrapper">
<div class="cover-header-inner">
<div class="cover-color-overlay color-accent<?php echo esc_attr( $color_overlay_classes ); ?>"<?php echo $color_overlay_style; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;) ?>></div>
Expand All @@ -58,7 +58,7 @@

<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

<?php
<?php
if ( is_page() ) {
?>

Expand Down Expand Up @@ -93,20 +93,20 @@
<div class="entry-content">

<?php
the_content();

wp_link_pages(
array(
'before' => '<nav class="post-nav-links bg-light-background" aria-label="' . esc_attr__( 'Page', 'twentytwenty' ) . '"><span class="label">' . __( 'Pages:', 'twentytwenty' ) . '</span>',
'after' => '</nav>',
)
);
edit_post_link();
?>
the_content();
?>

</div><!-- .entry-content -->

<?php

wp_link_pages(
array(
'before' => '<nav class="post-nav-links bg-light-background" aria-label="' . esc_attr__( 'Page', 'twentytwenty' ) . '"><span class="label">' . __( 'Pages:', 'twentytwenty' ) . '</span>',
'after' => '</nav>',
)
);

edit_post_link();
// Single bottom post meta.
twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' );
?>
Expand Down
21 changes: 11 additions & 10 deletions template-parts/content.php
Expand Up @@ -35,23 +35,24 @@
} else {
the_content();
}

wp_link_pages(
array(
'before' => '<nav class="post-nav-links bg-light-background" aria-label="' . esc_attr__( 'Page', 'twentytwenty' ) . '"><span class="label">' . __( 'Pages:', 'twentytwenty' ) . '</span>',
'after' => '</nav>',
)
);

edit_post_link();
?>

</div><!-- .entry-content -->

<?php

wp_link_pages(
array(
'before' => '<nav class="post-nav-links bg-light-background" aria-label="' . esc_attr__( 'Page', 'twentytwenty' ) . '"><span class="label">' . __( 'Pages:', 'twentytwenty' ) . '</span>',
'after' => '</nav>',
)
);

edit_post_link();

// Single bottom post meta.
twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' );

?>

</div><!-- .post-inner -->
Expand Down