You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
<?php |
|
/** |
|
* Book navigation template |
|
* |
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
|
* |
|
* @package Aldine |
|
*/ |
|
|
|
?> |
|
<nav class="booknav" aria-labelledby="latest-books-title book-navigation"> |
|
<span class="screen-reader-text"><?php _e( 'Navigation', 'pressbooks-aldine' ); ?></span> |
|
<nav class="booknav" aria-labelledby="catalog-books"> |
|
<span class="screen-reader-text" id="catalog-books"><?php _e( 'Book Catalog Navigation', 'pressbooks-aldine' ); ?></span> |
|
<?php if ( $previous_page ) : ?> |
|
<a class="previous" rel="previous" data-page="<?php echo $previous_page; ?>" href="<?php echo network_home_url( "/page/$previous_page/#latest-books" ); ?>"> |
|
<span class="screen-reader-text"><?php _e( 'Previous Page', 'pressbooks' ); ?></span> |
|
<svg aria-hidden="true"> |
|
<use xlink:href="#arrow-left" /> |
|
</svg> |
|
</a> |
|
<?php endif; ?> |
|
<?php if ( $next_page <= $catalog_data['pages'] ) : ?> |
|
<a class="next" rel="next" data-page="<?php echo $next_page; ?>" href="<?php echo network_home_url( "/page/$next_page/#latest-books" ); ?>"> |
|
<span class="screen-reader-text"><?php _e( 'Next Page', 'pressbooks' ); ?></span> |
|
<svg aria-hidden="true"> |
|
<use xlink:href="#arrow-right" /> |
|
</svg> |
|
</a> |
|
<?php endif; ?> |
|
</nav>
|
|
|