| Server IP : 172.64.80.1 / Your IP : 216.73.216.175 Web Server : LiteSpeed System : Linux srv13.swhc.ca 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : hongluck ( 2522) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/hongluck/public_html/wp-content/themes/himalayas/ |
Upload File : |
<?php
/**
* The template part for displaying navigation.
*
* @package ThemeGrill
* @subpackage Himalayas
* @since Himalayas 1.0
*/
?>
<?php
if( is_archive() || is_home() || is_search() ) {
/**
* Checking WP-PageNaviplugin exist
*/
if ( function_exists('wp_pagenavi' ) ) :
wp_pagenavi();
else:
global $wp_query;
if ( $wp_query->max_num_pages > 1 ) :
?>
<ul class="default-wp-page clearfix">
<li class="previous"><?php next_posts_link( __( '← Previous', 'himalayas' ) ); ?></li>
<li class="next"><?php previous_posts_link( __( 'Next →', 'himalayas' ) ); ?></li>
</ul>
<?php
endif;
endif;
}
if ( is_single() ) {
if( is_attachment() ) {
?>
<ul class="default-wp-page clearfix">
<li class="previous"><?php previous_image_link( false, __( '← Previous', 'himalayas' ) ); ?></li>
<li class="next"><?php next_image_link( false, __( 'Next →', 'himalayas' ) ); ?></li>
</ul>
<?php
}
else {
?>
<ul class="default-wp-page clearfix">
<li class="previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'himalayas' ) . '</span> %title' ); ?></li>
<li class="next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'himalayas' ) . '</span>' ); ?></li>
</ul>
<?php
}
}
?>