block.json
1 year ago
index-rtl.css
1 year ago
index.asset.php
6 months ago
index.css
1 year ago
index.js
6 months ago
style-index-rtl.css
6 months ago
style-index.css
6 months ago
view.php
1 month ago
view.php
35 lines
| 1 | <div |
| 2 | <?php echo wp_kses_data( |
| 3 | get_block_wrapper_attributes( |
| 4 | array( |
| 5 | 'role' => 'list', |
| 6 | ) |
| 7 | ) |
| 8 | ); ?> |
| 9 | > |
| 10 | <template |
| 11 | data-wp-each--line_item="state.cartLineItems" |
| 12 | data-wp-each-key="context.line_item.id" |
| 13 | > |
| 14 | <div class="sc-product-line-item" data-wp-class--sc-product-line-item--has-swap="state.swap" role="listitem" data-wp-bind--aria-label="state.lineItemAriaLabel"> |
| 15 | <div class="sc-product-line-item__content"> |
| 16 | <?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 17 | </div> |
| 18 | <div class="sc-product-line-item__swap" data-wp-bind--hidden="!state.swap" hidden data-wp-on--click="actions.toggleSwap"> |
| 19 | <div class="sc-product-line-item__swap-content"> |
| 20 | <button type="button" class="sc-toggle" role="switch" aria-checked="false" data-wp-bind--aria-checked="context.line_item.swap" data-wp-class--sc-toggle--checked="context.line_item.swap"> |
| 21 | <span class="sc-toggle__label"><?php esc_html_e( 'Use setting', 'surecart' ); ?></span> |
| 22 | <span aria-hidden="true" class="sc-toggle__knob"></span> |
| 23 | </button> |
| 24 | <span data-wp-text="state.swap.description"></span> |
| 25 | </div> |
| 26 | <div class="sc-product-line-item__swap-amount"> |
| 27 | <span data-wp-text="state.swapDisplayAmount" class="sc-product-line-item__swap-amount-value"></span> |
| 28 | <span data-wp-text="state.swapIntervalText" class="sc-product-line-item__swap-amount-interval"></span> |
| 29 | <span data-wp-text="state.swapIntervalCountText" class="sc-product-line-item__swap-amount-interval-count"></span> |
| 30 | </div> |
| 31 | </div> |
| 32 | </div> |
| 33 | </template> |
| 34 | </div> |
| 35 |