HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/advokat/pagination.php
<?php 
$next_post = get_next_post();
$previous_post = get_previous_post();
if( !empty($next_post) || !empty($previous_post)):?>
	<div class="ps-navigation">
		<ul>
			 <?php			 
			  	 $url_next = is_object( $next_post ) ? get_permalink( $next_post->ID ) : ''; 
			  	 $title = is_object( $next_post ) ? get_the_title( $next_post->ID ) : ''; 
				 if($next_post):?>	
				  <li class="prev">
				    <a href="<?php echo esc_url( $url_next ) ?>">
				    	<span class="next_link"><?php esc_html_e('Previous', 'advokat'); ?></span>
				    	<span class="link_text"><i class="fa fa-chevron-left" aria-hidden="true"></i> <?php echo is_object( $next_post ) ? get_the_title( $next_post->ID ) : '';  ?></span>
					</a>
				  </li>
				  <?php endif; ?>

			  <?php 			    
		  			$url_previous = is_object( $previous_post ) ? get_permalink( $previous_post->ID ) : '';
		  			$title = is_object( $previous_post ) ? get_the_title( $previous_post->ID ) : '';
				  	if($previous_post):?>
					  <li class="next">
					    <a href="<?php echo esc_url( $url_previous ) ?>">
					    	<span class="next_link"><?php esc_html_e('Next', 'advokat'); ?></span>
					    	<span class="link_text"><?php echo is_object( $previous_post ) ? get_the_title( $previous_post->ID ) : ''; ?> <i class="fa fa-chevron-right" aria-hidden="true"></i></span>
						</a>
					  </li>
			  <?php endif; ?>
		</ul>
		<div class="clearfix"></div>
	</div> 
<?php endif;