block.json
1 year ago
controller.php
5 months ago
index-rtl.css
1 year ago
index.asset.php
1 month ago
index.css
1 year ago
index.js
1 month ago
style-index-rtl.css
4 months ago
style-index.css
4 months ago
view.php
5 months ago
view.php
69 lines
| 1 | <div |
| 2 | <?php |
| 3 | echo wp_kses_data( |
| 4 | wp_interactivity_data_wp_context( |
| 5 | [ |
| 6 | 'formId' => intval( $form->ID ), |
| 7 | 'mode' => esc_attr( $form_mode ), |
| 8 | ] |
| 9 | ) |
| 10 | ); |
| 11 | ?> |
| 12 | data-wp-interactive='{ "namespace": "surecart/checkout" }' |
| 13 | data-wp-init="callbacks.init" |
| 14 | data-wp-watch="callbacks.onChangeCheckout" |
| 15 | data-wp-on-window--storage="callbacks.syncTabs" |
| 16 | class="sc-cart-wrapper" |
| 17 | > |
| 18 | <div |
| 19 | <?php |
| 20 | echo wp_kses_data( |
| 21 | get_block_wrapper_attributes( |
| 22 | array( |
| 23 | 'style' => $style, |
| 24 | 'class' => 'sc-drawer sc-cart-drawer', |
| 25 | 'role' => 'dialog', |
| 26 | 'data-wp-bind--aria-label' => 'surecart/cart::state.ariaLabel', |
| 27 | 'data-wp-class--open' => 'surecart/cart::state.open', |
| 28 | 'data-wp-on--keydown' => 'surecart/cart::actions.handleKeydown', |
| 29 | ) |
| 30 | ) |
| 31 | ); |
| 32 | ?> |
| 33 | > |
| 34 | <!-- Cart alert --> |
| 35 | <div class="sc-alert sc-alert__alert--danger" |
| 36 | role="alert" |
| 37 | aria-live="assertive" |
| 38 | aria-atomic="true" |
| 39 | data-wp-bind--hidden="!state.error" |
| 40 | hidden |
| 41 | > |
| 42 | <div class="sc-alert__icon"> |
| 43 | <?php echo wp_kses( SureCart::svg()->get( 'alert-circle', [ 'class' => '' ] ), sc_allowed_svg_html() ); ?> |
| 44 | </div> |
| 45 | |
| 46 | <div class="sc-alert__text"> |
| 47 | <div class="sc-alert__title"> |
| 48 | <span data-wp-text="state.errorTitle"></span> |
| 49 | </div> |
| 50 | <div class="sc-alert__message"> |
| 51 | <div data-wp-text="state.errorMessage"></div> |
| 52 | <template data-wp-each--message="state.additionalErrors"> |
| 53 | <div> |
| 54 | <span data-wp-text="context.message"></span> |
| 55 | </div> |
| 56 | </template> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | <?php echo do_blocks( $content ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 62 | |
| 63 | <div class="sc-block-ui" data-wp-bind--hidden="!state.loading" hidden></div> |
| 64 | </div> |
| 65 | <!-- backdrop --> |
| 66 | <div class="sc-drawer__backdrop" data-wp-on--mousedown="surecart/cart::actions.closeOverlay" data-wp-on--touchstart="surecart/cart::actions.closeOverlay" data-wp-class--show="surecart/cart::state.open" data-wp-on--keydown="surecart/cart::actions.handleKeydown"></div> |
| 67 | </div> |
| 68 | |
| 69 |