File: /home/f/r/e/frenchy/refonte2023/wordpress/wp-content/plugins/ova-events/templates/single/nav.php
<?php if ( !defined( 'ABSPATH' ) ) exit();
$post_ID = get_the_ID();
$prev_post = get_previous_post();
$next_post = get_next_post();
?>
<?php if( $next_post || $prev_post ) { ?>
<div class="ova-next-pre-post">
<?php
$prev_post = get_previous_post();
$next_post = get_next_post();
?>
<?php if($prev_post) { ?>
<a class="pre" href="<?php echo esc_attr(get_permalink($prev_post->ID)) ?>" aria-label="<?php echo esc_attr_e('Previous Event','ovaev');?>">
<span class="num-1">
<span class="icon"><i class="arrow_carrot-left" aria-hidden="true"></i></span>
</span>
<span class="num-2">
<span class="second_font title"><?php echo esc_html(get_the_title($prev_post->ID)) ?></span>
</span>
</a>
<?php } ?>
<a class="ova-slash" href="<?php echo get_post_type_archive_link('event') ?>" aria-label="<?php echo esc_attr_e('Event Next/Previous','ovaev');?>">
<?php if( $prev_post && $next_post ){ ?>
<span></span>
<span></span>
<span></span>
<?php } ?>
</a>
<?php if($next_post) { ?>
<a class="next" href="<?php echo esc_attr(get_permalink($next_post->ID)) ?>" aria-label="<?php echo esc_attr_e('Next Event','ovaev');?>">
<span class="num-1">
<span class="icon"><i class="arrow_carrot-right" aria-hidden="true"></i></span>
</span>
<span class="num-2">
<span class="second_font title" ><?php echo esc_html(get_the_title($next_post->ID)) ?></span>
</span>
</a>
<?php } ?>
</div>
<?php } ?>