PHP 8.2.31
Preview: adjacent-links.php Size: 1.31 KB
/var/softaculous/sitepad/editor/site-data/plugins/documentor/templates/single/adjacent-links.php

<?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">&lt;</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">&gt;</span></a>
            </span>
        <?php endif; ?>
    </nav>
    <?php
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
1.31 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
432 B lrw-r--r-- 2026-04-22 07:17:42
Edit Download
660 B lrw-r--r-- 2026-04-22 07:17:42
Edit Download
1.05 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
426 B lrw-r--r-- 2026-04-22 07:17:42
Edit Download
1.73 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.27 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download
988 B lrw-r--r-- 2026-04-22 07:17:42
Edit Download
2.20 KB lrw-r--r-- 2026-04-22 07:17:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).