| 1 |
<?php |
| 2 |
/** |
| 3 |
* Donation form block pattern |
| 4 |
*/ |
| 5 |
return [ |
| 6 |
'title' => __( 'Default', 'surecart' ), |
| 7 |
'categories' => [ 'surecart_form' ], |
| 8 |
'blockTypes' => [ 'surecart/form' ], |
| 9 |
'content' => '<!-- wp:surecart/price-selector {"label":"Choose A Product"} --> |
| 10 |
<sc-price-choices label="Choose A Product" type="radio" columns="1"><div><!-- wp:surecart/price-choice --> |
| 11 |
<sc-price-choice type="radio" show-label="1" show-price="1" show-control="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/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:surecart/payment {"secure_notice":"This is a secure, encrypted payment"} --> |
| 34 |
<sc-payment label="Payment" secure-notice="This is a secure, encrypted payment" class="wp-block-surecart-payment"></sc-payment> |
| 35 |
<!-- /wp:surecart/payment --> |
| 36 |
|
| 37 |
<!-- wp:surecart/totals {"collapsible":true,"collapsed":false} --> |
| 38 |
<sc-order-summary collapsible="1" class="wp-block-surecart-totals"><!-- wp:surecart/divider --> |
| 39 |
<sc-divider></sc-divider> |
| 40 |
<!-- /wp:surecart/divider --> |
| 41 |
|
| 42 |
<!-- wp:surecart/line-items --> |
| 43 |
<sc-line-items removable="1" editable="1" class="wp-block-surecart-line-items"></sc-line-items> |
| 44 |
<!-- /wp:surecart/line-items --> |
| 45 |
|
| 46 |
<!-- wp:surecart/divider --> |
| 47 |
<sc-divider></sc-divider> |
| 48 |
<!-- /wp:surecart/divider --> |
| 49 |
|
| 50 |
<!-- wp:surecart/subtotal --> |
| 51 |
<sc-line-item-total total="subtotal" class="wp-block-surecart-subtotal"><span slot="description">Subtotal</span></sc-line-item-total> |
| 52 |
<!-- /wp:surecart/subtotal --> |
| 53 |
|
| 54 |
<!-- wp:surecart/coupon --> |
| 55 |
<sc-order-coupon-form label="Add Coupon Code">Apply Coupon</sc-order-coupon-form> |
| 56 |
<!-- /wp:surecart/coupon --> |
| 57 |
|
| 58 |
<!-- wp:surecart/tax-line-item --> |
| 59 |
<sc-line-item-tax class="wp-block-surecart-tax-line-item"></sc-line-item-tax> |
| 60 |
<!-- /wp:surecart/tax-line-item --> |
| 61 |
|
| 62 |
<!-- wp:surecart/divider --> |
| 63 |
<sc-divider></sc-divider> |
| 64 |
<!-- /wp:surecart/divider --> |
| 65 |
|
| 66 |
<!-- wp:surecart/total --> |
| 67 |
<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> |
| 68 |
<!-- /wp:surecart/total --></sc-order-summary> |
| 69 |
<!-- /wp:surecart/totals --> |
| 70 |
|
| 71 |
<!-- wp:surecart/submit {"show_total":true,"full":true} --> |
| 72 |
<sc-order-submit type="primary" full="true" size="large" icon="lock" show-total="true" class="wp-block-surecart-submit">Purchase</sc-order-submit> |
| 73 |
<!-- /wp:surecart/submit --> |
| 74 |
', |
| 75 |
]; |
| 76 |
|