block.json
1 year ago
controller.php
1 year ago
index.asset.php
5 months ago
index.js
5 months ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
1 year ago
view.php
34 lines
| 1 | <div |
| 2 | data-wp-interactive='{ "namespace": "surecart/checkout" }' |
| 3 | <?php echo wp_kses_data( get_block_wrapper_attributes() ); ?> |
| 4 | <?php |
| 5 | echo wp_kses_data( |
| 6 | wp_interactivity_data_wp_context( |
| 7 | [ |
| 8 | 'formId' => intval( $form->ID ), |
| 9 | 'mode' => esc_attr( $form_mode ), |
| 10 | ] |
| 11 | ) |
| 12 | ); |
| 13 | ?> |
| 14 | data-wp-on--click="surecart/cart::actions.toggle" |
| 15 | data-wp-on--keydown="surecart/cart::actions.toggle" |
| 16 | tabindex="0" |
| 17 | role="button" |
| 18 | data-wp-bind--hidden="!state.hasItems" |
| 19 | hidden |
| 20 | > |
| 21 | <div class="wp-block-surecart-cart-icon__container"> |
| 22 | <div class="wp-block-surecart-cart-icon__icon" aria-label="<?php esc_attr_e( 'Cart Button.', 'surecart' ); ?>"> |
| 23 | <?php echo wp_kses( SureCart::svg()->get( $icon, [ 'class' => '' ] ), sc_allowed_svg_html() ); ?> |
| 24 | </div> |
| 25 | |
| 26 | <span |
| 27 | class="wp-block-surecart-cart-icon__count" |
| 28 | data-wp-text="state.itemsCount" |
| 29 | data-wp-bind--aria-label="state.itemsCountAriaLabel" |
| 30 | > |
| 31 | </span> |
| 32 | </div> |
| 33 | </div> |
| 34 |