403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.16.107.122
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/themes/simple-glassy/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/themes/simple-glassy/inc/pagination.php
<?php
/**
 * Pagination layout
 *
 * @package SimpleGlassy
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( ! function_exists( 'simpleglassy_pagination' ) ) {

	function simpleglassy_pagination( $args = array(), $class = 'pagination mb-0' ) {

		if ( ! isset( $args['total'] ) && $GLOBALS['wp_query']->max_num_pages <= 1 ) {
			return;
		}

		$args = wp_parse_args(
			$args,
			array(
				'mid_size'           => 2,
				'prev_next'          => true,
				'prev_text'          => __( '&#10094;', 'simple-glassy' ),
				'next_text'          => __( '&#10095;', 'simple-glassy' ),
				'screen_reader_text' => __( 'Posts navigation', 'simple-glassy' ),
				'type'               => 'array',
				'current'            => max( 1, get_query_var( 'paged' ) ),
			)
		);

		$links = paginate_links( $args );
		if ( ! $links ) {
			return;
		}

		?>

		<nav aria-labelledby="posts-nav-label" class="bg-glassy p-1 rounded mb-3 mb-sm-0">

			<h2 id="posts-nav-label" class="sr-only">
				<?php echo esc_html( $args['screen_reader_text'] ); ?>
			</h2>

			<ul class="<?php echo esc_attr( $class ); ?>">

				<?php
				foreach ( $links as $key => $link ) {
					?>
					<li class="page-item <?php echo strpos( $link, 'current' ) ? 'active' : ''; ?>">
						<?php echo str_replace( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
							'page-numbers', 
							'page-link', 
							wp_kses( $link, 
								array( 
									'a' => array(
										'class' => array(),
										'href' => array()
									), 
									'span' => array(
										'aria-current' => array(),
										'class' => array()
									)
								)
							)
						); ?>
					</li>
					<?php
				}
				?>

			</ul>

		</nav>

		<?php
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit