checkout.php
1 year ago
default.php
1 year ago
default.png
3 years ago
donation.php
1 year ago
donation.png
2 years ago
full-page.php
1 year ago
full-page.png
3 years ago
invoice.php
1 year ago
invoice.png
3 years ago
sections.php
1 year ago
sections.png
3 years ago
simple.php
1 year ago
simple.png
3 years ago
two-column.php
1 year ago
two-column.png
3 years ago
sections.php
99 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Donation form block pattern |
| 4 | */ |
| 5 | return [ |
| 6 | 'title' => __( 'Sections', 'surecart' ), |
| 7 | 'categories' => [ 'surecart_form' ], |
| 8 | 'blockTypes' => [ 'surecart/form' ], |
| 9 | 'content' => '<!-- wp:surecart/price-selector {"label":"Choose A Plan"} --> |
| 10 | <sc-price-choices label="Choose A Plan" type="radio" columns="1"><div><!-- wp:surecart/price-choice {"price_id":"9182e0aa-95b4-41ff-adeb-477fae3400f7","label":"","quantity":1,"checked":true} --> |
| 11 | <sc-price-choice price-id="9182e0aa-95b4-41ff-adeb-477fae3400f7" type="radio" label="" checked show-label="1" show-price="1" show-control="1" quantity="1"></sc-price-choice> |
| 12 | <!-- /wp:surecart/price-choice --></div></sc-price-choices> |
| 13 | <!-- /wp:surecart/price-selector --> |
| 14 | |
| 15 | <!-- wp:surecart/heading {"title":"Contact Information"} --> |
| 16 | <sc-heading>Contact Information<span slot="description"></span><span slot="end"></span></sc-heading> |
| 17 | <!-- /wp:surecart/heading --> |
| 18 | |
| 19 | <!-- wp:surecart/columns --> |
| 20 | <sc-columns class="wp-block-surecart-columns"><!-- wp:surecart/column --> |
| 21 | <sc-column class="wp-block-surecart-column"><!-- wp:surecart/name --> |
| 22 | <sc-customer-name label="Name" class="wp-block-surecart-name"></sc-customer-name> |
| 23 | <!-- /wp:surecart/name --></sc-column> |
| 24 | <!-- /wp:surecart/column --> |
| 25 | |
| 26 | <!-- wp:surecart/column --> |
| 27 | <sc-column class="wp-block-surecart-column"><!-- wp:surecart/email --> |
| 28 | <sc-customer-email label="Email" autocomplete="email" inputmode="email" required class="wp-block-surecart-email"></sc-customer-email> |
| 29 | <!-- /wp:surecart/email --></sc-column> |
| 30 | <!-- /wp:surecart/column --></sc-columns> |
| 31 | <!-- /wp:surecart/columns --> |
| 32 | |
| 33 | <!-- wp:spacer {"height":1} --> |
| 34 | <div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div> |
| 35 | <!-- /wp:spacer --> |
| 36 | |
| 37 | <!-- wp:surecart/address /--> |
| 38 | |
| 39 | <!-- wp:spacer {"height":1} --> |
| 40 | <div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div> |
| 41 | <!-- /wp:spacer --> |
| 42 | |
| 43 | <!-- wp:surecart/heading {"title":"Payment"} --> |
| 44 | <sc-heading>Payment<span slot="description"></span><span slot="end"></span></sc-heading> |
| 45 | <!-- /wp:surecart/heading --> |
| 46 | |
| 47 | <!-- wp:surecart/payment {"secure_notice":"This is a secure, encrypted payment","label":""} --> |
| 48 | <sc-payment label="" secure-notice="This is a secure, encrypted payment" class="wp-block-surecart-payment"></sc-payment> |
| 49 | <!-- /wp:surecart/payment --> |
| 50 | |
| 51 | <!-- wp:spacer {"height":1} --> |
| 52 | <div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div> |
| 53 | <!-- /wp:spacer --> |
| 54 | |
| 55 | <!-- wp:surecart/heading {"title":"Totals"} --> |
| 56 | <sc-heading>Totals<span slot="description"></span><span slot="end"></span></sc-heading> |
| 57 | <!-- /wp:surecart/heading --> |
| 58 | |
| 59 | <!-- wp:surecart/totals --> |
| 60 | <sc-order-summary class="wp-block-surecart-totals"><!-- wp:surecart/divider --> |
| 61 | <sc-divider></sc-divider> |
| 62 | <!-- /wp:surecart/divider --> |
| 63 | |
| 64 | <!-- wp:surecart/line-items --> |
| 65 | <sc-line-items removable="1" editable="1" class="wp-block-surecart-line-items"></sc-line-items> |
| 66 | <!-- /wp:surecart/line-items --> |
| 67 | |
| 68 | <!-- wp:surecart/divider --> |
| 69 | <sc-divider></sc-divider> |
| 70 | <!-- /wp:surecart/divider --> |
| 71 | |
| 72 | <!-- wp:surecart/subtotal --> |
| 73 | <sc-line-item-total total="subtotal" class="wp-block-surecart-subtotal"><span slot="description">Subtotal</span></sc-line-item-total> |
| 74 | <!-- /wp:surecart/subtotal --> |
| 75 | |
| 76 | <!-- wp:surecart/trial-line-item /--> |
| 77 | |
| 78 | <!-- wp:surecart/coupon {"text":"Add Coupon Code","button_text":"Apply Coupon"} --> |
| 79 | <sc-order-coupon-form label="Add Coupon Code">Apply Coupon</sc-order-coupon-form> |
| 80 | <!-- /wp:surecart/coupon --> |
| 81 | |
| 82 | <!-- wp:surecart/tax-line-item --> |
| 83 | <sc-line-item-tax class="wp-block-surecart-tax-line-item"></sc-line-item-tax> |
| 84 | <!-- /wp:surecart/tax-line-item --> |
| 85 | |
| 86 | <!-- wp:surecart/divider --> |
| 87 | <sc-divider></sc-divider> |
| 88 | <!-- /wp:surecart/divider --> |
| 89 | |
| 90 | <!-- wp:surecart/total --> |
| 91 | <sc-line-item-total total="total" size="large" show-currency="1" class="wp-block-surecart-total"><span slot="title">Total</span><span slot="subscription-title">Total Due Today</span></sc-line-item-total> |
| 92 | <!-- /wp:surecart/total --></sc-order-summary> |
| 93 | <!-- /wp:surecart/totals --> |
| 94 | |
| 95 | <!-- wp:surecart/submit {"show_total":true,"full":true} --> |
| 96 | <sc-order-submit type="primary" full="true" size="large" icon="lock" show-total="true" class="wp-block-surecart-submit">Purchase</sc-order-submit> |
| 97 | <!-- /wp:surecart/submit -->', |
| 98 | ]; |
| 99 |