????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/./self/cwd/wp-content/themes/sinatra/template-parts/entry/ |
Upload File : |
<?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' ); ?>