| 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/express-payment --> |
| 16 |
<sc-express-payment divider-text="or" class="wp-block-surecart-express-payment"></sc-express-payment> |
| 17 |
<!-- /wp:surecart/express-payment --> |
| 18 |
|
| 19 |
<!-- wp:surecart/heading {"title":"Contact Information"} --> |
| 20 |
<sc-heading>Contact Information<span slot="description"></span><span slot="end"></span></sc-heading> |
| 21 |
<!-- /wp:surecart/heading --> |
| 22 |
|
| 23 |
<!-- wp:surecart/columns --> |
| 24 |
<sc-columns class="wp-block-surecart-columns"><!-- wp:surecart/column --> |
| 25 |
<sc-column class="wp-block-surecart-column"><!-- wp:surecart/name --> |
| 26 |
<sc-customer-name label="Name" class="wp-block-surecart-name"></sc-customer-name> |
| 27 |
<!-- /wp:surecart/name --></sc-column> |
| 28 |
<!-- /wp:surecart/column --> |
| 29 |
|
| 30 |
<!-- wp:surecart/column --> |
| 31 |
<sc-column class="wp-block-surecart-column"><!-- wp:surecart/email --> |
| 32 |
<sc-customer-email label="Email" autocomplete="email" inputmode="email" required class="wp-block-surecart-email"></sc-customer-email> |
| 33 |
<!-- /wp:surecart/email --></sc-column> |
| 34 |
<!-- /wp:surecart/column --></sc-columns> |
| 35 |
<!-- /wp:surecart/columns --> |
| 36 |
|
| 37 |
<!-- wp:spacer {"height":1} --> |
| 38 |
<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div> |
| 39 |
<!-- /wp:spacer --> |
| 40 |
|
| 41 |
<!-- wp:surecart/heading {"title":"Address"} --> |
| 42 |
<sc-heading>Address<span slot="description"></span><span slot="end"></span></sc-heading> |
| 43 |
<!-- /wp:surecart/heading --> |
| 44 |
|
| 45 |
<!-- wp:surecart/address {"label":""} --> |
| 46 |
<sc-order-shipping-address label=""></sc-order-shipping-address> |
| 47 |
<!-- /wp:surecart/address --> |
| 48 |
|
| 49 |
<!-- wp:spacer {"height":1} --> |
| 50 |
<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div> |
| 51 |
<!-- /wp:spacer --> |
| 52 |
|
| 53 |
<!-- wp:surecart/heading {"title":"Payment"} --> |
| 54 |
<sc-heading>Payment<span slot="description"></span><span slot="end"></span></sc-heading> |
| 55 |
<!-- /wp:surecart/heading --> |
| 56 |
|
| 57 |
<!-- wp:surecart/payment {"secure_notice":"This is a secure, encrypted payment","label":""} --> |
| 58 |
<sc-payment label="" secure-notice="This is a secure, encrypted payment" class="wp-block-surecart-payment"></sc-payment> |
| 59 |
<!-- /wp:surecart/payment --> |
| 60 |
|
| 61 |
<!-- wp:spacer {"height":1} --> |
| 62 |
<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div> |
| 63 |
<!-- /wp:spacer --> |
| 64 |
|
| 65 |
<!-- wp:surecart/heading {"title":"Totals"} --> |
| 66 |
<sc-heading>Totals<span slot="description"></span><span slot="end"></span></sc-heading> |
| 67 |
<!-- /wp:surecart/heading --> |
| 68 |
|
| 69 |
<!-- wp:surecart/totals --> |
| 70 |
<sc-order-summary class="wp-block-surecart-totals"><!-- wp:surecart/divider --> |
| 71 |
<sc-divider></sc-divider> |
| 72 |
<!-- /wp:surecart/divider --> |
| 73 |
|
| 74 |
<!-- wp:surecart/line-items --> |
| 75 |
<sc-line-items removable="1" editable="1" class="wp-block-surecart-line-items"></sc-line-items> |
| 76 |
<!-- /wp:surecart/line-items --> |
| 77 |
|
| 78 |
<!-- wp:surecart/divider --> |
| 79 |
<sc-divider></sc-divider> |
| 80 |
<!-- /wp:surecart/divider --> |
| 81 |
|
| 82 |
<!-- wp:surecart/subtotal --> |
| 83 |
<sc-line-item-total total="subtotal" class="wp-block-surecart-subtotal"><span slot="description">Subtotal</span></sc-line-item-total> |
| 84 |
<!-- /wp:surecart/subtotal --> |
| 85 |
|
| 86 |
<!-- wp:surecart/coupon {"text":"Add Coupon Code","button_text":"Apply Coupon"} --> |
| 87 |
<sc-order-coupon-form label="Add Coupon Code">Apply Coupon</sc-order-coupon-form> |
| 88 |
<!-- /wp:surecart/coupon --> |
| 89 |
|
| 90 |
<!-- wp:surecart/tax-line-item --> |
| 91 |
<sc-line-item-tax class="wp-block-surecart-tax-line-item"></sc-line-item-tax> |
| 92 |
<!-- /wp:surecart/tax-line-item --> |
| 93 |
|
| 94 |
<!-- wp:surecart/divider --> |
| 95 |
<sc-divider></sc-divider> |
| 96 |
<!-- /wp:surecart/divider --> |
| 97 |
|
| 98 |
<!-- wp:surecart/total --> |
| 99 |
<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> |
| 100 |
<!-- /wp:surecart/total --></sc-order-summary> |
| 101 |
<!-- /wp:surecart/totals --> |
| 102 |
|
| 103 |
<!-- wp:surecart/submit {"show_total":true,"full":true} --> |
| 104 |
<sc-order-submit type="primary" full="true" size="large" icon="lock" show-total="true" class="wp-block-surecart-submit">Purchase</sc-order-submit> |
| 105 |
<!-- /wp:surecart/submit -->', |
| 106 |
]; |
| 107 |
|