Server IP : 162.0.217.223 / Your IP : 216.73.216.153 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/tu-international.com/wp-content/themes/motorx/tpl/ |
Upload File : |
<?php global $the_query; // Don't print empty markup if there's only one page. if ( $GLOBALS['wp_query']->max_num_pages < 2 ) return; $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; $pagenum_link = html_entity_decode( get_pagenum_link() ); $query_args = array(); $url_parts = explode( '?', $pagenum_link ); if ( isset( $url_parts[1] ) ) { wp_parse_str( $url_parts[1], $query_args ); } $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); $pagenum_link = trailingslashit( $pagenum_link ) . '%_%'; $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; // Set up paginated links. $links = paginate_links( array( 'base' => $pagenum_link, 'format' => $format, 'total' => $GLOBALS['wp_query']->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map( 'urlencode', $query_args ), 'prev_text' => ( '<i class="icon-motorx-2-arrow-left"></i>' ), 'next_text' => ( '<i class="icon-motorx-2-arrow-right"></i>' ), ) ); $numeric_links = paginate_links( array( 'base' => $pagenum_link, 'format' => $format, 'total' => $GLOBALS['wp_query']->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map( 'urlencode', $query_args ), 'prev_next' => false ) ); $next_link = get_next_posts_link( esc_html__( 'Next', 'motorx' ) ); $prev_link = get_previous_posts_link( esc_html__( 'Previous', 'motorx' ) ); $loadmore_text = apply_filters('themesflat/template/loadmore_text',esc_html__('Load More','motorx')); $more_link = get_next_posts_link( esc_html( $loadmore_text) ); global $themesflat_paging_style; global $themesflat_paging_for; ?> <?php if ( $themesflat_paging_style == 'pager' && ! ( empty( $next_link ) && empty( $prev_link ) ) ): ?> <nav class="navigation paging-navigation pager <?php echo esc_attr($themesflat_paging_for);?>" role="navigation"> <div class="pagination loop-pagination"> <?php echo wp_kses( $prev_link, themesflat_kses_allowed_html() ) ?> <?php echo wp_kses( $next_link, themesflat_kses_allowed_html() ) ?> </div> </nav> <?php elseif ( $themesflat_paging_style == 'numeric' && ! empty( $numeric_links ) ): ?> <nav class="navigation paging-navigation numeric <?php echo esc_attr($themesflat_paging_for);?>" role="navigation"> <div class="pagination loop-pagination"> <?php echo wp_kses( $numeric_links, themesflat_kses_allowed_html() ) ?> </div> </nav> <?php elseif ( $themesflat_paging_style == 'loadmore' && ! empty( $next_link ) ): ?> <nav class="navigation paging-navigation loadmore <?php echo esc_attr($themesflat_paging_for);?>" role="navigation"> <div class="pagination loop-pagination text-center draw-border"> <?php echo wp_kses( $more_link, themesflat_kses_allowed_html() ) ?> </div> </nav> <?php elseif ( ! empty( $links ) ): ?> <nav class="navigation paging-navigation pager-numeric <?php echo esc_attr($themesflat_paging_for);?>" role="navigation"> <div class="pagination loop-pagination"> <?php echo wp_kses( $links, themesflat_kses_allowed_html() ) ?> </div> </nav> <?php endif ?>