File Editor
Directories:
.. (Back)
format
Files:
entry-about-author.php
entry-author-posts-button.php
entry-category.php
entry-content-footer.php
entry-content.php
entry-header.php
entry-meta.php
entry-prev-next-post.php
entry-show-comments.php
entry-summary-footer.php
entry-summary.php
entry-thumbnail.php
Create New File
Create
Edit File: entry-prev-next-post.php
<?php /** * Template part for displaying Previous/Next Post section. * * @package Sinatra * @author Sinatra Team <hello@sinatrawp.com> * @since 1.0.0 */ // Do not show if post is password protected. if ( post_password_required() ) { return; } $sinatra_next_post = get_next_post(); $sinatra_prev_post = get_previous_post(); // Return if there are no other posts. if ( empty( $sinatra_next_post ) && empty( $sinatra_prev_post ) ) { return; } ?> <?php do_action( 'sinatra_entry_before_prev_next_posts' ); ?> <section class="post-nav" role="navigation"> <h2 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'sinatra' ); ?></h2> <?php // Previous post link. previous_post_link( '<div class="nav-previous"><h6 class="nav-title">' . wp_kses( __( 'Previous Post', 'sinatra' ), sinatra_get_allowed_html_tags( 'button' ) ) . '</h6>%link</div>', sprintf( '<div class="nav-content">%1$s <span>%2$s</span></div>', sinatra_get_post_thumbnail( $sinatra_prev_post, array( 75, 75 ) ), '%title' ) ); // Next post link. next_post_link( '<div class="nav-next"><h6 class="nav-title">' . wp_kses( __( 'Next Post', 'sinatra' ), sinatra_get_allowed_html_tags( 'button' ) ) . '</h6>%link</div>', sprintf( '<div class="nav-content"><span>%2$s</span> %1$s</div>', sinatra_get_post_thumbnail( $sinatra_next_post, array( 75, 75 ) ), '%title' ) ); ?> </section> <?php do_action( 'sinatra_entry_after_prev_next_posts' ); ?>
Save Changes
Rename File
Rename