Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- 2335 * Display a paginated navigation to next/previous set of posts,
- 2336 * when applicable.
- 2337 *
- 2338 * @since 4.1.0
- 2339 *
- 2340 * @param array $args Optional. See {@see get_the_posts_pagination()} for available arguments.
- 2341 * Default empty array.
- 2342 */
- 2343 function the_posts_pagination( $args = array() ) {
- 2344 echo get_the_posts_pagination( $args );
- 2345 }
- 2346
- 2347 /**
- 2348 * Wraps passed links in navigational markup.
- 2349 *
- 2350 * @since 4.1.0
- 2351 * @access private
- 2352 *
- 2353 * @param string $links Navigational links.
- 2354 * @param string $class Optional. Custom class for nav element. Default: 'posts-navigation'.
- 2355 * @param string $screen_reader_text Optional. Screen reader text for nav element. Default: 'Posts navigation'.
- 2356 * @return string Navigation template tag.
- 2357 */
- 2358 function _navigation_markup( $links, $class = 'posts-navigation', $screen_reader_text = '' ) {
- 2359 if ( empty( $screen_reader_text ) ) {
- 2360 $screen_reader_text = __( 'Posts navigation' );
- 2361 }
- 2362
- 2363 $template = '
- 2364 <nav class="navigation %1$s" role="navigation">
- 2365 <h2 class="screen-reader-text">%2$s</h2>
- 2366 <div class="nav-links">%3$s</div>
- 2367 </nav>';
- 2368
- 2369 return sprintf( $template, sanitize_html_class( $class ), esc_html( $screen_reader_text ), $links );
- 2370 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement