block.json
1 year ago
controller.php
1 year ago
index-rtl.css
11 months ago
index.asset.php
6 months ago
index.css
11 months ago
index.js
6 months ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
4 months ago
view.php
32 lines
| 1 | <div |
| 2 | <?php |
| 3 | echo wp_kses_data( |
| 4 | get_block_wrapper_attributes( |
| 5 | [ |
| 6 | 'class' => 'sc-sticky-purchase', |
| 7 | 'style' => $style, |
| 8 | 'data-wp-interactive' => '{ "namespace": "surecart/sticky-purchase" }', |
| 9 | 'data-wp-class--is-visible' => 'state.isVisible', |
| 10 | 'data-wp-on-window--scroll' => 'callbacks.updateStickyOffsetVariables', |
| 11 | 'data-wp-on-window--resize' => 'callbacks.updateStickyOffsetVariables', |
| 12 | 'data-wp-on--transitionend' => 'callbacks.updateStickyOffsetVariables', |
| 13 | ] |
| 14 | ) |
| 15 | ); |
| 16 | echo wp_kses_data( |
| 17 | wp_interactivity_data_wp_context( |
| 18 | [ |
| 19 | 'showStickyPurchaseButton' => $show_sticky_purchase_button, |
| 20 | ] |
| 21 | ) |
| 22 | ); |
| 23 | ?> |
| 24 | > |
| 25 | <div |
| 26 | class="sc-sticky-purchase__content" |
| 27 | data-wp-interactive='{ "namespace": "surecart/product-page" }' |
| 28 | data-wp-class--sc-sticky-purchase__content__unavailable="surecart/sticky-purchase::state.isContentUnavailable" |
| 29 | > |
| 30 | <?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 31 | </div> |
| 32 | </div> |