block.json
1 year ago
controller.php
1 year ago
index.asset.php
1 month ago
index.js
1 month ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
1 year ago
view.php
39 lines
| 1 | <a |
| 2 | <?php |
| 3 | echo wp_kses_data( |
| 4 | get_block_wrapper_attributes( |
| 5 | array_filter( |
| 6 | [ |
| 7 | 'class' => 'has-arrow-type-' . $pagination_arrow, |
| 8 | 'href' => esc_url( $page_link ), |
| 9 | 'role' => 'link', |
| 10 | 'aria-disabled' => empty( $page_link ) ? 'true' : null, |
| 11 | 'aria-label' => $attributes['label'] ?? __( 'Previous Page', 'surecart' ), |
| 12 | 'data-wp-on--click' => 'surecart/product-list::actions.navigate', |
| 13 | 'data-wp-on--mouseenter' => 'surecart/product-list::actions.prefetch', |
| 14 | ] |
| 15 | ) |
| 16 | ) |
| 17 | ); |
| 18 | ?> |
| 19 | > |
| 20 | <?php if ( ! empty( $arrow_name ) ) : ?> |
| 21 | <?php |
| 22 | echo wp_kses( |
| 23 | \SureCart::svg()->get( |
| 24 | $arrow_name, |
| 25 | [ |
| 26 | 'class' => 'wp-block-surecart-product-pagination-previous__icon', |
| 27 | 'aria-hidden' => true, |
| 28 | ] |
| 29 | ), |
| 30 | sc_allowed_svg_html() |
| 31 | ) |
| 32 | ?> |
| 33 | <?php endif; ?> |
| 34 | |
| 35 | <span class="<?php echo empty( $show_label ) ? 'sc-screen-reader-text' : 'sc-page-link-label'; ?>"> |
| 36 | <?php echo wp_kses_post( $attributes['label'] ?? __( 'Previous', 'surecart' ) ); ?> |
| 37 | </span> |
| 38 | </a> |
| 39 |