File manager - Edit - /home/xfekoga/rooftopcleaners/wp-includes/widgets/pagination.php.tar
Back
home/xfekoga/rooftopcleaners/wp-content/themes/twentytwenty/template-parts/pagination.php 0000644 00000004270 15174423176 0026336 0 ustar 00 <?php /** * A template partial to output pagination for the Twenty Twenty default theme. * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ $prev_text = sprintf( '%s <span class="nav-prev-text">%s</span>', '<span aria-hidden="true">←</span>', /* * Translators: This text contains HTML to allow the text to be shorter on small screens. * The text inside the span with the class nav-short will be hidden on small screens. */ __( 'Newer <span class="nav-short">Posts</span>', 'twentytwenty' ) ); $next_text = sprintf( '<span class="nav-next-text">%s</span> %s', /* * Translators: This text contains HTML to allow the text to be shorter on small screens. * The text inside the span with the class nav-short will be hidden on small screens. */ __( 'Older <span class="nav-short">Posts</span>', 'twentytwenty' ), '<span aria-hidden="true">→</span>' ); $posts_pagination = get_the_posts_pagination( array( 'mid_size' => 1, 'prev_text' => $prev_text, 'next_text' => $next_text, ) ); // If we're not outputting the previous page link, prepend a placeholder with `visibility: hidden` to take its place. if ( false === strpos( $posts_pagination, 'prev page-numbers' ) ) { $posts_pagination = str_replace( '<div class="nav-links">', '<div class="nav-links"><span class="prev page-numbers placeholder" aria-hidden="true">' . $prev_text . '</span>', $posts_pagination ); } // If we're not outputting the next page link, append a placeholder with `visibility: hidden` to take its place. if ( false === strpos( $posts_pagination, 'next page-numbers' ) ) { $posts_pagination = str_replace( '</div>', '<span class="next page-numbers placeholder" aria-hidden="true">' . $next_text . '</span></div>', $posts_pagination ); } if ( $posts_pagination ) { ?> <div class="pagination-wrapper section-inner"> <hr class="styled-separator pagination-separator is-style-wide" aria-hidden="true" /> <?php echo $posts_pagination; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped during generation. ?> </div><!-- .pagination-wrapper --> <?php } home/xfekoga/rooftopcleaners/wp-content/themes/roofy/woocommerce/loop/pagination.php 0000644 00000003347 15174424440 0025214 0 ustar 00 <?php /** * Pagination - Show numbered pagination for catalog pages * * This template can be overridden by copying it to yourtheme/woocommerce/loop/pagination.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates * @version 3.3.1 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $wp_query; if ($wp_query->max_num_pages <= 1) { return; } ?> <nav class="navigation pagination woocommerce-pagination"> <h2 class="screen-reader-text"> <?php esc_html_e('Product navigation', 'roofy'); ?> </h2> <!-- .screen-reader-text --> <div class="nav-links"> <?php echo paginate_links( apply_filters( 'woocommerce_pagination_args', array( 'base' => esc_url_raw(str_replace(999999999, '%#%', remove_query_arg('add-to-cart', get_pagenum_link(999999999, false)))), 'format' => '', 'add_args' => false, 'current' => max(1, get_query_var('paged')), 'total' => $wp_query->max_num_pages, 'prev_text' => '←', 'next_text' => '→', 'end_size' => 1, 'mid_size' => 1, 'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__('Page', 'roofy') . ' </span>' ) ) ); ?> </div> <!-- .nav-links --> </nav> <!-- .navigation .pagination .woocommerce-pagination -->
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings