HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprm/wp-content/themes/ronneby/templates/inside-pagination.php
<?php
	if ( ! defined( 'ABSPATH' ) ) { exit; }
	
	global $dfd_ronneby;
	
	$prev_post = get_previous_post();
	$next_post = get_next_post();
	
	$nav_class = $prev_post_link = $prev_post_title = $prev_post_date = $prev_post_thumb = $next_post_link = $next_post_title = $next_post_date = $next_post_thumb = false;
	$hover_animate = true;
	
	$prev_arrow_text = '<span>'. esc_html__('Prev','dfd') .'</span>';
	$next_arrow_text = '<span>'. esc_html__('Next','dfd') .'</span>';
//	$prev_arrow_text = '<i class="navicon-angle-left"></i>';
//	$next_arrow_text = '<i class="navicon-angle-right"></i>';
	
	if(isset($dfd_ronneby['inside_pagination_arrow']) && $dfd_ronneby['inside_pagination_arrow'] == 'arrows') {
		$prev_arrow_text = '<i class="dfd-added-font-icon-left-open"></i>';
		$next_arrow_text = '<i class="dfd-added-font-icon-right-open"></i>';
		$nav_class = 'dfd-arrows-nav';
	}
	
	if(isset($dfd_ronneby['inside_pagination_hover']) && $dfd_ronneby['inside_pagination_hover'] == 'off') {
		$hover_animate = false;
	}
	
	if(!empty($prev_post) && is_object($prev_post)) {
		$prev_post_link = get_permalink($prev_post->ID);
		$prev_post_title = get_the_title($prev_post->ID);
		$prev_post_date = mysql2date('d F Y', $prev_post->post_date, true);
		$prev_comments = wp_count_comments($prev_post->ID);
		$prev_comments_count = (isset($prev_comments->approved)) ? $prev_comments->approved : 0;
		$prev_post_thumb = get_the_post_thumbnail($prev_post->ID, array(95,95));
		if(empty($prev_post_thumb)) $prev_post_thumb = prev_next_post_format_icon($prev_post->ID);
	}
	
	if(!empty($next_post) && is_object($next_post)) {
		$next_post_link = get_permalink($next_post->ID);
		$next_post_title = get_the_title($next_post->ID);
		$next_post_date = mysql2date('d F Y', $next_post->post_date, true);
		$next_comments = wp_count_comments($next_post->ID);
		$next_comments_count = (isset($next_comments->approved)) ? $next_comments->approved : 0;
		$next_post_thumb = get_the_post_thumbnail($next_post->ID, array(95,95));
		if(empty($next_post_thumb)) $next_post_thumb = prev_next_post_format_icon($next_post->ID);
	}
?>
<?php
/*
<ul class="inner-nav">
	<?php if(!empty($prev_post_link)) : ?>
		<li class="inner-nav-prev"><a href="<?php echo esc_url($prev_post_link); ?>"><?php echo $prev_post_title; ?></a></li>
	<?php endif; ?>
	<?php if(!empty($next_post_link)) : ?>
		<li class="inner-nav-next"><a href="<?php echo esc_url($next_post_link); ?>"><?php echo $next_post_title; ?></a></li>
	<?php endif; ?>
</ul>
*/
?>
<div class="dfd-controls mobile-hide <?php echo esc_attr($nav_class); ?>">
	<?php if(!empty($prev_post_link)) : ?>
		<a href="<?php echo esc_url($prev_post_link); ?>" class="page-inner-nav nav-prev">
			<div class="dfd-controler prev"><?php echo $prev_arrow_text ?></div>
			<?php if($hover_animate): ?>
				<div class="pagination-title">
					<div class="thumb prev">
						<?php echo $prev_post_thumb; ?>
						<span class="entry-comments"><?php echo $prev_comments_count ?></span>
					</div>
					<div class="dfd-vertical-aligned">
						<div class="box-name"><?php echo $prev_post_title; ?></div>
						<div class="subtitle"><?php echo $prev_post_date; ?></div>
					</div>
				</div>
			<?php endif; ?>
		</a>
	<?php endif; ?>
	<?php if(!empty($next_post_link)) : ?>
		<a href="<?php echo esc_url($next_post_link); ?>" class="page-inner-nav nav-next">
			<div class="dfd-controler next"><?php echo $next_arrow_text ?></div>
			<?php if($hover_animate): ?>
				<div class="pagination-title">
					<div class="thumb next">
						<?php echo $next_post_thumb; ?>
						<span class="entry-comments"><?php echo $next_comments_count ?></span>
					</div>
					<div class="dfd-vertical-aligned">
						<div class="box-name"><?php echo $next_post_title; ?></div>
						<div class="subtitle"><?php echo $next_post_date; ?></div>
					</div>
				</div>
			<?php endif; ?>
		</a>
	<?php endif; ?>
</div>