| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /var/softaculous/sitepad/editor/site-data/plugins/documentor/templates/single/ |
Upload File : |
<?php
/**
* Single docs adjacent links template
*
* This template can be overridden by copying it to yourtheme/documentor/single/adjacent-links.php.
*
* @author softaculous
* @package documentor/Templates
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable
$prev_post_id = documentor()->get_previous_adjacent_doc_id();
$next_post_id = documentor()->get_next_adjacent_doc_id();
// phpcs:enable
if ( $prev_post_id || $next_post_id ) {
?>
<nav class="documentor-single-adjacent-nav">
<h3 class="documentor-sr-only"><?php echo esc_html__( 'Doc navigation', 'documentor' ); ?></h3>
<?php if ( $prev_post_id ) : ?>
<span class="nav-previous">
<a href="<?php echo esc_url( get_the_permalink( $prev_post_id ) ); ?>" class="documentor-btn documentor-btn-md"><span class="icon"><</span> <?php echo esc_html( get_the_title( $prev_post_id ) ); ?></a>
</span>
<?php endif; ?>
<?php if ( $next_post_id ) : ?>
<span class="nav-next">
<a href="<?php echo esc_url( get_the_permalink( $next_post_id ) ); ?>" class="documentor-btn documentor-btn-md"><?php echo esc_html( get_the_title( $next_post_id ) ); ?> <span class="icon">></span></a>
</span>
<?php endif; ?>
</nav>
<?php
}